# coding: utf-8

"""
    Accounting Extension

    These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot   # noqa: E501

    The version of the OpenAPI document: v3
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from hubspot.crm.extensions.accounting.configuration import Configuration


class CreateUserAccountRequestExternal(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {"account_id": "str", "account_name": "str", "currency_code": "str"}

    attribute_map = {
        "account_id": "accountId",
        "account_name": "accountName",
        "currency_code": "currencyCode",
    }

    def __init__(
        self,
        account_id=None,
        account_name=None,
        currency_code=None,
        local_vars_configuration=None,
    ):  # noqa: E501
        """CreateUserAccountRequestExternal - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._account_id = None
        self._account_name = None
        self._currency_code = None
        self.discriminator = None

        self.account_id = account_id
        self.account_name = account_name
        self.currency_code = currency_code

    @property
    def account_id(self):
        """Gets the account_id of this CreateUserAccountRequestExternal.  # noqa: E501

        The id of the account in your system.  # noqa: E501

        :return: The account_id of this CreateUserAccountRequestExternal.  # noqa: E501
        :rtype: str
        """
        return self._account_id

    @account_id.setter
    def account_id(self, account_id):
        """Sets the account_id of this CreateUserAccountRequestExternal.

        The id of the account in your system.  # noqa: E501

        :param account_id: The account_id of this CreateUserAccountRequestExternal.  # noqa: E501
        :type: str
        """
        if (
            self.local_vars_configuration.client_side_validation and account_id is None
        ):  # noqa: E501
            raise ValueError(
                "Invalid value for `account_id`, must not be `None`"
            )  # noqa: E501

        self._account_id = account_id

    @property
    def account_name(self):
        """Gets the account_name of this CreateUserAccountRequestExternal.  # noqa: E501

        The name of the account in your system. This is normally the name visible to your users.  # noqa: E501

        :return: The account_name of this CreateUserAccountRequestExternal.  # noqa: E501
        :rtype: str
        """
        return self._account_name

    @account_name.setter
    def account_name(self, account_name):
        """Sets the account_name of this CreateUserAccountRequestExternal.

        The name of the account in your system. This is normally the name visible to your users.  # noqa: E501

        :param account_name: The account_name of this CreateUserAccountRequestExternal.  # noqa: E501
        :type: str
        """
        if (
            self.local_vars_configuration.client_side_validation
            and account_name is None
        ):  # noqa: E501
            raise ValueError(
                "Invalid value for `account_name`, must not be `None`"
            )  # noqa: E501

        self._account_name = account_name

    @property
    def currency_code(self):
        """Gets the currency_code of this CreateUserAccountRequestExternal.  # noqa: E501

        The default currency that this account uses.  # noqa: E501

        :return: The currency_code of this CreateUserAccountRequestExternal.  # noqa: E501
        :rtype: str
        """
        return self._currency_code

    @currency_code.setter
    def currency_code(self, currency_code):
        """Sets the currency_code of this CreateUserAccountRequestExternal.

        The default currency that this account uses.  # noqa: E501

        :param currency_code: The currency_code of this CreateUserAccountRequestExternal.  # noqa: E501
        :type: str
        """
        if (
            self.local_vars_configuration.client_side_validation
            and currency_code is None
        ):  # noqa: E501
            raise ValueError(
                "Invalid value for `currency_code`, must not be `None`"
            )  # noqa: E501

        self._currency_code = currency_code

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(
                    map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value)
                )
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(
                    map(
                        lambda item: (item[0], item[1].to_dict())
                        if hasattr(item[1], "to_dict")
                        else item,
                        value.items(),
                    )
                )
            else:
                result[attr] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, CreateUserAccountRequestExternal):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, CreateUserAccountRequestExternal):
            return True

        return self.to_dict() != other.to_dict()

# coding: utf-8

