
    jof6                         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 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 )    )
ListObject)Quote)$QuoteComputedUpfrontLineItemsService)QuoteLineItemService)RequestOptions)StripeService)sanitize_id)AnyDictListcast)LiteralNotRequired	TypedDictc            	       j    e Zd Z f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	 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 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 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 G d* d+e          Z G d, d-e          Z G d. d/e          Z G d0 d1e          Z G d2 d3e          Z G d4 d5e          Z G d6 d7e          Z G d8 d9e          Z  G d: d;e          Z! G d< d=e          Z" G d> d?e          Z#i i fd@dAdBe$dCe%e&         fdDZ'i i fd@dAdBe$dCe%e&         fdEZ(i i fd@dFdBe$dCe&fdGZ)i i fd@dFdBe$dCe&fdHZ*i i fdIe+d@dJdBe$dCe&fdKZ,i i fdIe+d@dJdBe$dCe&fdLZ-i i fdIe+d@dMdBe$dCe&fdNZ.i i fdIe+d@dMdBe$dCe&fdOZ/i i fdIe+d@dPdBe$dCe&fdQZ0i i fdIe+d@dPdBe$dCe&fdRZ1i i fdIe+d@dSdBe$dCe&fdTZ2i i fdIe+d@dSdBe$dCe&fdUZ3i i fdIe+d@dVdBe$dCe&fdWZ4i i fdIe+d@dVdBe$dCe&fdXZ5i i fdIe+d@dYdBe$dCe6fdZZ7i i fdIe+d@dYdBe$dCe6fd[Z8 xZ9S )\QuoteServicec                     t                                          |           t          | j                  | _        t          | j                  | _        d S )N)super__init__r   
_requestor
line_itemsr   computed_upfront_line_items)self	requestor	__class__s     O/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/_quote_service.pyr   zQuoteService.__init__   sL    ###.t??0  	(((    c                   2    e Zd ZU eee                  ed<   dS )QuoteService.AcceptParamsexpandN__name__
__module____qualname__r   r   str__annotations__ r   r   AcceptParamsr      +         DI&&&&	 	r   r(   c                   2    e Zd ZU eee                  ed<   dS )QuoteService.CancelParamsr    Nr!   r'   r   r   CancelParamsr+       r)   r   r,   c                   "   e Zd ZU ed         ed<   	 ed         ed<   	 ed         ed<   	 eed                  ed<   	 ee         ed	<   	 ed
         ed<   	 ed         ed<   	 ed         ed<   	 eee                  ed<   	 ee         ed<   	 ed         ed<   	 ed         ed<   	 ed         ed<   	 ed         ed<   	 eed                  ed<   	 ee	eef                  ed<   	 ed         ed<   	 ed         ed<   	 ee         ed<   	 ed         ed <   d!S )"QuoteService.CreateParamsLiteral['']|intapplication_fee_amountLiteral['']|floatapplication_fee_percent%QuoteService.CreateParamsAutomaticTaxautomatic_taxcharge_automaticallysend_invoicecollection_methodcustomerLiteral['']|List[str]default_tax_ratesLiteral['']|strdescriptionz3Literal['']|List[QuoteService.CreateParamsDiscount]	discountsr    
