o
    /i"[                     @   s   d Z ddl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 G dd	 d	eZG d
d de
ZG dd deZdS )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)values)InstanceContext)InstanceResource)ListResource)Versionc                       s(  e Zd ZG dd deZ	 	d dedeeef de	e f fddZ
ed!ddZejejejejejejejejejejejejejfdeeef deeef deeef deeef deeef deeef deeef deeef deeef deeef deeef deeef deeef d	d fddZejejejejejejejejejejejejejfdeeef deeef deeef deeef deeef deeef deeef deeef deeef deeef deeef deeef deeef d	d fddZd	efddZ  ZS )"PhoneNumberInstancec                   @   s$   e Zd ZdZdZdZdZdZdZdS )z#PhoneNumberInstance.ValidationError	TOO_SHORTTOO_LONGINVALID_BUT_POSSIBLEINVALID_COUNTRY_CODEINVALID_LENGTHNOT_A_NUMBERN)	__name__
__module____qualname__r   r   r   r   r   r    r   r   ^/var/www/html/philips/venv/lib/python3.10/site-packages/twilio/rest/lookups/v2/phone_number.pyValidationError   s    r   Nversionpayloadphone_numberc                    s   t  | |d| _|d| _|d| _|d| _|d| _|d| _|d| _	|d| _
|d	| _|d
| _|d| _|d| _|d| _|d| _|d| _|d| _d|pk| ji| _d | _d S )Ncalling_country_codecountry_coder   national_formatvalidvalidation_errorscaller_namesim_swapcall_forwardinglive_activityline_type_intelligenceidentity_matchreassigned_numbersms_pumping_riskphone_number_quality_scoreurl)super__init__getr   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   	_solution_context)selfr   r   r   	__class__r   r   r,   4   s>   

zPhoneNumberInstance.__init__returnPhoneNumberContextc                 C   s&   | j du rt| j| jd 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
        Nr   r   )r/   r4   _versionr.   r0   r   r   r   _proxy^   s   
zPhoneNumberInstance._proxyfieldsr   
first_name	last_nameaddress_line1address_line2citystatepostal_codeaddress_country_codenational_iddate_of_birthlast_verified_datec                 C   s&   | j j|||||||||	|
|||dS )  
        Fetch the PhoneNumberInstance

        :param fields: A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number.
        :param country_code: The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
        :param first_name: User’s first name. This query parameter is only used (optionally) for identity_match package requests.
        :param last_name: User’s last name. This query parameter is only used (optionally) for identity_match package requests.
        :param address_line1: User’s first address line. This query parameter is only used (optionally) for identity_match package requests.
        :param address_line2: User’s second address line. This query parameter is only used (optionally) for identity_match package requests.
        :param city: User’s city. This query parameter is only used (optionally) for identity_match package requests.
        :param state: User’s country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests.
        :param postal_code: User’s postal zip code. This query parameter is only used (optionally) for identity_match package requests.
        :param address_country_code: User’s country, up to two characters. This query parameter is only used (optionally) for identity_match package requests.
        :param national_id: User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
        :param date_of_birth: User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
        :param last_verified_date: The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.

        :returns: The fetched PhoneNumberInstance
        r9   r   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   )r8   fetchr0   r9   r   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   r   r   r   rG   m   s   #zPhoneNumberInstance.fetchc                    s.   | j j|||||||||	|
|||dI dH S )  
        Asynchronous coroutine to fetch the PhoneNumberInstance

        :param fields: A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number.
        :param country_code: The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
        :param first_name: User’s first name. This query parameter is only used (optionally) for identity_match package requests.
        :param last_name: User’s last name. This query parameter is only used (optionally) for identity_match package requests.
        :param address_line1: User’s first address line. This query parameter is only used (optionally) for identity_match package requests.
        :param address_line2: User’s second address line. This query parameter is only used (optionally) for identity_match package requests.
        :param city: User’s city. This query parameter is only used (optionally) for identity_match package requests.
        :param state: User’s country subdivision, such as state, province, or locality. This query parameter is only used (optionally) for identity_match package requests.
        :param postal_code: User’s postal zip code. This query parameter is only used (optionally) for identity_match package requests.
        :param address_country_code: User’s country, up to two characters. This query parameter is only used (optionally) for identity_match package requests.
        :param national_id: User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests.
        :param date_of_birth: User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
        :param last_verified_date: The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.

        :returns: The fetched PhoneNumberInstance
        rF   N)r8   fetch_asyncrH   r   r   r   rJ      s    #zPhoneNumberInstance.fetch_asyncc                 C   $   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s        | ]\}}d  ||V  qdS z{}={}Nformat.0kvr   r   r   	<genexpr>       z/PhoneNumberInstance.__repr__.<locals>.<genexpr>z*<Twilio.Lookups.V2.PhoneNumberInstance {}>joinr.   itemsrQ   r0   contextr   r   r   __repr__      
