# coding: utf-8

"""
    Finances API

    This API is used to retrieve seller payouts and monetary transaction details related to those payouts.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class BillingActivityLineItem(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 = {
        'amount': 'Amount',
        'billing_transaction_date': 'str',
        'billing_transaction_id': 'str',
        'booking_entry': 'str',
        'fee_type': 'str',
        'fee_type_description': 'str',
        'listing_id': 'str',
        'order_id': 'str',
        'promotional_offers': 'list[DiscountDetail]'
    }

    attribute_map = {
        'amount': 'amount',
        'billing_transaction_date': 'billingTransactionDate',
        'billing_transaction_id': 'billingTransactionId',
        'booking_entry': 'bookingEntry',
        'fee_type': 'feeType',
        'fee_type_description': 'feeTypeDescription',
        'listing_id': 'listingId',
        'order_id': 'orderId',
        'promotional_offers': 'promotionalOffers'
    }

    def __init__(self, amount=None, billing_transaction_date=None, billing_transaction_id=None, booking_entry=None, fee_type=None, fee_type_description=None, listing_id=None, order_id=None, promotional_offers=None):  # noqa: E501
        """BillingActivityLineItem - a model defined in Swagger"""  # noqa: E501
        self._amount = None
        self._billing_transaction_date = None
        self._billing_transaction_id = None
        self._booking_entry = None
        self._fee_type = None
        self._fee_type_description = None
        self._listing_id = None
        self._order_id = None
        self._promotional_offers = None
        self.discriminator = None
        if amount is not None:
            self.amount = amount
        if billing_transaction_date is not None:
            self.billing_transaction_date = billing_transaction_date
        if billing_transaction_id is not None:
            self.billing_transaction_id = billing_transaction_id
        if booking_entry is not None:
            self.booking_entry = booking_entry
        if fee_type is not None:
            self.fee_type = fee_type
        if fee_type_description is not None:
            self.fee_type_description = fee_type_description
        if listing_id is not None:
            self.listing_id = listing_id
        if order_id is not None:
            self.order_id = order_id
        if promotional_offers is not None:
            self.promotional_offers = promotional_offers

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


        :return: The amount of this BillingActivityLineItem.  # noqa: E501
        :rtype: Amount
        """
        return self._amount

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


        :param amount: The amount of this BillingActivityLineItem.  # noqa: E501
        :type: Amount
        """

        self._amount = amount

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

        This timestamp indicates the date/time when eBay processed the transaction.  # noqa: E501

        :return: The billing_transaction_date of this BillingActivityLineItem.  # noqa: E501
        :rtype: str
        """
        return self._billing_transaction_date

    @billing_transaction_date.setter
    def billing_transaction_date(self, billing_transaction_date):
        """Sets the billing_transaction_date of this BillingActivityLineItem.

        This timestamp indicates the date/time when eBay processed the transaction.  # noqa: E501

        :param billing_transaction_date: The billing_transaction_date of this BillingActivityLineItem.  # noqa: E501
        :type: str
        """

        self._billing_transaction_date = billing_transaction_date

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

        This field provides a unique identifier of the billing transaction. If a seller wants to view details on a specific billing transaction, they can use the <b>actvityId</b> filter and pass in a specific <b>billingTransactionId</b> value.  # noqa: E501

        :return: The billing_transaction_id of this BillingActivityLineItem.  # noqa: E501
        :rtype: str
        """
        return self._billing_transaction_id

    @billing_transaction_id.setter
    def billing_transaction_id(self, billing_transaction_id):
        """Sets the billing_transaction_id of this BillingActivityLineItem.

        This field provides a unique identifier of the billing transaction. If a seller wants to view details on a specific billing transaction, they can use the <b>actvityId</b> filter and pass in a specific <b>billingTransactionId</b> value.  # noqa: E501

        :param billing_transaction_id: The billing_transaction_id of this BillingActivityLineItem.  # noqa: E501
        :type: str
        """

        self._billing_transaction_id = billing_transaction_id

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

        The value returned in this field will indicate if the billing transaction is a debit against the seller's account, or a credit. A debit is much more prevalent than a credit, but sometimes a listing fee will get reversed and they will get a credit for this fee. Possible values:<br><ul><li><code>DEBIT</code></li><li><code>CREDIT</code></li></ul>  # noqa: E501

        :return: The booking_entry of this BillingActivityLineItem.  # noqa: E501
        :rtype: str
        """
        return self._booking_entry

    @booking_entry.setter
    def booking_entry(self, booking_entry):
        """Sets the booking_entry of this BillingActivityLineItem.

        The value returned in this field will indicate if the billing transaction is a debit against the seller's account, or a credit. A debit is much more prevalent than a credit, but sometimes a listing fee will get reversed and they will get a credit for this fee. Possible values:<br><ul><li><code>DEBIT</code></li><li><code>CREDIT</code></li></ul>  # noqa: E501

        :param booking_entry: The booking_entry of this BillingActivityLineItem.  # noqa: E501
        :type: str
        """

        self._booking_entry = booking_entry

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

        This field describes the type of fee associated with the transaction. An example value is  <code>FinalValueFeeFixedFeePerOrder</code>.  # noqa: E501

        :return: The fee_type of this BillingActivityLineItem.  # noqa: E501
        :rtype: str
        """
        return self._fee_type

    @fee_type.setter
    def fee_type(self, fee_type):
        """Sets the fee_type of this BillingActivityLineItem.

        This field describes the type of fee associated with the transaction. An example value is  <code>FinalValueFeeFixedFeePerOrder</code>.  # noqa: E501

        :param fee_type: The fee_type of this BillingActivityLineItem.  # noqa: E501
        :type: str
        """

        self._fee_type = fee_type

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

        This field contains the human-readable description of the fee type associated with the transaction. For example, <code>Final Value Fee</code>.  # noqa: E501

        :return: The fee_type_description of this BillingActivityLineItem.  # noqa: E501
        :rtype: str
        """
        return self._fee_type_description

    @fee_type_description.setter
    def fee_type_description(self, fee_type_description):
        """Sets the fee_type_description of this BillingActivityLineItem.

        This field contains the human-readable description of the fee type associated with the transaction. For example, <code>Final Value Fee</code>.  # noqa: E501

        :param fee_type_description: The fee_type_description of this BillingActivityLineItem.  # noqa: E501
        :type: str
        """

        self._fee_type_description = fee_type_description

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

        The unique identifier of the eBay listing associated with the billing transaction. This field is returned if the fee is associated with a listing.  # noqa: E501

        :return: The listing_id of this BillingActivityLineItem.  # noqa: E501
        :rtype: str
        """
        return self._listing_id

    @listing_id.setter
    def listing_id(self, listing_id):
        """Sets the listing_id of this BillingActivityLineItem.

        The unique identifier of the eBay listing associated with the billing transaction. This field is returned if the fee is associated with a listing.  # noqa: E501

        :param listing_id: The listing_id of this BillingActivityLineItem.  # noqa: E501
        :type: str
        """

        self._listing_id = listing_id

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

        The unique identifier of the eBay order associated with the billing transaction. This field is returned if the fee is associated with an order.  # noqa: E501

        :return: The order_id of this BillingActivityLineItem.  # noqa: E501
        :rtype: str
        """
        return self._order_id

    @order_id.setter
    def order_id(self, order_id):
        """Sets the order_id of this BillingActivityLineItem.

        The unique identifier of the eBay order associated with the billing transaction. This field is returned if the fee is associated with an order.  # noqa: E501

        :param order_id: The order_id of this BillingActivityLineItem.  # noqa: E501
        :type: str
        """

        self._order_id = order_id

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

        A list of seller promotional offers applicable for the billing transaction.  # noqa: E501

        :return: The promotional_offers of this BillingActivityLineItem.  # noqa: E501
        :rtype: list[DiscountDetail]
        """
        return self._promotional_offers

    @promotional_offers.setter
    def promotional_offers(self, promotional_offers):
        """Sets the promotional_offers of this BillingActivityLineItem.

        A list of seller promotional offers applicable for the billing transaction.  # noqa: E501

        :param promotional_offers: The promotional_offers of this BillingActivityLineItem.  # noqa: E501
        :type: list[DiscountDetail]
        """

        self._promotional_offers = promotional_offers

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

        return self.__dict__ == other.__dict__

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