+
    ÁFñj‡  ã                   ó�   € R t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHtHt ^ RIHt ]'       d   ^ RIHt  ! R	 R
]4      tR# )zLThis module contains an object that represents a Telegram SuccessfulPayment.N)ÚTYPE_CHECKING)Ú	OrderInfo)ÚTelegramObject)Úde_json_optional)Úextract_tzinfo_from_defaultsÚfrom_timestamp©ÚJSONDict)ÚBotc                   óx   a a€ ] tR t^"t oRtR	tR
RR/V3R lV 3R llllt]RV3R lV 3R lll4       tRt	Vt
V ;t# )ÚSuccessfulPaymentaÒ  This object contains basic information about a successful payment.
Note that if the buyer initiates a chargeback with the relevant payment provider following
this transaction, the funds may be debited from your balance. This is outside of
Telegram's control.

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` and
:attr:`provider_payment_charge_id` are equal.

Args:
    currency (:obj:`str`): Three-letter ISO 4217 currency code, or ``XTR`` for payments in
        |tg_stars|.
    total_amount (:obj:`int`): Total price in the smallest units of the currency (integer,
        **not** float/double). For example, for a price of ``US$ 1.45`` pass ``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.
    subscription_expiration_date (:class:`datetime.datetime`, optional): Expiration date of the
        subscription; for recurring payments only.

        .. versionadded:: 21.8
    is_recurring (:obj:`bool`, optional): True, if the payment is for a subscription.

        .. versionadded:: 21.8
    is_first_recurring (:obj:`bool`, optional): True, if the payment is the first payment of a
        subscription.

        .. versionadded:: 21.8
    shipping_option_id (:obj:`str`, optional): Identifier of the shipping option chosen by the
        user.
    order_info (:class:`telegram.OrderInfo`, optional): Order info provided by the user.
    telegram_payment_charge_id (:obj:`str`): Telegram payment identifier.
    provider_payment_charge_id (:obj:`str`): Provider payment identifier.

Attributes:
    currency (:obj:`str`): Three-letter ISO 4217 currency code, or ``XTR`` for payments in
        |tg_stars|.
    total_amount (:obj:`int`): Total price in the smallest units of the currency (integer,
        **not** float/double). For example, for a price of ``US$ 1.45`` pass ``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.
    subscription_expiration_date (:class:`datetime.datetime`): Optional. Expiration
        date of the subscription; for recurring payments only.

        .. versionadded:: 21.8
    is_recurring (:obj:`bool`): Optional. True, if the payment is for a subscription.

        .. versionadded:: 21.8
    is_first_recurring (:obj:`bool`): Optional. True, if the payment is the first payment of a
        subscription.

        .. versionadded:: 21.8
    shipping_option_id (:obj:`str`): Optional. Identifier of the shipping option chosen by the
        user.
    order_info (:class:`telegram.OrderInfo`): Optional. Order info provided by the user.
    telegram_payment_charge_id (:obj:`str`): Telegram payment identifier.
    provider_payment_charge_id (:obj:`str`): Provider payment identifier.

NÚ
api_kwargsc                óÄ   <€ V ^8„  d   QhRS[ RS[RS[ RS[ RS[ RS[ R,          RS[R,          R	S[P                  R,          R
S[R,          RS[R,          RS[R,          /# )é   ÚcurrencyÚtotal_amountÚinvoice_payloadÚtelegram_payment_charge_idÚprovider_payment_charge_idÚshipping_option_idNÚ
order_infoÚsubscription_expiration_dateÚis_recurringÚis_first_recurringr   )ÚstrÚintr   ÚdtmÚdatetimeÚboolr	   )ÚformatÚ__classdict__s   "€ÚY/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/_payment/successfulpayment.pyÚ__annotate__ÚSuccessfulPayment.__annotate__q   s—   ø€ ÷ ñ áðñ ðñ ð	ñ
 %(ðñ %(ðñ   $�Jðñ  Õ$ðñ '*§l¡l°TÕ&9ðñ ˜T•kðñ ! 4�Kðñ ˜t•Oñó    c               óú   <€ \         SV `  VR 7       Wn        W n        W0n        W`n        Wpn        W@n        WPn        W€n	        W�n
        W n        V P                  V P                  3V n        V P                  4        R# ))r   N)ÚsuperÚ__init__r   r   r   r   r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)Úselfr   r   r   r   r   r   r   r   r   r   r   Ú	__class__s   &&&&&&&&&&&$€r!   r'   ÚSuccessfulPayment.__init__q   sp   ø€ ô 	‰Ñ JÐÔ/Ø%ŒØ!-ÔØ$3ÔØ.@ÔØ,6ŒØ/IÔ'Ø/IÔ'ØA]Ô)Ø)5ÔØ/AÔà×9Ñ9¸4×;ZÑ;ZÐ[ˆŒà�‰Žr$   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   ÚdataÚbotz
Bot | NoneÚreturnr   r   )r   r    s   "€r!   r"   r#   ‘   s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐBUñ 3r$   c                óà   <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \	        V4      p\        VP                  R4      VR7      VR&   \        SV `  WR7      # )z,See :meth:`telegram.TelegramObject.de_json`.r   r   )Útzinfo)r.   r/   )Ú_parse_datar   Úgetr   r   r   r&   Úde_json)Úclsr.   r/   Ú
loc_tzinfor+   s   &&& €r!   r5   ÚSuccessfulPayment.de_json�   sn   ø€ ð �‰˜tÓ$ˆä-¨d¯h©h°|Ó.DÄiÐQTÓUˆˆ\Ñô 2°#Ó6ˆ
ä/=Ø�H‰HÐ3Ó4¸Zô0
ˆÐ+Ñ,ô ‰w‰ DˆÓ2Ð2r$   )r(   r   r   r   r   r   r   r   r   r   r   )
r   r   r   r   r   r   r   r   r   r   )NNNNN)N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r'   Úclassmethodr5   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r+   r    s   @@r!   r   r   "   sD   ù‡ € ñ?ðB€Iñð '+÷ö ð> ÷3ô 3ó ÷3ð 3r$   r   )r=   r   r   Útypingr   Útelegram._payment.orderinfor   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer   r   Útelegram._utils.typesr	   Útelegramr
   r   © r$   r!   Ú<module>rK      s4   ðñ& Sã Ý  å 1Ý 3Ý <ß QÝ *çÝô|3˜ö |3r$   