
    i?1i                          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     z/home/www/therecruiter.miabetepe.com/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
 AH&A
%
 ;
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     SDAq7>>!Q/Ss   !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                  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                  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__W   sA     	! ;
 G?FFXX	r    coder)   verification_sidr-   r.   r9   c                     t        j                  |||||d      }| j                  j                  d| j                  |      }t        | j                  || j                  d         S )ai  
        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.

        :returns: The created VerificationCheckInstance
        CodeToVerificationSidAmountPayeePOSTmethoduridatar%   r%   )r
   of_versioncreaterN   r   r6   r7   rO   r)   rP   r-   r.   r\   r$   s           r!   r`   zVerificationCheckList.createg   sq    & yy#3 
 --&&		 ' 
 )MM7}0M
 	
r    c                    K   t        j                  |||||d      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)ax  
        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.

        :returns: The created VerificationCheckInstance
        rR   rX   rY   Nr%   r]   )r
   r^   r_   create_asyncrN   r   r6   ra   s           r!   rc   z"VerificationCheckList.create_async   s     & yy#3 
 22		 3 
 
 )MM7}0M
 	

s   AA5	A3
*A5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   r`   rc   rF   rI   rJ   s   @r!   rL   rL   V   sI   Y Yc Y$ $*<<!'/5||%+\\$*LL%
CK %
 #v+%
  V,	%

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

 c6k"%
 S&[!%
 
#%
N:# :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>rl      s?     3 3 + : 2 ':Q 0 :Qze:L e:r    