+
    rpÐj  ã                   óº   € R t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RI	H
t
HtHt ^ RIHtHt ^ RIHt ^RIHt ]'       d   ^ R	IHt  ! R
 R]4      t ! R R]4      tR# )zAThis module contains the classes for Telegram Stars transactions.N)ÚSequence)ÚTYPE_CHECKING)ÚTelegramObject)Úde_json_optionalÚde_list_optionalÚparse_sequence_arg)Úextract_tzinfo_from_defaultsÚfrom_timestamp©ÚJSONDict)ÚTransactionPartner)Ú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# )ÚStarTransactionaA  Describes a Telegram Star transaction.
Note that if the buyer initiates a chargeback with the payment provider from whom they
acquired Stars (e.g., Apple, Google) following this transaction, the refunded Stars will be
deducted from the bot's 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:`id`, :attr:`source`, and :attr:`receiver` are equal.

.. versionadded:: 21.4

Args:
    id (:obj:`str`): Unique identifier of the transaction. Coincides with the identifer
        of the original transaction for refund transactions.
        Coincides with :attr:`SuccessfulPayment.telegram_payment_charge_id` for
        successful incoming payments from users.
    amount (:obj:`int`): Integer amount of Telegram Stars transferred by the transaction.
    nanostar_amount (:obj:`int`, optional): The number of
        :tg-const:`~telegram.constants.Nanostar.VALUE` shares of Telegram
        Stars transferred by the transaction; from 0 to
        :tg-const:`~telegram.constants.NanostarLimit.MAX_AMOUNT`

        .. versionadded:: 21.9
    date (:obj:`datetime.datetime`): Date the transaction was created as a datetime object.
    source (:class:`telegram.TransactionPartner`, optional): Source of an incoming transaction
        (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal).
        Only for incoming transactions.
    receiver (:class:`telegram.TransactionPartner`, optional): Receiver of an outgoing
        transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for
        outgoing transactions.

Attributes:
    id (:obj:`str`): Unique identifier of the transaction. Coincides with the identifer
        of the original transaction for refund transactions.
        Coincides with :attr:`SuccessfulPayment.telegram_payment_charge_id` for
        successful incoming payments from users.
    amount (:obj:`int`): Integer amount of Telegram Stars transferred by the transaction.
    nanostar_amount (:obj:`int`): Optional. The number of
        :tg-const:`~telegram.constants.Nanostar.VALUE` shares of Telegram
        Stars transferred by the transaction; from 0 to
        :tg-const:`~telegram.constants.NanostarLimit.MAX_AMOUNT`

        .. versionadded:: 21.9
    date (:obj:`datetime.datetime`): Date the transaction was created as a datetime object.
    source (:class:`telegram.TransactionPartner`): Optional. Source of an incoming transaction
        (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal).
        Only for incoming transactions.
    receiver (:class:`telegram.TransactionPartner`): Optional. Receiver of an outgoing
        transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for
        outgoing transactions.
