
    jofM$                         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mZ d dlmZmZmZ  G d d	e          Zd
S )    )File)
ListObject)RequestOptions)StripeService)sanitize_id)AnyDictListcast)LiteralNotRequired	TypedDictc            	       R   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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 fddde	defdZ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dS )FileServicec                   n    e Zd ZU eee                  ed<   	 eed<   	 ed         ed<   	 ed         ed<   dS )FileService.CreateParamsexpandfile$FileService.CreateParamsFileLinkDatafile_link_data)
account_requirementadditional_verificationbusiness_iconbusiness_logocustomer_signaturedispute_evidenceidentity_documentpci_documenttax_document_user_uploadterminal_reader_splashscreenpurposeN)	__name__
__module____qualname__r   r
   str__annotations__r   r        N/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/_file_service.pyCreateParamsr      sw         DI&&&&	 				 $$JKKKK	 	,
 	
 	
 	
	 	r(   r*   c                   J    e Zd ZU eed<   	 ee         ed<   	 ed         ed<   dS )r   create
expires_atzLiteral['']|Dict[str, str]metadataN)r"   r#   r$   boolr&   r   intr'   r(   r)   CreateParamsFileLinkDataz$FileService.CreateParamsFileLinkData*   sP         	  $$$$	 :;;;;	 	r(   r1   c                       e Zd ZU ed         ed<   	 ee         ed<   	 eee                  ed<   	 ee         ed<   	 eed                  ed<   	 ee         ed<   d	S )
FileService.ListParamsz!FileService.ListParamsCreated|intcreatedending_beforer   limit)r   r   r   r   r   r   #document_provider_identity_documentfinance_report_runr   identity_document_downloadabler   selfiesigma_scheduled_queryr   r    r!   starting_afterN)	r"   r#   r$   r   r&   r%   r
   r0   r   r'   r(   r)   
ListParamsr3   8   s         @AAAA	 #3''''	 DI&&&&	 3	 0
 	
 	
 	
&	 $C((((	 	r(   r=   c                   n    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )FileService.ListParamsCreatedgtgteltlteN)r"   r#   r$   r   r0   r&   r'   r(   r)   ListParamsCreatedr?   d   so         	 	 	 	 	r(   rD   c                   2    e Zd ZU eee                  ed<   dS )FileService.RetrieveParamsr   N)r"   r#   r$   r   r
   r%   r&   r'   r(   r)   RetrieveParamsrF   v   s+         DI&&&&	 	r(   rG   paramsr3   optionsreturnc                 t    t          t          t                   |                     dddd||                    S )
        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V1apiapi_modebase_addressrH   rI   )r   r   r   _requestselfrH   rI   s      r)   listzFileService.list|   sF     tMM"   

 

 
	
r(   c                    K   t          t          t                   |                     dddd||           d{V           S )rL   rM   rN   rO   rP   rQ   N)r   r   r   _request_asyncrU   s      r)   
list_asynczFileService.list_async   sj       t%%" &        

 

 
	
r(   r   c                 ^    t          t          |                     dddd||                    S )%  
        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.
        postrN   V1FILESfilesrQ   )r   r   rT   rU   s      r)   r,   zFileService.create   sA     MM"$   

 

 
	
r(   c                 n   K   t          t          |                     dddd||           d{V           S )r\   r]   rN   r^   r_   rQ   N)r   r   rY   rU   s      r)   create_asynczFileService.create_async   se       %%"$ &        

 

 
	
r(   r   rF   c                     t          t          |                     dd                    t	          |                    dd||                    S )
        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://stripe.com/docs/file-upload#download-file-contents).
        rM   /v1/files/{file}r   rO   rP   rQ   )r   r   rT   formatr   rV   r   rH   rI   s       r)   retrievezFileService.retrieve   sZ     MM")){4/@/@)AA"   

 

 
	
r(   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )rc   rM   rd   re   rO   rP   rQ   N)r   r   rY   rf   r   rg   s       r)   retrieve_asynczFileService.retrieve_async   s~       %%")){4/@/@)AA" &        

 

 
	
r(   N)r"   r#   r$   r   r*   r1   r=   rD   rG   r   r   r   rW   rZ   r,   ra   r%   rh   rj   r'   r(   r)   r   r      si           y   :    9   * * * * *Y * * *X    I   $        ,."$
 
(
  
 
D		
 
 
 
, ,."$
 
(
  
 
D		
 
 
 
* MO
 
0
;I
	
 
 
 
* MO
 
0
;I
	
 
 
 
. 02"$	
 

 -
  	

 

 
 
 
0 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>rr      s          * * * * * * 2 2 2 2 2 2 0 0 0 0 0 0 $ $ $ $ $ $ ( ( ( ( ( ( ( ( ( ( ( ( = = = = = = = = = =h
 h
 h
 h
 h
- h
 h
 h
 h
 h
r(   