zPhoneNumberInstance.__repr__)N)r3   r4   )r   r   r   objectr   r   r   strr   r   r,   propertyr8   r   unsetr   rG   rJ   r]   __classcell__r   r   r1   r   r      s    
*







	






5







	






3r   c                       s  e Zd Zdedef fddZejejejejejejejejejejejejejfdeee	f deee	f deee	f deee	f d	eee	f d
eee	f deee	f deee	f deee	f deee	f deee	f deee	f deee	f de
fddZejejejejejejejejejejejejejfdeee	f deee	f deee	f deee	f d	eee	f d
eee	f deee	f deee	f deee	f deee	f deee	f deee	f deee	f de
fddZdefddZ  ZS )r4   r   r   c                    s.   t  | d|i| _djdi | j| _dS )z
        Initialize the PhoneNumberContext

        :param version: Version that contains the resource
        :param phone_number: The phone number to lookup in E.164 or national format. Default country code is +1 (North America).
        r   z/PhoneNumbers/{phone_number}Nr   )r+   r,   r.   rQ   _uri)r0   r   r   r1   r   r   r,      s   zPhoneNumberContext.__init__r9   r   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   r3   c                 C   sP   t |||||||||	|
|||d}| jjd| j|d}t| j|| jd dS )rE   FieldsCountryCode	FirstNameLastNameAddressLine1AddressLine2CityState
PostalCodeAddressCountryCode
NationalIdDateOfBirthLastVerifiedDateGETmethoduriparamsr   r5   )r   ofr6   rG   rd   r   r.   r0   r9   r   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   datar   r   r   r   rG      s,   $zPhoneNumberContext.fetchc                    sX   t |||||||||	|
|||d}| jjd| j|dI dH }t| j|| jd dS )rI   re   rs   rt   Nr   r5   )r   rx   r6   rJ   rd   r   r.   ry   r   r   r   rJ   +  s2   $zPhoneNumberContext.fetch_asyncc                 C   rK   )rL   rM   c                 s   rN   rO   rP   rR   r   r   r   rV   q  rW   z.PhoneNumberContext.__repr__.<locals>.<genexpr>z)<Twilio.Lookups.V2.PhoneNumberContext {}>rX   r[   r   r   r   r]   k  r^   zPhoneNumberContext.__repr__)r   r   r   r   r`   r,   r   rb   r   r_   r   rG   rJ   r]   rc   r   r   r1   r   r4      s    







	






@







	






@r4   c                       sT   e Zd Zdef fddZdedefddZdedefdd	Zdefd
dZ	  Z
S )PhoneNumberListr   c                    s   t  | dS )zm
        Initialize the PhoneNumberList

        :param version: Version that contains the resource

        N)r+   r,   )r0   r   r1   r   r   r,   v  s   zPhoneNumberList.__init__r   r3   c                 C      t | j|dS z
        Constructs a PhoneNumberContext

        :param phone_number: The phone number to lookup in E.164 or national format. Default country code is +1 (North America).
        r5   r4   r6   r0   r   r   r   r   r-        zPhoneNumberList.getc                 C   r|   r}   r~   r   r   r   r   __call__  r   zPhoneNumberList.__call__c                 C   s   dS )rL   z#<Twilio.Lookups.V2.PhoneNumberList>r   r7   r   r   r   r]     s   zPhoneNumberList.__repr__)r   r   r   r   r,   r`   r4   r-   r   r]   rc   r   r   r1   r   r{   u  s
    	r{   N)__doc__typingr   r   r   r   r   twilio.baser   twilio.base.instance_contextr   twilio.base.instance_resourcer	   twilio.base.list_resourcer
   twilio.base.versionr   r   r4   r{   r   r   r   r   <module>   s     F 