Ë
    <@‹g5.  ã                   ó¨   — 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mZmZ d dlmZmZmZmZmZ erd dlmZ  G d„ d	ed	   ed	   «      ZeZy
)é    )ÚCreateableAPIResource)Ú
ListObject)ÚListableAPIResource)ÚRequestOptions)ÚAnyÚClassVarÚDictÚListÚOptionalÚcast)ÚLiteralÚNotRequiredÚ	TypedDictÚUnpackÚTYPE_CHECKING)ÚFileLinkc                   ó<  — e Zd ZU dZdZeed      ed<    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eed<   	 ee   ed<   	 ee   ed<   	 eed<   	 eed      ed<   	 ed   ed<   	 ed   ed<   	 eed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 eded   dd fd„«       Zeded   dd fd„«       Zeded    ded    fd!„«       Zeded    ded    fd"„«       Zededed#   dd fd$„«       Zededed#   dd fd%„«       Zd&Zed'„ «       Zy())ÚFilea¼  
    This object represents files hosted on Stripe's servers. You can upload
    files with the [create file](https://stripe.com/docs/api#create_file) request
    (for example, when uploading dispute evidence). Stripe also
    creates files independently (for example, the results of a [Sigma scheduled
    query](https://stripe.com/docs/api#scheduled_queries)).

    Related guide: [File upload guide](https://stripe.com/docs/file-upload)
    ÚfileÚOBJECT_NAMEc                   óT   — e Zd ZU eee      ed<   	 eed<   	 ed   ed<   	 ed   ed<   y)úFile.CreateParamsÚexpandr   úFile.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ÚpurposeN)	Ú__name__Ú
__module__Ú__qualname__r   r
   ÚstrÚ__annotations__r   r   © ó    úK/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_file.pyÚCreateParamsr   !   sN   … Ø˜D ™IÑ&Ó&ð	ð ‹	ð	ð $Ð$CÑDÓDð	ð ð
,ñ
ó 	
ð	r.   r0   c                   ó<   — e Zd ZU eed<   	 ee   ed<   	 ed   ed<   y)r   ÚcreateÚ
expires_atzLiteral['']|Dict[str, str]ÚmetadataN)r(   r)   r*   Úboolr,   r   Úintr-   r.   r/   ÚCreateParamsFileLinkDatazFile.CreateParamsFileLinkData?   s1   … Ø‹ð	ð   Ñ$Ó$ð	ð Ð:Ñ;Ó;ð	r.   r7   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<   y	)
úFile.ListParamszFile.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_afterN)	r(   r)   r*   r   r,   r+   r
   r6   r   r-   r.   r/   Ú
ListParamsr9   M   s€   … ØÐ9Ñ:Ó:ð	ð # 3Ñ'Ó'ð	ð ˜D ™IÑ&Ó&ð	ð ˜3ÑÓð	ð Øð0ññ
ó 	
ð*	ð $ CÑ(Ó(ð	r.   rE   c                   óT   — e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)úFile.ListParamsCreatedÚgtÚgteÚltÚlteN)r(   r)   r*   r   r6   r,   r-   r.   r/   ÚListParamsCreatedrG   {   sH   … Ø˜ÑÓð	ð ˜ÑÓð	ð ˜ÑÓð	ð ˜ÑÓð	r.   rL   c                   ó$   — e Zd ZU eee      ed<   y)úFile.RetrieveParamsr   N)r(   r)   r*   r   r
   r+   r,   r-   r.   r/   ÚRetrieveParamsrN   �   s   … Ø˜D ™IÑ&Ó&ð	r.   rO   r:   r3   ÚfilenameÚidr   ÚlinksÚobjectr=   r'   ÚsizeÚtitleÚtypeÚurlÚparamsr   Úreturnc           	      óf   — d|d<   t        d| j                  d| j                  «       |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.
        úmultipart/form-dataÚcontent_typer   ÚpostÚfiles©rX   Úbase_address)r   Ú_static_requestÚ	class_url©ÚclsrX   s     r/   r2   zFile.createÒ   sC   € ð "7ˆˆ~ÑäØØ×ÑØØ—‘“ØØ$ð	  ó ó