"""
    Accounting Extension

    These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot   # noqa: E501

    The version of the OpenAPI document: v3
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from hubspot.crm.extensions.accounting.configuration import Configuration


class CreateUserAccountRequestExternal(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    openapi_types = {"account_id": "str", "account_name": "str", "currency_code": "str"}

    attribute_map = {
        "account_id": "accountId",
        "account_name": "accountName",
        "currency_code": "currencyCode",
    }

    def __init__(
        self,
        account_id=None,
        account_name=None,
        currency_code=None,
        local_vars_configuration=None,
    ):  # noqa: E501
        """CreateUserAccountRequestExternal - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._account_id = None
        self._account_name = None
        self._currency_code = None
        self.discriminator = None

        self.account_id = account_id
        self.account_name = account_name
        self.currency_code = currency_code

    @property
    def account_id(self):
        """Gets the account_id of this CreateUserAccountRequestExternal.  # noqa: E501

        The id of the account in your system.  # noqa: E501

        :return: The account_id of this CreateUserAccountRequestExternal.  # noqa: E501
        :rtype: str
        """
        return self._account_id

    @account_id.setter
    def account_id(self, account_id):
        """Sets the account_id of this CreateUserAccountRequestExternal.

        The id of the account in your system.  # noqa: E501

        :param account_id: The account_id of this CreateUserAccountRequestExternal.  # noqa: E501
        :type: str
        """
        if (
            self.local_vars_configuration.client_side_validation and account_id is None
        ):  # noqa: E501
            raise ValueError(
                "Invalid value for `account_id`, must not be `None`"
            )  # noqa: E501

        self._account_id = account_id

    @property
    def account_name(self):
        """Gets the account_name of this CreateUserAccountRequestExternal.  # noqa: E501

        The name of the account in your system. This is normally the name visible to your users.  # noqa: E501

        :return: The account_name of this CreateUserAccountRequestExternal.  # noqa: E501
        :rtype: str
        """
        return self._account_name

    @account_name.setter
    def account_name(self, account_name):
        """Sets the account_name of this CreateUserAccountRequestExternal.

        The name of the account in your system. This is normally the name visible to your users.  # noqa: E501

        :param account_name: The account_name of this CreateUserAccountRequestExternal.  # noqa: E501
        :type: str
        """
        if (
            self.local_vars_configuration.client_side_validation
            and account_name is None
        ):  # noqa: E501
            raise ValueError(
                "Invalid value for `account_name`, must not be `None`"
            )  # noqa: E501

        self._account_name = account_name

    @property
    def currency_code(self):
        """Gets the currency_code of this CreateUserAccountRequestExternal.  # noqa: E501

        The default currency that this account uses.  # noqa: E501

        :return: The currency_code of this CreateUserAccountRequestExternal.  # noqa: E501
        :rtype: str
        """
        return self._currency_code

    @currency_code.setter
    def currency_code(self, currency_code):
        """Sets the currency_code of this CreateUserAccountRequestExternal.

        The default currency that this account uses.  # noqa: E501

        :param currency_code: The currency_code of this CreateUserAccountRequestExternal.  # noqa: E501
        :type: str
        """
        if (
            self.local_vars_configuration.client_side_validation
            and currency_code is None
        ):  # noqa: E501
            raise ValueError(
                "Invalid value for `currency_code`, must not be `None`"
            )  # noqa: E501

        self._currency_code = currency_code

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(
                    map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value)
                )
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(
                    map(
                        lambda item: (item[0], item[1].to_dict())
                        if hasattr(item[1], "to_dict")
                        else item,
                        value.items(),
                    )
                )
            else:
                result[attr] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, CreateUserAccountRequestExternal):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, CreateUserAccountRequestExternal):
            return True

        return self.to_dict() != other.to_dict()

# coding: utf-8 Accounting Extension      These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot   # noqa: E501      The version of the OpenAPI document: v3     Generated by: https://openapi-generator.tech # noqa: F401 NOTE: This class is auto generated by OpenAPI Generator.     Ref: https://openapi-generator.tech      Do not edit the class manually. Attributes:       openapi_types (dict): The key is attribute name                             and the value is attribute type.       attribute_map (dict): The key is attribute name                             and the value is json key in definition. # noqa: E501 CreateUserAccountRequestExternal - a model defined in OpenAPI # noqa: E501 Gets the account_id of this CreateUserAccountRequestExternal.  # noqa: E501          The id of the account in your system.  # noqa: E501          :return: The account_id of this CreateUserAccountRequestExternal.  # noqa: E501         :rtype: str Sets the account_id of this CreateUserAccountRequestExternal.          The id of the account in your system.  # noqa: E501          :param account_id: The account_id of this CreateUserAccountRequestExternal.  # noqa: E501         :type: str # noqa: E501 # noqa: E501 Gets the account_name of this CreateUserAccountRequestExternal.  # noqa: E501          The name of the account in your system. This is normally the name visible to your users.  # noqa: E501          :return: The account_name of this CreateUserAccountRequestExternal.  # noqa: E501         :rtype: str Sets the account_name of this CreateUserAccountRequestExternal.          The name of the account in your system. This is normally the name visible to your users.  # noqa: E501          :param account_name: The account_name of this CreateUserAccountRequestExternal.  # noqa: E501         :type: str # noqa: E501 # noqa: E501 Gets the currency_code of this CreateUserAccountRequestExternal.  # noqa: E501          The default currency that this account uses.  # noqa: E501          :return: The currency_code of this CreateUserAccountRequestExternal.  # noqa: E501         :rtype: str Sets the currency_code of this CreateUserAccountRequestExternal.          The default currency that this account uses.  # noqa: E501          :param currency_code: The currency_code of this CreateUserAccountRequestExternal.  # noqa: E501         :type: str # noqa: E501 # noqa: E501 Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal