Ë
    [üàg 9  ã                   óÌ   — d Z ddlmZmZ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 ddlmZ  G d	„ d
e«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)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ÚIteratorÚAsyncIterator)Úvalues)ÚInstanceContext)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   ór   ‡ — 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dd„Zdd	„Zdefd
„Zˆ xZS )ÚCountryInstancea  
    :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 phone_number_prices: The list of [PhoneNumberPrice](https://www.twilio.com/docs/phone-numbers/pricing#phone-number-price) records.
    :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.
    ÚversionÚpayloadÚiso_countryc                 ó<  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        d|xs | j                  i| _        d | _	        y )NÚcountryr   Úphone_number_pricesÚ
price_unitÚurl)
ÚsuperÚ__init__Úgetr   r   r   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €úi/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/pricing/v1/phone_number/country.pyr   zCountryInstance.__init__!   s�   ø€ ô 	‰Ñ˜Ô!à&-§k¡k°)Ó&<ˆŒØ*1¯+©+°mÓ*DˆÔØ8?¿¹Ø!ó9
ˆÔ ð *1¯©°\Ó)BˆŒØ")§+¡+¨eÓ"4ˆŒð ˜;Ò:¨$×*:Ñ*:ð
ˆŒð 37ˆ�ó    Úreturnc                 ó„   — | 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: CountryContext for this CountryInstance
        r   ©r   )r   ÚCountryContextÚ_versionr   ©r   s    r!   Ú_proxyzCountryInstance._proxy6   s9   € ð �=‰=Ð Ü*Ø—‘Ø ŸN™N¨=Ñ9ôˆDŒMð �}‰}Ðr"   c                 ó6   — | j                   j                  «       S )ú[
        Fetch the CountryInstance


        :returns: The fetched CountryInstance
        )r)   Úfetchr(   s    r!   r,   zCountryInstance.fetchE   s   € ð �{‰{× Ñ Ó"Ð"r"   c              ƒ   óR   K  — | j                   j                  «       ƒ d{  –—† S 7 Œ­w)úu
        Asynchronous coroutine to fetch the CountryInstance


        :returns: The fetched CountryInstance
        N)r)   Úfetch_asyncr(   s    r!   r/   zCountryInstance.fetch_asyncN   s!   è ø€ ð —[‘[×,Ñ,Ó.×.Ð.Ð.ús   ‚' %¡'c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )úf
        Provide a friendly representation

        :returns: Machine friendly representation
        ú c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­w©z{}={}N©Úformat©Ú.0ÚkÚvs      r!   ú	<genexpr>z+CountryInstance.__repr__.<locals>.<genexpr>]   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z&<Twilio.Pricing.V1.CountryInstance {}>©Újoinr   Úitemsr6   ©r   Úcontexts     r!   Ú__repr__zCountryInstance.__repr__W   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ7×>Ñ>¸wÓGÐGr"   )N)r#   r&   )r#   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r   Úpropertyr)   r,   r/   rC   Ú__classcell__©r    s   @r!   r   r      sf   ø„ ñð &*ñ	7àð7ð �c˜3�h‘ð7ð ˜c‘]õ	7ð* òó ðó#ó/ðH˜#÷ Hr"   r   c                   óL   ‡ — e Zd Zdedefˆ fd„Zdefd„Zdefd„Zdefd„Z	ˆ xZ
S )r&   r   r   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)zô
        Initialize the CountryContext

        :param version: Version that contains the resource
        :param iso_country: The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch.
        r   z%/PhoneNumbers/Countries/{iso_country}N© )r   r   r   r6   Ú_uri)r   r   r   r    s      €r!   r   zCountryContext.__init__c   sA   ø€ ô 	‰Ñ˜Ô!ð ˜;ð
ˆŒð CÐ;×BÑBÑTÀTÇ^Á^ÑTˆ�	r"   r#   c                 óÐ   — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      }t        | j                  || j                  d   ¬«      S )r+   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚheadersr   r%   )r
   Úofr'   r,   rO   r   r   ©r   rW   r   s      r!   r,   zCountryContext.fetchr   s]   € ô —)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%¨U¸¿	¹	È7Ð%ÓSˆäØ�M‰MØØŸ™ }Ñ5ô
