# coding: utf-8

"""
    UltraCart Rest API V2

    UltraCart REST API Version 2  # noqa: E501

    OpenAPI spec version: 2.0.0
    Contact: support@ultracart.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class CustomerTaxCodes(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'avalara_customer_code': 'str',
        'avalara_entity_use_code': 'str',
        'sovos_customer_code': 'str',
        'taxjar_customer_id': 'str',
        'taxjar_exemption_type': 'str'
    }

    attribute_map = {
        'avalara_customer_code': 'avalara_customer_code',
        'avalara_entity_use_code': 'avalara_entity_use_code',
        'sovos_customer_code': 'sovos_customer_code',
        'taxjar_customer_id': 'taxjar_customer_id',
        'taxjar_exemption_type': 'taxjar_exemption_type'
    }

    def __init__(self, avalara_customer_code=None, avalara_entity_use_code=None, sovos_customer_code=None, taxjar_customer_id=None, taxjar_exemption_type=None):  # noqa: E501
        """CustomerTaxCodes - a model defined in Swagger"""  # noqa: E501

        self._avalara_customer_code = None
        self._avalara_entity_use_code = None
        self._sovos_customer_code = None
        self._taxjar_customer_id = None
        self._taxjar_exemption_type = None
        self.discriminator = None

        if avalara_customer_code is not None:
            self.avalara_customer_code = avalara_customer_code
        if avalara_entity_use_code is not None:
            self.avalara_entity_use_code = avalara_entity_use_code
        if sovos_customer_code is not None:
            self.sovos_customer_code = sovos_customer_code
        if taxjar_customer_id is not None:
            self.taxjar_customer_id = taxjar_customer_id
        if taxjar_exemption_type is not None:
            self.taxjar_exemption_type = taxjar_exemption_type

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

        Avalara customer code  # noqa: E501

        :return: The avalara_customer_code of this CustomerTaxCodes.  # noqa: E501
        :rtype: str
        """
        return self._avalara_customer_code

    @avalara_customer_code.setter
    def avalara_customer_code(self, avalara_customer_code):
        """Sets the avalara_customer_code of this CustomerTaxCodes.

        Avalara customer code  # noqa: E501

        :param avalara_customer_code: The avalara_customer_code of this CustomerTaxCodes.  # noqa: E501
        :type: str
        """

        self._avalara_customer_code = avalara_customer_code

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

        Avalara entity use code  # noqa: E501

        :return: The avalara_entity_use_code of this CustomerTaxCodes.  # noqa: E501
        :rtype: str
        """
        return self._avalara_entity_use_code

    @avalara_entity_use_code.setter
    def avalara_entity_use_code(self, avalara_entity_use_code):
        """Sets the avalara_entity_use_code of this CustomerTaxCodes.

        Avalara entity use code  # noqa: E501

        :param avalara_entity_use_code: The avalara_entity_use_code of this CustomerTaxCodes.  # noqa: E501
        :type: str
        """

        self._avalara_entity_use_code = avalara_entity_use_code

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

        Sovos customer code  # noqa: E501

        :return: The sovos_customer_code of this CustomerTaxCodes.  # noqa: E501
        :rtype: str
        """
        return self._sovos_customer_code

    @sovos_customer_code.setter
    def sovos_customer_code(self, sovos_customer_code):
        """Sets the sovos_customer_code of this CustomerTaxCodes.

        Sovos customer code  # noqa: E501

        :param sovos_customer_code: The sovos_customer_code of this CustomerTaxCodes.  # noqa: E501
        :type: str
        """

        self._sovos_customer_code = sovos_customer_code

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

        TaxJar customer id  # noqa: E501

        :return: The taxjar_customer_id of this CustomerTaxCodes.  # noqa: E501
        :rtype: str
        """
        return self._taxjar_customer_id

    @taxjar_customer_id.setter
    def taxjar_customer_id(self, taxjar_customer_id):
        """Sets the taxjar_customer_id of this CustomerTaxCodes.

        TaxJar customer id  # noqa: E501

        :param taxjar_customer_id: The taxjar_customer_id of this CustomerTaxCodes.  # noqa: E501
        :type: str
        """

        self._taxjar_customer_id = taxjar_customer_id

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

        TaxJar exemption type  # noqa: E501

        :return: The taxjar_exemption_type of this CustomerTaxCodes.  # noqa: E501
        :rtype: str
        """
        return self._taxjar_exemption_type

    @taxjar_exemption_type.setter
    def taxjar_exemption_type(self, taxjar_exemption_type):
        """Sets the taxjar_exemption_type of this CustomerTaxCodes.

        TaxJar exemption type  # noqa: E501

        :param taxjar_exemption_type: The taxjar_exemption_type of this CustomerTaxCodes.  # noqa: E501
        :type: str
        """

        self._taxjar_exemption_type = taxjar_exemption_type

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

        for attr, _ in six.iteritems(self.swagger_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
        if issubclass(CustomerTaxCodes, dict):
            for key, value in self.items():
                result[key] = 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, CustomerTaxCodes):
            return False

        return self.__dict__ == other.__dict__

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