# coding: utf-8

"""
    Allegro REST API

    https://developer.allegro.pl/about  # noqa: E501

    OpenAPI spec version: latest
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class CheckoutFormInvoiceAddress(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 = {
        'street': 'str',
        'city': 'str',
        'zip_code': 'str',
        'country_code': 'str',
        'company': 'CheckoutFormInvoiceAddressCompany',
        'natural_person': 'CheckoutFormInvoiceAddressNaturalPerson'
    }

    attribute_map = {
        'street': 'street',
        'city': 'city',
        'zip_code': 'zipCode',
        'country_code': 'countryCode',
        'company': 'company',
        'natural_person': 'naturalPerson'
    }

    def __init__(self, street=None, city=None, zip_code=None, country_code=None, company=None, natural_person=None):  # noqa: E501
        """CheckoutFormInvoiceAddress - a model defined in OpenAPI"""  # noqa: E501

        self._street = None
        self._city = None
        self._zip_code = None
        self._country_code = None
        self._company = None
        self._natural_person = None
        self.discriminator = None

        self.street = street
        self.city = city
        self.zip_code = zip_code
        self.country_code = country_code
        if company is not None:
            self.company = company
        if natural_person is not None:
            self.natural_person = natural_person

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

        Street name  # noqa: E501

        :return: The street of this CheckoutFormInvoiceAddress.  # noqa: E501
        :rtype: str
        """
        return self._street

    @street.setter
    def street(self, street):
        """Sets the street of this CheckoutFormInvoiceAddress.

        Street name  # noqa: E501

        :param street: The street of this CheckoutFormInvoiceAddress.  # noqa: E501
        :type: str
        """
        if street is None:
            raise ValueError("Invalid value for `street`, must not be `None`")  # noqa: E501

        self._street = street

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

        City name  # noqa: E501

        :return: The city of this CheckoutFormInvoiceAddress.  # noqa: E501
        :rtype: str
        """
        return self._city

    @city.setter
    def city(self, city):
        """Sets the city of this CheckoutFormInvoiceAddress.

        City name  # noqa: E501

        :param city: The city of this CheckoutFormInvoiceAddress.  # noqa: E501
        :type: str
        """
        if city is None:
            raise ValueError("Invalid value for `city`, must not be `None`")  # noqa: E501

        self._city = city

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

        Postal code  # noqa: E501

        :return: The zip_code of this CheckoutFormInvoiceAddress.  # noqa: E501
        :rtype: str
        """
        return self._zip_code

    @zip_code.setter
    def zip_code(self, zip_code):
        """Sets the zip_code of this CheckoutFormInvoiceAddress.

        Postal code  # noqa: E501

        :param zip_code: The zip_code of this CheckoutFormInvoiceAddress.  # noqa: E501
        :type: str
        """
        if zip_code is None:
            raise ValueError("Invalid value for `zip_code`, must not be `None`")  # noqa: E501

        self._zip_code = zip_code

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

        Country code  # noqa: E501

        :return: The country_code of this CheckoutFormInvoiceAddress.  # noqa: E501
        :rtype: str
        """
        return self._country_code

    @country_code.setter
    def country_code(self, country_code):
        """Sets the country_code of this CheckoutFormInvoiceAddress.

        Country code  # noqa: E501

        :param country_code: The country_code of this CheckoutFormInvoiceAddress.  # noqa: E501
        :type: str
        """
        if country_code is None:
            raise ValueError("Invalid value for `country_code`, must not be `None`")  # noqa: E501

        self._country_code = country_code

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


        :return: The company of this CheckoutFormInvoiceAddress.  # noqa: E501
        :rtype: CheckoutFormInvoiceAddressCompany
        """
        return self._company

    @company.setter
    def company(self, company):
        """Sets the company of this CheckoutFormInvoiceAddress.


        :param company: The company of this CheckoutFormInvoiceAddress.  # noqa: E501
        :type: CheckoutFormInvoiceAddressCompany
        """

        self._company = company

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


        :return: The natural_person of this CheckoutFormInvoiceAddress.  # noqa: E501
        :rtype: CheckoutFormInvoiceAddressNaturalPerson
        """
        return self._natural_person

    @natural_person.setter
    def natural_person(self, natural_person):
        """Sets the natural_person of this CheckoutFormInvoiceAddress.


        :param natural_person: The natural_person of this CheckoutFormInvoiceAddress.  # noqa: E501
        :type: CheckoutFormInvoiceAddressNaturalPerson
        """

        self._natural_person = natural_person

    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, CheckoutFormInvoiceAddress):
            return False

        return self.__dict__ == other.__dict__

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