Ë
    [üàgž4  ã                   ó¦   — d Z ddl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 - Lookups
    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)Ú	serializeÚ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                  ej                  ej                  ej                  fdeeef   d	eee   ef   d
eee   ef   deeeef   ef   dd f
d„Zej                  ej                  ej                  ej                  fdeeef   d	eee   ef   d
eee   ef   deeeef   ef   dd f
d„Zdefd„Zˆ xZS )ÚPhoneNumberInstancea  
    :ivar caller_name: The name of the phone number's owner. If `null`, that information was not available.
    :ivar country_code: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) for the phone number.
    :ivar phone_number: The 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 national_format: The phone number, in national format.
    :ivar carrier: The telecom company that provides the phone number.
    :ivar add_ons: A JSON string with the results of the Add-ons you specified in the `add_ons` parameters. For the format of the object, see [Using Add-ons](https://www.twilio.com/docs/add-ons).
    :ivar url: The absolute URL of the resource.
    ÚversionÚpayloadÚphone_numberc                 ó”  •— t         ‰| �  |«       |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _        |j                  d«      | _	        d|xs | j
                  i| _
        d | _        y )NÚcaller_nameÚcountry_coder   Únational_formatÚcarrierÚadd_onsÚurl)ÚsuperÚ__init__Úgetr   r   r   r   r   r   r   Ú	_solutionÚ_context)Úselfr   r   r   Ú	__class__s       €úa/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/twilio/rest/lookups/v1/phone_number.pyr   zPhoneNumberInstance.__init__"   s«   ø€ ô 	‰Ñ˜Ô!à8?¿¹ÀMÓ8RˆÔØ+2¯;©;°~Ó+FˆÔØ+2¯;©;°~Ó+FˆÔØ.5¯k©kÐ:KÓ.LˆÔØ4;·K±KÀ	Ó4JˆŒØ4;·K±KÀ	Ó4JˆŒØ")§+¡+¨eÓ"4ˆŒð ˜LÒ=¨D×,=Ñ,=ð
ˆŒð 7;ˆ�ó    Ú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: PhoneNumberContext for this PhoneNumberInstance
        r   ©r   )r   ÚPhoneNumberContextÚ_versionr   ©r   s    r!   Ú_proxyzPhoneNumberInstance._proxy7   s9   € ð �=‰=Ð Ü.Ø—‘Ø!Ÿ^™^¨NÑ;ôˆDŒMð �}‰}Ðr"   r   Útyper   Úadd_ons_datac                 ó@   — | j                   j                  ||||¬«      S )áÆ  
        Fetch the PhoneNumberInstance

        :param country_code: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format.
        :param type: The type of information to return. Can be: `carrier` or `caller-name`. The default is null.  Carrier information costs $0.005 per phone number looked up.  Caller Name information is currently available only in the US and costs $0.01 per phone number looked up.  To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value.
        :param add_ons: The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about  Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons).
        :param add_ons_data: Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on.

        :returns: The fetched PhoneNumberInstance
        ©r   r*   r   r+   )r)   Úfetch©r   r   r*   r   r+   s        r!   r/   zPhoneNumberInstance.fetchF   s,   € ð" �{‰{× Ñ Ø%ØØØ%ð	 !ó 
ð 	
r"   c              ƒ   ó\   K  — | j                   j                  ||||¬«      ƒ d{  –—† S 7 Œ­w)áà  
        Asynchronous coroutine to fetch the PhoneNumberInstance

        :param country_code: The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format.
        :param type: The type of information to return. Can be: `carrier` or `caller-name`. The default is null.  Carrier information costs $0.005 per phone number looked up.  Caller Name information is currently available only in the US and costs $0.01 per phone number looked up.  To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value.
        :param add_ons: The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about  Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons).
        :param add_ons_data: Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on.

        :returns: The fetched PhoneNumberInstance
        r.   N)r)   Úfetch_asyncr0   s        r!   r3   zPhoneNumberInstance.fetch_async^   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/PhoneNumberInstance.__repr__.<locals>.<genexpr>|   ó   è ø€ ÒS±D°A°q˜7Ÿ>™>¨!¨Q×/ÑSùó   ‚!z*<Twilio.Lookups.V1.PhoneNumberInstance {}>©Újoinr   Úitemsr:   ©r   Úcontexts     r!   Ú__repr__zPhoneNumberInstance.__repr__v   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ;×BÑBÀ7ÓKÐKr"   ©N)r#   r&   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   Ústrr   r   r   Úpropertyr)   r	   Úunsetr   Úobjectr   r/   r3   rG   Ú__classcell__©r    s   @r!   r   r      sr  ø„ ñð '+ñ	;àð;ð �c˜3�h‘ð;ð ˜s‘mõ	;ð* òó ðð  ,2¯<©<Ø)/¯©Ø,2¯L©LØ9?¿¹ñ
