
    DhDF                     |    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
Jr  S SKJrJrJrJr   " S S\S   5      rg	)
    )
ListObject)ListableAPIResource)RequestOptions)StripeObject)ClassVarListOptional)LiteralNotRequired	TypedDictUnpackc                      \ 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'    \\
   \S'    \\   \S'    \\S'    \\   \S'    \\S'    \S   \S'    \\   \S'   \\   \S '    \\   \S!'    \S"   \S#'    \\   \S$'    \\   \S%'    \S&\S'   S(\S    4S) j5       r\S&\S'   S(\S    4S* j5       r\S\S&\S+   S(S 4S, j5       r\S\S&\S+   S(S 4S- j5       r\
\\\\\S..r S/r!g0)1VerificationReport   a  
A VerificationReport is the result of an attempt to collect and verify data from a user.
The collection of verification checks performed is determined from the `type` and `options`
parameters used. You can find the result of each verification check performed in the
appropriate sub-resource: `document`, `id_number`, `selfie`.

Each VerificationReport contains a copy of any data collected by the user as well as
reference IDs which can be used to access collected images through the [FileUpload](https://stripe.com/docs/api/files)
API. To configure and create VerificationReports, use the
[VerificationSession](https://stripe.com/docs/api/identity/verification_sessions) API.

Related guide: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results).
zidentity.verification_reportOBJECT_NAMEc                      \ 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'    \
\	   \S'    \
\   \S'    \
\   \S'    \
\   \S'    \
\S      \S'    \S   \S'    \
\S      \S'    \
\   \S'    \
\   \S'    \\\\\	S.rSrg )!VerificationReport.Document   c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg	)
#VerificationReport.Document.Address   citycountryline1line2postal_codestate N)__name__
__module____qualname____firstlineno__r	   str__annotations____static_attributes__r       g/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/identity/_verification_report.pyAddressr      sf    3- c]" C=  C=  "#& C= r&   r(   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg)VerificationReport.Document.Dob9   daymonthyearr   Nr   r    r!   r"   r	   intr$   r%   r   r&   r'   Dobr*   9   3    # C=  3-r&   r1   c                   >    \ rS rSr% \\S      \S'    \\   \S'   Srg)!VerificationReport.Document.ErrorG   )document_expireddocument_type_not_supporteddocument_unverified_othercodereasonr   N	r   r    r!   r"   r	   r
   r$   r#   r%   r   r&   r'   Errorr4   G   s2    1  SM!r&   r<   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg)*VerificationReport.Document.ExpirationDateW   r,   r-   r.   r   Nr/   r   r&   r'   ExpirationDater>   W   r2   r&   r@   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg)&VerificationReport.Document.IssuedDatee   r,   r-   r.   r   Nr/   r   r&   r'   
IssuedDaterB   e   r2   r&   rD   addressdoberrorexpiration_datefiles
first_nameissued_dateissuing_country	last_namenumber)z
[redacted]femalemaleunknownsex
unverifiedverifiedstatusdriving_licenseid_cardpassporttypeunparsed_place_of_birthunparsed_sex)rE   rF   rG   rH   rK   r   N)r   r    r!   r"   r   r(   r1   r<   r@   rD   r	   r$   r   r#   r
   _inner_class_typesr%   r   r&   r'   Documentr      sn   	l 	4	, 		L 	 	\ 		 	 '""	 c]	 	 ".11	 S	""	 SM!	 j))	 "#&	 C= 	 	 gGHII	 011	 wGHII	 "*#.	 sm#	 -%
r&   r_   c                   j    \ rS rSr%  " S S\5      r\\   \S'    \\   \S'    \	S   \S'    S\0r
Srg	)
VerificationReport.Email   c                   >    \ rS rSr% \\S      \S'    \\   \S'   Srg)VerificationReport.Email.Error   )email_unverified_otheremail_verification_declinedr9   r:   r   Nr;   r   r&   r'   r<   rd      0    K 
 SM!r&   r<   emailrG   rS   rV   r   Nr   r    r!   r"   r   r<   r	   r#   r$   r
   r^   r%   r   r&   r'   Emailra      sP    	L 	 }	 	 011	 &u-r&   rk   c                       \ rS rSr%  " S S\5      r " S S\5      r\\   \S'    \\   \S'    \\	   \S'    \\	   \S	'    \\
S
      \S'    \\	   \S'    \
S   \S'    \\S.rSrg)VerificationReport.IdNumber   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg)VerificationReport.IdNumber.Dob   r,   r-   r.   r   Nr/   r   r&   r'   r1   rp      r2   r&   r1   c                   >    \ rS rSr% \\S      \S'    \\   \S'   Srg)!VerificationReport.IdNumber.Error   )$id_number_insufficient_document_dataid_number_mismatchid_number_unverified_otherr9   r:   r   Nr;   r   r&   r'   r<   rs      s2    2  SM!r&   r<   rF   rG   rJ   	id_number)br_cpfsg_nricus_ssnid_number_typerM   rS   rV   )rF   rG   r   N)r   r    r!   r"   r   r1   r<   r	   r$   r#   r
   r^   r%   r   r&   r'   IdNumberrm      s    	, 		L 	  c]	 	 SM!	 C= 	 !)F!GHH	 C= 	 011	 &)59r&   r}   c                   l    \ rS rSr%  " S S\5      r " S S\5      r\\   \S'   \\   \S'   \\S.r	S	r
