
    d{i?                         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 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)ApiResponse)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     Z/home/sas/my/fyp/ringai/.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_dict8   ^    "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'   r5   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__M   <    :A++$;D# 29=M1ND5<[[AT5UD"r'   c                 J    | j                   | j                  | j                  dS N) rC   rC   r<   r=   r>   r+   s    r$   r,   z%QueryInstance.LastSimSwapInfo.to_dictU   '    ++''** r'   Nr.   r4   r'   r$   LastSimSwapInfor8   F   "    		VDcN 	V	r'   rF   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!   rM   rN   rO   rP   rQ   rR   rS   r"   s     r$   r%   z)QueryInstance.LookupBatchRequest.__init__g       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)rM   rN   rO   rP   rQ   rR   rS   rM   rN   rO   rP   rQ   r,   rR   rS   r+   s    r$   r,   z(QueryInstance.LookupBatchRequest.to_dictw       "&"5"5 $ 1 1++ $ 1 1 **6 ''//1 --9 **224 ,,8 ))113! $ % r'   Nr.   r4   r'   r$   LookupBatchRequestrI   \        		DcN 	 	r'   rZ   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!   ra   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`   ra   r,   r#   ra   s     r$   r,   z#QueryInstance.LookupRequest.to_dict   N    ))5 CGBTBTU]**,U  	 U   :Nr.   r4   r'   r$   LookupRequestr]           		DcN 		r'   ri   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!   rp   r"   s     r$   r%   z1QueryInstance.ReassignedNumberParameters.__init__       5<[[AU5VD#r'   c                     d| j                   iS ro   rp   r+   s    r$   r,   z0QueryInstance.ReassignedNumberParameters.to_dict       $d&=&= r'   Nr.   r4   r'   r$   ReassignedNumberParametersrl      "    		WDcN 	W	r'   rv   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.   r4   r'   r$   RiskParametersry      "    		ODcN 	O	r'   r   versionr   c                 P    t         |   |       |j                  d      | _        y r`   )superr%   r!   ra   )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>r4   r+   s    r$   __repr__zQueryInstance.__repr__   s     3r'   )r/   r0   r1   objectr5   rF   rZ   ri   rv   r   r   r   r3   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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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.   r4   r'   r$   r5   r      r6   r'   r5   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryList.LastSimSwapInfor9   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 rB   rD   r+   s    r$   r,   z!QueryList.LastSimSwapInfo.to_dict  rE   r'   Nr.   r4   r'   r$   rF   r      rG   r'   rF   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryList.LookupBatchRequestrJ   r   c                 8   |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y rL   rT   r"   s     r$   r%   z%QueryList.LookupBatchRequest.__init__  rU   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 rW   rX   r+   s    r$   r,   z$QueryList.LookupBatchRequest.to_dict/  rY   r'   Nr.   r4   r'   r$   rZ   r     r[   r'   rZ   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`   rb   r"   s     r$   r%   z QueryList.LookupRequest.__init__K  rc   r'   c                 ~    d| j                   )| j                   D cg c]  }|j                          c}iS d iS c c}w r`   re   rf   s     r$   r,   zQueryList.LookupRequest.to_dictQ  rg   rh   Nr.   r4   r'   r$   ri   r   F  rj   r'   ri   c                   ,    e Zd ZdZdeeef   fdZd Zy)$QueryList.ReassignedNumberParametersrm   r   c                 0    |j                  d      | _        y ro   rq   r"   s     r$   r%   z-QueryList.ReassignedNumberParameters.__init___  rr   r'   c                     d| j                   iS ro   rt   r+   s    r$   r,   z,QueryList.ReassignedNumberParameters.to_dictc  ru   r'   Nr.   r4   r'   r$   rv   r   Z  rw   r'   rv   c                   ,    e Zd ZdZdeeef   fdZd Zy)QueryList.RiskParametersrz   r   c                 0    |j                  d      | _        y r|   r~   r"   s     r$   r%   z!QueryList.RiskParameters.__init__m  r   r'   c                     d| j                   iS r|   r   r+   s    r$   r,   z QueryList.RiskParameters.to_dictq  r   r'   Nr.   r4   r'   r$   r   r   h  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__v  s     	!"	r'   lookup_requestr   c                     |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        Content-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r,   r	   of_versioncreate_with_response_infor   r#   r   r   r   s       r$   _createzQueryList._create  sc     %%'))^-PQR"4.}}66tyytW 7 
 	
r'   c                 Z    | j                  |      \  }}}t        | j                  |      S )zw
        Create the QueryInstance

        :param lookup_request:

        :returns: The created QueryInstance
        r   )r   r   r   r#   r   r   _s       r$   createzQueryList.create  s+     NCAT]]G44r'   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Create the QueryInstance and return response metadata

        :param lookup_request:

        :returns: ApiResponse with instance, status code, and headers
        r   r   status_coder   )r   r   r   r
   r#   r   r   r   r   instances         r$   create_with_http_infozQueryList.create_with_http_info  s:     )-N(S%g 8k7SSr'   c                    K   |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   N)r,   r	   r   r   create_with_response_info_asyncr   r   s       r$   _create_asynczQueryList._create_async  sr      %%'))^-PQR"4.]]BBtyytW C 
 
 	
 
s   AA' A%!A'c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 w)z
        Asynchronously create the QueryInstance

        :param lookup_request:

        :returns: The created QueryInstance
        r   N)r   r   r   r   s       r$   create_asynczQueryList.create_async  s;      #000OOAT]]G44 Ps   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronously create the QueryInstance and return response metadata

        :param lookup_request:

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   r   r
   r   s         r$   create_with_http_info_asyncz%QueryList.create_with_http_info_async  sS      /3.@.@) /A /
 )
%g !8k7SS	)
s   AA-Ac                      y)r   z<Twilio.Lookups.V2.QueryList>r4   r+   s    r$   r   zQueryList.__repr__  s     /r'   )r/   r0   r1   r   r5   rF   rZ   ri   rv   r   r   r%   r	   unsetr   tupler   r   r   r
   r   r   r   r   r3   r   r   r   s   @r$   r   r      sa   )& )V& ,0V 0d (V  	# 	# >D\\
#M6$9:
	
, >D\\5#M6$9:5	5 >D\\T#M6$9:T	T >D\\
#M6$9:
	
, >D\\5#M6$9:5	5 >D\\T#M6$9:T	T /# /r'   r   N)r2   r   typingr   r   r   r   r   twilio.baser	   twilio.base.api_responser
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r   r4   r'   r$   <module>r      sB     3 3  0 : 2 'u3$ u3pX/ X/r'   