à˜C ˜KÑ(ð
ð �D˜‘I˜vÐ%Ñ&ð
ð �t˜C‘y &Ð(Ñ)ð	
ð
 ˜D  f Ñ-¨vÐ5Ñ6ð
ð 
ó
ð4 ,2¯<©<Ø)/¯©Ø,2¯L©LØ9?¿¹ñ
à˜C ˜KÑ(ð
ð �D˜‘I˜vÐ%Ñ&ð
ð �t˜C‘y &Ð(Ñ)ð	
ð
 ˜D  f Ñ-¨vÐ5Ñ6ð
ð 
ó
ð0L˜#÷ Lr"   r   c                   óœ  ‡ — e Zd Zdedefˆ fd„Zej                  ej                  ej                  ej                  fdeee	f   dee
e   e	f   dee
e   e	f   deeee	f   e	f   def
d	„Zej                  ej                  ej                  ej                  fdeee	f   dee
e   e	f   dee
e   e	f   deeee	f   e	f   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)a4  
        Initialize the PhoneNumberContext

        :param version: Version that contains the resource
        :param phone_number: The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
        r   z/PhoneNumbers/{phone_number}N© )r   r   r   r:   Ú_uri)r   r   r   r    s      €r!   r   zPhoneNumberContext.__init__‚   s@   ø€ ô 	‰Ñ˜Ô!ð ˜Lð
ˆŒð :Ð2×9Ñ9ÑK¸D¿N¹NÑKˆ�	r"   r   r*   r   r+   r#   c                 ó¢  — t        j                  |t        j                  |d„ «      t        j                  |d„ «      dœ«      }|j	                  t        j
                  |d«      «       t        j                  i «      }d|d<   | j                  j                  d| j                  ||¬«      }t        | j                  || j                  d	   ¬
«      S )r-   c                 ó   — | S rH   rU   ©Úes    r!   ú<lambda>z*PhoneNumberContext.fetch.<locals>.<lambda>¦   ó   € °a€ r"   c                 ó   — | S rH   rU   rY   s    r!   r[   z*PhoneNumberContext.fetch.<locals>.<lambda>§   ó   € ¸1€ r"   ©ÚCountryCodeÚTypeÚAddOnsrb   úapplication/jsonÚAcceptÚGET©ÚmethodÚuriÚparamsÚheadersr   r%   )r	   Úofr   ÚmapÚupdateÚprefixed_collapsible_mapr'   r/   rV   r   r   ©r   r   r*   r   r+   Údatarj   r   s           r!   r/   zPhoneNumberContext.fetch‘   s³   € ô$ �y‰yà+Ü!Ÿ™ d©KÓ8Ü#Ÿ-™-¨±Ó=ñó
ˆð 	�‰”I×6Ñ6°|ÀXÓNÔOä—)‘)˜B“-ˆà.ˆ�Ñà—-‘-×%Ñ%Ø˜dŸi™i°¸gð &ó 
ˆô #Ø�M‰MØØŸ™¨Ñ7ô
ð 	
r"   c              ƒ   ó¾  K  — t        j                  |t        j                  |d„ «      t        j                  |d„ «      dœ«      }|j	                  t        j
                  |d«      «       t        j                  i «      }d|d<   | j                  j                  d| j                  ||¬«      ƒ d	{  –—† }t        | j                  || j                  d
   ¬«      S 7 Œ)­w)r2   c                 ó   — | S rH   rU   rY   s    r!   r[   z0PhoneNumberContext.fetch_async.<locals>.<lambda>Ð   r\   r"   c                 ó   — | S rH   rU   rY   s    r!   r[   z0PhoneNumberContext.fetch_async.<locals>.<lambda>Ñ   r^   r"   r_   rb   rc   rd   re   rf   Nr   r%   )r	   rk   r   rl   rm   rn   r'   r3   rV   r   r   ro   s           r!   r3   zPhoneNumberContext.fetch_async»   sÁ   è ø€ ô$ �y‰yà+Ü!Ÿ™ d©KÓ8Ü#Ÿ-™-¨±Ó=ñó
