
    Dh{                         S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
Jr  S SKJr  S SKJrJr  S S	KJrJrJrJrJrJr  S S
KJrJrJrJrJr  \(       a  S SKJr   " S S\S   \S   \S   5      r g)    )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                      \ rS rSr% SrSr\\S      \S'    " S S\	5      r
 " S S\	5      r " S	 S
\	5      r " S S\	5      r " S S\	5      r " S S\	5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r\ \!   \S-'    \ \!   \S.'    \"\S/'    \!\S0'    \ \
   \S1'    \ \#S2      \S3'    \$\S4'    \%\!\!4   \S5'    \S   \S6'    \ \   \S7'    \ \   \S8'    \ \   \S9'    \ \!   \S:'    \ \   \S;'   \S<   \S='    \S>   \S?'    \ \!   \S@'    \ \!   \SA'    \ \   \SB'    \&SC\!SD\'SE   SFS 4SG j5       r(\)\*SC\!SD\'SE   SFS 4SH j5       5       r+\)SD\'SE   SFS 4SI j5       r+\," SJ5      SD\'SE   SFS 4SK j5       r+\&SC\!SD\'SE   SFS 4SL j5       r-\)\*SC\!SD\'SE   SFS 4SM j5       5       r.\)SD\'SE   SFS 4SN j5       r.\," SO5      SD\'SE   SFS 4SP j5       r.\&SD\'SQ   SFS 4SR j5       r/\&SD\'SQ   SFS 4SS j5       r0\&SD\'ST   SF\1S    4SU j5       r2\&SD\'ST   SF\1S    4SV j5       r3\&S0\!SD\'SW   SFS 4SX j5       r4\&S0\!SD\'SW   SFS 4SY j5       r5\&SC\!SD\'SZ   SFS 4S[ j5       r6\)\*SC\!SD\'SZ   SFS 4S\ j5       5       r7\)SD\'SZ   SFS 4S] j5       r7\," S^5      SD\'SZ   SFS 4S_ j5       r7\&SC\!SD\'SZ   SFS 4S` j5       r8\)\*SC\!SD\'SZ   SFS 4Sa j5       5       r9\)SD\'SZ   SFS 4Sb j5       r9\," Sc5      SD\'SZ   SFS 4Sd j5       r9\&S0\!SD\'Se   SFS 4Sf j5       r:\&S0\!SD\'Se   SFS 4Sg j5       r;\
\\\\\Sh.r<Sir=gj)kVerificationSession   a  
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://docs.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://docs.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                   >    \ rS rSr% \\S      \S'    \\   \S'   Srg)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reason N)	__name__
__module____qualname____firstlineno__r   r   __annotations__str__static_attributes__r4       h/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/identity/_verification_session.py	LastErrorr   /   s2    '
 	
.	 	r<   r>   c                       \ rS rSr%  " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r	\
\   \S'   \
\   \S'   \
\   \S'   \
\   \S'   \
\	   \S'   \\\\\	S.rSrg)VerificationSession.OptionsO   c                   h    \ rS rSr% \\\S         \S'    \\   \S'    \\   \S'    \\   \S'   Sr	g)	$VerificationSession.Options.DocumentP   driving_licenseid_cardpassportallowed_typesrequire_id_numberrequire_live_capturerequire_matching_selfier4   N)
r5   r6   r7   r8   r   r   r   r9   boolr;   r4   r<   r=   DocumentrC   P   sU    #WEFG   (~- #+4.0 &.d^3r<   rN   c                   &    \ rS rSr% \\   \S'   Srg)!VerificationSession.Options.Emaild   require_verificationr4   Nr5   r6   r7   r8   r   rM   r9   r;   r4   r<   r=   EmailrP   d       "*4.0r<   rT   c                       \ rS rSrSrg)$VerificationSession.Options.IdNumberj   r4   N)r5   r6   r7   r8   r;   r4   r<   r=   IdNumberrW   j   s    r<   rY   c                   D    \ rS rSr% \\S      \S'    \\S      \S'   Srg)$VerificationSession.Options.Matchingm   )nonesimilardobnamer4   N)r5   r6   r7   r8   r   r   r9   r;   r4   r<   r=   Matchingr[   m   s0    '"3455 7#4566r<   ra   c                   &    \ rS rSr% \\   \S'   Srg)!VerificationSession.Options.Phonew   rR   r4   NrS   r4   r<   r=   Phonerc   w   rU   r<   re   documentemail	id_numbermatchingphone)rf   rg   rh   ri   rj   r4   N)r5   r6   r7   r8   r   rN   rT   rY   ra   re   r   r9   _inner_class_typesr;   r4   r<   r=   Optionsr@   O   s    	| 	(	L 		| 		| 		L 	 8$$H%%8$$ ! 
r<   rl   c                   8    \ rS rSr% \\   \S'    \\   \S'   Srg)#VerificationSession.ProvidedDetails   rg   rj   r4   Nr5   r6   r7   r8   r   r:   r9   r;   r4   r<   r=   ProvidedDetailsrn      s"    }	 }	r<   rq   c                   &    \ rS rSr% \S   \S'   Srg)VerificationSession.Redaction   )
processingredactedstatusr4   N)r5   r6   r7   r8   r   r9   r;   r4   r<   r=   	Redactionrs      s    011	r<   rx   c                   ,    \ rS rSr% \\S'    \\S'   Srg)!VerificationSession.RelatedPerson   accountpersonr4   Nr5   r6   r7   r8   r:   r9   r;   r4   r<   r=   RelatedPersonrz          	 	r<   r   c                      \ rS rSr%  " S S\5      r " S S\5      r\\   \S'    \\   \S'    \\	   \S'    \\	   \S	'    \\	   \S
'    \\
S      \S'    \\	   \S'    \\	   \S'    \\
S      \S'    \\	   \S'    \\	   \S'    \\S.rSrg)#VerificationSession.VerifiedOutputs   c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg	)
+VerificationSession.VerifiedOutputs.Address   citycountryline1line2postal_codestater4   Nrp   r4   r<   r=   Addressr      sf    3- c]" C=  C=  "#& C= r<   r   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg)'VerificationSession.VerifiedOutputs.Dob   daymonthyearr4   N)r5   r6   r7   r8   r   intr9   r;   r4   r<   r=   Dobr      s3    # C=  3-r<   r   addressr_   rg   
first_namerh   )br_cpfsg_nricus_ssnid_number_type	last_namerj   )z
[redacted]femalemaleunknownsexunparsed_place_of_birthunparsed_sex)r   r_   r4   N)r5   r6   r7   r8   r   r   r   r   r9   r:   r   rk   r;   r4   r<   r=   VerifiedOutputsr      s    	l 	4	, 	 '""	 c]	 }	 SM!	 C= 	 !)F!GHH	 C= 	 }	 gGHII	 "*#.	 sm#	 *1=r<   r   c                   ,    \ rS rSr% \\\      \S'   Srg) VerificationSession.CancelParams   expandr4   N	r5   r6   r7   r8   r   r   r:   r9   r;   r4   r<   r=   CancelParamsr          DI&&	r<   r   c                       \ rS rSr% \\   \S'    \\\      \S'    \\\\4      \S'    \S   \S'    \S   \S'    \\   \S	'    \S
   \S'    \\   \S'    \\	S      \S'    \\   \S'   Sr
