o
    f>h$                     @   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                       sR   e Zd ZG dd deZ	 dedeeef def fddZ	def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.ChannelsmscallemailwhatsappsnaN)__name__
__module____qualname__SMSCALLEMAILWHATSAPPSNA r   r   c/var/www/html/venv/lib/python3.10/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   iso8601_datetimer)   r*   r+   	_solution)selfr   r   r    	__class__r   r   r-   0   s.   
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 {}>)joinr0   itemsr7   )r1   contextr   r   r   __repr__L   s   
z"VerificationCheckInstance.__repr__)r   r   r   objectr   r   r   strr   r-   r?   __classcell__r   r   r2   r   r      s
    "r   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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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 )VerificationCheckListr   r    c                    s.   t  | d|i| _djdi | 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}/VerificationCheckNr   )r,   r-   r0   r7   _uri)r1   r   r    r2   r   r   r-   X   s   zVerificationCheckList.__init__coder#   verification_sidr'   r(   sna_client_tokenr4   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
        CodeToVerificationSidAmountPayeeSnaClientTokenContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheadersr    r    )r	   of_versioncreaterD   r   r0   
r1   rE   r#   rF   r'   r(   rG   rW   rX   r   r   r   r   r\   h   s$   

zVerificationCheckList.createc           
   	      sj   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
        rH   rO   rP   rQ   rR   rS   rT   Nr    rY   )r	   rZ   r[   create_asyncrD   r   r0   r]   r   r   r   r^      s&   

z"VerificationCheckList.create_asyncc                 C   s   dS )r5   z(<Twilio.Verify.V2.VerificationCheckList>r   )r1   r   r   r   r?      s   zVerificationCheckList.__repr__)r   r   r   r   rA   r-   r	   unsetr   r@   r   r\   r^   r?   rB   r   r   r2   r   rC   V   sZ    






0






.rC   N)__doc__r   typingr   r   r   r   r   twilio.baser   r	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   rC   r   r   r   r   <module>   s    >