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 )zJThis module contains an object that represents a Telegram ShippingAddress.    )Optional)TelegramObject)JSONDictc                	       s@   e Zd ZdZdZddeeeeeeee d fddZ  Z	S )ShippingAddressa  This object represents a Telegram ShippingAddress.

    Objects of this class are comparable in terms of equality. Two objects of this class are
    considered equal, if their  :attr:`country_code`, :attr:`state`, :attr:`city`,
    :attr:`street_line1`, :attr:`street_line2` and :attr:`post_code` are equal.

    Args:
        country_code (:obj:`str`): ISO 3166-1 alpha-2 country code.
        state (:obj:`str`): State, if applicable.
        city (:obj:`str`): City.
        street_line1 (:obj:`str`): First line for the address.
        street_line2 (:obj:`str`): Second line for the address.
        post_code (:obj:`str`): Address post code.

    Attributes:
        country_code (:obj:`str`): ISO 3166-1 alpha-2 country code.
        state (:obj:`str`): State, if applicable.
        city (:obj:`str`): City.
        street_line1 (:obj:`str`): First line for the address.
        street_line2 (:obj:`str`): Second line for the address.
        post_code (:obj:`str`): Address post code.

    )citycountry_code	post_codestatestreet_line1street_line2N
api_kwargs)r   r	   r   r
   r   r   r   c                   s\   t  j|d || _|| _|| _|| _|| _|| _| j| j| j| j| j| jf| _| 	  d S )Nr   )
super__init__r   r	   r   r
   r   r   Z	_id_attrsZ_freeze)selfr   r	   r   r
   r   r   r   	__class__ E/tmp/pip-unpacked-wheel-swnnwir2/telegram/_payment/shippingaddress.pyr   =   s    	zShippingAddress.__init__)
__name__
__module____qualname____doc__	__slots__strr   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   