
    <@g?                      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	 d dl
mZmZ d dlmZmZmZ  G d d	e      Zy
)    )InvoiceRenderingTemplate)
ListObject)RequestOptions)StripeService)sanitize_id)Listcast)LiteralNotRequired	TypedDictc            	       X   e Zd 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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y)InvoiceRenderingTemplateServicec                   $    e Zd ZU eee      ed<   y)-InvoiceRenderingTemplateService.ArchiveParamsexpandN__name__
__module____qualname__r   r   str__annotations__     i/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_invoice_rendering_template_service.pyArchiveParamsr          DI&&	r   r   c                   r    e Zd ZU ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   	 eed      ed<   y)*InvoiceRenderingTemplateService.ListParamsending_beforer   limitstarting_after)activearchivedstatusN)	r   r   r   r   r   r   r   intr
   r   r   r   
ListParamsr      s_    "3''	 DI&&	 3	 $C((	 G$89::r   r&   c                   6    e Zd ZU eee      ed<   	 ee   ed<   y).InvoiceRenderingTemplateService.RetrieveParamsr   versionN)r   r   r   r   r   r   r   r%   r   r   r   RetrieveParamsr(   &   s#    DI&&	 S!!r   r*   c                   $    e Zd ZU eee      ed<   y)/InvoiceRenderingTemplateService.UnarchiveParamsr   Nr   r   r   r   UnarchiveParamsr,   -   r   r   r-   paramsr   optionsreturnc           
      X    t        t        t           | j                  ddd||            S )x
        List all templates, ordered by creation date, with the most recently created template appearing first.
        get/v1/invoice_rendering_templatesapibase_addressr.   r/   )r	   r   r   _requestselfr.   r/   s      r   listz$InvoiceRenderingTemplateService.list3   s:     /0MM1"  	
 		
r   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r2   r3   r4   r5   r6   N)r	   r   r   _request_asyncr9   s      r   
list_asyncz*InvoiceRenderingTemplateService.list_asyncF   sJ      /0%%1" &  	
 		
s   +86
	8templater(   c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.
        r3   */v1/invoice_rendering_templates/{template}r?   r5   r6   r	   r   r8   formatr   r:   r?   r.   r/   s       r   retrievez(InvoiceRenderingTemplateService.retrieveY   sO     $MM<CC(2 D  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rA   r3   rB   rC   r5   r6   Nr	   r   r=   rE   r   rF   s       r   retrieve_asyncz.InvoiceRenderingTemplateService.retrieve_asynco   s_      $%%<CC(2 D  # &  
 	
   =A
A
 	A
r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )@  
        Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.
        post2/v1/invoice_rendering_templates/{template}/archiverC   r5   r6   rD   rF   s       r   archivez'InvoiceRenderingTemplateService.archive   sO     $MMDKK(2 L  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rM   rN   rO   rC   r5   r6   NrI   rF   s       r   archive_asyncz-InvoiceRenderingTemplateService.archive_async   s_      $%%DKK(2 L  # &  
 	
rK   r,   c                 |    t        t        | j                  ddj                  t	        |            d||            S )h
        Unarchive an invoice rendering template so it can be used on new Stripe objects again.
        rN   4/v1/invoice_rendering_templates/{template}/unarchiverC   r5   r6   rD   rF   s       r   	unarchivez)InvoiceRenderingTemplateService.unarchive   sO     $MMFMM(2 N  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)rT   rN   rU   rC   r5   r6   NrI   rF   s       r   unarchive_asyncz/InvoiceRenderingTemplateService.unarchive_async   s_      $%%FMM(2 N  # &  
 	
rK   N)r   r   r   r   r   r&   r*   r-   r   r   r   r;   r>   r   rG   rJ   rP   rR   rV   rX   r   r   r   r   r      s   	 ;Y ;&" ")  @B"$
<
  
 
,	-	
* @B"$
<
  
 
,	-	
, DF"$	

 A
  	

 
"
2 DF"$	

 A
  	

 
"
2 CE"$	

 @
  	

 
"
2 CE"$	

 @
  	

 
"
2 EG"$	

 B
  	

 
"
2 EG"$	

 B
  	

 
"
r   r   N)"stripe._invoice_rendering_templater   stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r	   typing_extensionsr
   r   r   r   r   r   r   <module>r`      s.    H * 2 0 $  = =O
m O
r   