o
    �¨ÊhÞ  ã                   @   s„   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
 G dd„ deƒZG d	d
„ d
e
ƒZG dd„ deƒZG dd„ deƒZdS )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
é    )Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚPagec                       s8   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Zdd	„ Z‡  ZS )
Ú
NumberListú  c                    s   t t| ƒ |¡ i | _dS )zð
        Initialize the NumberList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.pricing.v1.voice.number.NumberList
        :rtype: twilio.rest.pricing.v1.voice.number.NumberList
        N)Úsuperr   Ú__init__Ú	_solution)ÚselfÚversion©Ú	__class__© úU/var/www/html/env/lib/python3.10/site-packages/twilio/rest/pricing/v1/voice/number.pyr
      s   	
zNumberList.__init__c                 C   ó   t | j|d�S ©zÖ
        Constructs a NumberContext

        :param number: The number

        :returns: twilio.rest.pricing.v1.voice.number.NumberContext
        :rtype: twilio.rest.pricing.v1.voice.number.NumberContext
        ©Únumber©ÚNumberContextÚ_version©r   r   r   r   r   Úget!   ó   	zNumberList.getc                 C   r   r   r   r   r   r   r   Ú__call__,   r   zNumberList.__call__c                 C   ó   dS )úz
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z<Twilio.Pricing.V1.NumberList>r   ©r   r   r   r   Ú__repr__7   ó   zNumberList.__repr__)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r    Ú__classcell__r   r   r   r   r      s    r   c                       ó0   e Zd ZdZ‡ fdd„Zdd„ Zdd„ Z‡  ZS )Ú
NumberPager   c                    s   t t| ƒ ||¡ || _dS )a(  
        Initialize the NumberPage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.pricing.v1.voice.number.NumberPage
        :rtype: twilio.rest.pricing.v1.voice.number.NumberPage
        N)r	   r(   r
   r   )r   r   ÚresponseÚsolutionr   r   r   r
   D   s   

zNumberPage.__init__c                 C   s   t | j|ƒS )zú
        Build an instance of NumberInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.pricing.v1.voice.number.NumberInstance
        :rtype: twilio.rest.pricing.v1.voice.number.NumberInstance
        )ÚNumberInstancer   )r   Úpayloadr   r   r   Úget_instanceS   s   	zNumberPage.get_instancec                 C   r   )r   z<Twilio.Pricing.V1.NumberPage>r   r   r   r   r   r    ^   r!   zNumberPage.__repr__)r"   r#   r$   r%   r
   r-   r    r&   r   r   r   r   r(   A   s
    r(   c                       r'   )r   r   c                    s2   t t| ƒ |¡ d|i| _djdi | j¤Ž| _dS )a  
        Initialize the NumberContext

        :param Version version: Version that contains the resource
        :param number: The number

        :returns: twilio.rest.pricing.v1.voice.number.NumberContext
        :rtype: twilio.rest.pricing.v1.voice.number.NumberContext
        r   z/Voice/Numbers/{number}Nr   )r	   r   r
   r   ÚformatÚ_uri)r   r   r   r   r   r   r
   k   s   

zNumberContext.__init__c                 C   s4   t  i ¡}| jjd| j|d�}t| j|| jd d�S )ú•
        Fetch a NumberInstance

        :returns: Fetched NumberInstance
        :rtype: twilio.rest.pricing.v1.voice.number.NumberInstance
        ÚGET)Úparamsr   r   )r   Úofr   Úfetchr/   r+   r   )r   r2   r,   r   r   r   r4   {   s   
ýzNumberContext.fetchc                 C   ó$   d  dd„ | j ¡ D ƒ¡}d |¡S )r   ú c                 s   ó    � | ]\}}d   ||¡V  qdS ©z{}={}N©r.   ©Ú.0ÚkÚvr   r   r   Ú	<genexpr>“   ó   € z)NumberContext.__repr__.<locals>.<genexpr>z$<Twilio.Pricing.V1.NumberContext {}>©Újoinr   Úitemsr.   ©r   Úcontextr   r   r   r    Œ   ó   
zNumberContext.__repr__)r"   r#   r$   r%   r
   r4   r    r&   r   r   r   r   r   h   s
    r   c                       s’   e Zd ZdZd‡ fdd„	Zedd„ ƒZedd„ ƒZed	d