ð 	
r"   c              ƒ   óì   K  — t        j                  i «      }d|d<   | j                  j                  d| j                  |¬«      ƒ d{  –—† }t        | j                  || j                  d   ¬«      S 7 Œ)­w)r.   rQ   rR   rS   rT   Nr   r%   )r
   rX   r'   r/   rO   r   r   rY   s      r!   r/   zCountryContext.fetch_async†   sr   è ø€ ô —)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°ð 2ó 
÷ 
ˆô Ø�M‰MØØŸ™ }Ñ5ô
ð 	
ð	
ús   ‚AA4ÁA2Á	*A4c                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r1   r2   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr4   r5   r7   s      r!   r;   z*CountryContext.__repr__.<locals>.<genexpr>¢   r<   r=   z%<Twilio.Pricing.V1.CountryContext {}>r>   rA   s     r!   rC   zCountryContext.__repr__œ   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ6×=Ñ=¸gÓFÐFr"   )rD   rE   rF   r   rH   r   r   r,   r/   rC   rJ   rK   s   @r!   r&   r&   a   s?   ø„ ðU ð U°cõ Uð
�ó 
ð(
 ?ó 
ð,G˜#÷ Gr"   r&   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚCountryPager   r#   c                 ó.   — t        | j                  |«      S )zm
        Build an instance of CountryInstance

        :param payload: Payload response from the API
        )r   r'   )r   r   s     r!   Úget_instancezCountryPage.get_instance¨   s   € ô ˜tŸ}™}¨gÓ6Ð6r"   c                  ó   — y)r1   z<Twilio.Pricing.V1.CountryPage>rN   r(   s    r!   rC   zCountryPage.__repr__°   ó   € ð 1r"   N)	rD   rE   rF   r   rH   r   r   r`   rC   rN   r"   r!   r^   r^   ¦   s)   „ ð7 D¨¨c¨¡Nð 7°ó 7ð1˜#ô 1r"   r^   c            	       ó  ‡ — e Zd Zdefˆ fd„Z	 	 ddee   dee   dee   fd„Z		 	 ddee   dee   de
e   fd„Z	 	 ddee   dee   dee   fd„Z	 	 ddee   dee   dee   fd	„Zej                   ej                   ej                   fd
eeef   deeef   deeef   defd„Zej                   ej                   ej                   fd
eeef   deeef   deeef   defd„Zdedefd„Zdede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 )ÚCountryListr   c                 ó2   •— t         ‰| �  |«       d| _        y)zi
        Initialize the CountryList

        :param version: Version that contains the resource

        z/PhoneNumbers/CountriesN)r   r   rO   )r   r   r    s     €r!   r   zCountryList.__init__»   s   ø€ ô 	‰Ñ˜Ô!à-ˆ�	r"   ÚlimitÚ	page_sizer#   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )a]  
        Streams CountryInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        rg   ©rg   rf   )r'   Úread_limitsÚpageÚstream©r   rf   rg   Úlimitsrk   s        r!   rl   zCountryList.streamÆ   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r"   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)al  
        Asynchronously streams CountryInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        rg   ri   Nrf   )r'   rj   Ú
page_asyncÚstream_asyncrm   s        r!   rq   zCountryList.stream_asyncß   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )aú  
        Lists CountryInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        ©rf   rg   )Úlistrl   )r   rf   rg   s      r!   rt   zCountryList.listø   s(   € ô& Ø�K‰KØØ#ð ó ó
ð 	
r"   c              ƒ   óz   K  — | j                  ||¬«      ƒ d{  –—† 2 �cg c3 d{  –—† }|‘Œ7 Œ7 Œ	6 c}S c c}w ­w)a	  
        Asynchronously lists CountryInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        rs   N)rq   )r   rf   rg   Úrecords       r!   Ú
