o
    ëÉ¶d¯*  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s4  e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZed
d„ ƒZ	e	jdd„ ƒZ	edd„ ƒZ
e
jdd„ ƒZ
edd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd „ ƒZejd!d „ ƒZd"d#„ Zd$d%„ Zd&d'„ Zd(S ))ÚRedemptionSummaryzR
    The redemption summary for the requested subscription ID and date range.
    c                 K   sx   dddddddddddœ
| _ ddddd	d
dddddœ
| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _dS )aý  
        Initializes a new RedemptionSummary object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param time_redeemed:
            The value to assign to the time_redeemed property of this RedemptionSummary.
        :type time_redeemed: datetime

        :param redemption_email:
            The value to assign to the redemption_email property of this RedemptionSummary.
        :type redemption_email: str

        :param redemption_code:
            The value to assign to the redemption_code property of this RedemptionSummary.
        :type redemption_code: str

        :param invoice_number:
            The value to assign to the invoice_number property of this RedemptionSummary.
        :type invoice_number: str

        :param invoice_total_amount:
            The value to assign to the invoice_total_amount property of this RedemptionSummary.
        :type invoice_total_amount: float

        :param invoice_currency:
            The value to assign to the invoice_currency property of this RedemptionSummary.
        :type invoice_currency: str

        :param redeemed_rewards:
            The value to assign to the redeemed_rewards property of this RedemptionSummary.
        :type redeemed_rewards: float

        :param base_rewards:
            The value to assign to the base_rewards property of this RedemptionSummary.
        :type base_rewards: float

        :param fx_rate:
            The value to assign to the fx_rate property of this RedemptionSummary.
        :type fx_rate: float

        :param time_invoiced:
            The value to assign to the time_invoiced property of this RedemptionSummary.
        :type time_invoiced: datetime

        ÚdatetimeÚstrÚfloat)
Útime_redeemedÚredemption_emailÚredemption_codeÚinvoice_numberÚinvoice_total_amountÚinvoice_currencyÚredeemed_rewardsÚbase_rewardsÚfx_rateÚtime_invoicedZtimeRedeemedZredemptionEmailZredemptionCodeZinvoiceNumberZinvoiceTotalAmountZinvoiceCurrencyZredeemedRewardsZbaseRewardsZfxRateZtimeInvoicedN)Zswagger_typesZattribute_mapÚ_time_redeemedÚ_redemption_emailÚ_redemption_codeÚ_invoice_numberÚ_invoice_total_amountÚ_invoice_currencyÚ_redeemed_rewardsÚ_base_rewardsÚ_fx_rateÚ_time_invoiced)ÚselfÚkwargs© r    úGusr/lib/python3.10/site-packages/oci/usage/models/redemption_summary.pyÚ__init__   s@   /öö
zRedemptionSummary.__init__c                 C   ó   | j S )z½
        Gets the time_redeemed of this RedemptionSummary.
        It provides redeem date.


        :return: The time_redeemed of this RedemptionSummary.
        :rtype: datetime
        ©r   ©r   r    r    r!   r
   e   ó   
zRedemptionSummary.time_redeemedc                 C   ó
   || _ dS )zÉ
        Sets the time_redeemed of this RedemptionSummary.
        It provides redeem date.


        :param time_redeemed: The time_redeemed of this RedemptionSummary.
        :type: datetime
        Nr$   )r   r
   r    r    r!   r
   q   ó   

