Ë
    [üàg@0  ã                   óº   — d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
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
e«      Z G d„ de«      Z G d„ de«      Zy)aë  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Supersim
    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.
é    )Údatetime)ÚAnyÚDictÚListÚOptionalÚUnionÚIteratorÚAsyncIterator)ÚdeserializeÚvalues)ÚInstanceResource)ÚListResource)ÚVersion)ÚPagec                   óZ   ‡ — e Zd Z G d„ de«      Z	 dedeeef   defˆ fd„Z	defd„Z
ˆ xZS )	ÚBillingPeriodInstancec                   ó   — e Zd ZdZdZy)úBillingPeriodInstance.BpTypeÚreadyÚactiveN)Ú__name__Ú
__module__Ú__qualname__ÚREADYÚACTIVE© ó    úh/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/supersim/v1/sim/billing_period.pyÚBpTyper      s   „ ØˆØ‰r   r   ÚversionÚpayloadÚsim_sidc                 ó.  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _	        |j                  d«      | _
        t        j                  |j                  d«      «      | _        t        j                  |j                  d«      «      | _        d|i| _        y )	NÚsidÚaccount_sidr"   Ú
start_timeÚend_timeÚperiod_typeÚdate_createdÚdate_updated)ÚsuperÚ__init__Úgetr$   r%   r"   r   Úiso8601_datetimer&   r'   r(   r)   r*   Ú	_solution)Úselfr    r!   r"   Ú	__class__s       €r   r,   zBillingPeriodInstance.__init__*   sê   ø€ Ü‰Ñ˜Ô!à")§+¡+¨eÓ"4ˆŒØ*1¯+©+°mÓ*DˆÔØ&-§k¡k°)Ó&<ˆŒÜ.9×.JÑ.JØ�K‰K˜Ó%ó/
ˆŒô -8×,HÑ,HØ�K‰K˜
Ó#ó-
ˆŒð FMÇ[Á[ØóF
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔô 1<×0LÑ0LØ�K‰K˜Ó'ó1
ˆÔð
 �wð
ˆ�r   Úreturnc                 ó„   — 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>z1BillingPeriodInstance.__repr__.<locals>.<genexpr>J   s   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùs   ‚!z-<Twilio.Supersim.V1.BillingPeriodInstance {}>)Újoinr/   Úitemsr7   )r0   Úcontexts     r   Ú__repr__zBillingPeriodInstance.__repr__D   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ>×EÑEÀgÓNÐNr   )r   r   r   Úobjectr   r   r   Ústrr   r,   r?   Ú__classcell__©r1   s   @r   r   r      sD   ø„ ô�ô ð	ð
 ð 
°$°s¸C°x±.ð 
È3õ 
ð4O˜#÷ Or   r   c                   ó2   — e Zd Zdeeef   defd„Zdefd„Zy)ÚBillingPeriodPager!   r2   c                 óL   — t        | j                  || j                  d   ¬«      S )zs
        Build an instance of BillingPeriodInstance

        :param payload: Payload response from the API
        r"   )r"   )r   Ú_versionr/   )r0   r!   s     r   Úget_instancezBillingPeriodPage.get_instanceP   s%   € ô %Ø�M‰M˜7¨D¯N©N¸9Ñ,Eô
ð 	
r   c                  ó   — y)r4   z&<Twilio.Supersim.V1.BillingPeriodPage>r   ©r0   s    r   r?   zBillingPeriodPage.__repr__Z   ó   € ð 8r   N)	r   r   r   r   rA   r   r   rH   r?   r   r   r   rE   rE   N   s*   „ ð
 D¨¨c¨¡Nð 
Ð7Ló 
ð8˜#ô 8r   rE   c            	       óø  ‡ — e Zd Zde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fd„Zˆ xZS )ÚBillingPeriodListr    r"   c                 óx   •— t         ‰| �  |«       d|i| _         dj                  di | j                  ¤Ž| _        y)z½
        Initialize the BillingPeriodList

        :param version: Version that contains the resource
        :param sim_sid: The SID of the Super SIM to list Billing Periods for.

        r"   z/Sims/{sim_sid}/BillingPeriodsNr   )r+   r,   r/   r7   Ú_uri)r0   r    r"   r1   s      €r   r,   zBillingPeriodList.__init__e   s@   ø€ ô 	‰Ñ˜Ô!ð �wð
ˆŒð <Ð4×;Ñ;ÑM¸d¿n¹nÑMˆ�	r   ÚlimitÚ	page_sizer2   c                 ó¢   — | j                   j                  ||«      }| j                  |d   ¬«      }| j                   j                  ||d   «      S )ac  
        Streams BillingPeriodInstance 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
        rQ   ©rQ   rP   )rG   Úread_limitsÚpageÚstream©r0   rP   rQ   ÚlimitsrU   s        r   rV   zBillingPeriodList.streamu   sJ   € ð( —‘×*Ñ*¨5°)Ó<ˆØ�y‰y 6¨+Ñ#6ˆyÓ7ˆà�}‰}×#Ñ# D¨&°©/Ó:Ð:r   c              ƒ   ó¾   K  — | j                   j                  ||«      }| j                  |d   ¬«      ƒ d{  –—† }| j                   j                  ||d   «      S 7 Œ#­w)ar  
        Asynchronously streams BillingPeriodInstance 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
        rQ   rS   NrP   )rG   rT   Ú