ˆð 	�‰”I×6Ñ6°|ÀXÓNÔOä—)‘)˜B“-ˆà.ˆ�ÑàŸ™×1Ñ1Ø˜dŸi™i°¸gð 2ó 
÷ 
ˆô #Ø�M‰MØØŸ™¨Ñ7ô
ð 	
ð	
ús   ‚B/CÂ1CÂ2*Cc                 ó„   — dj                  d„ | j                  j                  «       D «       «      }dj                  |«      S )r5   r6   c              3   óF   K  — | ]  \  }}d j                  ||«      –— Œ y­wr8   r9   r;   s      r!   r?   z.PhoneNumberContext.__repr__.<locals>.<genexpr>ë   r@   rA   z)<Twilio.Lookups.V1.PhoneNumberContext {}>rB   rE   s     r!   rG   zPhoneNumberContext.__repr__å   s6   € ð —(‘(ÑS¸D¿N¹N×<PÑ<PÓ<RÔSÓSˆØ:×AÑAÀ'ÓJÐJr"   )rI   rJ   rK   r   rM   r   r	   rO   r   rP   r   r   r   r/   r3   rG   rQ   rR   s   @r!   r&   r&   €   s?  ø„ ðL ð L°sõ Lð" ,2¯<©<Ø)/¯©Ø,2¯L©LØ9?¿¹ñ(
à˜C ˜KÑ(ð(
ð �D˜‘I˜vÐ%Ñ&ð(
ð �t˜C‘y &Ð(Ñ)ð	(
ð
 ˜D  f Ñ-¨vÐ5Ñ6ð(
ð 
ó(
ðX ,2¯<©<Ø)/¯©Ø,2¯L©LØ9?¿¹ñ(
à˜C ˜KÑ(ð(
ð �D˜‘I˜vÐ%Ñ&ð(
ð �t˜C‘y &Ð(Ñ)ð	(
ð
 ˜D  f Ñ-¨vÐ5Ñ6ð(
ð 
ó(
ðTK˜#÷ K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 )ÚPhoneNumberListr   c                 ó$   •— t         ‰| �  |«       y)zm
        Initialize the PhoneNumberList

        :param version: Version that contains the resource

        N)r   r   )r   r   r    s     €r!   r   zPhoneNumberList.__init__ñ   s   ø€ ô 	‰Ñ˜Õ!r"   r   r#   c                 ó0   — t        | j                  |¬«      S ©z÷
        Constructs a PhoneNumberContext

        :param phone_number: The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
        r%   ©r&   r'   ©r   r   s     r!   r   zPhoneNumberList.getú   ó   € ô " $§-¡-¸lÔKÐKr"   c                 ó0   — t        | j                  |¬«      S rz   r{   r|   s     r!   Ú__call__zPhoneNumberList.__call__  r}   r"   c                  ó   — y)r5   z#<Twilio.Lookups.V1.PhoneNumberList>rU   r(   s    r!   rG   zPhoneNumberList.__repr__
  s   € ð 5r"   )rI   rJ   rK   r   r   rM   r&   r   r   rG   rQ   rR   s   @r!   rw   rw   ï   sI   ø„ ð" õ "ðL ð LÐ(:ó LðL Sð LÐ-?ó Lð5˜#÷ 5r"   rw   N)rL   Útypingr   r   r   r   r   Útwilio.baser   r	   Útwilio.base.instance_contextr
   Útwilio.base.instance_resourcer   Útwilio.base.list_resourcer   Útwilio.base.versionr   r   r&   rw   rU   r"   r!   ú<module>r‡      sP   ðñ÷ 4Õ 3ß )Ý 8Ý :Ý 2Ý 'ôfLÐ*ô fLôRlK˜ô lKô^!5�lõ !5r"   