
    !+h#                         d Z ddlmZmZ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 ddlmZ  G d d	e          Z G d
 de
          Z G 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ListOptionalUnion)values)InstanceContext)InstanceResource)ListResource)Versionc                        e Zd ZdZ	 ddedeeef         dee         f fdZ	e
dd	            Zej        fd
eeef         dd fdZej        fd
eeef         dd fdZdefdZ xZS )NumberInstanceaQ  
    :ivar destination_number: The destination phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
    :ivar origination_number: The origination phone number in [[E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
    :ivar country: The name of the country.
    :ivar iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
    :ivar terminating_prefix_prices:
    :ivar originating_call_price:
    :ivar price_unit: The currency in which prices are measured, specified in [ISO 4127](https://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destination_numberc                    t                                          |           |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _        |                    d          | _	        |                    d          | _
        d|p| j        i| _        d | _        d S )	Nr   origination_numbercountryiso_countryterminating_prefix_pricesoriginating_call_price
price_uniturl)super__init__getr   r   r   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       a/var/www/html/e360mart/e360mart_env/lib/python3.11/site-packages/twilio/rest/pricing/v2/number.pyr   zNumberInstance.__init__#   s     	!!!18=Q1R1R18=Q1R1R&-kk)&<&<*1++m*D*D>Ekk'?
 ?
& 6=[[$6
 6
# *1\)B)B")++e"4"4 !"4"O8O
 26    returnNumberContextc                 j    | j         &t          | j        | j        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   s    r!   _proxyzNumberInstance._proxy=   s<     = )#'>2F#G  DM }r"   r   c                 8    | j                             |          S )m  
        Fetch the NumberInstance

        :param origination_number: The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.

        :returns: The fetched NumberInstance
        r   )r)   fetchr   r   s     r!   r-   zNumberInstance.fetchL   s&     {  1 ! 
 
 	
r"   c                 H   K   | j                             |           d{V S )  
        Asynchronous coroutine to fetch the NumberInstance

        :param origination_number: The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.

        :returns: The fetched NumberInstance
        r,   N)r)   fetch_asyncr.   s     r!   r1   zNumberInstance.fetch_asyncZ   sH       [,,1 - 
 
 
 
 
 
 
 
 	
r"   c                     d                     d | j                                        D                       }d                    |          S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   H   K   | ]\  }}d                      ||          V  dS z{}={}Nformat.0kvs      r!   	<genexpr>z*NumberInstance.__repr__.<locals>.<genexpr>n   4      SSDAq7>>!Q//SSSSSSr"   z%<Twilio.Pricing.V2.NumberInstance {}>joinr   itemsr8   r   contexts     r!   __repr__zNumberInstance.__repr__h   sF     ((SSDN<P<P<R<RSSSSS6==gFFFr"   )N)r#   r$   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr)   r   unsetr   objectr-   r1   rD   __classcell__r    s   @r!   r   r      s/       	 	 -1	6 66 c3h6 %SM	6 6 6 6 6 64    X 8>|
 
"'V"4
	
 
 
 
 8>|
 
"'V"4
	
 
 
 
G# G G G G G G G Gr"   r   c                        e Zd Zdedef fdZej        fdeee	f         de
fdZej        fdeee	f         de
fdZdefdZ xZS )	r$   r   r   c                     t                                          |           d|i| _         dj        di | j        | _        dS )a~  
        Initialize the NumberContext

        :param version: Version that contains the resource
        :param destination_number: The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.
        r   z&/Trunking/Numbers/{destination_number}N )r   r   r   r8   _uri)r   r   r   r    s      r!   r   zNumberContext.__init__t   sR     	!!! !"4
 D<CUUdnUU			r"   r   r#   c                     t          j        d|i          }| j                            d| j        |          }t          | j        || j        d                   S )r+   OriginationNumberGETmethoduriparamsr   r&   )r   ofr'   r-   rR   r   r   r   r   datar   s       r!   r-   zNumberContext.fetch   sj     y#%7
 
 -%%U	$%OOM#~.BC
 
 
 	
r"   c                    K   t          j        d|i          }| j                            d| j        |           d{V }t          | j        || j        d                   S )r0   rT   rU   rV   Nr   r&   )r   rZ   r'   r1   rR   r   r   r[   s       r!   r1   zNumberContext.fetch_async   s       y#%7
 
 11di 2 
 
 
 
 
 
 
 
 M#~.BC
 
 
 	
r"   c                     d                     d | j                                        D                       }d                    |          S )r3   r4   c              3   H   K   | ]\  }}d                      ||          V  dS r6   r7   r9   s      r!   r=   z)NumberContext.__repr__.<locals>.<genexpr>   r>   r"   z$<Twilio.Pricing.V2.NumberContext {}>r?   rB   s     r!   rD   zNumberContext.__repr__   sF     ((SSDN<P<P<R<RSSSSS5<<WEEEr"   )rE   rF   rG   r   rI   r   r   rK   r   rL   r   r-   r1   rD   rM   rN   s   @r!   r$   r$   r   s        V VS V V V V V V  8>|
 
"'V"4
	
 
 
 
4 8>|
 
"'V"4
	
 
 
 
6F# F F F F F F F Fr"   r$   c                   P     e Zd Zdef fdZdedefdZdedefdZdefdZ	 xZ
S )
NumberListr   c                 J    t                                          |           dS )zh
        Initialize the NumberList

        :param version: Version that contains the resource

        N)r   r   )r   r   r    s     r!   r   zNumberList.__init__   s#     	!!!!!r"   r   r#   c                 .    t          | j        |          S aA  
        Constructs a NumberContext

        :param destination_number: The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number.
        r&   r$   r'   r   r   s     r!   r   zNumberList.get        T]?QRRRRr"   c                 .    t          | j        |          S rd   re   rf   s     r!   __call__zNumberList.__call__   rg   r"   c                     dS )r3   z<Twilio.Pricing.V2.NumberList>rQ   r(   s    r!   rD   zNumberList.__repr__   s
     0/r"   )rE   rF   rG   r   r   rI   r$   r   ri   rD   rM   rN   s   @r!   ra   ra      s        " " " " " " "Sc Sm S S S SS3 S= S S S S0# 0 0 0 0 0 0 0 0r"   ra   N)rH   typingr   r   r   r   r   twilio.baser   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r$   ra   rQ   r"   r!   <module>rq      s@    4 3 3 3 3 3 3 3 3 3 3 3 3 3       8 8 8 8 8 8 : : : : : : 2 2 2 2 2 2 ' ' ' ' ' 'XG XG XG XG XG% XG XG XGvLF LF LF LF LFO LF LF LF^!0 !0 !0 !0 !0 !0 !0 !0 !0 !0r"   