# coding: utf-8

"""
    Dokumenty CITES

    API pro datový řadič dokumentů CITES ### Verze 1.0.0    - public   - developers  ### Verze 1.1.0    - admins   - additional   - statement   - attachments   - registration_cards   - permit   # noqa: E501

    OpenAPI spec version: 1.1.0
    Contact: info@sysnet.cz
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class TradePartyType(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 = {
        'id': 'list[IDType]',
        'name': 'TextType',
        'postal_trade_address': 'TradeAddressType',
        'specified_representative_person': 'RepresentativePersonType',
        'specified_authoritative_signatory_person': 'list[AuthoritativeSignatoryPersonType]'
    }

    attribute_map = {
        'id': 'id',
        'name': 'name',
        'postal_trade_address': 'postalTradeAddress',
        'specified_representative_person': 'specifiedRepresentativePerson',
        'specified_authoritative_signatory_person': 'specifiedAuthoritativeSignatoryPerson'
    }

    def __init__(self, id=None, name=None, postal_trade_address=None, specified_representative_person=None, specified_authoritative_signatory_person=None):  # noqa: E501
        """TradePartyType - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._name = None
        self._postal_trade_address = None
        self._specified_representative_person = None
        self._specified_authoritative_signatory_person = None
        self.discriminator = None
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if postal_trade_address is not None:
            self.postal_trade_address = postal_trade_address
        if specified_representative_person is not None:
            self.specified_representative_person = specified_representative_person
        if specified_authoritative_signatory_person is not None:
            self.specified_authoritative_signatory_person = specified_authoritative_signatory_person

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


        :return: The id of this TradePartyType.  # noqa: E501
        :rtype: list[IDType]
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this TradePartyType.


        :param id: The id of this TradePartyType.  # noqa: E501
        :type: list[IDType]
        """

        self._id = id

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


        :return: The name of this TradePartyType.  # noqa: E501
        :rtype: TextType
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this TradePartyType.


        :param name: The name of this TradePartyType.  # noqa: E501
        :type: TextType
        """

        self._name = name

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


        :return: The postal_trade_address of this TradePartyType.  # noqa: E501
        :rtype: TradeAddressType
        """
        return self._postal_trade_address

    @postal_trade_address.setter
    def postal_trade_address(self, postal_trade_address):
        """Sets the postal_trade_address of this TradePartyType.


        :param postal_trade_address: The postal_trade_address of this TradePartyType.  # noqa: E501
        :type: TradeAddressType
        """

        self._postal_trade_address = postal_trade_address

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


        :return: The specified_representative_person of this TradePartyType.  # noqa: E501
        :rtype: RepresentativePersonType
        """
        return self._specified_representative_person

    @specified_representative_person.setter
    def specified_representative_person(self, specified_representative_person):
        """Sets the specified_representative_person of this TradePartyType.


        :param specified_representative_person: The specified_representative_person of this TradePartyType.  # noqa: E501
        :type: RepresentativePersonType
        """

        self._specified_representative_person = specified_representative_person

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


        :return: The specified_authoritative_signatory_person of this TradePartyType.  # noqa: E501
        :rtype: list[AuthoritativeSignatoryPersonType]
        """
        return self._specified_authoritative_signatory_person

    @specified_authoritative_signatory_person.setter
    def specified_authoritative_signatory_person(self, specified_authoritative_signatory_person):
        """Sets the specified_authoritative_signatory_person of this TradePartyType.


        :param specified_authoritative_signatory_person: The specified_authoritative_signatory_person of this TradePartyType.  # noqa: E501
        :type: list[AuthoritativeSignatoryPersonType]
        """

        self._specified_authoritative_signatory_person = specified_authoritative_signatory_person

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

        return self.__dict__ == other.__dict__

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