§
    ¬eîiè  ã                   ó>   — d Z ddlmZ ddlmZ  G d„ de¦  «        ZdS )zJThis module contains an object that represents a Telegram RefundedPayment.é    )ÚTelegramObject)ÚJSONDictc                   óV   ‡ — e Zd ZdZdZ	 dddœdedededed	edz  d
edz  fˆ fd„Zˆ xZ	S )ÚRefundedPaymentad  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          ¦   «                              |¬¦  «         || _        || _        || _        || _        || _        | j        f| _        |                      ¦   «          d S )Nr   )	ÚsuperÚ__init__r   r   r   r
   r	   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r
   r	   r   Ú	__class__s          €úe/home/div/.hermes/hermes-agent/venv/lib/python3.11/site-packages/telegram/_payment/refundedpayment.pyr   zRefundedPayment.__init__G   se   ø€ õ 	‰Œ×Ò JÐÑ/Ô/Ð/Ø%ˆŒØ!-ˆÔØ$3ˆÔØ/IˆÔ'à6PˆÔ'àÔ9Ð;ˆŒà�Š‰Œˆˆˆó    )N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚstrÚintr   r   Ú__classcell__)r   s   @r   r   r      sª   ø€ € € € € ð#ð #ðJ€Ið 26ðð '+ðð ð àðð ðð ð	ð
 %(ðð %(¨$¡Jðð ˜t‘Oðð ð ð ð ð ð ð ð ð r   r   N)r   Útelegram._telegramobjectr   Útelegram._utils.typesr   r   © r   r   ú<module>r"      sp   ðð& QÐ Pà 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø *Ð *Ð *Ð *Ð *Ð *ðBð Bð Bð Bð B�nñ Bô Bð Bð Bð Br   