c                 C   r#   )zÊ
        Gets the redemption_email of this RedemptionSummary.
        It provides the redemption email id.


        :return: The redemption_email of this RedemptionSummary.
        :rtype: str
        ©r   r%   r    r    r!   r   }   r&   z"RedemptionSummary.redemption_emailc                 C   r'   )zÙ
        Sets the redemption_email of this RedemptionSummary.
        It provides the redemption email id.


        :param redemption_email: The redemption_email of this RedemptionSummary.
        :type: str
        Nr)   )r   r   r    r    r!   r   ‰   r(   c                 C   r#   )zø
        Gets the redemption_code of this RedemptionSummary.
        The redemption code used in the Billing Center during the reward redemption process.


        :return: The redemption_code of this RedemptionSummary.
        :rtype: str
        ©r   r%   r    r    r!   r   •   r&   z!RedemptionSummary.redemption_codec                 C   r'   )a  
        Sets the redemption_code of this RedemptionSummary.
        The redemption code used in the Billing Center during the reward redemption process.


        :param redemption_code: The redemption_code of this RedemptionSummary.
        :type: str
        Nr*   )r   r   r    r    r!   r   ¡   r(   c                 C   r#   )zØ
        Gets the invoice_number of this RedemptionSummary.
        It provides the invoice number against the redemption.


        :return: The invoice_number of this RedemptionSummary.
        :rtype: str
        ©r   r%   r    r    r!   r   ­   r&   z RedemptionSummary.invoice_numberc                 C   r'   )zå
        Sets the invoice_number of this RedemptionSummary.
        It provides the invoice number against the redemption.


        :param invoice_number: The invoice_number of this RedemptionSummary.
        :type: str
        Nr+   )r   r   r    r    r!   r   ¹   r(   c                 C   r#   )zé
        Gets the invoice_total_amount of this RedemptionSummary.
        It provides the invoice total amount of given redemption.


        :return: The invoice_total_amount of this RedemptionSummary.
        :rtype: float
        ©r   r%   r    r    r!   r   Å   r&   z&RedemptionSummary.invoice_total_amountc                 C   r'   )zü
        Sets the invoice_total_amount of this RedemptionSummary.
        It provides the invoice total amount of given redemption.


        :param invoice_total_amount: The invoice_total_amount of this RedemptionSummary.
        :type: float
        Nr,   )r   r   r    r    r!   r   Ñ   r(   c                 C   r#   )zË
        Gets the invoice_currency of this RedemptionSummary.
        The currency associated with invoice.


        :return: The invoice_currency of this RedemptionSummary.
        :rtype: str
        ©r   r%   r    r    r!   r   Ý   r&   z"RedemptionSummary.invoice_currencyc                 C   r'   )zÚ
        Sets the invoice_currency of this RedemptionSummary.
        The currency associated with invoice.


        :param invoice_currency: The invoice_currency of this RedemptionSummary.
        :type: str
        Nr-   )r   r   r    r    r!   r   é   r(   c                 C   r#   )zÝ
        Gets the redeemed_rewards of this RedemptionSummary.
        It provides the redeemed rewards in invoice currency.


        :return: The redeemed_rewards of this RedemptionSummary.
        :rtype: float
        ©r   r%   r    r    r!   r   õ   r&   z"RedemptionSummary.redeemed_rewardsc                 C   r'   )zì
        Sets the redeemed_rewards of this RedemptionSummary.
        It provides the redeemed rewards in invoice currency.


        :param redeemed_rewards: The redeemed_rewards of this RedemptionSummary.
        :type: float
        Nr.   )r   r   r    r    r!   r     r(   c                 C   r#   )zß
        Gets the base_rewards of this RedemptionSummary.
        It provides the redeemed rewards in base/subscription currency.


        :return: The base_rewards of this RedemptionSummary.
        :rtype: float
        ©r   r%   r    r    r!   r     r&   zRedemptionSummary.base_rewardsc                 C   r'   )zê
        Sets the base_rewards of this RedemptionSummary.
        It provides the redeemed rewards in base/subscription currency.


        :param base_rewards: The base_rewards of this RedemptionSummary.
        :type: float
        Nr/   )r   r   r    r    r!   r     r(   c                 C   r#   )zà
        Gets the fx_rate of this RedemptionSummary.
        It provides the fxRate between invoice currency and subscription currency.


        :return: The fx_rate of this RedemptionSummary.
        :rtype: float
        ©r   r%   r    r    r!   r   %  r&   zRedemptionSummary.fx_ratec                 C   r'   )zæ
        Sets the fx_rate of this RedemptionSummary.
        It provides the fxRate between invoice currency and subscription currency.


        :param fx_rate: The fx_rate of this RedemptionSummary.
        :type: float
        Nr0   )r   r   r    r    r!   r   1  r(   c                 C   r#   )zÂ
        Gets the time_invoiced of this RedemptionSummary.
        It provides the invoice date.


        :return: The time_invoiced of this RedemptionSummary.
        :rtype: datetime
        ©r   r%   r    r    r!   r   =  r&   zRedemptionSummary.time_invoicedc                 C   r'   )zÎ
        Sets the time_invoiced of this RedemptionSummary.
        It provides the invoice date.


        :param time_invoiced: The time_invoiced of this RedemptionSummary.
        :type: datetime
        Nr1   )r   r   r    r    r!   r   I  r(   c                 C   s   t | ƒS ©N)r   r%   r    r    r!   Ú__repr__U  s   zRedemptionSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr    r    r!   Ú__eq__X  s   zRedemptionSummary.__eq__c                 C   s
   | |k S r2   r    r5   r    r    r!   Ú__ne__^  s   
zRedemptionSummary.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r"   Úpropertyr
   Úsetterr   r   r   r   r   r   r   r   r   r3   r7   r8   r    r    r    r!   r      s\    S



















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r    r    r    r!   Ú<module>   s   