U
    ^g%i$                     @   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	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 - Verify
    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)deserializevalues)InstanceResource)ListResource)Versionc                       sL   e Zd ZG dd deZeeeef ed fddZ	edddZ
  ZS )	VerificationCheckInstancec                   @   s    e Zd ZdZdZdZdZdZdS )z!VerificationCheckInstance.ChannelZsmscallemailZwhatsappZsnaN)__name__
__module____qualname__ZSMSCALLZEMAILZWHATSAPPZSNA r   r   o/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/verify/v2/service/verification_check.pyChannel   s
   r   )versionpayloadservice_sidc                    s   t  | |d| _|d| _|d| _|d| _|d| _|d| _|d| _	|d| _
|d	| _t|d
| _t|d| _|d| _d|i| _d S )Nsidr   account_sidtochannelstatusvalidamountpayeedate_createddate_updatedsna_attempts_error_codes)super__init__getr   r   r   r   r   r   r   r    r!   r   Ziso8601_datetimer"   r#   r$   	_solution)selfr   r   r   	__class__r   r   r&   0   s0     z"VerificationCheckInstance.__init__returnc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s   | ]\}}d  ||V  qdS )z{}={}N)format).0kvr   r   r   	<genexpr>R   s     z5VerificationCheckInstance.__repr__.<locals>.<genexpr>z/<Twilio.Verify.V2.VerificationCheckInstance {}>)joinr(   itemsr0   )r)   contextr   r   r   __repr__L   s    z"VerificationCheckInstance.__repr__)r   r   r   objectr   r   r   strr   r&   r8   __classcell__r   r   r*   r   r      s   r   c                	       s   e Zd Zeed fddZejejejejejejfeee	f eee	f eee	f eee	f eee	f eee	f e
dddZejejejejejejfeee	f eee	f eee	f eee	f eee	f eee	f e
dddZed	d
dZ  ZS )VerificationCheckList)r   r   c                    s*   t  | d|i| _djf | j| _dS )a  
        Initialize the VerificationCheckList

        :param version: Version that contains the resource
        :param service_sid: The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under.

        r   z)/Services/{service_sid}/VerificationCheckN)r%   r&   r(   r0   _uri)r)   r   r   r*   r   r   r&   X   s
     zVerificationCheckList.__init__)coder   verification_sidr    r!   sna_client_tokenr-   c           
   	   C   sb   t ||||||d}t ddi}d|d< d|d< | jjd| j||d}	t| j|	| jd d	S )
a#  
        Create the VerificationCheckInstance

        :param code: The 4-10 character string being verified.
        :param to: The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        :param verification_sid: A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified.
        :param amount: The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
        :param payee: The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
        :param sna_client_token: A sna client token received in sna url invocation response needs to be passed in Verification Check request and should match to get successful response.

        :returns: The created VerificationCheckInstance
        ZCodeToZVerificationSidZAmountZPayeeZSnaClientTokenContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr   r   )r	   of_versioncreater=   r   r(   
r)   r>   r   r?   r    r!   r@   rK   rL   r   r   r   r   rP   h   s.    
     zVerificationCheckList.createc           
   	      sh   t ||||||d}t ddi}d|d< d|d< | jjd| j||dI dH }	t| j|	| jd	 d
S )a2  
        Asynchronously create the VerificationCheckInstance

        :param code: The 4-10 character string being verified.
        :param to: The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
        :param verification_sid: A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified.
        :param amount: The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
        :param payee: The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
        :param sna_client_token: A sna client token received in sna url invocation response needs to be passed in Verification Check request and should match to get successful response.

        :returns: The created VerificationCheckInstance
        rA   rC   rD   rE   rF   rG   rH   Nr   rM   )r	   rN   rO   create_asyncr=   r   r(   rQ   r   r   r   rR      s.    
     z"VerificationCheckList.create_asyncr,   c                 C   s   dS )r.   z(<Twilio.Verify.V2.VerificationCheckList>r   )r)   r   r   r   r8      s    zVerificationCheckList.__repr__)r   r   r   r   r:   r&   r	   unsetr   r9   r   rP   rR   r8   r;   r   r   r*   r   r<   V   s@   





0





.r<   N)__doc__r   typingr   r   r   r   r   Ztwilio.baser   r	   Ztwilio.base.instance_resourcer
   Ztwilio.base.list_resourcer   Ztwilio.base.versionr   r   r<   r   r   r   r   <module>   s   >