# 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 CreateCustomerRequest(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',
        'company2': 'str',
        'birthday': 'datetime',
        'email': 'str',
        'phone': 'str',
        'username': 'str',
        'password_hash': 'str',
        'street': 'str',
        'house_no': 'str',
        'postal_code': 'str',
        'city': 'str',
        'district': 'str',
        'country_code': 'str',
        'additional_addressinformation': 'str',
        'comment': 'str',
        'customer_group': 'str',
        'inactive': 'bool',
        'addresses': 'list[CustomerAddress]'
    }

    attribute_map = {
        'salutation': 'salutation',
        'title': 'title',
        'first_name': 'firstName',
        'last_name': 'lastName',
        'company': 'company',
        'company2': 'company2',
        'birthday': 'birthday',
        'email': 'email',
        'phone': 'phone',
        'username': 'username',
        'password_hash': 'passwordHash',
        'street': 'street',
        'house_no': 'houseNo',
        'postal_code': 'postalCode',
        'city': 'city',
        'district': 'district',
        'country_code': 'countryCode',
        'additional_addressinformation': 'additionalAddressinformation',
        'comment': 'comment',
        'customer_group': 'customerGroup',
        'inactive': 'inactive',
        'addresses': 'addresses'
    }

    def __init__(self, salutation=None, title=None, first_name=None, last_name=None, company=None, company2=None, birthday=None, email=None, phone=None, username=None, password_hash=None, street=None, house_no=None, postal_code=None, city=None, district=None, country_code=None, additional_addressinformation=None, comment=None, customer_group=None, inactive=None, addresses=None):  # noqa: E501
        """CreateCustomerRequest - 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._company2 = None
        self._birthday = None
        self._email = None
        self._phone = None
        self._username = None
        self._password_hash = None
        self._street = None
        self._house_no = None
        self._postal_code = None
        self._city = None
        self._district = None
        self._country_code = None
        self._additional_addressinformation = None
        self._comment = None
        self._customer_group = None
        self._inactive = None
        self._addresses = 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 company2 is not None:
            self.company2 = company2
        if birthday is not None:
            self.birthday = birthday
        if email is not None:
            self.email = email
        if phone is not None:
            self.phone = phone
        if username is not None:
            self.username = username
        if password_hash is not None:
            self.password_hash = password_hash
        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 country_code is not None:
            self.country_code = country_code
        if additional_addressinformation is not None:
            self.additional_addressinformation = additional_addressinformation
        if comment is not None:
            self.comment = comment
        if customer_group is not None:
            self.customer_group = customer_group
        if inactive is not None:
            self.inactive = inactive
        if addresses is not None:
            self.addresses = addresses

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

        The salutation (needs to be a valid entry from the corresponding reference list) (if not provided the default salutation is taken)  # noqa: E501

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

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

        The salutation (needs to be a valid entry from the corresponding reference list) (if not provided the default salutation is taken)  # noqa: E501

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

        self._salutation = salutation

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

        The title (e.g. Doctor etc  # noqa: E501

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

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

        The title (e.g. Doctor etc  # noqa: E501

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

        self._title = title

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

        The firstname  # noqa: E501

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

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

        The firstname  # noqa: E501

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

        self._first_name = first_name

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

        The lastname  # noqa: E501

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

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

        The lastname  # noqa: E501

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

        self._last_name = last_name

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

        The company name  # noqa: E501

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

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

        The company name  # noqa: E501

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

        self._company = company

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

        The secondary company name  # noqa: E501

        :return: The company2 of this CreateCustomerRequest.  # noqa: E501
        :rtype: str
        """
        return self._company2

    @company2.setter
    def company2(self, company2):
        """Sets the company2 of this CreateCustomerRequest.

        The secondary company name  # noqa: E501

        :param company2: The company2 of this CreateCustomerRequest.  # noqa: E501
        :type: str
        """

        self._company2 = company2

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

        The birthday  # noqa: E501

        :return: The birthday of this CreateCustomerRequest.  # noqa: E501
        :rtype: datetime
        """
        return self._birthday

    @birthday.setter
    def birthday(self, birthday):
        """Sets the birthday of this CreateCustomerRequest.

        The birthday  # noqa: E501

        :param birthday: The birthday of this CreateCustomerRequest.  # noqa: E501
        :type: datetime
        """

        self._birthday = birthday

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

        The primary email address  # noqa: E501

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

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

        The primary email address  # noqa: E501

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

        self._email = email

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

        The primary telephone number  # noqa: E501

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

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

        The primary telephone number  # noqa: E501

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

        self._phone = phone

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

        The username for the shop account  # noqa: E501

        :return: The username of this CreateCustomerRequest.  # noqa: E501
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """Sets the username of this CreateCustomerRequest.

        The username for the shop account  # noqa: E501

        :param username: The username of this CreateCustomerRequest.  # noqa: E501
        :type: str
        """

        self._username = username

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

        The password hash for the shop account  # noqa: E501

        :return: The password_hash of this CreateCustomerRequest.  # noqa: E501
        :rtype: str
        """
        return self._password_hash

    @password_hash.setter
    def password_hash(self, password_hash):
        """Sets the password_hash of this CreateCustomerRequest.

        The password hash for the shop account  # noqa: E501

        :param password_hash: The password_hash of this CreateCustomerRequest.  # noqa: E501
        :type: str
        """

        self._password_hash = password_hash

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

        The street name of the customers primary address  # noqa: E501

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

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

        The street name of the customers primary address  # noqa: E501

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

        self._street = street

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

        The alphanumeric house number of the customers primary address  # noqa: E501

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

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

        The alphanumeric house number of the customers primary address  # noqa: E501

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

        self._house_no = house_no

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

        The alphanumeric postal code of the customers primary address  # noqa: E501

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

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

        The alphanumeric postal code of the customers primary address  # noqa: E501

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

        self._postal_code = postal_code

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

        The city of the customers primary address  # noqa: E501

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

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

        The city of the customers primary address  # noqa: E501

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

        self._city = city

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

        The district of the customers primary address  # noqa: E501

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

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

        The district of the customers primary address  # noqa: E501

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

        self._district = district

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

        The country code (ISO 3166-2) of the customers primary address (e.g. DE, CH)  # noqa: E501

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

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

        The country code (ISO 3166-2) of the customers primary address (e.g. DE, CH)  # noqa: E501

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

        self._country_code = country_code

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

        Additional address information of the customers primary address  # noqa: E501

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

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

        Additional address information of the customers primary address  # noqa: E501

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

        self._additional_addressinformation = additional_addressinformation

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

        An optional customer comment  # noqa: E501

        :return: The comment of this CreateCustomerRequest.  # noqa: E501
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """Sets the comment of this CreateCustomerRequest.

        An optional customer comment  # noqa: E501

        :param comment: The comment of this CreateCustomerRequest.  # noqa: E501
        :type: str
        """

        self._comment = comment

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

        The name of the customer group (needs to be a valid entry from the corresponding reference list) (if not provided the default customer group is taken)  # noqa: E501

        :return: The customer_group of this CreateCustomerRequest.  # noqa: E501
        :rtype: str
        """
        return self._customer_group

    @customer_group.setter
    def customer_group(self, customer_group):
        """Sets the customer_group of this CreateCustomerRequest.

        The name of the customer group (needs to be a valid entry from the corresponding reference list) (if not provided the default customer group is taken)  # noqa: E501

        :param customer_group: The customer_group of this CreateCustomerRequest.  # noqa: E501
        :type: str
        """

        self._customer_group = customer_group

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

        Indicates whether the customer is marked as inactive  # noqa: E501

        :return: The inactive of this CreateCustomerRequest.  # noqa: E501
        :rtype: bool
        """
        return self._inactive

    @inactive.setter
    def inactive(self, inactive):
        """Sets the inactive of this CreateCustomerRequest.

        Indicates whether the customer is marked as inactive  # noqa: E501

        :param inactive: The inactive of this CreateCustomerRequest.  # noqa: E501
        :type: bool
        """

        self._inactive = inactive

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


        :return: The addresses of this CreateCustomerRequest.  # noqa: E501
        :rtype: list[CustomerAddress]
        """
        return self._addresses

    @addresses.setter
    def addresses(self, addresses):
        """Sets the addresses of this CreateCustomerRequest.


        :param addresses: The addresses of this CreateCustomerRequest.  # noqa: E501
        :type: list[CustomerAddress]
        """

        self._addresses = addresses

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

        return self.__dict__ == other.__dict__

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