
    m>h$                         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	e      Z G d
 de      Zy)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                   Z     e Zd Z G d de      Z	 dedeeef   def fdZ	defdZ
 xZS )	VerificationCheckInstancec                        e Zd ZdZdZdZdZdZy)!VerificationCheckInstance.ChannelsmscallemailwhatsappsnaN)__name__
__module____qualname__SMSCALLEMAILWHATSAPPSNA     t/var/www/html/DP/alpha_backend/venv/lib/python3.12/site-packages/twilio/rest/verify/v2/service/verification_check.pyChannelr      s    r    r"   versionpayloadservice_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _	        |j                  d      | _
        |j                  d	      | _        t        j                  |j                  d
            | _        t        j                  |j                  d            | _        |j                  d      | _        d|i| _        y )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/   r0   r1   	_solution)selfr#   r$   r%   	__class__s       r!   r3   z"VerificationCheckInstance.__init__0   s   !")++e"4*1++m*D*1++m*D!(T!2FMkkG
 &-[[%:%,[[%9
%,[[%:$+KK$8
0;0L0LKK'1
 1<0L0LKK'1
 LS;;&L
%
 ;
r    returnc                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        yw)z{}={}N)format).0kvs      r!   	<genexpr>z5VerificationCheckInstance.__repr__.<locals>.<genexpr>R   s"     S<RDAq7>>!Q/<Rs   !z/<Twilio.Verify.V2.VerificationCheckInstance {}>)joinr6   itemsr>   )r7   contexts     r!   __repr__z"VerificationCheckInstance.__repr__L   s6     ((SDNN<P<P<RSS@GGPPr    )r   r   r   objectr"   r   r   strr   r3   rF   __classcell__r8   s   @r!   r   r      sD    & 
 
$sCx. 
s 
8Q# Qr    r   c                        e Zd Zdedef f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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Zd
efdZ xZS )VerificationCheckListr#   r%   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)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   )r2   r3   r6   r>   _uri)r7   r#   r%   r8   s      r!   r3   zVerificationCheckList.__init__X   sA     	! ;
 G?FFXX	r    coder)   verification_sidr-   r.   sna_client_tokenr9   c           	         t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      }	t        | j                  |	| j                  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createrN   r   r6   
r7   rO   r)   rP   r-   r.   rQ   rb   rc   r$   s
             r!   rg   zVerificationCheckList.createh   s    , yy#3 "2	
 ))^-PQR"E.--&&tyytW ' 
 )MM7}0M
 	
r    c           	      4  K   t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   }	t        | j                  |	| j                  d	   
      S 7 )w)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
        rS   rZ   r[   r\   r]   r^   r_   Nr%   rd   )r
   re   rf   create_asyncrN   r   r6   rh   s
             r!   rj   z"VerificationCheckList.create_async   s     , yy#3 "2	
 ))^-PQR"E.22tyytW 3 
 
 )MM7}0M
 	
	
s   A*B,B-*Bc                      y)r;   z(<Twilio.Verify.V2.VerificationCheckList>r   )r7   s    r!   rF   zVerificationCheckList.__repr__   s     :r    )r   r   r   r   rH   r3   r
   unsetr   rG   r   rg   rj   rF   rI   rJ   s   @r!   rL   rL   V   s}   Y Yc Y$ $*<<!'/5||%+\\$*LL/5||,
CK ,
 #v+,
  V,	,

 c6k",
 S&[!,
  V,,
 
#,
` $*<<!'/5||%+\\$*LL/5||,
CK ,
 #v+,
  V,	,

 c6k",
 S&[!,
  V,,
 
#,
\:# :r    rL   N)__doc__r   typingr   r   r   r   r   twilio.baser	   r
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rL   r   r    r!   <module>rs      s?     3 3 + : 2 ';Q 0 ;Q|t:L t:r    