
    (g$                         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_reader_splashscreenpurpose N)__name__
__module____qualname____firstlineno__r   r
   str__annotations__r   r   __static_attributes__r%       YC:\Suresh\moveshuttle\MDcreated\moveengine\venv\Lib\site-packages\stripe/_file_service.pyCreateParamsr      sN    DI&&	 		 $$JKK	 
,
 	
	r-   r/   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-   r7   c                       \ rS rSr% \S   \S'    \\   \S'    \\\      \S'    \\   \S'    \\	S      \S'    \\   \S	'   S
r
g)FileService.ListParams9   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$   starting_afterr%   N)r&   r'   r(   r)   r   r+   r*   r
   r6   r   r,   r%   r-   r.   
ListParamsr:   9   s    @AA	 #3''	 DI&&	 3	 0
 	
*	 $C((	r-   rF   c                   \    \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'   Srg)FileService.ListParamsCreatedg   gtgteltlter%   N)r&   r'   r(   r)   r   r6   r+   r,   r%   r-   r.   ListParamsCreatedrH   g   sH    	 	 	 	r-   rN   c                   ,    \ rS rSr% \\\      \S'   Srg)FileService.RetrieveParamsy   r   r%   N)	r&   r'   r(   r)   r   r
   r*   r+   r,   r%   r-   r.   RetrieveParamsrP   y   s    DI&&	r-   rR   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_addressrS   rT   )r   r   r   _requestselfrS   rT   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)rW   rX   rY   rZ   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postrY   filesr[   )r   r   r]   r^   s      r.   r2   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)rg   rh   ri   rj   rY   rk   r[   N)r   r   rc   r^   s      r.   create_asyncFileService.create_async   sM      #8%%$ &  	
 		
s   &31
	3r   rP   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://stripe.com/docs/file-upload#download-file-contents).
rX   /v1/files/{file}r   rZ   r[   )r   r   r]   formatr   r_   r   rS   rT   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)rq   rX   rr   rs   rZ   r[   N)r   r   rc   rt   r   ru   s       r.   retrieve_asyncFileService.retrieve_async   sV      %%")){4/@)A" &  	
 		
s   7AA
	Ar%   N)r&   r'   r(   r)   r   r/   r7   rF   rN   rR   r   r   r   r`   rd   r2   rn   r*   rv   ry   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 $ ( ( = =g
- g
r-   