ð 	
r.   c           	   ‹   ó‚   K  — d|d<   t        d| j                  d| j                  «       |d¬«      ƒ d{  –—† «      S 7 Œ­w)r[   r\   r]   r   r^   r_   r`   N)r   Ú_static_request_asyncrc   rd   s     r/   Úcreate_asynczFile.create_asyncå   sQ   è ø€ ð "7ˆˆ~ÑäØØ×+Ñ+ØØ—‘“ØØ$ð	 ,ó ÷ ó
ð 	
ðús   ‚2?´=
µ	?r9   c                 ó¬   — | j                  d| j                  «       |¬«      }t        |t        «      s!t	        dt        |«      j                  z  «      ‚|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©rX   ú%Expected list object from API, got %s)rb   rc   Ú
isinstancer   Ú	TypeErrorrV   r(   ©re   rX   Úresults      r/   Úlistz	File.listú   s]   € ð
 ×$Ñ$ØØ�M‰M‹OØð %ó 
ˆô
 ˜&¤*Ô-ÜØ7Ü˜“<×(Ñ(ñ*óð ð
 ˆr.   c              ‹   óÈ   K  — | j                  d| j                  «       |¬«      ƒ d{  –—† }t        |t        «      s!t	        dt        |«      j                  z  «      ‚|S 7 Œ7­w)rj   rk   rl   Nrm   )rg   rc   rn   r   ro   rV   r(   rp   s      r/   Ú
list_asynczFile.list_async  sk   è ø€ ð ×0Ñ0ØØ�M‰M‹OØð 1ó 
÷ 
ˆô
 ˜&¤*Ô-ÜØ7Ü˜“<×(Ñ(ñ*óð ð
 ˆð
ús   ‚&A"¨A ©8A"rN   c                 ó8   —  | |fi |¤Ž}|j                  «        |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).
        )Úrefresh©re   rQ   rX   Úinstances       r/   ÚretrievezFile.retrieve   s$   € ñ �rÑ$˜VÑ$ˆØ×ÑÔØˆr.   c              ‹   óT   K  —  | |fi |¤Ž}|j                  «       ƒ d{  –—†  |S 7 Œ­w)rv   N)Úrefresh_asyncrx   s       r/   Úretrieve_asynczFile.retrieve_async+  s3   è ø€ ñ �rÑ$˜VÑ$ˆØ×$Ñ$Ó&×&Ð&Øˆð 	'ús   ‚(Ÿ& (Úfile_uploadc                  ó   — y)Nz	/v1/filesr-   )re   s    r/   rc   zFile.class_url<  s   € àr.   N)r(   r)   r*   Ú__doc__r   r   r   r,   r   r0   r   r7   rE   rL   rO   r6   r   r+   r   Úclassmethodr   r2   rh   rr   rt   rz   r}   ÚOBJECT_NAME_ALTrc   r-   r.   r/   r   r      s>  … ñð .4€K�˜' &™/Ñ*Ó3ô�~ô ô< 9ô ô,�^ô ,ô\˜Iô ô$˜ô ð ƒLðð ˜‘Óðð �s‰mÓðð 	ƒGðð �J˜zÑ*Ñ+Ó+ðð �F‰OÓðð ð	(ñó ð&ð ƒIðð �C‰=Óðð �3‰-Óðð 
�#‰Óðð ð
˜fÐ%8Ñ9ð 
¸fò 
ó ð
ð$ ð
ØÐ1Ñ2ð
à	ò
ó ð
ð( ð˜FÐ#4Ñ5ð ¸*ÀVÑ:Lò ó ðð" ðØÐ/Ñ0ðà	�FÑ	òó ðð& ðØðØ &Ð'<Ñ =ðà	òó ðð ðØðØ &Ð'<Ñ =ðà	òó ðð $€Oàñó ñr.   r   N)Ústripe._createable_api_resourcer   Ústripe._list_objectr   Ústripe._listable_api_resourcer   Ústripe._request_optionsr   Útypingr   r   r	   r
   r   r   Útyping_extensionsr   r   r   r   r   Ústripe._file_linkr   r   Ú
FileUploadr-   r.   r/   ú<module>r‹      sP   ðõ BÝ *Ý =Ý 2ß <× <÷õ ñ Ý*ôjÐ  Ñ(Ð*=¸fÑ*Eô jð\	 �
r.   