expires_atfooter"QuoteService.CreateParamsFromQuote
from_quoteheader(QuoteService.CreateParamsInvoiceSettingsinvoice_settings!QuoteService.CreateParamsLineItemr   metadataon_behalf_of)QuoteService.CreateParamsSubscriptionDatasubscription_data
test_clockz1Literal['']|QuoteService.CreateParamsTransferDatatransfer_dataN
r"   r#   r$   r   r&   r   r%   r   intr   r'   r   r   CreateParamsr.   &   s=         +,= >>>>	 "--@!AAAA	 ##JKKKK	 ':;
 	
 	
 	
	 c""""	 ''>????	 !!23333	 A
 	
 	
 	
	 DI&&&&	  $$$$	 -....	   DEEEE	 -....	 &6
 	
 	
 	
	  %H IJJJJ	 d38n----	 ""34444	 '7
 	
 	
 	
	  $$$$	 #?
 	
 	
 	
	 	r   rO   c                   2    e Zd ZU eed<   	 ed         ed<   dS )r3   enabled.QuoteService.CreateParamsAutomaticTaxLiability	liabilityNr"   r#   r$   boolr&   r   r'   r   r   CreateParamsAutomaticTaxz%QuoteService.CreateParamsAutomaticTax   @         	 <
 	
 	
 	
	 	r   rV   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )rR   accountrY   r   typeNr"   r#   r$   r   r%   r&   r   r'   r   r   !CreateParamsAutomaticTaxLiabilityz.QuoteService.CreateParamsAutomaticTaxLiability   @         S!!!!	 '((((	 	r   r]   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )!QuoteService.CreateParamsDiscountcoupondiscountpromotion_codeNr"   r#   r$   r   r%   r&   r'   r   r   CreateParamsDiscountr`      W         C    	 c""""	 $C((((	 	r   re   c                   2    e Zd ZU ee         ed<   	 eed<   dS )rA   is_revisionquoteN)r"   r#   r$   r   rU   r&   r%   r'   r   r   CreateParamsFromQuotez"QuoteService.CreateParamsFromQuote   s7          &&&&	 


	 	r   rj   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )rD   days_until_due.QuoteService.CreateParamsInvoiceSettingsIssuerissuerNr"   r#   r$   r   rN   r&   r'   r   r   CreateParamsInvoiceSettingsz(QuoteService.CreateParamsInvoiceSettings   @         #C((((	 LMMMM	 	r   rp   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )rm   rY   rZ   r[   Nr\   r'   r   r   !CreateParamsInvoiceSettingsIssuerz.QuoteService.CreateParamsInvoiceSettingsIssuer   r^   r   rs   c                       e Zd ZU ed         ed<   	 ee         ed<   	 ed         ed<   	 ee         ed<   	 ed         ed<   d	S )
