# coding: utf-8

"""
    Mauve Admin API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.0.12
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class OrderAddress(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 = {
        'salutation': 'str',
        'title': 'str',
        'first_name': 'str',
        'last_name': 'str',
        'company': 'str',
        'street': 'str',
        'house_no': 'str',
        'postal_code': 'str',
        'city': 'str',
        'district': 'str',
        'additional_addressinformation': 'str',
        'country': 'str',
        'country_code': 'str',
        'email': 'str',
        'phone': 'str'
    }

    attribute_map = {
        'salutation': 'salutation',
        'title': 'title',
        'first_name': 'firstName',
        'last_name': 'lastName',
        'company': 'company',
        'street': 'street',
        'house_no': 'houseNo',
        'postal_code': 'postalCode',
        'city': 'city',
        'district': 'district',
        'additional_addressinformation': 'additionalAddressinformation',
        'country': 'country',
        'country_code': 'countryCode',
        'email': 'email',
        'phone': 'phone'
    }

    def __init__(self, salutation=None, title=None, first_name=None, last_name=None, company=None, street=None, house_no=None, postal_code=None, city=None, district=None, additional_addressinformation=None, country=None, country_code=None, email=None, phone=None):  # noqa: E501
        """OrderAddress - a model defined in Swagger"""  # noqa: E501
        self._salutation = None
        self._title = None
        self._first_name = None
        self._last_name = None
        self._company = None
        self._street = None
        self._house_no = None
        self._postal_code = None
        self._city = None
        self._district = None
        self._additional_addressinformation = None
        self._country = None
        self._country_code = None
        self._email = None
        self._phone = None
        self.discriminator = None
        if salutation is not None:
            self.salutation = salutation
        if title is not None:
            self.title = title
        if first_name is not None:
            self.first_name = first_name
        if last_name is not None:
            self.last_name = last_name
        if company is not None:
            self.company = company
        if street is not None:
            self.street = street
        if house_no is not None:
            self.house_no = house_no
        if postal_code is not None:
            self.postal_code = postal_code
        if city is not None:
            self.city = city
        if district is not None:
            self.district = district
        if additional_addressinformation is not None:
            self.additional_addressinformation = additional_addressinformation
        if country is not None:
            self.country = country
        if country_code is not None:
            self.country_code = country_code
        if email is not None:
            self.email = email
        if phone is not None:
            self.phone = phone

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


        :return: The salutation of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._salutation

    @salutation.setter
    def salutation(self, salutation):
        """Sets the salutation of this OrderAddress.


        :param salutation: The salutation of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._salutation = salutation

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


        :return: The title of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._title

    @title.setter
    def title(self, title):
        """Sets the title of this OrderAddress.


        :param title: The title of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._title = title

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


        :return: The first_name of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._first_name

    @first_name.setter
    def first_name(self, first_name):
        """Sets the first_name of this OrderAddress.


        :param first_name: The first_name of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._first_name = first_name

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


        :return: The last_name of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._last_name

    @last_name.setter
    def last_name(self, last_name):
        """Sets the last_name of this OrderAddress.


        :param last_name: The last_name of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._last_name = last_name

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


        :return: The company of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._company

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


        :param company: The company of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._company = company

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


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

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


        :param street: The street of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._street = street

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


        :return: The house_no of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._house_no

    @house_no.setter
    def house_no(self, house_no):
        """Sets the house_no of this OrderAddress.


        :param house_no: The house_no of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._house_no = house_no

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


        :return: The postal_code of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._postal_code

    @postal_code.setter
    def postal_code(self, postal_code):
        """Sets the postal_code of this OrderAddress.


        :param postal_code: The postal_code of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._postal_code = postal_code

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


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

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


        :param city: The city of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._city = city

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


        :return: The district of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._district

    @district.setter
    def district(self, district):
        """Sets the district of this OrderAddress.


        :param district: The district of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._district = district

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


        :return: The additional_addressinformation of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._additional_addressinformation

    @additional_addressinformation.setter
    def additional_addressinformation(self, additional_addressinformation):
        """Sets the additional_addressinformation of this OrderAddress.


        :param additional_addressinformation: The additional_addressinformation of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._additional_addressinformation = additional_addressinformation

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

        The country name (e.g. Deutschland, Schweiz)  # noqa: E501

        :return: The country of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._country

    @country.setter
    def country(self, country):
        """Sets the country of this OrderAddress.

        The country name (e.g. Deutschland, Schweiz)  # noqa: E501

        :param country: The country of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._country = country

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

        The country code (ISO 3166-2) (e.g. DE, CH)  # noqa: E501

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

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

        The country code (ISO 3166-2) (e.g. DE, CH)  # noqa: E501

        :param country_code: The country_code of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._country_code = country_code

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

        The email address  # noqa: E501

        :return: The email of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._email

    @email.setter
    def email(self, email):
        """Sets the email of this OrderAddress.

        The email address  # noqa: E501

        :param email: The email of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._email = email

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


        :return: The phone of this OrderAddress.  # noqa: E501
        :rtype: str
        """
        return self._phone

    @phone.setter
    def phone(self, phone):
        """Sets the phone of this OrderAddress.


        :param phone: The phone of this OrderAddress.  # noqa: E501
        :type: str
        """

        self._phone = phone

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

        return self.__dict__ == other.__dict__

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