# coding: utf-8

"""
    splitit-web-api-public-sdk

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # 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


class ReAuthorization(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 = {
        'processing_date': 'datetime',
        'amount': 'Money',
        'transaction_results': 'list[TransactionResult]',
        'card_details': 'CardData',
        'result': 'bool'
    }

    attribute_map = {
        'processing_date': 'ProcessingDate',
        'amount': 'Amount',
        'transaction_results': 'TransactionResults',
        'card_details': 'CardDetails',
        'result': 'Result'
    }

    def __init__(self, processing_date=None, amount=None, transaction_results=None, card_details=None, result=None):  # noqa: E501
        """ReAuthorization - a model defined in Swagger"""  # noqa: E501

        self._processing_date = None
        self._amount = None
        self._transaction_results = None
        self._card_details = None
        self._result = None
        self.discriminator = None

        if processing_date is not None:
            self._processing_date = processing_date
        if amount is not None:
            self._amount = amount
        if transaction_results is not None:
            self._transaction_results = transaction_results
        if card_details is not None:
            self._card_details = card_details
        if result is not None:
            self._result = result

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


        :return: The processing_date of this ReAuthorization.  # noqa: E501
        :rtype: datetime
        """
        return self._processing_date

    @processing_date.setter
    def processing_date(self, processing_date):
        """Sets the processing_date of this ReAuthorization.


        :param processing_date: The processing_date of this ReAuthorization.  # noqa: E501
        :type: datetime
        """

        self._processing_date = processing_date

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


        :return: The amount of this ReAuthorization.  # noqa: E501
        :rtype: Money
        """
        return self._amount

    @amount.setter
    def amount(self, amount):
        """Sets the amount of this ReAuthorization.


        :param amount: The amount of this ReAuthorization.  # noqa: E501
        :type: Money
        """

        self._amount = amount

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


        :return: The transaction_results of this ReAuthorization.  # noqa: E501
        :rtype: list[TransactionResult]
        """
        return self._transaction_results

    @transaction_results.setter
    def transaction_results(self, transaction_results):
        """Sets the transaction_results of this ReAuthorization.


        :param transaction_results: The transaction_results of this ReAuthorization.  # noqa: E501
        :type: list[TransactionResult]
        """

        self._transaction_results = transaction_results

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


        :return: The card_details of this ReAuthorization.  # noqa: E501
        :rtype: CardData
        """
        return self._card_details

    @card_details.setter
    def card_details(self, card_details):
        """Sets the card_details of this ReAuthorization.


        :param card_details: The card_details of this ReAuthorization.  # noqa: E501
        :type: CardData
        """

        self._card_details = card_details

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


        :return: The result of this ReAuthorization.  # noqa: E501
        :rtype: bool
        """
        return self._result

    @result.setter
    def result(self, result):
        """Sets the result of this ReAuthorization.


        :param result: The result of this ReAuthorization.  # noqa: E501
        :type: bool
        """

        self._result = result

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

        return self.__dict__ == other.__dict__

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