
    g*$                         S r SSKJrJrJrJrJr  SSKJr  SSK	J
r
  SSKJr  SSKJr  SSKJr   " S S	\5      r " S
 S\
5      r " S S\5      rg)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                      ^  \ rS rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       r\R                  4S	\\\4   SS 4S
 jjr\R                  4S	\\\4   SS 4S jjrS\4S jrSrU =r$ )NumberInstance   a  
: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 outbound_call_prices: The list of [OutboundCallPriceWithOrigin](https://www.twilio.com/docs/voice/pricing#outbound-call-price-with-origin) records.
:ivar inbound_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.
versionpayloaddestination_numberc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        SU=(       d    U R                  0U l        S U l        g )	Nr   origination_numbercountryiso_countryoutbound_call_pricesinbound_call_price
price_uniturl)super__init__getr   r   r   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/pricing/v2/voice/number.pyr   NumberInstance.__init__#   s     	!18=Q1R18=Q1R&-kk)&<*1++m*D9@":
! 29=Q1R)0\)B")++e"4 !"4"O8O8O
 26    returnc                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )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
r   r   )r   NumberContext_versionr   r    s    r"   _proxyNumberInstance._proxy;   s:     == )#'>>2F#GDM }}r$   r   c                 4    U R                   R                  US9$ )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"   r0   NumberInstance.fetchJ   s#     {{  1 ! 
 	
r$   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)g  
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_asyncr1   s     r"   r5   NumberInstance.fetch_asyncX   s0      [[,,1 - 
 
 	
 
s   &$&c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r"   	<genexpr>*NumberInstance.__repr__.<locals>.<genexpr>l         S<RDA7>>!//<R    "z%<Twilio.Pricing.V2.NumberInstance {}>joinr   itemsr=   r    contexts     r"   __repr__NumberInstance.__repr__f   s6     ((SDNN<P<P<RSS6==gFFr$   )
r   r   r   r   r   r   r   r   r   r   )N)r%   r(   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr+   r   unsetr   objectr0   r5   rK   __static_attributes____classcell__r!   s   @r"   r   r      s    	 -1	66 c3h6 %SM	6 60   8>||
"'V"4
	
 8>||
"'V"4
	
G# G Gr$   r   c                      ^  \ rS rSrS\S\4U 4S jjr\R                  4S\	\\
4   S\4S jjr\R                  4S\	\\
4   S\4S jjrS\4S	 jrS
rU =r$ )r(   p   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)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#/Voice/Numbers/{destination_number}N )r   r   r   r=   _uri)r    r   r   r!   s      r"   r   NumberContext.__init__r   s>     	! !"4
 :@@R4>>R	r$   r   r%   c                     [         R                  " SU05      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  X#S9n[        U R                  UU R                  S   S9$ )r.   OriginationNumberapplication/jsonAcceptGETmethoduriparamsheadersr   r'   )r   ofr)   r0   r]   r   r   r    r   datarh   r   s        r"   r0   NumberContext.fetch   s     yy#%7
 ))B-.--%%dii & 
 MM#~~.BC
 	
r$   c                   #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)	r4   r`   ra   rb   rc   rd   Nr   r'   )r   ri   r)   r5   r]   r   r   rj   s        r"   r5   NumberContext.fetch_async   s      yy#%7
 ))B-.11dii 2 
 
 MM#~~.BC
 	
	
s   ABB'Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r8   r9   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr;   r<   r>   s      r"   rB   )NumberContext.__repr__.<locals>.<genexpr>   rD   rE   z$<Twilio.Pricing.V2.NumberContext {}>rF   rI   s     r"   rK   NumberContext.__repr__   s6     ((SDNN<P<P<RSS5<<WEEr$   )r   r]   )rM   rN   rO   rP   r   rR   r   r   rT   r   rU   r   r0   r5   rK   rV   rW   rX   s   @r"   r(   r(   p   s|    S SS S  8>||
"'V"4
	
@ 8>||
"'V"4
	
>F# F Fr$   r(   c                   b   ^  \ rS rSrS\4U 4S jjrS\S\4S jrS\S\4S jr	S\4S jr
S	rU =r$ )

NumberList   r   c                 $   > [         TU ]  U5        g)zP
Initialize the NumberList

:param version: Version that contains the resource

N)r   r   )r    r   r!   s     r"   r   NumberList.__init__   s     	!r$   r   r%   c                 *    [        U R                  US9$ a)  
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   NumberList.get        T]]?QRRr$   c                 *    [        U R                  US9$ ry   rz   r{   s     r"   __call__NumberList.__call__   r}   r$   c                     g)r8   z<Twilio.Pricing.V2.NumberList>r\   r*   s    r"   rK   NumberList.__repr__   s     0r$   r\   )rM   rN   rO   rP   r   r   rR   r(   r   r   rK   rV   rW   rX   s   @r"   rt   rt      sL    " "Sc Sm SS3 S= S0# 0 0r$   rt   N)rQ   typingr   r   r   r   r   twilio.baser   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r(   rt   r\   r$   r"   <module>r      sP    4 3  8 : 2 'VG% VGrVFO VFr!0 !0r$   