
    pi7                         d Z ddlm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  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.
    )datetime)AnyDictListOptionalUnion)values)InstanceResource)ListResource)Versionc                        e Zd Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z		 de
deeef   f fdZdefdZ xZS )QueryInstancec                   ,    e Zd ZdZdeeef   fdZd Zy)%QueryInstance.IdentityMatchParameters  
        :ivar first_name:
        :ivar last_name:
        :ivar address_line1:
        :ivar address_line2:
        :ivar city:
        :ivar state:
        :ivar postal_code:
        :ivar address_country_code:
        :ivar national_id:
        :ivar date_of_birth:
        payloadc                    |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d	      | _	        |j                  d
      | _
        y N
first_name	last_nameaddress_line1address_line2citystatepostal_codeaddress_country_codenational_iddate_of_birthgetr   r   r   r   r   r   r   r   r   r   selfr   s     ^/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/lookups/v2/query.py__init__z.QueryInstance.IdentityMatchParameters.__init__(       -4[[-FDO,3KK,DDN07O0LD07O0LD'.{{6':DI(/G(<DJ.5kk-.HD7>{{&8D% /6kk-.HD07O0LD    c                     | j                   | j                  | j                  | j                  | j                  | j
                  | j                  | j                  | j                  | j                  d
S N
r   r   r   r   r   r   r   r   r   r   r)   r"   s    r#   to_dictz-QueryInstance.IdentityMatchParameters.to_dict7   ^    "oo!^^!%!3!3!%!3!3		#//(,(A(A#//!%!3!3 r&   N	__name__
__module____qualname____doc__r   strr   r$   r+    r&   r#   IdentityMatchParametersr      "    		MDcN 	M	r&   r4   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryInstance.LastSimSwapInfoj
        :ivar last_sim_swap_date:
        :ivar swapped_period:
        :ivar swapped_in_period:
        r   c                     |j                  d      | _        |j                  d      | _        |j                  d      | _        y Nlast_sim_swap_dateswapped_periodswapped_in_periodr    r;   r<   r=   r!   s     r#   r$   z&QueryInstance.LastSimSwapInfo.__init__L   <    :A++$;D# 29=M1ND5<[[AT5UD"r&   c                 J    | j                   | j                  | j                  dS N) rB   rB   r;   r<   r=   r*   s    r#   r+   z%QueryInstance.LastSimSwapInfo.to_dictT   '    ++''** r&   Nr-   r3   r&   r#   LastSimSwapInfor7   E   "    		VDcN 	V	r&   rE   c                   ,    e Zd ZdZdeeef   fdZd Zy) QueryInstance.LookupBatchRequest
  
        :ivar correlation_id: Unique identifier used to match request with response
        :ivar phone_number:
        :ivar fields:
        :ivar country_code:
        :ivar identity_match:
        :ivar reassigned_number:
        :ivar sms_pumping_risk:
        r   c                 8   |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y Ncorrelation_idphone_numberfieldscountry_codeidentity_matchreassigned_numbersms_pumping_riskr    rL   rM   rN   rO   rP   rQ   rR   r!   s     r#   r$   z)QueryInstance.LookupBatchRequest.__init__f       18=M1ND/6{{>/JD3:;;x3HDK/6{{>/JD,-  /0 " IP"ID!r&   c                 N   | j                   | j                  | j                  | j                  | j                  | j                  j                         nd | j                  | j                  j                         nd | j                  | j                  j                         dS d dS N)rL   rM   rN   rO   rP   rQ   rR   rL   rM   rN   rO   rP   r+   rQ   rR   r*   s    r#   r+   z(QueryInstance.LookupBatchRequest.to_dictv       "&"5"5 $ 1 1++ $ 1 1 **6 ''//1 --9 **224 ,,8 ))113! $ % r&   Nr-   r3   r&   r#   LookupBatchRequestrH   [        		DcN 	 	r&   rY   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryInstance.LookupRequest&
        :ivar phone_numbers:
        r   c                 0    |j                  d      | _        y Nphone_numbersr    r`   r!   s     r#   r$   z$QueryInstance.LookupRequest.__init__        O, r&   c                 ~    d| j                   )| j                   D cg c]  }|j                          c}iS d iS c c}w r_   r`   r+   r"   r`   s     r#   r+   z#QueryInstance.LookupRequest.to_dict   N    ))5 CGBTBTU]**,U  	 U   :Nr-   r3   r&   r#   LookupRequestr\           		DcN 		r&   rh   c                   ,    e Zd ZdZdeeef   fdZd Zy)(QueryInstance.ReassignedNumberParameters+
        :ivar last_verified_date:
        r   c                 0    |j                  d      | _        y Nlast_verified_dater    ro   r!   s     r#   r$   z1QueryInstance.ReassignedNumberParameters.__init__       5<[[AU5VD#r&   c                     d| j                   iS rn   ro   r*   s    r#   r+   z0QueryInstance.ReassignedNumberParameters.to_dict       $d&=&= r&   Nr-   r3   r&   r#   ReassignedNumberParametersrk      "    		WDcN 	W	r&   ru   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryInstance.RiskParameters'
        :ivar partner_sub_id:
        r   c                 0    |j                  d      | _        y Npartner_sub_idr    r|   r!   s     r#   r$   z%QueryInstance.RiskParameters.__init__       18=M1NDr&   c                     d| j                   iS r{   r|   r*   s    r#   r+   z$QueryInstance.RiskParameters.to_dict        $"5"5 r&   Nr-   r3   r&   r#   RiskParametersrx      "    		ODcN 	O	r&   r   versionr   c                 P    t         |   |       |j                  d      | _        y r_   )superr$   r    r`   )r"   r   r   	__class__s      r#   r$   zQueryInstance.__init__   s!    !29++o2Nr&   returnc                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z!<Twilio.Lookups.V2.QueryInstance>r3   r*   s    r#   __repr__zQueryInstance.__repr__   s     3r&   )r.   r/   r0   objectr4   rE   rY   rh   ru   r   r   r   r2   r   r$   r   __classcell__r   s   @r#   r   r      s|    )& )V& ,0V 0d (V  O O$sCx. O
3# 3r&   r   c                       e Zd Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z	de
f fdZej                  fdeeef   defdZej                  fdeeef   defdZdefdZ xZS )	QueryListc                   ,    e Zd ZdZdeeef   fdZd Zy)!QueryList.IdentityMatchParametersr   r   c                    |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d	      | _	        |j                  d
      | _
        y r   r   r!   s     r#   r$   z*QueryList.IdentityMatchParameters.__init__   r%   r&   c                     | j                   | j                  | j                  | j                  | j                  | j
                  | j                  | j                  | j                  | j                  d
S r(   r)   r*   s    r#   r+   z)QueryList.IdentityMatchParameters.to_dict   r,   r&   Nr-   r3   r&   r#   r4   r      r5   r&   r4   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryList.LastSimSwapInfor8   r   c                     |j                  d      | _        |j                  d      | _        |j                  d      | _        y r:   r>   r!   s     r#   r$   z"QueryList.LastSimSwapInfo.__init__  r?   r&   c                 J    | j                   | j                  | j                  dS rA   rC   r*   s    r#   r+   z!QueryList.LastSimSwapInfo.to_dict  rD   r&   Nr-   r3   r&   r#   rE   r      rF   r&   rE   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryList.LookupBatchRequestrI   r   c                 8   |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y rK   rS   r!   s     r#   r$   z%QueryList.LookupBatchRequest.__init__  rT   r&   c                 N   | j                   | j                  | j                  | j                  | j                  | j                  j                         nd | j                  | j                  j                         nd | j                  | j                  j                         dS d dS rV   rW   r*   s    r#   r+   z$QueryList.LookupBatchRequest.to_dict.  rX   r&   Nr-   r3   r&   r#   rY   r     rZ   r&   rY   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryList.LookupRequestr]   r   c                 0    |j                  d      | _        y r_   ra   r!   s     r#   r$   z QueryList.LookupRequest.__init__J  rb   r&   c                 ~    d| j                   )| j                   D cg c]  }|j                          c}iS d iS c c}w r_   rd   re   s     r#   r+   zQueryList.LookupRequest.to_dictP  rf   rg   Nr-   r3   r&   r#   rh   r   E  ri   r&   rh   c                   ,    e Zd ZdZdeeef   fdZd Zy)$QueryList.ReassignedNumberParametersrl   r   c                 0    |j                  d      | _        y rn   rp   r!   s     r#   r$   z-QueryList.ReassignedNumberParameters.__init__^  rq   r&   c                     d| j                   iS rn   rs   r*   s    r#   r+   z,QueryList.ReassignedNumberParameters.to_dictb  rt   r&   Nr-   r3   r&   r#   ru   r   Y  rv   r&   ru   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryList.RiskParametersry   r   c                 0    |j                  d      | _        y r{   r}   r!   s     r#   r$   z!QueryList.RiskParameters.__init__l  r~   r&   c                     d| j                   iS r{   r   r*   s    r#   r+   z QueryList.RiskParameters.to_dictp  r   r&   Nr-   r3   r&   r#   r   r   g  r   r&   r   r   c                 2    t         |   |       d| _        y)zg
        Initialize the QueryList

        :param version: Version that contains the resource

        z/batch/queryN)r   r$   _uri)r"   r   r   s     r#   r$   zQueryList.__init__u  s     	!"	r&   lookup_requestr   c                     |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||      }t        | j                  |      S )zw
        Create the QueryInstance

        :param lookup_request:

        :returns: The created QueryInstance
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r+   r	   of_versioncreater   r   r"   r   r   r   r   s        r#   r   zQueryList.create  ss     %%'))^-PQR"4.--&&tyytW ' 
 T]]G44r&   c                    K   |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   }t        | j                  |      S 7 w)z
        Asynchronously create the QueryInstance

        :param lookup_request:

        :returns: The created QueryInstance
        r   r   r   r   r   r   N)r+   r	   r   r   create_asyncr   r   r   s        r#   r   zQueryList.create_async  s      %%'))^-PQR"4.22tyytW 3 
 
 T]]G44	
s   AA= A;!A=c                      y)r   z<Twilio.Lookups.V2.QueryList>r3   r*   s    r#   r   zQueryList.__repr__  s     /r&   )r.   r/   r0   r   r4   rE   rY   rh   ru   r   r   r$   r	   unsetr   r   r   r   r2   r   r   r   s   @r#   r   r      s    )& )V& ,0V 0d (V  	# 	# >D\\5#M6$9:5	52 >D\\5#M6$9:5	50/# /r&   r   N)r1   r   typingr   r   r   r   r   twilio.baser	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r   r3   r&   r#   <module>r      s?     3 3  : 2 'u3$ u3pf/ f/r&   