
    Ch%                         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JrJr  S SKJrJrJr   " S S	\5      rg
)    )File)
ListObject)RequestOptions)StripeService)sanitize_id)AnyDictListcast)LiteralNotRequired	TypedDictc            	       F   \ 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	0 0 4SSS\
S\\   4S jjr0 0 4SSS\
S\\   4S jjr0 4SSS\
S\4S jjr0 4SSS\
S\4S jjr0 0 4S\SSS\
S\4S jjr0 0 4S\SSS\
S\4S jjrSrg)FileService   c                   \    \ rS rSr% \\\      \S'    \\S'    \S   \S'    \	S   \S'   Sr
g	)
FileService.CreateParams   expandfile$FileService.CreateParamsFileLinkDatafile_link_data)account_requirementadditional_verificationbusiness_iconbusiness_logocustomer_signaturedispute_evidenceidentity_documentissuing_regulatory_reportingpci_documenttax_document_user_uploadterminal_android_apkterminal_reader_splashscreenpurpose N)__name__
__module____qualname____firstlineno__r   r
   str__annotations__r   r   __static_attributes__r&       W/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_file_service.pyCreateParamsr      sN    DI&&	 		 $$JKK	 ,
 	
	r.   r0   c                   D    \ rS rSr% \\S'    \\   \S'    \S   \S'   Srg)r   ,   create
expires_atzLiteral['']|Dict[str, str]metadatar&   N)	r'   r(   r)   r*   boolr,   r   intr-   r&   r.   r/   CreateParamsFileLinkData$FileService.CreateParamsFileLinkData,   s1    	  $$	 :;;	r.   r8   c                       \ rS rSr% \S   \S'    \\   \S'    \\\      \S'    \\   \S'    \\	S      \S'    \\   \S	'   S
r
g)FileService.ListParams:   z!FileService.ListParamsCreated|intcreatedending_beforer   limit)r   r   r   r   r   r   #document_provider_identity_documentfinance_report_runfinancial_account_statementr   identity_document_downloadabler    r!   selfiesigma_scheduled_queryr"   r#   r$   r%   starting_afterr&   N)r'   r(   r)   r*   r   r,   r+   r
   r7   r   r-   r&   r.   r/   
ListParamsr;   :   s    @AA	 #3''	 DI&&	 3	 0
 	
,	 $C((	r.   rG   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)FileService.ListParamsCreatedi   gtgteltlter&   N)r'   r(   r)   r*   r   r7   r,   r-   r&   r.   r/   ListParamsCreatedrI   i   sH    	 	 	 	r.   rO   c                   ,    \ rS rSr% \\\      \S'   Srg)FileService.RetrieveParams{   r   r&   N)	r'   r(   r)   r*   r   r
   r+   r,   r-   r&   r.   r/   RetrieveParamsrQ   {   s    DI&&	r.   rS   paramsr;   optionsreturnc                 R    [        [        [           U R                  SSSUUS95      $ )
Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.
get	/v1/filesapibase_addressrT   rU   )r   r   r   _requestselfrT   rU   s      r/   listFileService.list   s9     tMM"  	
 		
r.   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)rX   rY   rZ   r[   r\   N)r   r   r   _request_asyncr_   s      r/   
list_asyncFileService.list_async   sH      t%%" &  	
 		
s   (53
	5r   c                 N    SUS'   [        [        U R                  SSSUUS95      $ )  
To upload a file to Stripe, you need to send a request of type multipart/form-data. Include the file you want to upload in the request, and the parameters for creating a file.

All of Stripe's officially supported Client libraries support sending multipart/form-data.
multipart/form-datacontent_typepostrZ   filesr\   )r   r   r^   r_   s      r/   r3   FileService.create   s>     #8MM$  	
 		
r.   c                 j   #    SUS'   [        [        U R                  SSSUUS9I Sh  vN 5      $  N7f)rh   ri   rj   rk   rZ   rl   r\   N)r   r   rd   r_   s      r/   create_asyncFileService.create_async   sM      #8%%$ &  	
 		
s   &31
	3r   rQ   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://docs.stripe.com/docs/file-upload#download-file-contents).
rY   /v1/files/{file}r   r[   r\   )r   r   r^   formatr   r`   r   rT   rU   s       r/   retrieveFileService.retrieve   sG     MM")){4/@)A"  	
 		
r.   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rr   rY   rs   rt   r[   r\   N)r   r   rd   ru   r   rv   s       r/   retrieve_asyncFileService.retrieve_async   sV      %%")){4/@)A" &  	
 		
s   7AA
	Ar&   N)r'   r(   r)   r*   r   r0   r8   rG   rO   rS   r   r   r   ra   re   r3   ro   r+   rw   rz   r-   r&   r.   r/   r   r      sN   y >9 -Y -^I $  ,."$
(
  
 
D		
* ,."$
(
  
 
D		
( MO
0
;I
	
* MO
0
;I
	
. 02"$	

 -
  	

 

. 02"$	

 -
  	

 

 
r.   r   N)stripe._filer   stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r	   r
   r   typing_extensionsr   r   r   r   r&   r.   r/   <module>r      s0     * 2 0 $ ( ( = =i
- i
r.   