o
    ZzjÎ	  ã                   @   sd   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 er(ddlmZ G dd	„ d	eƒZd
S )zIThis module contains an object that represents a Telegram ShippingOption.é    )ÚSequence)ÚTYPE_CHECKING)ÚTelegramObject)Úparse_sequence_arg)ÚJSONDict)ÚLabeledPricec                
       sD   e Zd ZdZdZddœdededed d	edB f‡ fd
d„Z‡  Z	S )ÚShippingOptiona  This object represents one shipping option.

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

    Examples:
        :any:`Payment Bot <examples.paymentbot>`

    Args:
        id (:obj:`str`): Shipping option identifier.
        title (:obj:`str`): Option title.
        prices (Sequence[:class:`telegram.LabeledPrice`]): List of price portions.

            .. versionchanged:: 20.0
                |sequenceclassargs|

    Attributes:
        id (:obj:`str`): Shipping option identifier.
        title (:obj:`str`): Option title.
        prices (tuple[:class:`telegram.LabeledPrice`]): List of price portions.

            .. versionchanged:: 20.0
                |tupleclassattrs|

    )ÚidÚpricesÚtitleN©Ú
api_kwargsr	   r   r
   r   r   c                   s:   t ƒ j|d� || _|| _t|ƒ| _| jf| _|  ¡  d S )Nr   )ÚsuperÚ__init__r	   r   r   r
   Ú	_id_attrsÚ_freeze)Úselfr	   r   r
   r   ©Ú	__class__© ú[/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_payment/shippingoption.pyr   =   s   

zShippingOption.__init__)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__Ústrr   r   r   Ú__classcell__r   r   r   r   r       s    úþýüúr   N)r   Úcollections.abcr   Útypingr   Útelegram._telegramobjectr   Útelegram._utils.argumentparsingr   Útelegram._utils.typesr   Útelegramr   r   r   r   r   r   Ú<module>   s   