# coding: utf-8

"""
    Wire4RestAPI

     # Referencia de API La API de Wire4 está organizada en torno a REST.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six
from wire4_client.models.transaction_outgoing import TransactionOutgoing  # noqa: F401,E501


class TransactionsOutgoingRegister(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 = {
        'cancel_return_url': 'str',
        'return_url': 'str',
        'transactions': 'list[TransactionOutgoing]'
    }

    attribute_map = {
        'cancel_return_url': 'cancel_return_url',
        'return_url': 'return_url',
        'transactions': 'transactions'
    }

    def __init__(self, cancel_return_url=None, return_url=None, transactions=None):  # noqa: E501
        """TransactionsOutgoingRegister - a model defined in Swagger"""  # noqa: E501
        self._cancel_return_url = None
        self._return_url = None
        self._transactions = None
        self.discriminator = None
        self.cancel_return_url = cancel_return_url
        self.return_url = return_url
        self.transactions = transactions

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

        Url a la que se redirigirá en caso de error  # noqa: E501

        :return: The cancel_return_url of this TransactionsOutgoingRegister.  # noqa: E501
        :rtype: str
        """
        return self._cancel_return_url

    @cancel_return_url.setter
    def cancel_return_url(self, cancel_return_url):
        """Sets the cancel_return_url of this TransactionsOutgoingRegister.

        Url a la que se redirigirá en caso de error  # noqa: E501

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

        self._cancel_return_url = cancel_return_url

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

        Url a la que se redirigirá en caso de exito  # noqa: E501

        :return: The return_url of this TransactionsOutgoingRegister.  # noqa: E501
        :rtype: str
        """
        return self._return_url

    @return_url.setter
    def return_url(self, return_url):
        """Sets the return_url of this TransactionsOutgoingRegister.

        Url a la que se redirigirá en caso de exito  # noqa: E501

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

        self._return_url = return_url

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

        Lista de transferencias de salida que se enviarán a Monex  # noqa: E501

        :return: The transactions of this TransactionsOutgoingRegister.  # noqa: E501
        :rtype: list[TransactionOutgoing]
        """
        return self._transactions

    @transactions.setter
    def transactions(self, transactions):
        """Sets the transactions of this TransactionsOutgoingRegister.

        Lista de transferencias de salida que se enviarán a Monex  # noqa: E501

        :param transactions: The transactions of this TransactionsOutgoingRegister.  # noqa: E501
        :type: list[TransactionOutgoing]
        """
        if transactions is None:
            raise ValueError("Invalid value for `transactions`, must not be `None`")  # noqa: E501

        self._transactions = transactions

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

        return self.__dict__ == other.__dict__

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