„ ƒZedd„ ƒZ	edd„ ƒZ
edd„ ƒZedd„ ƒZedd„ ƒZdd„ Zdd„ Z‡  ZS )r+   r   Nc                    s`   t t| ƒ |¡ |d |d |d |d |d |d |d dœ| _d	| _d|p+| jd i| _d	S )
z¸
        Initialize the NumberInstance

        :returns: twilio.rest.pricing.v1.voice.number.NumberInstance
        :rtype: twilio.rest.pricing.v1.voice.number.NumberInstance
        r   ÚcountryÚiso_countryÚoutbound_call_priceÚinbound_call_priceÚ
price_unitÚurl)r   rF   rG   rH   rI   rJ   rK   N)r	   r+   r
   Ú_propertiesÚ_contextr   )r   r   r,   r   r   r   r   r
   š   s   ùzNumberInstance.__init__c                 C   s&   | j du rt| j| jd d�| _ | j S )a*  
        Generate an instance context for the instance, the context is capable of
        performing various actions.  All instance actions are proxied to the context

        :returns: NumberContext for this NumberInstance
        :rtype: twilio.rest.pricing.v1.voice.number.NumberContext
        Nr   r   )rM   r   r   r   r   r   r   r   Ú_proxy²   s   
	zNumberInstance._proxyc                 C   ó
   | j d S )z>
        :returns: The number
        :rtype: unicode
        r   ©rL   r   r   r   r   r   ¿   ó   
zNumberInstance.numberc                 C   rO   )zG
        :returns: Name of the country
        :rtype: unicode
        rF   rP   r   r   r   r   rF   Ç   rQ   zNumberInstance.countryc                 C   rO   )zH
        :returns: The ISO country code
        :rtype: unicode
        rG   rP   r   r   r   r   rG   Ï   rQ   zNumberInstance.iso_countryc                 C   rO   )zP
        :returns: See OutboundCallPrice record
        :rtype: unicode
        rH   rP   r   r   r   r   rH   ×   rQ   z"NumberInstance.outbound_call_pricec                 C   rO   )z¬
        :returns: See InboundCallPrice record (returned as null if the Phone Number provided is not a Twilio number owned by this account)
        :rtype: unicode
        rI   rP   r   r   r   r   rI   ß   rQ   z!NumberInstance.inbound_call_pricec                 C   rO   )z‡
        :returns: The currency in which prices are measured, in ISO 4127 format (e.g. usd, eur, jpy).
        :rtype: unicode
        rJ   rP   r   r   r   r   rJ   ç   rQ   zNumberInstance.price_unitc                 C   rO   )z;
        :returns: The url
        :rtype: unicode
        rK   rP   r   r   r   r   rK   ï   rQ   zNumberInstance.urlc                 C   s
   | j  ¡ S )r0   )rN   r4   r   r   r   r   r4   ÷   s   
zNumberInstance.fetchc                 C   r5   )r   r6   c                 s   r7   r8   r9   r:   r   r   r   r>     r?   z*NumberInstance.__repr__.<locals>.<genexpr>z%<Twilio.Pricing.V1.NumberInstance {}>r@   rC   r   r   r   r       rE   zNumberInstance.__repr__)N)r"   r#   r$   r%   r
   ÚpropertyrN   r   rF   rG   rH   rI   rJ   rK   r4   r    r&   r   r   r   r   r+   —   s*    







	r+   N)r%   Útwilio.baser   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.pager   r   r(   r   r+   r   r   r   r   Ú<module>   s   1'/