Ë
    [üàg[:  ã                   óÌ   — 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](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2).
    :ivar terminating_prefix_prices: The list of [TerminatingPrefixPrice](https://www.twilio.com/docs/voice/pricing#outbound-prefix-price-with-origin) records.
    :ivar originating_call_prices: The list of [OriginatingCallPrice](https://www.twilio.com/docs/voice/pricing#inbound-call-price) records.
    :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Úiso_countryc                 óh  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        d|xs | j                  i| _	        d | _
        y )NÚcountryr   Úterminating_prefix_pricesÚoriginating_call_pricesÚ
price_unitÚurl)ÚsuperÚ__init__Úgetr   r   r   r   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €ú\/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/pricing/v2/country.pyr   zCountryInstance.__init__"   s¤   ø€ ô 	‰Ñ˜Ô!à&-§k¡k°)Ó&<ˆŒØ*1¯+©+°mÓ*DˆÔØ>E¿k¹kØ'ó?
ˆÔ&ð =D¿K¹KØ%ó=
ˆÔ$ð *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._proxy:   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.fetchI   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"   r0   zCountryInstance.fetch_asyncR   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>a   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z&<Twilio.Pricing.V2.CountryInstance {}>©Újoinr   Úitemsr7   ©r    Úcontexts     r"   Ú__repr__zCountryInstance.__repr__[   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-   r0   rD   Ú__classcell__©r!   s   @r"   r   r      sf   ø„ ñð &*ñ	7àð7ð �c˜3�h‘ð7ð ˜c‘]õ	7ð0 òó ðó#ó/ð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)a  
        Initialize the CountryContext

        :param version: Version that contains the resource
        :param iso_country: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch.
        r   z!/Trunking/Countries/{iso_country}N© )r   r   r   r7   Ú_uri)r    r   r   r!   s      €r"   r   zCountryContext.__init__g   s@   ø€ ô 	‰Ñ˜Ô!ð ˜;ð
ˆŒð ?Ð7×>Ñ>ÑPÀÇÁÑPˆ�	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-   rP   r   r   ©r    rX   r   s      r"   r-   zCountryContext.fetchv   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/   rR   rS   rT   rU   Nr   r&   )r
   rY   r(   r0   rP   r   r   rZ   s      r"   r0   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 )r2   r3   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr5   r6   r8   s      r"   r<   z*CountryContext.__repr__.<locals>.<genexpr>¦   r=   r>   z%<Twilio.Pricing.V2.CountryContext {}>r?   rB   s     r"   rD   zCountryContext.__repr__    s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ6×=Ñ=¸gÓFÐFr#   )rE   rF   rG   r   rI   r   r   r-   r0   rD   rK   rL   s   @r"   r'   r'   e   s?   ø„ ðQ ð Q°cõ Qð
�ó 
ð(
 ?ó 
ð,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)r2   z<Twilio.Pricing.V2.CountryPage>rO   r)   s    r"   rD   zCountryPage.__repr__´   ó   € ð 1r#   N)	rE   rF   rG   r   rI   r   r   ra   rD   rO   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/Trunking/CountriesN)r   r   rP   )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
        rh   ©rh   rg   )r(   Úread_limitsÚpageÚstream©r    rg   rh   Úlimitsrl   s        r"   rm   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
        rh   rj   Nrg   )r(   rk   Ú
page_asyncÚstream_asyncrn   s        r"   rr   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
        ©rg   rh   )Úlistrm   )r    rg   rh   s      r"   ru   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
        rt   N)rr   )r    rg   rh   Ú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-urlencodedrR   rS   rT   ©rV   rW   ÚparamsrX   )r
   rY   r(   rl   rP   r_   ©r    ry   rz   rh   ÚdatarX   Úresponses          r"   rl   zCountryList.page1  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€   rR   rS   rT   r�   N)r
   rY   r(   rq   rP   r_   rƒ   s          r"   rq   zCountryList.page_asyncR  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
        rT   )r(   ÚdomainÚtwilioÚrequestr_   ©r    r‡   r…   s      r"   Úget_pagezCountryList.get_pages  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
        rT   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](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice 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)r2   z<Twilio.Pricing.V2.CountryList>rO   r)   s    r"   rD   zCountryList.__repr__›  rc   r#   )NN)rE   rF   rG   r   r   r   Úintr   r   rm   r	   rr   r   ru   rx   r
   Úunsetr   rI   Úobjectr_   rl   rq   r�   r�   r'   r   r—   rD   rK   rL   s   @r"   re   re   ½   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#   re   N)rH   Ú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_   re   rO   r#   r"   ú<module>r£      se   ðñ÷ M× LÑ LÝ Ý 8Ý :Ý 2Ý 'Ý !ôJHÐ&ô JHôZBG�_ô BGôJ1�$ô 1ô&d1�,õ d1r#   