
    g^                         S r SSKJr  SSKJrJrJrJrJr  SSKJ	r	J
r
Jr  SSKJr  SSKJr  SSKJr  SSKJr   " S	 S
\5      r " S S\5      r " S S\5      rg)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	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc            
          ^  \ rS rSr " S S\5      r " S S\5      r " S S\5      r  SS\S	\	\
\4   S
\
S\\
   4U 4S jjjr\SS j5       rSS jrSS jrSS jr    SS jrS\
4S jrSrU =r$ )VerificationInstance   c                   (    \ rS rSrSrSrSrSrSrSr	g)	VerificationInstance.Channel   smscallemailwhatsappsna N)
__name__
__module____qualname____firstlineno__SMSCALLEMAILWHATSAPPSNA__static_attributes__r       r/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/verify/v2/service/verification.pyChannelr      s    r&   r(   c                       \ rS rSrSrSrSrg)VerificationInstance.RiskCheck!   enabledisabler   N)r   r   r   r   ENABLEDISABLEr%   r   r&   r'   	RiskCheckr*   !   s    r&   r0   c                       \ rS rSrSrSrSrg)VerificationInstance.Status%   canceledapprovedr   N)r   r   r   r   CANCELEDAPPROVEDr%   r   r&   r'   Statusr2   %   s    r&   r8   versionpayloadservice_sidsidc                 P  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l	        UR                  S5      U l
        UR                  S	5      U l        UR                  S
5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l        UR                  S5      U l        UR                  S5      U l        UU=(       d    U R                  S.U l        S U l        g )Nr<   r;   account_sidtochannelstatusvalidlookupamountpayeesend_code_attemptsdate_createddate_updatedr   urlr;   r<   )super__init__getr<   r;   r>   r?   r@   rA   rB   rC   rD   rE   rF   r	   iso8601_datetimerG   rH   r   rI   	_solution_context)selfr9   r:   r;   r<   	__class__s        r'   rL   VerificationInstance.__init__;   sO    	!")++e"4*1++m*D*1++m*D!(T!2AHYAW%,[[%:%,[[%9
3:;;x3H%,[[%:$+KK$8
EL[[ F
 1<0L0LKK'1
 1<0L0LKK'1
 18E0B")++e"4 '?$((
 8<r&   returnc                     U R                   c4  [        U R                  U R                  S   U R                  S   S9U l         U R                   $ )z
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context

:returns: VerificationContext for this VerificationInstance
r;   r<   rJ   )rP   VerificationContext_versionrO   rQ   s    r'   _proxyVerificationInstance._proxy`   sE     == / NN=9NN5)DM
 }}r&   c                 6    U R                   R                  5       $ )M
Fetch the VerificationInstance


:returns: The fetched VerificationInstance
)rY   fetchrX   s    r'   r]   VerificationInstance.fetchp   s     {{  ""r&   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)g
Asynchronous coroutine to fetch the VerificationInstance


:returns: The fetched VerificationInstance
N)rY   fetch_asyncrX   s    r'   ra    VerificationInstance.fetch_asyncy   s       [[,,....s   '%'c                 4    U R                   R                  US9$ )]
Update the VerificationInstance

:param status:

:returns: The updated VerificationInstance
rA   )rY   updaterQ   rA   s     r'   rf   VerificationInstance.update   s#     {{!! " 
 	
r&   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)w
Asynchronous coroutine to update the VerificationInstance

:param status:

:returns: The updated VerificationInstance
re   N)rY   update_asyncrg   s     r'   rk   !VerificationInstance.update_async   s0      [[-- . 
 
 	
 
s   &$&c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r'   	<genexpr>0VerificationInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z*<Twilio.Verify.V2.VerificationInstance {}>joinrO   itemsrs   rQ   contexts     r'   __repr__VerificationInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr&   )rP   rO   r>   rD   r@   rG   rH   rC   rE   rF   r;   r<   r   rA   r?   rI   rB   )N)rT   rV   )rT   r   )rA   r2   rT   r   )r   r   r   r   objectr(   r0   r8   r   r   strr   r   rL   propertyrY   r]   ra   rf   rk   r   r%   __classcell__rR   s   @r'   r   r      s    & F  . "#<#< c3h#< 	#<
 c]#< #<J  #/


3
	
L# L Lr&   r   c                      ^  \ rS rSrS\S\S\4U 4S jjrS\4S jrS\4S jr	S	S
S\4S jr
S	S
S\4S jrS\4S jrSrU =r$ )rV      r9   r;   r<   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)aD  
Initialize the VerificationContext

