
    <@gS                     ~    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mZ d dlmZmZmZ  G d d	e      Zy
)    )
ListObject)RequestOptions)StripeService)sanitize_id)VerificationSession)DictListcast)LiteralNotRequired	TypedDictc            	          e Zd 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i i fdddedee   fdZi i fdddedee   fd Zi i fdd!dedefd"Zi i fdd!dedefd#Zi i fd$edd%dedefd&Zi i fd$edd%dedefd'Zi i fd$edd(dedefd)Zi i fd$edd(dedefd*Zi i fd$edd+dedefd,Zi i fd$edd+dedefd-Zi i fd$edd.dedefd/Zi i fd$edd.dedefd0Z y1)2VerificationSessionServicec                   $    e Zd ZU eee      ed<   y)'VerificationSessionService.CancelParamsexpandN__name__
__module____qualname__r   r	   str__annotations__     l/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/identity/_verification_session_service.pyCancelParamsr          DI&&	r   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)'VerificationSessionService.CreateParamsclient_reference_idr   metadata.VerificationSessionService.CreateParamsOptionsoptions6VerificationSessionService.CreateParamsProvidedDetailsprovided_detailsrelated_customer
return_urldocument	id_numbertypeverification_flowN)	r   r   r   r   r   r   r	   r   r   r   r   r   CreateParamsr      s    (--	 DI&&	 d38n--	 MNN	 &D
 	
	 &c**	  $$	 '"9:;;	 's++	r   r-   c                       e Zd ZU ed   ed<   y)r"   zBLiteral['']|VerificationSessionService.CreateParamsOptionsDocumentr)   Nr   r   r   r   r   r   r   r   CreateParamsOptionsz.VerificationSessionService.CreateParamsOptions;       P
 	
	r   r0   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)6VerificationSessionService.CreateParamsOptionsDocumentdriving_licenseid_cardpassportallowed_typesrequire_id_numberrequire_live_capturerequire_matching_selfieNr   r   r   r   r	   r   r   boolr   r   r   CreateParamsOptionsDocumentr3   C   X    "ABC
 	
	 't,,	 *$//	 "-T!22	r   r>   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r$   emailphoneNr   r   r   r   r   r   r   r   r   CreateParamsProvidedDetailsz6VerificationSessionService.CreateParamsProvidedDetailsW   $    3	 3	r   rD   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)%VerificationSessionService.ListParamsr    z0VerificationSessionService.ListParamsCreated|intcreatedending_beforer   limitr&   starting_after)canceled
processingrequires_inputverifiedstatusN)	r   r   r   r   r   r   r	   intr   r   r   r   
ListParamsrG   a   s    (--	 >
 	
	 #3''	 DI&&	 3	 &c**#C((	 JK
 	
	r   rR   c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y),VerificationSessionService.ListParamsCreatedgtgteltlteN)r   r   r   r   rQ   r   r   r   r   ListParamsCreatedrT      sH    	 	 	 	r   rY   c                   $    e Zd ZU eee      ed<   y)'VerificationSessionService.RedactParamsr   Nr   r   r   r   RedactParamsr[      r   r   r\   c                   $    e Zd ZU eee      ed<   y))VerificationSessionService.RetrieveParamsr   Nr   r   r   r   RetrieveParamsr^      r   r   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	)
'VerificationSessionService.UpdateParamsr   r!   .VerificationSessionService.UpdateParamsOptionsr#   6VerificationSessionService.UpdateParamsProvidedDetailsr%   r(   r+   N)	r   r   r   r   r	   r   r   r   r   r   r   r   UpdateParamsra      sr    DI&&	 d38n--	 MNN	 &D
 	
	 '"9:;;	r   rd   c                       e Zd ZU ed   ed<   y)rb   zBLiteral['']|VerificationSessionService.UpdateParamsOptionsDocumentr)   Nr/   r   r   r   UpdateParamsOptionsz.VerificationSessionService.UpdateParamsOptions   r1   r   rf   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)6VerificationSessionService.UpdateParamsOptionsDocumentr4   r8   r9   r:   r;   Nr<   r   r   r   UpdateParamsOptionsDocumentrh      r?   r   ri   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)rc   rA   rB   NrC   r   r   r   UpdateParamsProvidedDetailsz6VerificationSessionService.UpdateParamsProvidedDetails   rE   r   rk   paramsrG   r#   returnc           
      X    t        t        t           | j                  ddd||            S )8
        Returns a list of VerificationSessions
        get"/v1/identity/verification_sessionsapibase_addressrl   r#   )r
   r   r   _requestselfrl   r#   s      r   listzVerificationSessionService.list   s:     *+MM4"  	
 		
