o
    /iE                     @   s|   d Z ddlmZmZ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dS )a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Pricing
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )AnyDictOptional)InstanceContext)InstanceResource)ListResource)Versionc                       sn   e Zd ZdZ	ddedeeef dee f fddZ	e
dd
dZdddZdddZdefddZ  ZS )NumberInstancea  
    :ivar number: The phone number.
    :ivar country: The name of the country.
    :ivar iso_country: The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
    :ivar outbound_call_price:
    :ivar inbound_call_price:
    :ivar price_unit: The currency in which prices are measured, specified in [ISO 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g. `usd`, `eur`, `jpy`).
    :ivar url: The absolute URL of the resource.
    Nversionpayloadnumberc                    sz   t  | |d| _|d| _|d| _|d| _|d| _|d| _|d| _	d|p5| ji| _
d | _d S )Nr   countryiso_countryoutbound_call_priceinbound_call_price
price_uniturl)super__init__getr   r   r   r   r   r   r   	_solution_context)selfr
   r   r   	__class__ ^/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/pricing/v1/voice/number.pyr   #   s   

zNumberInstance.__init__returnNumberContextc                 C   s&   | j du rt| j| jd d| _ | j S )z
        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
        Nr   r   )r   r   _versionr   r   r   r   r   _proxy5   s   
zNumberInstance._proxyc                 C   s
   | j  S )Y
        Fetch the NumberInstance


        :returns: The fetched NumberInstance
        )r"   fetchr!   r   r   r   r$   D   s   
zNumberInstance.fetchc                    s   | j  I dH S )s
        Asynchronous coroutine to fetch the NumberInstance


        :returns: The fetched NumberInstance
        N)r"   fetch_asyncr!   r   r   r   r&   M   s   zNumberInstance.fetch_asyncc                 C   $   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s        | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>\       z*NumberInstance.__repr__.<locals>.<genexpr>z%<Twilio.Pricing.V1.NumberInstance {}>joinr   itemsr-   r   contextr   r   r   __repr__V      
zNumberInstance.__repr__)N)r   r   )r   r	   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr"   r$   r&   r9   __classcell__r   r   r   r   r	      s    


		r	   c                       sP   e Zd Zdedef fddZdefddZdefdd	Zdefd
dZ	  Z
S )r   r
   r   c                    s.   t  | d|i| _djdi | j| _dS )z
        Initialize the NumberContext

        :param version: Version that contains the resource
        :param number: The phone number to fetch.
        r   z/Voice/Numbers/{number}Nr   )r   r   r   r-   _uri)r   r
   r   r   r   r   r   a   s   zNumberContext.__init__r   c                 C   s(   | j jd| jd}t| j || jd dS )r#   GETmethodurir   r   )r    r$   rB   r	   r   r   r   r   r   r   r$   p   s   zNumberContext.fetchc                    s0   | j jd| jdI dH }t| j || jd dS )r%   rC   rD   Nr   r   )r    r&   rB   r	   r   rG   r   r   r   r&      s   zNumberContext.fetch_asyncc                 C   r'   )r(   r)   c                 s   r*   r+   r,   r.   r   r   r   r2      r3   z)NumberContext.__repr__.<locals>.<genexpr>z$<Twilio.Pricing.V1.NumberContext {}>r4   r7   r   r   r   r9      r:   zNumberContext.__repr__)r;   r<   r=   r   r?   r   r	   r$   r&   r9   rA   r   r   r   r   r   `   s
    r   c                       sT   e Zd Zdef fddZdedefddZdedefdd	Zdefd
dZ	  Z
S )
NumberListr
   c                    s   t  | dS )zh
        Initialize the NumberList

        :param version: Version that contains the resource

        N)r   r   )r   r
   r   r   r   r      s   zNumberList.__init__r   r   c                 C      t | j|dS z_
        Constructs a NumberContext

        :param number: The phone number to fetch.
        r   r   r    r   r   r   r   r   r         zNumberList.getc                 C   rI   rJ   rK   rL   r   r   r   __call__   rM   zNumberList.__call__c                 C   s   dS )r(   z<Twilio.Pricing.V1.NumberList>r   r!   r   r   r   r9      s   zNumberList.__repr__)r;   r<   r=   r   r   r?   r   r   rN   r9   rA   r   r   r   r   rH      s
    	rH   N)r>   typingr   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r	   r   rH   r   r   r   r   <module>   s    I@