g
)VerificationReport.Optionsi  c                   h    \ rS rSr% \\\S         \S'    \\   \S'    \\   \S'    \\   \S'   Sr	g)	#VerificationReport.Options.Documenti  rW   allowed_typesrequire_id_numberrequire_live_capturerequire_matching_selfier   N)
r   r    r!   r"   r	   r   r
   r$   boolr%   r   r&   r'   r_   r     sU    #WEFG   (~- #+4.0 &.d^3r&   r_   c                       \ rS rSrSrg)#VerificationReport.Options.IdNumberi&  r   N)r   r    r!   r"   r%   r   r&   r'   r}   r   &  s    r&   r}   documentrx   r   rx   r   N)r   r    r!   r"   r   r_   r}   r	   r$   r^   r%   r   r&   r'   Optionsr     s=    	| 	(	| 	 8$$H%%*2Jr&   r   c                   j    \ rS rSr%  " S S\5      r\\   \S'    \\   \S'    \	S   \S'    S\0r
Srg	)
VerificationReport.Phonei-  c                   >    \ rS rSr% \\S      \S'    \\   \S'   Srg)VerificationReport.Phone.Errori.  )phone_unverified_otherphone_verification_declinedr9   r:   r   Nr;   r   r&   r'   r<   r   .  rh   r&   r<   rG   phonerS   rV   r   N)r   r    r!   r"   r   r<   r	   r$   r#   r
   r^   r%   r   r&   r'   Phoner   -  sP    	L 	 	 }	 011	 &u-r&   r   c                   |    \ rS rSr%  " S S\5      r\\   \S'    \\   \S'    \\   \S'    \	S   \S'    S\0r
S	rg
)VerificationReport.SelfieiJ  c                   >    \ rS rSr% \\S      \S'    \\   \S'   Srg)VerificationReport.Selfie.ErroriK  )selfie_document_missing_photoselfie_face_mismatchselfie_manipulatedselfie_unverified_otherr9   r:   r   Nr;   r   r&   r'   r<   r   K  s2    /  SM!r&   r<   r   rG   selfierS   rV   r   Nrj   r   r&   r'   Selfier   J  sa    	L 	" 3-	 	 	 011	 &u-r&   r   c                       \ rS rSr% \\   \S'    \S   \S'    \\   \S'    \\\      \S'    \\   \S'    \\   \S'    \\	S	      \S
'    \\   \S'   Sr
g)VerificationReport.ListParamsin  client_reference_idz(VerificationReport.ListParamsCreated|intcreatedending_beforeexpandlimitstarting_afterr   r[   verification_sessionr   N)r   r    r!   r"   r   r#   r$   r   r0   r
   r%   r   r&   r'   
ListParamsr   n  s    (--	 GHH	 #3''	 DI&&	 3	 $C((	 '"9:;;	 *#..	r&   r   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)$VerificationReport.ListParamsCreatedi  gtgteltlter   N)r   r    r!   r"   r   r0   r$   r%   r   r&   r'   ListParamsCreatedr     sH    	 	 	 	r&   r   c                   ,    \ rS rSr% \\\      \S'   Srg)!VerificationReport.RetrieveParamsi  r   r   N)	r   r    r!   r"   r   r   r#   r$   r%   r   r&   r'   RetrieveParamsr     s    DI&&	r&   r   r   r   r   ri   idrx   livemodeobjectoptionsr   r   )r   rx   verification_flowr[   r   r   paramsr   returnc                     U R                  SU R                  5       US9n[        U[        5      (       d!  [	        S[        U5      R                  -  5      eU$ ) 
List all verification reports.
getr   %Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrorr[   r   clsr   results      r'   listVerificationReport.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)r   r   r   Nr   )_static_request_asyncr   r   r   r   r[   r   r   s      r'   
list_asyncVerificationReport.list_async  sm      00MMO 1 
 

 &*--7<((* 
 
s   #A$A"=A$r   c                 8    U " U40 UD6nUR                  5         U$ )*
Retrieves an existing VerificationReport
)refreshr   r   r   instances       r'   retrieveVerificationReport.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)r   N)refresh_asyncr   s       r'   retrieve_async!VerificationReport.retrieve_async  s2      r$V$$$&&& 	's   (&()r   ri   rx   r   r   r   r   N)"r   r    r!   r"   __doc__r   r   r
   r$   r   r_   rk   r}   r   r   r   r   r   r   r   r   r	   r#   r0   r   classmethodr   r   r   r   r   r   r^   r%   r   r&   r'   r   r      sW    	' '"@AB W
< W
r. .:;:< ;:zK, K8. .:". ".H ^  DI $  "#& L x   E? 	G !! N 233 gE? V >
??  }$ #3-' =>	(	) & =>	(	) &  &'J K	   &'J K	  r&   r   N)stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   typingr   r   r	   typing_extensionsr
   r   r   r   r   r   r&   r'   <module>r      s4    + = 2 . + + E EX,-AB Xr&   