L iBdZddlmZddlmZddlmZGddeZy)zJThis module contains an object that represents a Telegram RefundedPayment.)Optional)TelegramObject)JSONDictcVeZdZdZdZ d dddedededed eed eef fd Z xZ S) RefundedPaymentadThis 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 `_ 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 `_, 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 `_ 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 `_, 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. )currencyinvoice_payloadprovider_payment_charge_idtelegram_payment_charge_id total_amountN api_kwargsrr r r r rct||||_||_||_||_||_|j f|_|jy)Nr ) super__init__rr r r r _id_attrs_freeze)selfrr r r r r __class__s g/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/telegram/_payment/refundedpayment.pyrzRefundedPayment.__init__IsU J/% !-$3/I'9S'99; )N) __name__ __module__ __qualname____doc__ __slots__strintrrr __classcell__)rs@rrrsl#JI59 *.  %(  %-SM X&rrN)rtypingrtelegram._telegramobjectrtelegram._utils.typesrrrrr$s"&Q3*BnBr