g) VerificationSession.CreateParamsi  client_reference_idr   metadata'VerificationSession.CreateParamsOptionsoptions/VerificationSession.CreateParamsProvidedDetailsprovided_detailsrelated_customer-VerificationSession.CreateParamsRelatedPersonrelated_person
return_urlrf   rh   typeverification_flowr4   N)r5   r6   r7   r8   r   r:   r9   r   r   r   r;   r4   r<   r=   CreateParamsr     s    (--	 DI&&	 d38n--	 FGG	 &=
 	
	 &c**	 $;
 	
	  $$	 '"9:;;	 's++	r<   r   c                   &    \ rS rSr% \S   \S'   Srg)r   i/  z;Literal['']|VerificationSession.CreateParamsOptionsDocumentrf   r4   Nr5   r6   r7   r8   r   r9   r;   r4   r<   r=   CreateParamsOptions'VerificationSession.CreateParamsOptions/      I
 	
	r<   r   c                   h    \ rS rSr% \\\S         \S'    \\   \S'    \\   \S'    \\   \S'   Sr	g)	/VerificationSession.CreateParamsOptionsDocumenti7  rE   rI   rJ   rK   rL   r4   N
r5   r6   r7   r8   r   r   r   r9   rM   r;   r4   r<   r=   CreateParamsOptionsDocumentr   7  X    "ABC
 	
	 't,,	 *$//	 "-T!22	r<   r   c                   8    \ rS rSr% \\   \S'    \\   \S'   Srg)r   iK  rg   rj   r4   Nr5   r6   r7   r8   r   r:   r9   r;   r4   r<   r=   CreateParamsProvidedDetails/VerificationSession.CreateParamsProvidedDetailsK  $    3	 3	r<   r   c                   ,    \ rS rSr% \\S'    \\S'   Srg)r   iU  r|   r}   r4   Nr~   r4   r<   r=   CreateParamsRelatedPerson-VerificationSession.CreateParamsRelatedPersonU  r   r<   r   c                       \ rS rSr% \\   \S'    \S   \S'    \\   \S'    \\\      \S'    \\   \S'    \\   \S'   \\   \S	'    \\	S
      \S'   Sr
