
    Yi                     B    S r SSKJr  SSKJr  SSKJr   " S S\5      rg)zJThis module contains an object that represents a Telegram RefundedPayment.    )Optional)TelegramObject)JSONDictc                   f   ^  \ rS rSrSrSr SSS.S\S\S\S	\S
\\   S\\	   4U 4S jjjjr
SrU =r$ )RefundedPayment   a  This object contains basic information about a refunded payment.

Objects of this class are comparable in terms of equality. Two objects of this class are
considered equal, if their :attr:`telegram_payment_charge_id` is equal.

.. versionadded:: 21.4

Args:
    currency (:obj:`str`): Three-letter ISO 4217 `currency
        <https://core.telegram.org/bots/payments#supported-currencies>`_ code, or ``XTR`` for
        payments in |tg_stars|. Currently, always ``XTR``.
    total_amount (:obj:`int`): Total refunded price in the *smallest units* of the currency
        (integer, **not** float/double). For example, for a price of ``US$ 1.45``,
        ``total_amount = 145``. See the *exp* parameter in
        `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_,
        it shows the number of digits past the decimal point for each currency
        (2 for the majority of currencies).
    invoice_payload (:obj:`str`): Bot-specified invoice payload.
    telegram_payment_charge_id (:obj:`str`): Telegram payment identifier.
    provider_payment_charge_id (:obj:`str`, optional): Provider payment identifier.

Attributes:
    currency (:obj:`str`): Three-letter ISO 4217 `currency
        <https://core.telegram.org/bots/payments#supported-currencies>`_ code, or ``XTR`` for
        payments in |tg_stars|. Currently, always ``XTR``.
    total_amount (:obj:`int`): Total refunded price in the *smallest units* of the currency
        (integer, **not** float/double). For example, for a price of ``US$ 1.45``,
        ``total_amount = 145``. See the *exp* parameter in
        `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_,
        it shows the number of digits past the decimal point for each currency
        (2 for the majority of currencies).
    invoice_payload (:obj:`str`): Bot-specified invoice payload.
    telegram_payment_charge_id (:obj:`str`): Telegram payment identifier.
    provider_payment_charge_id (:obj:`str`): Optional. Provider payment identifier.

)currencyinvoice_payloadprovider_payment_charge_idtelegram_payment_charge_idtotal_amountN
api_kwargsr	   r   r
   r   r   r   c                   > [         TU ]  US9  Xl        X l        X0l        X@l        XPl        U R
                  4U l        U R                  5         g )Nr   )	super__init__r	   r   r
   r   r   	_id_attrs_freeze)selfr	   r   r
   r   r   r   	__class__s          L/app/.venv/lib/python3.13/site-packages/telegram/_payment/refundedpayment.pyr   RefundedPayment.__init__I   sK     	J/%!-$3/I'9S'99;    )r   r	   r
   r   r   r   )N)__name__
__module____qualname____firstlineno____doc__	__slots__strintr   r   r   __static_attributes____classcell__)r   s   @r   r   r      sl    #JI 59 *.  	
 %( %-SM X& r   r   N)r   typingr   telegram._telegramobjectr   telegram._utils.typesr   r    r   r   <module>r(      s"   & Q  3 *Bn Br   