NÚ
api_kwargsc                ó”   <€ V ^8„  d   QhRS[ RS[RS[P                  RS[R,          RS[R,          RS[R,          RS[R,          R	R/# )
é   ÚidÚamountÚdateÚsourceNÚreceiverÚnanostar_amountr   Úreturn)ÚstrÚintÚdtmÚdatetimer   r   )ÚformatÚ__classdict__s   "€ÚZ/opt/hermes/.venv/lib/python3.14/site-packages/telegram/_payment/stars/startransactions.pyÚ__annotate__ÚStarTransaction.__annotate__[   sq   ø€ ÷ ñ áðñ ðñ �l‰lð	ñ
 # TÕ)ðñ % tÕ+ðñ ˜t�ðñ ˜t•Oðð 
ñó    c               óà   <€ \         SV `  VR 7       Wn        W n        W0n        W@n        WPn        W`n        V P                  V P
                  V P                  3V n        V P                  4        R# ©)r   N)
ÚsuperÚ__init__r   r   r   r   r   r   Ú	_id_attrsÚ_freeze)	Úselfr   r   r   r   r   r   r   Ú	__class__s	   &&&&&&&$€r    r'   ÚStarTransaction.__init__[   s_   ø€ ô 	‰Ñ JÐÔ/ØŒØ!ŒØ"&Œ	Ø17ŒØ3;ŒØ+:Ôð �G‰GØ�K‰KØ�M‰Mð
ˆŒð
 	�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   ÚdataÚbotú
Bot | Noner   r   r
   )r   r   s   "€r    r!   r"   v   s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐBSñ 3r#   c                ó(  <€ V P                  V4      p\        V4      p\        VP                  RR4      VR7      VR&   \	        VP                  R4      \
        V4      VR&   \	        VP                  R4      \
        V4      VR&   \        SV `  WR7      # )ú,See :meth:`telegram.TelegramObject.de_json`.r   N)Útzinfor   r   ©r.   r/   )Ú_parse_datar   r	   Úgetr   r   r&   Úde_json)Úclsr.   r/   Ú
loc_tzinfor+   s   &&& €r    r7   ÚStarTransaction.de_jsonu   s†   ø€ ð �‰˜tÓ$ˆô 2°#Ó6ˆ
Ü% d§h¡h¨v°tÓ&<ÀZÔPˆˆV‰ä)¨$¯(©(°8Ó*<Ô>PÐRUÓVˆˆX‰Ü+¨D¯H©H°ZÓ,@ÔBTÐVYÓZˆˆZÑä‰w‰ DˆÓ2Ð2r#   )r(   r   r   r   r   r   r   )r   r   r   r   r   r   )NNN©N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r'   Úclassmethodr7   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r+   r   s   @@r    r   r   %   sE   ù‡ € ñ1ðf R€Iñð '+÷ö ð4 ÷3ô 3ó ÷3ð 3r#   r   c                   ót   a a€ ] tR t^„t oRtR	tRR/V3R lV 3R lllt]R
V3R lV 3R lll4       tRt	Vt
V ;t# )ÚStarTransactionsa¢  
Contains a list of Telegram Star transactions.

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

.. versionadded:: 21.4

Args:
    transactions (Sequence[:class:`telegram.StarTransaction`]): The list of transactions.

Attributes:
    transactions (tuple[:class:`telegram.StarTransaction`]): The list of transactions.
r   Nc                óD   <€ V ^8„  d   QhRS[ S[,          RS[R,          /# )r   Útransactionsr   N)r   r   r   )r   r   s   "€r    r!   ÚStarTransactions.__annotate__–   s'   ø€ ÷ ñ Ù$¡_Õ5ðÙFNÐQUÅoñr#   c               óŒ   <€ \         SV `  VR 7       \        V4      V n        V P                  3V n        V P                  4        R# r%   )r&   r'   r   rK   r(   r)   )r*   rK   r   r+   s   &&$€r    r'   ÚStarTransactions.__init__–   s;   ø€ ô 	‰Ñ JÐÔ/Ü9KÈLÓ9YˆÔà×+Ñ+Ð-ˆŒØ�‰Žr#   c                ó(   <€ V ^8„  d   QhRS[ RRRR/# )r   r.   r/   r0   r   rI   r
   )r   r   s   "€r    r!   rL       s#   ø€ ÷ 3ñ 3™8ð 3¨,ð 3ÐBTñ 3r#   c                óŒ   <€ V P                  V4      p\        VP                  R4      \        V4      VR&   \        SV `  WR7      # )r2   rK   r4   )r5   r   r6   r   r&   r7   )r8   r.   r/   r+   s   &&&€r    r7   ÚStarTransactions.de_jsonŸ   sA   ø€ ð �‰˜tÓ$ˆä/°·±¸Ó0HÌ/Ð[^Ó_ˆˆ^ÑÜ‰w‰ DˆÓ2Ð2r#   )r(   rK   )rK   r;   r<   rG   s   @@r    rI   rI   „   sA   ù‡ € ñð "€IðØX\÷õ ð ÷3ô 3ó ÷3ð 3r#   rI   )rA   r   r   Úcollections.abcr   Útypingr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   r   r   Útelegram._utils.datetimer   r	   Útelegram._utils.typesr   Útransactionpartnerr   Útelegramr   r   rI   © r#   r    Ú<module>r[      sG   ðñ( Hã Ý $Ý  å 3ß bÑ bß QÝ *å 2çÝô\3�nô \3ô~!3�~ö !3r#   