rF   z;Literal['']|List[QuoteService.CreateParamsLineItemDiscount]r>   price*QuoteService.CreateParamsLineItemPriceData
price_dataquantityr:   	tax_ratesNr"   r#   r$   r   r&   r%   rN   r'   r   r   CreateParamsLineItemz!QuoteService.CreateParamsLineItem   s         I
 	
 	
 	
	 3	   LMMMM	 c""""	 67777	 	r   r{   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS ))QuoteService.CreateParamsLineItemDiscountra   rb   rc   Nrd   r'   r   r   CreateParamsLineItemDiscountr}      rf   r   r~   c                       e Zd ZU eed<   	 eed<   	 ed         ed<   	 eed                  ed<   	 ee         ed<   	 ee         ed<   d	S )
rv   currencyproduct3QuoteService.CreateParamsLineItemPriceDataRecurring	recurring	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalNr"   r#   r$   r%   r&   r   r   rN   r'   r   r   CreateParamsLineItemPriceDataz*QuoteService.CreateParamsLineItemPriceData            	 	 A
 	
 	
 	
	 ";<
 	
 	
 	
	 !%%%%	 )----	 	r   r   c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )r   daymonthweekyearintervalinterval_countNr"   r#   r$   r   r&   r   rN   r'   r   r   &CreateParamsLineItemPriceDataRecurringz3QuoteService.CreateParamsLineItemPriceDataRecurring  @         89999	 $C((((	 	r   r   c                   ~    e Zd ZU ee         ed<   	 ed         ed<   	 eeeef                  ed<   	 ed         ed<   dS )rI   r=   -Literal['']|Literal['current_period_end']|inteffective_daterG   r/   trial_period_daysN)r"   r#   r$   r   r%   r&   r   r'   r   r   CreateParamsSubscriptionDataz)QuoteService.CreateParamsSubscriptionData  s          %%%%	 $;
 	
 	
 	
	 d38n----	 ''89999	 	r   r   c                   J    e Zd ZU ee         ed<   	 ee         ed<   	 eed<   dS )%QuoteService.CreateParamsTransferDataamountamount_percentdestinationNr"   r#   r$   r   rN   r&   floatr%   r'   r   r   CreateParamsTransferDatar   &  R         C    	 $E****	 	 	r   r   c                   J    e Zd ZU eee                  ed<   	 ee         ed<   dS ) QuoteService.FinalizeQuoteParamsr    r?   N)r"   r#   r$   r   r   r%   r&   rN   r'   r   r   FinalizeQuoteParamsr   4  sC         DI&&&&	  $$$$	 	r   r   c                       e Zd ZU ee         ed<   	 ee         ed<   	 eee                  ed<   	 ee         ed<   	 ee         ed<   	 eed                  ed<   	 ee         ed<   d	S )
QuoteService.ListParamsr9   ending_beforer    limitstarting_after)acceptedcanceleddraftopenstatusrK   N)	r"   r#   r$   r   r%   r&   r   rN   r   r'   r   r   
ListParamsr   >  s         c""""	 #3''''	 DI&&&&	 3	 $C((((	 G$KLMMMM	  $$$$	 	r   r   c                   2    e Zd ZU eee                  ed<   dS )QuoteService.PdfParamsr    Nr!   r'   r   r   	PdfParamsr   \  r)   r   r   c                   2    e Zd ZU eee                  ed<   dS )QuoteService.RetrieveParamsr    Nr!   r'   r   r   RetrieveParamsr   b  r)   r   r   c                      e Zd ZU ed         ed<   	 ed         ed<   	 ed         ed<   	 eed                  ed<   	 ee         ed	<   	 ed
         ed<   	 ed         ed<   	 ed         ed<   	 eee                  ed<   	 ee         ed<   	 ed         ed<   	 ed         ed<   	 ed         ed<   	 eed                  ed<   	 ee	eef                  ed<   	 ed         ed<   	 ed         ed<   	 ed         ed<   dS )QuoteService.UpdateParamsr/   r0   r1   r2   %QuoteService.UpdateParamsAutomaticTaxr4   r5   r8   r9   r:   r;   r<   r=   z3Literal['']|List[QuoteService.UpdateParamsDiscount]r>   r    r?   r@   rC   (QuoteService.UpdateParamsInvoiceSettingsrE   !QuoteService.UpdateParamsLineItemr   rG   rH   )QuoteService.UpdateParamsSubscriptionDatarJ   z1Literal['']|QuoteService.UpdateParamsTransferDatarL   NrM   r'   r   r   UpdateParamsr   h  s         +,= >>>>	 "--@!AAAA	 ##JKKKK	 ':;
 	
 	
 	
	 c""""	 ''>????	 !!23333	 A
 	
 	
 	
	 DI&&&&	  $$$$	 -....	 -....	 &6
 	
 	
 	
	  %H IJJJJ	 d38n----	 ""34444	 '7
 	
 	
 	
	 #?
 	
 	
 	
	 	r   r   c                   2    e Zd ZU eed<   	 ed         ed<   dS )r   rQ   .QuoteService.UpdateParamsAutomaticTaxLiabilityrS   NrT   r'   r   r   UpdateParamsAutomaticTaxz%QuoteService.UpdateParamsAutomaticTax  rW   r   r   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r   rY   rZ   r[   Nr\   r'   r   r   !UpdateParamsAutomaticTaxLiabilityz.QuoteService.UpdateParamsAutomaticTaxLiability  r^   r   r   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )!QuoteService.UpdateParamsDiscountra   rb   rc   Nrd   r'   r   r   UpdateParamsDiscountr     rf   r   r   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r   rl   .QuoteService.UpdateParamsInvoiceSettingsIssuerrn   Nro   r'   r   r   UpdateParamsInvoiceSettingsz(QuoteService.UpdateParamsInvoiceSettings  rq   r   r   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r   rY   rZ   r[   Nr\   r'   r   r   !UpdateParamsInvoiceSettingsIssuerz.QuoteService.UpdateParamsInvoiceSettingsIssuer  r^   r   r   c                       e Zd ZU ed         ed<   	 ee         ed<   	 ee         ed<   	 ed         ed<   	 ee         ed<   	 ed         ed	<   d
S )r   z;Literal['']|List[QuoteService.UpdateParamsLineItemDiscount]r>   idru   *QuoteService.UpdateParamsLineItemPriceDatarw   rx   r:   ry   Nrz   r'   r   r   UpdateParamsLineItemz!QuoteService.UpdateParamsLineItem  s         I
 	
 	
 	
	 	 3	   LMMMM	 c""""	 67777	 	r   r   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS ))QuoteService.UpdateParamsLineItemDiscountra   rb   rc   Nrd   r'   r   r   UpdateParamsLineItemDiscountr     rf   r   r   c                       e Zd ZU eed<   	 eed<   	 ed         ed<   	 eed                  ed<   	 ee         ed<   	 ee         ed<   d	S )
