# 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 CitesDocumentPrincipalType(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 = {
        'doc_code': 'str',
        'metadata': 'MetadataType',
        'document': 'GeneralType',
        'transaction': 'list[TransactionType]',
        'conditions': 'ConditionsType',
        'issuing': 'IssuingType',
        'other': 'OtherType',
        'permit_conditions': 'PermitSpecialConditionsType',
        'customs': 'DocumentPrincipalCustomsPermitType',
        'goods': 'list[GoodsPrincipalType]',
        'note': 'str',
        'attachments': 'CitesDocumentAttachmentListType',
        'workflow': 'WorkflowListType',
        'linked_list': 'LinkedListType'
    }

    attribute_map = {
        'doc_code': 'doc_code',
        'metadata': 'metadata',
        'document': 'document',
        'transaction': 'transaction',
        'conditions': 'conditions',
        'issuing': 'issuing',
        'other': 'other',
        'permit_conditions': 'permit_conditions',
        'customs': 'customs',
        'goods': 'goods',
        'note': 'note',
        'attachments': 'attachments',
        'workflow': 'workflow',
        'linked_list': 'linked_list'
    }

    def __init__(self, doc_code=None, metadata=None, document=None, transaction=None, conditions=None, issuing=None, other=None, permit_conditions=None, customs=None, goods=None, note=None, attachments=None, workflow=None, linked_list=None):  # noqa: E501
        """CitesDocumentPrincipalType - a model defined in Swagger"""  # noqa: E501
        self._doc_code = None
        self._metadata = None
        self._document = None
        self._transaction = None
        self._conditions = None
        self._issuing = None
        self._other = None
        self._permit_conditions = None
        self._customs = None
        self._goods = None
        self._note = None
        self._attachments = None
        self._workflow = None
        self._linked_list = None
        self.discriminator = None
        self.doc_code = doc_code
        self.metadata = metadata
        if document is not None:
            self.document = document
        if transaction is not None:
            self.transaction = transaction
        if conditions is not None:
            self.conditions = conditions
        if issuing is not None:
            self.issuing = issuing
        if other is not None:
            self.other = other
        if permit_conditions is not None:
            self.permit_conditions = permit_conditions
        if customs is not None:
            self.customs = customs
        if goods is not None:
            self.goods = goods
        if note is not None:
            self.note = note
        if attachments is not None:
            self.attachments = attachments
        if workflow is not None:
            self.workflow = workflow
        if linked_list is not None:
            self.linked_list = linked_list

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

        Kód dokumentu z číselníku - vazba na formuláře PDF  # noqa: E501

        :return: The doc_code of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: str
        """
        return self._doc_code

    @doc_code.setter
    def doc_code(self, doc_code):
        """Sets the doc_code of this CitesDocumentPrincipalType.

        Kód dokumentu z číselníku - vazba na formuláře PDF  # noqa: E501

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

        self._doc_code = doc_code

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


        :return: The metadata of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: MetadataType
        """
        return self._metadata

    @metadata.setter
    def metadata(self, metadata):
        """Sets the metadata of this CitesDocumentPrincipalType.


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

        self._metadata = metadata

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


        :return: The document of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: GeneralType
        """
        return self._document

    @document.setter
    def document(self, document):
        """Sets the document of this CitesDocumentPrincipalType.


        :param document: The document of this CitesDocumentPrincipalType.  # noqa: E501
        :type: GeneralType
        """

        self._document = document

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


        :return: The transaction of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: list[TransactionType]
        """
        return self._transaction

    @transaction.setter
    def transaction(self, transaction):
        """Sets the transaction of this CitesDocumentPrincipalType.


        :param transaction: The transaction of this CitesDocumentPrincipalType.  # noqa: E501
        :type: list[TransactionType]
        """

        self._transaction = transaction

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


        :return: The conditions of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: ConditionsType
        """
        return self._conditions

    @conditions.setter
    def conditions(self, conditions):
        """Sets the conditions of this CitesDocumentPrincipalType.


        :param conditions: The conditions of this CitesDocumentPrincipalType.  # noqa: E501
        :type: ConditionsType
        """

        self._conditions = conditions

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


        :return: The issuing of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: IssuingType
        """
        return self._issuing

    @issuing.setter
    def issuing(self, issuing):
        """Sets the issuing of this CitesDocumentPrincipalType.


        :param issuing: The issuing of this CitesDocumentPrincipalType.  # noqa: E501
        :type: IssuingType
        """

        self._issuing = issuing

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


        :return: The other of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: OtherType
        """
        return self._other

    @other.setter
    def other(self, other):
        """Sets the other of this CitesDocumentPrincipalType.


        :param other: The other of this CitesDocumentPrincipalType.  # noqa: E501
        :type: OtherType
        """

        self._other = other

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


        :return: The permit_conditions of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: PermitSpecialConditionsType
        """
        return self._permit_conditions

    @permit_conditions.setter
    def permit_conditions(self, permit_conditions):
        """Sets the permit_conditions of this CitesDocumentPrincipalType.


        :param permit_conditions: The permit_conditions of this CitesDocumentPrincipalType.  # noqa: E501
        :type: PermitSpecialConditionsType
        """

        self._permit_conditions = permit_conditions

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


        :return: The customs of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: DocumentPrincipalCustomsPermitType
        """
        return self._customs

    @customs.setter
    def customs(self, customs):
        """Sets the customs of this CitesDocumentPrincipalType.


        :param customs: The customs of this CitesDocumentPrincipalType.  # noqa: E501
        :type: DocumentPrincipalCustomsPermitType
        """

        self._customs = customs

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


        :return: The goods of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: list[GoodsPrincipalType]
        """
        return self._goods

    @goods.setter
    def goods(self, goods):
        """Sets the goods of this CitesDocumentPrincipalType.


        :param goods: The goods of this CitesDocumentPrincipalType.  # noqa: E501
        :type: list[GoodsPrincipalType]
        """

        self._goods = goods

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

        Poznámky  # noqa: E501

        :return: The note of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: str
        """
        return self._note

    @note.setter
    def note(self, note):
        """Sets the note of this CitesDocumentPrincipalType.

        Poznámky  # noqa: E501

        :param note: The note of this CitesDocumentPrincipalType.  # noqa: E501
        :type: str
        """

        self._note = note

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


        :return: The attachments of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: CitesDocumentAttachmentListType
        """
        return self._attachments

    @attachments.setter
    def attachments(self, attachments):
        """Sets the attachments of this CitesDocumentPrincipalType.


        :param attachments: The attachments of this CitesDocumentPrincipalType.  # noqa: E501
        :type: CitesDocumentAttachmentListType
        """

        self._attachments = attachments

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


        :return: The workflow of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: WorkflowListType
        """
        return self._workflow

    @workflow.setter
    def workflow(self, workflow):
        """Sets the workflow of this CitesDocumentPrincipalType.


        :param workflow: The workflow of this CitesDocumentPrincipalType.  # noqa: E501
        :type: WorkflowListType
        """

        self._workflow = workflow

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


        :return: The linked_list of this CitesDocumentPrincipalType.  # noqa: E501
        :rtype: LinkedListType
        """
        return self._linked_list

    @linked_list.setter
    def linked_list(self, linked_list):
        """Sets the linked_list of this CitesDocumentPrincipalType.


        :param linked_list: The linked_list of this CitesDocumentPrincipalType.  # noqa: E501
        :type: LinkedListType
        """

        self._linked_list = linked_list

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

        return self.__dict__ == other.__dict__

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