page_asyncÚstream_asyncrW   s        r   r[   zBillingPeriodList.stream_asyncŽ   sW   è ø€ ð( —‘×*Ñ*¨5°)Ó<ˆØ—_‘_¨v°kÑ/B�_ÓC×Cˆà�}‰}×)Ñ)¨$°°w±Ó@Ð@ð Dús   ‚5A·A¸$Ac                 ó:   — t        | j                  ||¬«      «      S )a   
        Lists BillingPeriodInstance 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
        ©rP   rQ   )ÚlistrV   )r0   rP   rQ   s      r   r^   zBillingPeriodList.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 BillingPeriodInstance 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
        r]   N)r[   )r0   rP   rQ   Úrecords       r   Ú
list_asynczBillingPeriodList.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                  || j                  «      S )a  
        Retrieve a single page of BillingPeriodInstance 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 BillingPeriodInstance
        ©Ú	PageTokenr   ÚPageSizeúContent-Typeú!application/x-www-form-urlencodedúapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheaders)r   ÚofrG   rU   rO   rE   r/   ©r0   rb   rc   rQ   Údatarq   Úresponses          r   rU   zBillingPeriodList.pageÜ   s   € ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�Ñà—=‘=×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô ! §¡°¸$¿.¹.ÓIÐIr   c              ƒ   ó  K  — t        j                  |||dœ«      }t        j                  ddi«      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d{  –—† }t        | j                  || j                  «      S 7 Œ%­w)	aŽ  
        Asynchronously retrieve a single page of BillingPeriodInstance 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 BillingPeriodInstance
        re   rh   ri   rj   rk   rl   rm   N)r   rr   rG   rZ   rO   rE   r/   rs   s          r   rZ   zBillingPeriodList.page_asyncý   s�   è ø€ ô  �y‰yà'Ø#Ø%ñó
ˆô —)‘)˜^Ð-PÐQÓRˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô ! §¡°¸$¿.¹.ÓIÐIð
ús   ‚A"BÁ$B
Á%&BÚ
target_urlc                 ó¤   — | j                   j                  j                  j                  d|«      }t	        | j                   || j
                  «      S )zÿ
        Retrieve a specific page of BillingPeriodInstance records from the API.
        Request is executed immediately

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

        :returns: Page of BillingPeriodInstance
        rl   )rG   ÚdomainÚtwilioÚrequestrE   r/   ©r0   rw   ru   s      r   Úget_pagezBillingPeriodList.get_page  s=   € ð —=‘=×'Ñ'×.Ñ.×6Ñ6°u¸jÓIˆÜ  §¡°¸$¿.¹.ÓIÐIr   c              ƒ   óÀ   K  — | j                   j                  j                  j                  d|«      ƒ d{  –—† }t	        | j                   || j
                  «      S 7 Œ%­w)a  
        Asynchronously retrieve a specific page of BillingPeriodInstance records from the API.
        Request is executed immediately

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

        :returns: Page of BillingPeriodInstance
        rl   N)rG   ry   rz   Úrequest_asyncrE   r/   r|   s      r   Úget_page_asyncz BillingPeriodList.get_page_async*  sJ   è ø€ ð Ÿ™×-Ñ-×4Ñ4×BÑBÀ5È*ÓU×UˆÜ  §¡°¸$¿.¹.ÓIÐIð Vús   ‚4A¶A·&Ac                  ó   — y)r4   z&<Twilio.Supersim.V1.BillingPeriodList>r   rJ   s    r   r?   zBillingPeriodList.__repr__6  rK   r   )NN)r   r   r   r   rA   r,   r   Úintr	   r   rV   r
   r[   r   r^   ra   r   Úunsetr   r@   rE   rU   rZ   r}   r€   r?   rB   rC   s   @r   rM   rM   c   sù  ø„ ðN ð N°#õ Nð$  $Ø#'ñ;à˜‰}ð;ð ˜C‘=ð;ð 
Ð'Ñ	(ó	;ð6  $Ø#'ñAà˜‰}ðAð ˜C‘=ðAð 
Ð,Ñ	-ó	Að6  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð#Ñ	$ó	
ð8  $Ø#'ñ
à˜‰}ð
ð ˜C‘=ð
ð 
Ð#Ñ	$ó	
ð: *0¯©Ø*0¯,©,Ø(.¯©ñ	Jà˜#˜v˜+Ñ&ðJð ˜3 ˜;Ñ'ðJð ˜˜f˜Ñ%ð	Jð
 
óJðF *0¯©Ø*0¯,©,Ø(.¯©ñ	Jà˜#˜v˜+Ñ&ðJð ˜3 ˜;Ñ'ðJð ˜˜f˜Ñ%ð	Jð
 
óJðB
J 3ð 
JÐ+<ó 
Jð
J¨sð 
JÐ7Hó 
Jð8˜#÷ 8r   rM   N)Ú__doc__r   Útypingr   r   r   r   r   r	   r
   Útwilio.baser   r   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   Útwilio.base.pager   r   rE   rM   r   r   r   ú<module>r‹      sQ   ðñõ ß L× LÑ Lß +å :Ý 2Ý 'Ý !ô2OÐ,ô 2Oôj8˜ô 8ô*Y8˜õ Y8r   