list_asynczCountryList.list_async  sT   è ø€ ð* '+×&7Ñ&7ØØ#ð '8ó '÷ !÷
ô 
àò ð!øð
øò 
ð 	
ùò 
ùs0   ‚;™.š; 6¢2¦0
§2ª6®;°2²6³;Ú
page_tokenÚpage_numberc                 óê   — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  |«      S )as  
        Retrieve a single page of CountryInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of CountryInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedrQ   rR   rS   ©rU   rV   ÚparamsrW   )r
   rX   r'   rk   rO   r^   ©r   rx   ry   rg   ÚdatarW   Úresponses          r!   rk   zCountryList.page-  sy   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ˜4Ÿ=™=¨(Ó3Ð3r"   c              ƒ   ó  K  — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  |«      S 7 Œ­w)	a‚  
        Asynchronously retrieve a single page of CountryInstance records from the API.
        Request is executed immediately

        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of CountryInstance
        r{   r~   r   rQ   rR   rS   r€   N)r
   rX   r'   rp   rO   r^   r‚   s          r!   rp   zCountryList.page_asyncN  s‡   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ˜4Ÿ=™=¨(Ó3Ð3ð
ús   ‚A"BÁ$A?Á%BÚ
target_urlc                 óŽ   — | j                   j                  j                  j                  d|«      }t	        | j                   |«      S )zó
        Retrieve a specific page of CountryInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of CountryInstance
        rS   )r'   ÚdomainÚtwilioÚrequestr^   ©r   r†   r„   s      r!   Úget_pagezCountryList.get_pageo  s7   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ˜4Ÿ=™=¨(Ó3Ð3r"   c              ƒ   óª   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   |«      S 7 Œ­w)a  
        Asynchronously retrieve a specific page of CountryInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of CountryInstance
        rS   N)r'   rˆ   r‰   Úrequest_asyncr^   r‹   s      r!   Úget_page_asynczCountryList.get_page_async{  sD   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ˜4Ÿ=™=¨(Ó3Ð3ð Vús   ‚4A¶A·Ar   c                 ó0   — t        | j                  |¬«      S ©z·
        Constructs a CountryContext

        :param iso_country: The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch.
        r%   ©r&   r'   ©r   r   s     r!   r   zCountryList.get‡  ó   € ô ˜dŸm™m¸ÔEÐEr"   c                 ó0   — t        | j                  |¬«      S r‘   r’   r“   s     r!   Ú__call__zCountryList.__call__�  r”   r"   c                  ó   — y)r1   z<Twilio.Pricing.V1.CountryList>rN   r(   s    r!   rC   zCountryList.__repr__—  rb   r"   )NN)rD   rE   rF   r   r   r   Úintr   r   rl   r	   rq   r   rt   rw   r
   Úunsetr   rH   Úobjectr^   rk   rp   rŒ   r�   r&   r   r–   rC   rJ   rK   s   @r!   rd   rd   ¹   s  ø„ ð	. õ 	.ð  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
�/Ñ	"ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
�Ñ	'ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆoÑ	ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
ˆoÑ	ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	4à˜#˜v˜+Ñ&ð4ð ˜3 ˜;Ñ'ð4ð ˜˜f˜Ñ%ð	4ð
 
ó4ðF *0¯©Ø*0¯,©,Ø(.¯©ñ	4à˜#˜v˜+Ñ&ð4ð ˜3 ˜;Ñ'ð4ð ˜˜f˜Ñ%ð	4ð
 
ó4ðB
4 3ð 
4¨;ó 
4ð
4¨sð 
4°{ó 
4ðF˜sð F ~ó FðF Cð F¨Nó Fð1˜#÷ 1r"   rd   N)rG   Útypingr   r   r   r   r   r   r	   Útwilio.baser
   Útwilio.base.instance_contextr   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   r&   r^   rd   rN   r"   r!   ú<module>r¢      se   ðñ÷ M× LÑ LÝ Ý 8Ý :Ý 2Ý 'Ý !ôFHÐ&ô FHôRBG�_ô BGôJ1�$ô 1ô&d1�,õ d1r"   