r   r   r   3QuoteService.UpdateParamsLineItemPriceDataRecurringr   r   r   r   r   Nr   r'   r   r   UpdateParamsLineItemPriceDataz*QuoteService.UpdateParamsLineItemPriceData  r   r   r   c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )r   r   r   r   Nr   r'   r   r   &UpdateParamsLineItemPriceDataRecurringz3QuoteService.UpdateParamsLineItemPriceDataRecurring<  r   r   r   c                   ~    e Zd ZU ed         ed<   	 ed         ed<   	 eeeef                  ed<   	 ed         ed<   dS )	r   r<   r=   r   r   rG   r/   r   N)r"   r#   r$   r   r&   r   r%   r'   r   r   UpdateParamsSubscriptionDataz)QuoteService.UpdateParamsSubscriptionDataF  s          !23333	 $;
 	
 	
 	
	 d38n----	 ''89999	 	r   r   c                   J    e Zd ZU ee         ed<   	 ee         ed<   	 eed<   dS )%QuoteService.UpdateParamsTransferDatar   r   r   Nr   r'   r   r   UpdateParamsTransferDatar   Z  r   r   r   paramsr   optionsreturnc                 t    t          t          t                   |                     dddd||                    S )0
        Returns a list of your quotes.
        get
/v1/quotesV1apiapi_modebase_addressr   r   )r   r   r   _requestr   r   r   s      r   listzQuoteService.listh  sF     uMM"   

 

 
	
r   c                    K   t          t          t                   |                     dddd||           d{V           S )r   r   r   r   r   r   N)r   r   r   _request_asyncr   s      r   
list_asynczQuoteService.list_async|  sj       u%%" &        

 

 
	
r   r.   c                 ^    t          t          |                     dddd||                    S )
        A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the [quote template](https://dashboard.stripe.com/settings/billing/quote).
        postr   r   r   r   )r   r   r   r   s      r   createzQuoteService.create  sA     MM"   

 

 
	
r   c                 n   K   t          t          |                     dddd||           d{V           S )r   r   r   r   r   r   N)r   r   r   r   s      r   create_asynczQuoteService.create_async  se       %%" &        

 

 
	
r   ri   r   c                     t          t          |                     dd                    t	          |                    dd||                    S )8
        Retrieves the quote with the given ID.
        r   /v1/quotes/{quote}ri   r   r   r   r   r   r   formatr	   r   ri   r   r   s       r   retrievezQuoteService.retrieve  sZ     MM$+++e2D2D+EE"   

 

 
	
r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )r   r   r   r   r   r   r   Nr   r   r   r   r	   r   s       r   retrieve_asynczQuoteService.retrieve_async  s~       %%$+++e2D2D+EE" &        

 

 
	
r   r   c                     t          t          |                     dd                    t	          |                    dd||                    S )D
        A quote models prices and services for a customer.
        r   r   r   r   r   r   r   r   s       r   updatezQuoteService.update  sZ     MM$+++e2D2D+EE"   

 

 
	