: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 update the resource from.
:param sid: The Twilio-provided string that uniquely identifies the Verification resource to update.
rJ   z+/Services/{service_sid}/Verifications/{sid}Nr   rK   rL   rO   rs   _uri)rQ   r9   r;   r<   rR   s       r'   rL   VerificationContext.__init__   sD     	! '
 BHH 
nn
	r&   rT   c                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   U R                  S   S9$ )r\   application/jsonAcceptGETmethoduriheadersr;   r<   rJ   )r   ofrW   r]   r   r   rO   rQ   r   r:   s      r'   r]   VerificationContext.fetch   si     ))B-.--%%U		7%S#MM}5u%	
 	
r&   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   U R                  S   S9$  N47f)	r`   r   r   r   r   Nr;   r<   rJ   )r   r   rW   ra   r   r   rO   r   s      r'   ra   VerificationContext.fetch_async   s}      ))B-.11dii 2 
 
 $MM}5u%	
 	
	
s   AA=A;5A=rA   r2   c                    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  UU R                  S   U R                  S	   S
9$ )rd   r8   !application/x-www-form-urlencodedContent-Typer   r   POSTr   r   datar   r;   r<   rJ   )r   r   rW   rf   r   r   rO   rQ   rA   r   r   r:   s        r'   rf   VerificationContext.update   s     yy&

 ))B-"E.--&&tyyt ' 
 $MM}5u%	
 	
r&   c                 8  #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  UU R                  S	   U R                  S
   S9$  N47f)rj   r8   r   r   r   r   r   r   Nr;   r<   rJ   )r   r   rW   rk   r   r   rO   r   s        r'   rk    VerificationContext.update_async  s      yy&

 ))B-"E.22tyyt 3 
 
 $MM}5u%	
 	
	
s   A!B#B$5Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rn   ro   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frq   rr   rt   s      r'   rx   /VerificationContext.__repr__.<locals>.<genexpr>-  rz   r{   z)<Twilio.Verify.V2.VerificationContext {}>r|   r   s     r'   r   VerificationContext.__repr__'  s6     ((SDNN<P<P<RSS:AA'JJr&   rO   r   )r   r   r   r   r   r   rL   r   r]   ra   rf   rk   r   r%   r   r   s   @r'   rV   rV      sv    
 
c 
 
&
+ 
*
#7 
.
: 
?S 
>
3
	
BK# K Kr&   rV   c            '         ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\S\S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\
\
4   S\	\
\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	S\
4   S\	\\
4   S\4&S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\S\S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\
\
4   S\	\
\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	S\
4   S\	\\
4   S\4&S jjrS\S\4S jrS\S\4S jrS\4S jrSrU =r$ ) VerificationListi1  r9   r;   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the VerificationList

: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}/VerificationsNr   r   )rQ   r9   r;   rR   s      r'   rL   VerificationList.__init__3  s=     	! ;
 <BBTT^^T	r&   r?   r@   custom_friendly_namecustom_messagesend_digitslocalecustom_coderD   rE   rate_limitschannel_configurationapp_hashtemplate_sidtemplate_custom_substitutions	device_ipenable_sna_client_token
risk_checkr*   tagsrT   c                    [         R                  " 0 SU_SU_SU_SU_SU_SU_SU_SU_S	U	_S
[        R                  " U
5      _S[        R                  " U5      _SU_SU_SU_SU_S[        R                  " U5      _SU_SU0E5      n[         R                  " SS05      nSUS'   SUS'   U R
                  R                  SU R                  UUS9n[        U R
                  UU R                  S   S9$ )u  
Create the VerificationInstance

:param to: The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
:param channel: The verification method to use. One of: [`email`](https://www.twilio.com/docs/verify/email), `sms`, `whatsapp`, `call`, `sna` or `auto`.
:param custom_friendly_name: A custom user defined friendly name that overwrites the existing one in the verification message
:param custom_message: The text of a custom message to use for the verification.
:param send_digits: The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits).
:param locale: Locale will automatically resolve based on phone number country code for SMS, WhatsApp, and call channel verifications. It will fallback to English or the template’s default translation if the selected translation is not available. This parameter will override the automatic locale resolution. [See supported languages and more information here](https://www.twilio.com/docs/verify/supported-languages).
:param custom_code: A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive.
: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 rate_limits: The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request.
:param channel_configuration: [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields 'from' and 'from_name' are optional but if included the 'from' field must have a valid email address.
:param app_hash: Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
:param template_sid: The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only.
:param template_custom_substitutions: A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
:param device_ip: Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
:param enable_sna_client_token: An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
:param risk_check:
:param tags: A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.

:returns: The created VerificationInstance
Tor(   CustomFriendlyNameCustomMessage
SendDigitsLocale
CustomCodeAmountPayee
RateLimitsChannelConfigurationAppHashTemplateSidTemplateCustomSubstitutionsDeviceIpEnableSnaClientTokenr0   Tagsr   r   r   r   r   r   r;   r;   )
r   r   r
   r   boolean_to_stringrW   creater   r   rO   rQ   r?   r@   r   r   r   r   r   rD   rE   r   r   r   r   r   r   r   r   r   r   r   r:   s                         r'   r   VerificationList.createC  s   \ yyb7 %&:  	
 k & k &  i..{; '	(8(89N(O 8 | ./L I  '	(C(C+)!& Z'( )
0 ))^-PQR"E.--&&tyytW ' 
 $MM7}0M
 	
r&   c                   #    [         R                  " 0 SU_SU_SU_SU_SU_SU_SU_SU_S	U	_S
[        R                  " U
5      _S[        R                  " U5      _SU_SU_SU_SU_S[        R                  " U5      _SU_SU0E5      n[         R                  " SS05      nSUS'   SUS'   U R
                  R                  SU R                  UUS9I Sh  vN n[        U R
                  UU R                  S   S9$  N&7f)u  
Asynchronously create the VerificationInstance

:param to: The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
:param channel: The verification method to use. One of: [`email`](https://www.twilio.com/docs/verify/email), `sms`, `whatsapp`, `call`, `sna` or `auto`.
:param custom_friendly_name: A custom user defined friendly name that overwrites the existing one in the verification message
:param custom_message: The text of a custom message to use for the verification.
:param send_digits: The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits).
:param locale: Locale will automatically resolve based on phone number country code for SMS, WhatsApp, and call channel verifications. It will fallback to English or the template’s default translation if the selected translation is not available. This parameter will override the automatic locale resolution. [See supported languages and more information here](https://www.twilio.com/docs/verify/supported-languages).
:param custom_code: A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive.
: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 rate_limits: The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request.
:param channel_configuration: [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields 'from' and 'from_name' are optional but if included the 'from' field must have a valid email address.
:param app_hash: Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
:param template_sid: The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only.
:param template_custom_substitutions: A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
:param device_ip: Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
:param enable_sna_client_token: An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
:param risk_check:
:param tags: A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.

:returns: The created VerificationInstance
r   r(   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r0   r   r   r   r   r   r   r   Nr;   r   )
r   r   r
   r   r   rW   create_asyncr   r   rO   r   s                         r'   r   VerificationList.create_async  s    \ yyb7 %&:  	
 k & k &  i..{; '	(8(89N(O 8 | ./L I  '	(C(C+)!& Z'( )
0 ))^-PQR"E.22tyytW 3 
 
 $MM7}0M
 	
	
s   CD C>'D r<   c                 F    [        U R                  U R                  S   US9$ z
Constructs a VerificationContext

:param sid: The Twilio-provided string that uniquely identifies the Verification resource to update.
r;   rJ   rV   rW   rO   rQ   r<   s     r'   rM   VerificationList.get  %     #MMt~~m'D#
 	
r&   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r'   __call__VerificationList.__call__  r   r&   c                     g)rn   z#<Twilio.Verify.V2.VerificationList>r   rX   s    r'   r   VerificationList.__repr__  s     5r&   r   )r   r   r   r   r   r   rL   r   unsetr   r   boolr   r   r   rV   rM   r   r   r%   r   r   s   @r'   r   r   1  s   U Uc U( 4:<<-3\\*0,,%+\\*0,,%+\\$*LL-3\\7=||'-||+1<<<BLL(.7=||FLll#)<<'R
R
 R
 $CK0	R

 c6k*R
 3;'R
 c6k"R
 3;'R
 c6k"R
 S&[!R
 66>*R
  %VV^4R
 V$R
 CK(R
 (-S&['9R
  f%!R
" "'tV|!4#R
$ :FBC%R
& CK 'R
( 
)R
p 4:<<-3\\*0,,%+\\*0,,%+\\$*LL-3\\7=||'-||+1<<<BLL(.7=||FLll#)<<'R
R
 R
 $CK0	R

 c6k*R
 3;'R
 c6k"R
 3;'R
 c6k"R
 S&[!R
 66>*R
  %VV^4R
 V$R
 CK(R
 (-S&['9R
  f%!R
" "'tV|!4#R
$ :FBC%R
& CK 'R
( 
)R
h
s 
2 

C 
$7 
5# 5 5r&   r   N)__doc__r   typingr   r   r   r   r   twilio.baser	   r
   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   rV   r   r   r&   r'   <module>r      sX     3 3 6 6 8 : 2 'KL+ KL\HK/ HKVT5| T5r&   