g)VerificationSession.ListParamsi_  r   z)VerificationSession.ListParamsCreated|intcreatedending_beforer   limitr   starting_aftercanceledru   requires_inputverifiedrw   r4   N)r5   r6   r7   r8   r   r:   r9   r   r   r   r;   r4   r<   r=   
ListParamsr   _  s    (--	 HII	 #3''	 DI&&	 3	 &c**#C((	 JK
 	
	r<   r   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)%VerificationSession.ListParamsCreatedi  gtgteltlter4   N)r5   r6   r7   r8   r   r   r9   r;   r4   r<   r=   ListParamsCreatedr     sH    	 	 	 	r<   r   c                       \ rS rSr% \\\      \S'    \\\\4      \S'    \S   \S'    \S   \S'    \\	S      \S	'   S
r
g) VerificationSession.ModifyParamsi  r   r   'VerificationSession.ModifyParamsOptionsr   /VerificationSession.ModifyParamsProvidedDetailsr   r   r   r4   N)r5   r6   r7   r8   r   r   r:   r9   r   r   r;   r4   r<   r=   ModifyParamsr     sr    DI&&	 d38n--	 FGG	 &=
 	
	 '"9:;;	r<   r   c                   &    \ rS rSr% \S   \S'   Srg)r   i  z;Literal['']|VerificationSession.ModifyParamsOptionsDocumentrf   r4   Nr   r4   r<   r=   ModifyParamsOptions'VerificationSession.ModifyParamsOptions  r   r<   r   c                   h    \ rS rSr% \\\S         \S'    \\   \S'    \\   \S'    \\   \S'   Sr	g)	/VerificationSession.ModifyParamsOptionsDocumenti  rE   rI   rJ   rK   rL   r4   Nr   r4   r<   r=   ModifyParamsOptionsDocumentr     r   r<   r   c                   8    \ rS rSr% \\   \S'    \\   \S'   Srg)r   i  rg   rj   r4   Nr   r4   r<   r=   ModifyParamsProvidedDetails/VerificationSession.ModifyParamsProvidedDetails  r   r<   r   c                   ,    \ rS rSr% \\\      \S'   Srg) VerificationSession.RedactParamsi  r   r4   Nr   r4   r<   r=   RedactParamsr     r   r<   r   c                   ,    \ rS rSr% \\\      \S'   Srg)"VerificationSession.RetrieveParamsi  r   r4   Nr   r4   r<   r=   RetrieveParamsr     r   r<   r   r   client_secretr   id
last_errorr   last_verification_reportlivemoder   objectr   r   	redactionr   r   r   rw   )rf   rh   r   r   urlr   verified_outputssessionparamsr   returnc                 d    [        SU R                  SSR                  [        U5      S9US95      $ )0  
A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).

Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
r   post3/v1/identity/verification_sessions/{session}/cancelr   r   r   _static_requestformatr   clsr   r   s      r=   _cls_cancelVerificationSession._cls_cancel&  sK     !ELL'0 M     	
 		
r<   c                     gr   Nr4   r   r   s     r=   cancelVerificationSession.cancel:  s     	r<   c                     gr  r4   selfr   s     r=   r  r  F  s     	r<   r
  c                     [        SU R                  SSR                  [        U R	                  S5      5      S9US95      $ )r   r   r  r  r   r  r  r   _requestr  r   getr  s     r=   r  r  Q  sQ     !MMELL'7 M    	
 		
r<   c                    #    [        SU R                  SSR                  [        U5      S9US9I Sh  vN 5      $  N7f)r   r   r  r  r  r  Nr   _static_request_asyncr  r   r  s      r=   _cls_cancel_async%VerificationSession._cls_cancel_asynce  sX      !++ELL'0 M   ,  	
 		
   1><
	>c                    #    g7fr  r4   r  s     r=   cancel_async VerificationSession.cancel_asyncy  s
      	   c                    #    g7fr  r4   r  s     r=   r  r     s
      	r!  r  c                    #    [        SU R                  SSR                  [        U R	                  S5      5      S9US9I Sh  vN 5      $  N7f)r   r   r  r  r   r  r  Nr   _request_asyncr  r   r  r  s     r=   r  r     s`      !%%ELL'7 M   &  	
 		
   A AA
	Ar   c           	      T    [        SU R                  SU R                  5       US95      $ )  
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://docs.stripe.com/docs/identity/verify-identity-documents)
r   r  r  )r   r  	class_urlr	  r   s     r=   createVerificationSession.create  s6     !   
 	