r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )r  r   r   r   r   r   r   Nr  r   s       r   update_asynczQuoteService.update_async  s~       %%$+++e2D2D+EE" &        

 

 
	
r   r   c                     t          t          |                     dd                    t	          |                    dd||                    S ).
        Accepts the specified quote.
        r   /v1/quotes/{quote}/acceptr   r   r   r   r   r   s       r   acceptzQuoteService.accept  Z     MM+22U9K9K2LL"   

 

 
	
r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )r	  r   r
  r   r   r   r   Nr  r   s       r   accept_asynczQuoteService.accept_async!  ~       %%+22U9K9K2LL" &        

 

 
	
r   r+   c                     t          t          |                     dd                    t	          |                    dd||                    S )$
        Cancels the quote.
        r   /v1/quotes/{quote}/cancelr   r   r   r   r   r   s       r   cancelzQuoteService.cancel6  r  r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )r  r   r  r   r   r   r   Nr  r   s       r   cancel_asynczQuoteService.cancel_asyncK  r  r   r   c                     t          t          |                     dd                    t	          |                    dd||                    S )&
        Finalizes the quote.
        r   /v1/quotes/{quote}/finalizer   r   r   r   r   r   s       r   finalize_quotezQuoteService.finalize_quote`  sZ     MM-44;u;M;M4NN"   

 

 
	
r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )r  r   r  r   r   r   r   Nr  r   s       r   finalize_quote_asyncz!QuoteService.finalize_quote_asyncu  s~       %%-44;u;M;M4NN" &        

 

 
	
r   r   c                     t          t          |                     dd                    t	          |                    dd||                    S )
        Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.corp.stripe.com/quotes/overview#quote_pdf)
        r   /v1/quotes/{quote}/pdfr   r   filesr   )r   r
   _request_streamr   r	   r   s       r   pdfzQuoteService.pdf  s\       (//k%6H6H/II$ !  

 

 
	
r   c                    K   t          t          |                     dd                    t	          |                    dd||           d{V           S )r  r   r  r   r   r  r   N)r   r
   _request_stream_asyncr   r	   r   s       r   	pdf_asynczQuoteService.pdf_async  s~       ,,(//k%6H6H/II$ -        

 

 
	
r   ):r"   r#   r$   r   r   r(   r,   rO   rV   r]   re   rj   rp   rs   r{   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r%   r   r  r  r  r  r  r  r  r  r  r
   r!  r$  __classcell__)r   s   @r   r   r      s	       
 
 
 
 
    y       y   Z Z Z Z Zy Z Z Zx
 
 
 
 
9 
 
 
    I       y       	       i       I       y   0    y       	   <           y   (    9       i       Y   <    I          R R R R Ry R R Rh
 
 
 
 
9 
 
 
    I       y       i       I       y   8    y       	   <           y   (    9     -/"$
 
)
  
 
E		
 
 
 
, -/"$
 
)
  
 
E		
 
 
 
, /1"$
 
+
  
 
	
 
 
 
, /1"$
 
+
  
 
	
 
 
 
. 13"$	
 

 .
  	

 

 
 
 
0 13"$	
 

 .
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 /1"$	
 

 ,
  	

 

 
 
 
0 68"$	
 

 3
  	

 

 
 
 
0 68"$	
 

 3
  	

 

 
 
 
0 ,."$	
 

 )
  	

 

 
 
 
0 ,."$	
 

 )
  	

 

 
 
 
 
 
 
 
r   r   N)stripe._list_objectr   stripe._quoter   1stripe._quote_computed_upfront_line_items_servicer   stripe._quote_line_item_servicer   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr	   typingr
   r   r   r   typing_extensionsr   r   r   r   r'   r   r   <module>r/     s   + * * * * *            A @ @ @ @ @ 2 2 2 2 2 2 0 0 0 0 0 0 $ $ $ $ $ $ ( ( ( ( ( ( ( ( ( ( ( ( = = = = = = = = = =b
 b
 b
 b
 b
= b
 b
 b
 b
 b
r   