
    <@g9                         d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZmZ d d	lmZmZmZmZmZmZ d d
lmZmZmZmZmZ erd dlmZ  G d ded   ed   ed         Z y)    )CreateableAPIResource)ExpandableField)
ListObject)ListableAPIResource)RequestOptions)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)ClassVarDictListOptionalcastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)VerificationReportc                      e Zd ZU dZdZeed      ed<    G d de      Z	 G d de      Z
 G d d	e      Z G d
 de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d  d!e      Z G d" d#e      Z G d$ d%e      Z G d& d'e      Zee   ed(<   	 ee   ed)<   	 eed*<   	 eed+<   	 ee	   ed,<   	 ee d-      ed.<   	 e!ed/<   	 e"eef   ed0<   	 ed   ed1<   	 ee
   ed2<   	 ee   ed3<   	 ee   ed4<   	 ee   ed5<   	 ed6   ed7<   	 ed8   ed9<   	 ee   ed:<   	 ee   ed;<   	 ee   ed<<   	 e#d=ed>e$d?   d@d fdA       Z%e&e'd=ed>e$d?   d@d fdB              Z(e&d>e$d?   d@d fdC       Z( e)dD      d>e$d?   d@d fdE       Z(e#d=ed>e$d?   d@d fdF       Z*e&e'd=ed>e$d?   d@d fdG              Z+e&d>e$d?   d@d fdH       Z+ e)dI      d>e$d?   d@d fdJ       Z+e#d>e$dK   d@d fdL       Z,e#d>e$dK   d@d fdM       Z-e#d>e$dN   d@e.d    fdO       Z/e#d>e$dN   d@e.d    fdP       Z0e#d+ed>e$dQ   d@d fdR       Z1e#d+ed>e$dQ   d@d fdS       Z2e#d=ed>e$dT   d@d fdU       Z3e&e'd=ed>e$dT   d@d fdV              Z4e&d>e$dT   d@d fdW       Z4 e)dX      d>e$dT   d@d fdY       Z4e#d=ed>e$dT   d@d fdZ       Z5e&e'd=ed>e$dT   d@d fd[              Z6e&d>e$dT   d@d fd\       Z6 e)d]      d>e$dT   d@d fd^       Z6e#d+ed>e$d_   d@d fd`       Z7e#d+ed>e$d_   d@d fda       Z8e	e
eeedbZ9yc)dVerificationSessiona  
    A VerificationSession guides you through the process of collecting and verifying the identities
    of your users. It contains details about the type of verification, such as what [verification
    check](https://stripe.com/docs/identity/verification-checks) to perform. Only create one VerificationSession for
    each verification in your system.

    A VerificationSession transitions through [multiple
    statuses](https://stripe.com/docs/identity/how-sessions-work) throughout its lifetime as it progresses through
    the verification flow. The VerificationSession contains the user's verified data after
    verification checks are complete.

    Related guide: [The Verification Sessions API](https://stripe.com/docs/identity/verification-sessions)
    zidentity.verification_sessionOBJECT_NAMEc                   6    e Zd ZU eed      ed<   	 ee   ed<   y)VerificationSession.LastError)	abandonedconsent_declinedcountry_not_supporteddevice_not_supporteddocument_expireddocument_type_not_supporteddocument_unverified_otheremail_unverified_otheremail_verification_declined$id_number_insufficient_document_dataid_number_mismatchid_number_unverified_otherphone_unverified_otherphone_verification_declinedselfie_document_missing_photoselfie_face_mismatchselfie_manipulatedselfie_unverified_otherunder_supported_agecodereasonN)__name__
__module____qualname__r   r   __annotations__str     d/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/identity/_verification_session.py	LastErrorr   /   s2    '
 	
