U
    ^g%i7                     @   s   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	 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.
    )datetime)AnyDictListOptionalUnion)values)InstanceResource)ListResource)Versionc                       s   e Zd ZG dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZ	e
eeef d fddZedddZ  ZS )QueryInstancec                   @   s.   e Zd ZdZeeef dddZdd ZdS )z%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                 C   s|   | d| _| d| _| d| _| d| _| d| _| d| _| d| _| d| _| d	| _	| d
| _
d S 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    r   [/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/lookups/v2/query.py__init__(   s    z.QueryInstance.IdentityMatchParameters.__init__c                 C   s.   | 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   r   r   r    to_dict7   s    z-QueryInstance.IdentityMatchParameters.to_dictN	__name__
__module____qualname____doc__r   strr   r!   r%   r   r   r   r    IdentityMatchParameters   s   r,   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )zQueryInstance.LastSimSwapInfoj
        :ivar last_sim_swap_date:
        :ivar swapped_period:
        :ivar swapped_in_period:
        r   c                 C   s(   | d| _| d| _| d| _d S Nlast_sim_swap_dateswapped_periodswapped_in_periodr   r/   r0   r1   r   r   r   r    r!   L   s
    z&QueryInstance.LastSimSwapInfo.__init__c                 C   s   | j | j| jdS N) r4   r4   r/   r0   r1   r$   r   r   r    r%   T   s    z%QueryInstance.LastSimSwapInfo.to_dictNr&   r   r   r   r    LastSimSwapInfoE   s   r6   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )z 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                 C   sX   | d| _| d| _| d| _| d| _| d| _| d| _| d| _d S Ncorrelation_idphone_numberfieldscountry_codeidentity_matchreassigned_numbersms_pumping_riskr   r9   r:   r;   r<   r=   r>   r?   r   r   r   r    r!   f   s    z)QueryInstance.LookupBatchRequest.__init__c                 C   sX   | j | j| j| j| jd k	r$| j nd | jd k	r:| j nd | jd k	rP| j nd dS N)r9   r:   r;   r<   r=   r>   r?   r9   r:   r;   r<   r=   r%   r>   r?   r$   r   r   r    r%   v   s    z(QueryInstance.LookupBatchRequest.to_dictNr&   r   r   r   r    LookupBatchRequest[   s   
rC   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )zQueryInstance.LookupRequest&
        :ivar phone_numbers:
        r   c                 C   s   | d| _d S Nphone_numbersr   rF   r   r   r   r    r!      s    z$QueryInstance.LookupRequest.__init__c                 C   s"   d| j d k	rdd | j D nd iS )NrF   c                 S   s   g | ]}|  qS r   r%   .0rF   r   r   r    
<listcomp>   s     z7QueryInstance.LookupRequest.to_dict.<locals>.<listcomp>rF   r$   r   r   r    r%      s
    z#QueryInstance.LookupRequest.to_dictNr&   r   r   r   r    LookupRequest   s   rM   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )z(QueryInstance.ReassignedNumberParameters+
        :ivar last_verified_date:
        r   c                 C   s   | d| _d S Nlast_verified_dater   rP   r   r   r   r    r!      s    z1QueryInstance.ReassignedNumberParameters.__init__c                 C   s
   d| j iS rO   rP   r$   r   r   r    r%      s     z0QueryInstance.ReassignedNumberParameters.to_dictNr&   r   r   r   r    ReassignedNumberParameters   s   rS   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )zQueryInstance.RiskParameters'
        :ivar partner_sub_id:
        r   c                 C   s   | d| _d S Npartner_sub_idr   rV   r   r   r   r    r!      s    z%QueryInstance.RiskParameters.__init__c                 C   s
   d| j iS rU   rV   r$   r   r   r    r%      s     z$QueryInstance.RiskParameters.to_dictNr&   r   r   r   r    RiskParameters   s   rY   )versionr   c                    s   t  | |d| _d S rE   )superr!   r   rF   )r   rZ   r   	__class__r   r    r!      s    zQueryInstance.__init__returnc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z!<Twilio.Lookups.V2.QueryInstance>r   r$   r   r   r    __repr__   s    zQueryInstance.__repr__)r'   r(   r)   objectr,   r6   rC   rM   rS   rY   r   r   r+   r   r!   ra   __classcell__r   r   r\   r    r      s   +2r   c                       s   e Zd ZG dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZ	e