r   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)ro   rp   rq   rr   rs   N)r
   r   r   _request_asyncrv   s      r   
list_asyncz%VerificationSessionService.list_async   sJ      *+%%4" &  	
 		
s   +86
	8r   c           
      J    t        t        | j                  ddd||            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)
        postrq   rr   rs   )r
   r   ru   rv   s      r   createz!VerificationSessionService.create  s4     MM4"  	
 		
r   c           
      f   K   t        t        | j                  ddd||       d{         S 7 w)r}   r~   rq   rr   rs   N)r
   r   rz   rv   s      r   create_asyncz'VerificationSessionService.create_async  sD      %%4" &  	
 		
s   $1/
	1sessionr^   c                 |    t        t        | j                  ddj                  t	        |            d||            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.
        rp   ,/v1/identity/verification_sessions/{session}r   rr   rs   r
   r   ru   formatr   rw   r   rl   r#   s       r   retrievez#VerificationSessionService.retrieve8  sO     MM>EE'0 F  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r   rp   r   r   rr   rs   Nr
   r   rz   r   r   r   s       r   retrieve_asyncz)VerificationSessionService.retrieve_asyncQ  s_      %%>EE'0 F  # &  
 	
   =A
A
 	A
ra   c                 |    t        t        | j                  ddj                  t	        |            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   rr   rs   r   r   s       r   updatez!VerificationSessionService.updatej  sO     MM>EE'0 F  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r   r~   r   r   rr   rs   Nr   r   s       r   update_asyncz'VerificationSessionService.update_async  s_      %%>EE'0 F  # &  
 	
r   r   c                 |    t        t        | j                  ddj                  t	        |            d||            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~   3/v1/identity/verification_sessions/{session}/cancelr   rr   rs   r   r   s       r   cancelz!VerificationSessionService.cancel  sO     MMELL'0 M  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r   r~   r   r   rr   rs   Nr   r   s       r   cancel_asyncz'VerificationSessionService.cancel_async  s_      %%ELL'0 M  # &  
 	
r   r[   c                 |    t        t        | j                  ddj                  t	        |            d||            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~   3/v1/identity/verification_sessions/{session}/redactr   rr   rs   r   r   s       r   redactz!VerificationSessionService.redact  sO    6 MMELL'0 M  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r   r~   r   r   rr   rs   Nr   r   s       r   redact_asyncz'VerificationSessionService.redact_async  s_     6 %%ELL'0 M  # &  
 	
r   N)!r   r   r   r   r   r-   r0   r>   rD   rR   rY   r\   r_   rd   rf   ri   rk   r   r   r   rx   r{   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r      s   y &y &Pi i (i !Y !FI $y  y 0i i (i  ;="$
7
  
 
'	(	
* ;="$
7
  
 
'	(	
* =?"$
9
  
 
	
6 =?"$
9
  
 
	
8 ?A"$	

 <
  	

 

8 ?A"$	

 <
  	

 

8 =?"$	

 :
  	

 

8 =?"$	

 :
  	

 

8 =?"$	

 :
  	

 

6 =?"$	

 :
  	

 

6 =?"$	&
&
 :&
  	&

 
&
V =?"$	&
&
 :&
  	&

 
&
r   r   N)stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   %stripe.identity._verification_sessionr   typingr   r	   r
   typing_extensionsr   r   r   r   r   r   r   <module>r      s0    + 2 0 $ E # # = =N
 N
r   