.	 	r8   r:   c                       e Zd ZU  G d de      Z G d de      Z G d de      Z G d de      Zee   e	d	<   ee   e	d
<   ee   e	d<   ee   e	d<   eeeedZ
y)VerificationSession.Optionsc                   `    e Zd ZU eeed         ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)$VerificationSession.Options.Documentdriving_licenseid_cardpassportallowed_typesrequire_id_numberrequire_live_capturerequire_matching_selfieN)r2   r3   r4   r   r   r   r5   boolr7   r8   r9   Documentr>   P   sU    #WEFG   (~- #+4.0 &.d^3r8   rH   c                       e Zd ZU ee   ed<   y)!VerificationSession.Options.Emailrequire_verificationNr2   r3   r4   r   rG   r5   r7   r8   r9   EmailrJ   d       "*4.0r8   rM   c                       e Zd Zy)$VerificationSession.Options.IdNumberN)r2   r3   r4   r7   r8   r9   IdNumberrP   j   s    r8   rQ   c                       e Zd ZU ee   ed<   y)!VerificationSession.Options.PhonerK   NrL   r7   r8   r9   PhonerS   m   rN   r8   rT   documentemail	id_numberphone)rU   rV   rW   rX   N)r2   r3   r4   r   rH   rM   rQ   rT   r   r5   _inner_class_typesr7   r8   r9   Optionsr<   O   sr    	| 	(	L 		| 		L 	 8$$H%% !	
r8   rZ   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)#VerificationSession.ProvidedDetailsrV   rX   Nr2   r3   r4   r   r6   r5   r7   r8   r9   ProvidedDetailsr\   ~   s"    }	 }	r8   r^   c                       e Zd ZU ed   ed<   y)VerificationSession.Redaction)
processingredactedstatusN)r2   r3   r4   r   r5   r7   r8   r9   	Redactionr`      s    011	r8   rd   c                       e Zd ZU  G d de      Z G d de      Zee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed	<   	 ee	d
      ed<   	 ee   ed<   	 ee   ed<   	 eedZ
y)#VerificationSession.VerifiedOutputsc                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)+VerificationSession.VerifiedOutputs.Addresscitycountryline1line2postal_codestateNr]   r7   r8   r9   Addressrh      sf    3- c]" C=  C=  "#& C= r8   ro   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)'VerificationSession.VerifiedOutputs.DobdaymonthyearN)r2   r3   r4   r   intr5   r7   r8   r9   Dobrq      s3    # C=  3-r8   rv   addressdobrV   
first_namerW   )br_cpfsg_nricus_ssnid_number_type	last_namerX   )rw   rx   N)r2   r3   r4   r   ro   rv   r   r5   r6   r   rY   r7   r8   r9   VerifiedOutputsrf      s    	l 	4	, 	 '""	 c]	 }	 SM!	 C= 	 !)F!GHH	 C= 	 }	 *1=r8   r   c                   $    e Zd ZU eee      ed<   y) VerificationSession.CancelParamsexpandNr2   r3   r4   r   r   r6   r5   r7   r8   r9   CancelParamsr          DI&&	r8   r   c                       e Zd ZU ee   ed<   	 eee      ed<   	 eeeef      ed<   	 ed   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed	<   	 eed
      ed<   	 ee   ed<   y) VerificationSession.CreateParamsclient_reference_idr   metadata'VerificationSession.CreateParamsOptionsoptions/VerificationSession.CreateParamsProvidedDetailsprovided_detailsrelated_customer