d fddZejfeeef edddZejfeeef edddZedddZ  ZS )	QueryListc                   @   s.   e Zd ZdZeeef dddZdd ZdS )z!QueryList.IdentityMatchParametersr   r   c                 C   s|   | d| _| d| _| d| _| d| _| d| _| d| _| d| _| d| _| d	| _	| d
| _
d S r   r   r   r   r   r    r!      s    z*QueryList.IdentityMatchParameters.__init__c                 C   s.   | j | j| j| j| j| j| j| j| j| j	d
S r"   r#   r$   r   r   r    r%      s    z)QueryList.IdentityMatchParameters.to_dictNr&   r   r   r   r    r,      s   r,   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )zQueryList.LastSimSwapInfor-   r   c                 C   s(   | d| _| d| _| d| _d S r.   r2   r   r   r   r    r!     s
    z"QueryList.LastSimSwapInfo.__init__c                 C   s   | j | j| jdS r3   r5   r$   r   r   r    r%     s    z!QueryList.LastSimSwapInfo.to_dictNr&   r   r   r   r    r6      s   r6   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )zQueryList.LookupBatchRequestr7   r   c                 C   sX   | d| _| d| _| d| _| d| _| d| _| d| _| d| _d S r8   r@   r   r   r   r    r!     s    z%QueryList.LookupBatchRequest.__init__c                 C   sX   | j | j| j| j| jd k	r$| j nd | jd k	r:| j nd | jd k	rP| j nd dS rA   rB   r$   r   r   r    r%   .  s    z$QueryList.LookupBatchRequest.to_dictNr&   r   r   r   r    rC     s   
rC   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )zQueryList.LookupRequestrD   r   c                 C   s   | d| _d S rE   rG   r   r   r   r    r!   J  s    z QueryList.LookupRequest.__init__c                 C   s"   d| j d k	rdd | j D nd iS )NrF   c                 S   s   g | ]}|  qS r   rH   rI   r   r   r    rK   S  s     z3QueryList.LookupRequest.to_dict.<locals>.<listcomp>rL   r$   r   r   r    r%   P  s
    zQueryList.LookupRequest.to_dictNr&   r   r   r   r    rM   E  s   rM   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )z$QueryList.ReassignedNumberParametersrN   r   c                 C   s   | d| _d S rO   rQ   r   r   r   r    r!   ^  s    z-QueryList.ReassignedNumberParameters.__init__c                 C   s
   d| j iS rO   rR   r$   r   r   r    r%   b  s     z,QueryList.ReassignedNumberParameters.to_dictNr&   r   r   r   r    rS   Y  s   rS   c                   @   s.   e Zd ZdZeeef dddZdd ZdS )zQueryList.RiskParametersrT   r   c                 C   s   | d| _d S rU   rW   r   r   r   r    r!   l  s    z!QueryList.RiskParameters.__init__c                 C   s
   d| j iS rU   rX   r$   r   r   r    r%   p  s     z QueryList.RiskParameters.to_dictNr&   r   r   r   r    rY   g  s   rY   )rZ   c                    s   t  | d| _dS )zg
        Initialize the QueryList

        :param version: Version that contains the resource

        z/batch/queryN)r[   r!   _uri)r   rZ   r\   r   r    r!   u  s    zQueryList.__init__)lookup_requestr_   c                 C   sH   |  }tddi}d|d< d|d< | jjd| j||d}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createre   r   r   rf   ro   rp   r   r   r   r    rs     s    
   zQueryList.createc                    sN   |  }tddi}d|d< d|d< | jjd| j||dI dH }t| j|S )z
        Asynchronously create the QueryInstance

        :param lookup_request:

        :returns: The created QueryInstance
        rg   rh   ri   rj   rk   rl   N)r%   r   rq   rr   create_asyncre   r   rt   r   r   r    ru     s    
   zQueryList.create_asyncr^   c                 C   s   dS )r`   z<Twilio.Lookups.V2.QueryList>r   r$   r   r   r    ra     s    zQueryList.__repr__)r'   r(   r)   rb   r,   r6   rC   rM   rS   rY   r   r!   r   unsetr   r   rs   ru   r+   ra   rc   r   r   r\   r    rd      s$   +2

rd   N)r*   r   typingr   r   r   r   r   Ztwilio.baser   Ztwilio.base.instance_resourcer	   Ztwilio.base.list_resourcer
   Ztwilio.base.versionr   r   rd   r   r   r   r    <module>   s    9