
    d{i:                         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 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)ApiResponse)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     n/home/sas/my/fyp/ringai/.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_datetimer0   r1   r2   	_solution)selfr$   r%   r&   	__class__s       r"   r4   z"VerificationCheckInstance.__init__1   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>S   s     SDAq7>>!Q/Ss   !z/<Twilio.Verify.V2.VerificationCheckInstance {}>)joinr7   itemsr?   )r8   contexts     r"   __repr__z"VerificationCheckInstance.__repr__M   s6     ((SDNN<P<P<RSS@GGPPr!   )r   r   r   objectr#   r   r   strr   r4   rG   __classcell__r9   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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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    )r3   r4   r7   r?   _uri)r8   r$   r&   r9   s      r"   r4   zVerificationCheckList.__init__Y   sA     	! ;
 G?FFXX	r!   coder*   verification_sidr.   r/   sna_client_tokenr:   c           	          t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        CodeToVerificationSidAmountPayeeSnaClientTokenContent-Type!application/x-www-form-urlencodedapplication/jsonAcceptPOSTmethoduridataheaders)r
   of_versioncreate_with_response_inforO   	r8   rP   r*   rQ   r.   r/   rR   rc   rd   s	            r"   _createzVerificationCheckList._createi   s|      yy#3 "2	
 ))^-PQR"E.}}66tyytW 7 
 	
r!   c                     | 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
        rP   r*   rQ   r.   r/   rR   r&   r&   )ri   r   rf   r7   	r8   rP   r*   rQ   r.   r/   rR   r%   _s	            r"   createzVerificationCheckList.create   sR    * -- % 
A )MM7}0M
 	
r!   c                     | j                  ||||||      \  }}}	t        | j                  || j                  d         }
t	        |
||	      S )aN  
        Create the VerificationCheckInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rk   r&   rl   rc   status_coderd   )ri   r   rf   r7   r   r8   rP   r*   rQ   r.   r/   rR   r%   rr   rd   instances              r"   create_with_http_infoz+VerificationCheckList.create_with_http_info   sa    * )--- )5 )
%g -MM7}0M
 k7SSr!   c           	         K   t        j                  ||||||d      }t        j                  ddi      }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        rT   r[   r\   r]   r^   r_   r`   N)r
   re   rf   create_with_response_info_asyncrO   rh   s	            r"   _create_asyncz#VerificationCheckList._create_async   s       yy#3 "2	
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A*A3,A1-A3c                    K   | 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
        rk   Nr&   rl   )rx   r   rf   r7   rm   s	            r"   create_asyncz"VerificationCheckList.create_async   sb     * #00-- 1 
 
A )MM7}0M
 	

s   AA.Ac                    K   | j                  ||||||       d{   \  }}}	t        | j                  || j                  d         }
t	        |
||	      S 7 ;w)a]  
        Asynchronously create the VerificationCheckInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        rk   Nr&   rl   rq   )rx   r   rf   r7   r   rs   s              r"   create_with_http_info_asyncz1VerificationCheckList.create_with_http_info_async  sr     * /3.@.@-- /A /
 )
%g -MM7}0M
 k7SS)
s   AA<Ac                      y)r<   z(<Twilio.Verify.V2.VerificationCheckList>r    )r8   s    r"   rG   zVerificationCheckList.__repr__7  s     :r!   )r   r   r   r   rI   r4   r
   unsetr   rH   tupleri   r   ro   r   ru   rx   rz   r|   rG   rJ   rK   s   @r"   rM   rM   W   s=   Y Yc Y$ $*<<!'/5||%+\\$*LL/5||"
CK "
 #v+"
  V,	"

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

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

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

 c6k"
 S&[!
  V,
 
#
F $*<<!'/5||%+\\$*LL/5|| TCK  T #v+ T  V,	 T
 c6k" T S&[! T  V, T 
 TD:# :r!   rM   N)__doc__r   typingr   r   r   r   r   twilio.baser	   r
   twilio.base.api_responser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rM   r    r!   r"   <module>r      sB     3 3 + 0 : 2 ';Q 0 ;Q|f:L f:r!   