return_urlrU   rW   typeverification_flowN)	r2   r3   r4   r   r6   r5   r   r   r   r7   r8   r9   CreateParamsr      s    (--	 DI&&	 d38n--	 FGG	 &=
 	
	 &c**	  $$	 '"9:;;	 's++	r8   r   c                       e Zd ZU ed   ed<   y)r   z;Literal['']|VerificationSession.CreateParamsOptionsDocumentrU   Nr2   r3   r4   r   r5   r7   r8   r9   CreateParamsOptionsz'VerificationSession.CreateParamsOptions      I
 	
	r8   r   c                   `    e Zd ZU eeed         ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)/VerificationSession.CreateParamsOptionsDocumentr?   rC   rD   rE   rF   Nr2   r3   r4   r   r   r   r5   rG   r7   r8   r9   CreateParamsOptionsDocumentr     X    "ABC
 	
	 't,,	 *$//	 "-T!22	r8   r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r   rV   rX   Nr2   r3   r4   r   r6   r5   r7   r8   r9   CreateParamsProvidedDetailsz/VerificationSession.CreateParamsProvidedDetails#  $    3	 3	r8   r   c                       e Zd ZU ee   ed<   	 ed   ed<   	 ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   ee   ed<   	 eed	      ed
<   y)VerificationSession.ListParamsr   z)VerificationSession.ListParamsCreated|intcreatedending_beforer   limitr   starting_aftercanceledra   requires_inputverifiedrc   N)	r2   r3   r4   r   r6   r5   r   ru   r   r7   r8   r9   
ListParamsr   -  s    (--	 HII	 #3''	 DI&&	 3	 &c**#C((	 JK
 	
	r8   r   c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)%VerificationSession.ListParamsCreatedgtgteltlteN)r2   r3   r4   r   ru   r5   r7   r8   r9   ListParamsCreatedr   N  sH    	 	 	 	r8   r   c                   |    e Zd ZU eee      ed<   	 eeeef      ed<   	 ed   ed<   	 ed   ed<   	 eed      ed<   y	)
 VerificationSession.ModifyParamsr   r   'VerificationSession.ModifyParamsOptionsr   /VerificationSession.ModifyParamsProvidedDetailsr   r   r   N)	r2   r3   r4   r   r   r6   r5   r   r   r7   r8   r9   ModifyParamsr   `  sr    DI&&	 d38n--	 FGG	 &=
 	
	 '"9:;;	r8   r   c                       e Zd ZU ed   ed<   y)r   z;Literal['']|VerificationSession.ModifyParamsOptionsDocumentrU   Nr   r7   r8   r9   ModifyParamsOptionsz'VerificationSession.ModifyParamsOptionsx  r   r8   r   c                   `    e Zd ZU eeed         ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)/VerificationSession.ModifyParamsOptionsDocumentr?   rC   rD   rE   rF   Nr   r7   r8   r9   ModifyParamsOptionsDocumentr     r   r8   r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r   rV   rX   Nr   r7   r8   r9   ModifyParamsProvidedDetailsz/VerificationSession.ModifyParamsProvidedDetails  r   r8   r   c                   $    e Zd ZU eee      ed<   y) VerificationSession.RedactParamsr   Nr   r7   r8   r9   RedactParamsr     r   r8   r   c                   $    e Zd ZU eee      ed<   y)"VerificationSession.RetrieveParamsr   Nr   r7   r8   r9   RetrieveParamsr     r   r8   r   r   client_secretr   id
last_errorr   last_verification_reportlivemoder   objectr   r   	redactionr   r   rc   )rU   rW   r   r   urlr   verified_outputssessionparamsr   returnc                 p    t        d| j                  ddj                  t        |            |            S )>  
        A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).

        Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
        r   post3/v1/identity/verification_sessions/{session}/cancelr   r   r   _static_requestformatr   clsr   r   s      r9   _cls_cancelzVerificationSession._cls_cancel  sK     !ELL'0 M     	
 		
r8   c                      yr   Nr7   r   r   s     r9   cancelzVerificationSession.cancel  s     	r8   c                      yr   r7   selfr   s     r9   r   zVerificationSession.cancel  s     	r8   r   c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r   r   r   r   r   r   r   r   _requestr   r   getr   s     r9   r   zVerificationSession.cancel  sQ     !MMELL'7 M    	
 		
r8   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r   r   r   r   r   r   Nr   _static_request_asyncr   r   r   s      r9   _cls_cancel_asyncz%VerificationSession._cls_cancel_async2  sY      !++ELL'0 M   ,  	
 		
   7AA
	Ac                    K   ywr   r7   r   s     r9   cancel_asyncz VerificationSession.cancel_asyncF  s      	   c                    K   ywr   r7   r   s     r9   r   z VerificationSession.cancel_asyncR  s      	r   r   c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r   r   r   r   r   r   r   Nr   _request_asyncr   r   r   r   s     r9   r   z VerificationSession.cancel_async]  sa      !%%ELL'7 M   &  	
 		
   AAA
		Ar   c                 Z    t        d| j                  d| j                         |            S )  
        Creates a VerificationSession object.

        After the VerificationSession is created, display a verification modal using the session client_secret or send your users to the session's url.

        If your API key is in test mode, verification checks won't actually process, though everything else will occur as if in live mode.

        Related guide: [Verify your users' identity documents](https://stripe.com/docs/identity/verify-identity-documents)
        r   r   r   )r   r   	class_urlr   r   s     r9   createzVerificationSession.createq  s6     !   
 	
r8   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r   r   r   r   N)r   r   r   r   s     r9   create_asyncz VerificationSession.create_async  sD      !++ ,  
 	
s   ,97
	9r   c                     | j                  d| j                         |      }t        |t              s!t	        dt        |      j                  z        |S )8
        Returns a list of VerificationSessions
        r   r   %Expected list object from API, got %s)r   r   
isinstancer   	TypeErrorr   r2   r   r   results      r9   listzVerificationSession.list  s]     $$MMO % 

 &*-7<((* 
 r8   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)r   r   r   Nr   )r   r   r   r   r   r   r2   r  s      r9   
list_asynczVerificationSession.list_async  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"r   c                 z    | j                         dt        |      }t        d| j                  d||            S )
        Updates a VerificationSession object.

        When the session status is requires_input, you can use this method to update the
        verification check and options.
        /r   r   r   )r   r   r   r   r   r   r   r   s       r9   modifyzVerificationSession.modify  sD     +b/:!   
 	
r8   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r  r  r   r   r   N)r   r   r   r   r	  s       r9   modify_asyncz VerificationSession.modify_async  sR      +b/:!++ ,  
 	
s   <A	A
	A	r   c                 p    t        d| j                  ddj                  t        |            |            S )  
        Redact a VerificationSession to remove all collected information from Stripe. This will redact
        the VerificationSession and all objects related to it, including VerificationReports, Events,
        request logs, etc.

        A VerificationSession object can be redacted when it is in requires_input or verified
        [status](https://stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
        state will automatically cancel it.

        The redaction process may take up to four days. When the redaction process is in progress, the
        VerificationSession's redaction.status field will be set to processing; when the process is
        finished, it will change to redacted and an identity.verification_session.redacted event
        will be emitted.

        Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the
        fields that contain personal data will be replaced by the string [redacted] or a similar
        placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
        used for any purpose.

        [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
        r   r   3/v1/identity/verification_sessions/{session}/redactr   r   r   r   s      r9   _cls_redactzVerificationSession._cls_redact  sK    2 !ELL'0 M     	
 		
r8   c                      yr  Nr7   r   s     r9   redactzVerificationSession.redact  s    4 	r8   c                      yr  r7   r   s     r9   r  zVerificationSession.redact-  s    2 	r8   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r   r   r  r   r   r   r   r   s     r9   r  zVerificationSession.redactH  sQ    2 !MMELL'7 M    	
 		
r8   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r   r   r  r   r   Nr   r   s      r9   _cls_redact_asyncz%VerificationSession._cls_redact_asyncl  sY     2 !++ELL'0 M   ,  	
 		
r   c                    K   ywr  r7   r   s     r9   redact_asyncz VerificationSession.redact_async  s     4 	r   c                    K   ywr  r7   r   s     r9   r  z VerificationSession.redact_async  s     2 	r   r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r   r   r  r   r   r   Nr   r   s     r9   r  z VerificationSession.redact_async  sa     2 !%%ELL'7 M   &  	
 		
r   r   c                 8     | |fi |}|j                          |S )
        Retrieves the details of a VerificationSession that was previously created.

        When the session status is requires_input, you can use this method to retrieve a valid
        client_secret or url to allow re-submission.
        )refreshr   r   r   instances       r9   retrievezVerificationSession.retrieve  s$     r$V$r8   c                 T   K    | |fi |}|j                          d{    |S 7 w)r  N)refresh_asyncr  s       r9   retrieve_asyncz"VerificationSession.retrieve_async  s3      r$V$$$&&& 	's   (&()r   r   r   r   r   N):r2   r3   r4   __doc__r   r   r   r5   r   r:   rZ   r^   rd   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r6   ru   r   rG   r   classmethodr   r   r   staticmethodr   r
   r   r   r   r   r   r  r  r
  r  r  r  r  r  r!  r$  rY   r7   r8   r9   r   r      s   
 	( '"ABC L @-
, -
^, L I>, I>V~ &~ &Pi i (i ^ BI $~ 0i i (i ~   "#& C=  L 	G ## '7K'LMM N 38n 344 g // 	"" sm# JKK >
?? 
#  }$ // 

%+,N%O
	
 
&  &'I J	   AB	  -(
AB
	
 )
& 

%+,N%O
	
 
&  &'I J	   AB	  -.
AB
	
 /
& 
@A
	
 
* 
@A
	
 
* >?	)	* & >?	)	* & 

 &'I J
	
 
& 

 &'I J
	
 
& !
!
%+,N%O!
	!
 !
F  &'I J	  4 AB	 4 -(!
AB!
	!
 )!
F !
!
%+,N%O!
	!
 !
F  &'I J	  4 AB	 4 -.!
AB!
	!
 /!
F  &'K L	   &'K L	   ++r8   r   N)!stripe._createable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   stripe._updateable_api_resourcer	   stripe._utilr
   r   typingr   r   r   r   r   r   typing_extensionsr   r   r   r   r   $stripe.identity._verification_reportr   r   r7   r8   r9   <module>r3     s_    B 4 * = 2 . A : A A  Gu/0-./0ur8   