r<   c           	      p   #    [        SU R                  SU R                  5       US9I Sh  vN 5      $  N7f)r(  r   r  r  N)r   r  r)  r*  s     r=   create_async VerificationSession.create_async  sC      !++ ,  
 	
s   )64
	6r   c                     U R                  SU R                  5       US9n[        U[        5      (       d!  [	        S[        U5      R                  -  5      eU$ )(
Returns a list of VerificationSessions
r  r  %Expected list object from API, got %s)r  r)  
isinstancer   	TypeErrorr   r5   r	  r   results      r=   listVerificationSession.list  s`     $$MMO % 

 &*--7<((* 
 r<   c                    #    U R                  SU R                  5       US9I Sh  vN n[        U[        5      (       d!  [	        S[        U5      R                  -  5      eU$  N<7f)r1  r  r  Nr2  )r  r)  r3  r   r4  r   r5   r5  s      r=   
list_asyncVerificationSession.list_async  sm      00MMO 1 
 

 &*--7<((* 
 
s   #A$A"=A$r   c           	      x    U R                  5       < S[        U5      < 3n[        SU R                  SUUS95      $ )
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       r=   modifyVerificationSession.modify  sD     +b/:!   
 	
r<   c           	         #    U R                  5       < S[        U5      < 3n[        SU R                  SUUS9I Sh  vN 5      $  N7f)r=  r>  r   r  r  N)r)  r   r   r  r?  s       r=   modify_async VerificationSession.modify_async  sQ      +b/:!++ ,  
 	
s   ;AA
	Ar   c                 d    [        SU R                  SSR                  [        U5      S9US95      $ )f  
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://docs.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://docs.stripe.com/docs/identity/verification-sessions#redact).
r   r  3/v1/identity/verification_sessions/{session}/redactr  r  r  r  s      r=   _cls_redactVerificationSession._cls_redact   sK    2 !ELL'0 M     	
 		
r<   c                     grF  Nr4   r  s     r=   redactVerificationSession.redactD  s    4 	r<   c                     grK  r4   r  s     r=   rL  rM  `  s    2 	r<   rH  c                     [        SU R                  SSR                  [        U R	                  S5      5      S9US95      $ )rF  r   r  rG  r   r  r  r  r  s     r=   rL  rM  {  sQ    2 !MMELL'7 M    	
 		
r<   c                    #    [        SU R                  SSR                  [        U5      S9US9I Sh  vN 5      $  N7f)rF  r   r  rG  r  r  Nr  r  s      r=   _cls_redact_async%VerificationSession._cls_redact_async  sX     2 !++ELL'0 M   ,  	
 		
r  c                    #    g7frK  r4   r  s     r=   redact_async VerificationSession.redact_async  s
     4 	r!  c                    #    g7frK  r4   r  s     r=   rT  rU    s
     2 	r!  rQ  c                    #    [        SU R                  SSR                  [        U R	                  S5      5      S9US9I Sh  vN 5      $  N7f)rF  r   r  rG  r   r  r  Nr$  r  s     r=   rT  rU    s`     2 !%%ELL'7 M   &  	
 		
r&  r   c                 8    U " U40 UD6nUR                  5         U$ )
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       r=   retrieveVerificationSession.retrieve  s$     r$V$r<   c                 T   #    U " U40 UD6nUR                  5       I Sh  vN   U$  N7f)rY  N)refresh_asyncr[  s       r=   retrieve_async"VerificationSession.retrieve_async,  s2      r$V$$$&&& 	's   (&()r   r   r   r   r   r   r4   N)>r5   r6   r7   r8   __doc__r   r   r   r9   r   r>   rl   rq   rx   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r:   r   r   rM   r   classmethodr   r
  r   staticmethodr  r
   r  r  r+  r.  r   r7  r:  r@  rC  rH  rL  rQ  rT  r]  ra  rk   r;   r4   r<   r=   r   r      s   
 	( '"ABC L @9
, 9
v, L  U>, U>n~ ,~ ,\i 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	   +'+r<   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   r4   r<   r=   <module>rq     s_    B 4 * = 2 . A : A A  Gi/0-./0ir<   