U
    g
                     @   s<   d Z ddlmZ ddlmZ ddlmZ G dd deZdS )zGThis module contains an object that represents a Telegram LabeledPrice.    )Optional)TelegramObject)JSONDictc                       s8   e Zd ZdZdZddeeee d fddZ	  Z
S )LabeledPricea;  This object represents a portion of the price for goods or services.

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

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

    Args:
        label (:obj:`str`): Portion label.
        amount (:obj:`int`): Price of the product 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).

    Attributes:
        label (:obj:`str`): Portion label.
        amount (:obj:`int`): Price of the product 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).

    )amountlabelN
api_kwargs)r   r   r	   c                   s4   t  j|d || _|| _| j| jf| _|   d S )Nr   )super__init__r   r   Z	_id_attrsZ_freeze)selfr   r   r	   	__class__ B/tmp/pip-unpacked-wheel-swnnwir2/telegram/_payment/labeledprice.pyr   :   s
    zLabeledPrice.__init__)__name__
__module____qualname____doc__	__slots__strintr   r   r   __classcell__r   r   r   r   r      s   r   N)r   typingr   Ztelegram._telegramobjectr   Ztelegram._utils.typesr   r   r   r   r   r   <module>   s   