
    <@g                         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y)    )
ListObject)Quote)$QuoteComputedUpfrontLineItemsService)QuoteLineItemService)RequestOptions)StripeService)sanitize_id)AnyDictListcast)LiteralNotRequired	TypedDictc            	           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                        | _        y )N)super__init__r   
_requestor
line_itemsr   computed_upfront_line_items)self	requestor	__class__s     T/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_quote_service.pyr   zQuoteService.__init__   s7    #.t?0 	(    c                   $    e Zd ZU eee      ed<   y)QuoteService.AcceptParamsexpandN__name__
__module____qualname__r   r   str__annotations__ r   r   AcceptParamsr          DI&&	r   r(   c                   $    e Zd ZU eee      ed<   y)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 <   y!)"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	 ##JKK	 ':;
 	
	 c""	 ''>??	 !!233	 A
 	
	 DI&&	  $$	 -..	   DEE	 -..	 &6
 	
	  %H IJJ	 d38n--	 ""344	 '7
 	
	  $$	 #?
 	
	r   rO   c                   *    e Zd ZU eed<   	 ed   ed<   y)r3   enabled.QuoteService.CreateParamsAutomaticTaxLiability	liabilityNr"   r#   r$   boolr&   r   r'   r   r   CreateParamsAutomaticTaxz%QuoteService.CreateParamsAutomaticTax   #    	 <
 	
	r   rV   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rR   accountrY   r   typeNr"   r#   r$   r   r%   r&   r   r'   r   r   !CreateParamsAutomaticTaxLiabilityz.QuoteService.CreateParamsAutomaticTaxLiability   %    S!!	 '((	r   r]   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)!QuoteService.CreateParamsDiscountcoupondiscountpromotion_codeNr"   r#   r$   r   r%   r&   r'   r   r   CreateParamsDiscountr`      6    C  	 c""	 $C((	r   re   c                   *    e Zd ZU ee   ed<   	 eed<   y)rA   is_revisionquoteN)r"   r#   r$   r   rU   r&   r%   r'   r   r   CreateParamsFromQuotez"QuoteService.CreateParamsFromQuote   s     &&	 
	r   rj   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rD   days_until_due.QuoteService.CreateParamsInvoiceSettingsIssuerissuerNr"   r#   r$   r   rN   r&   r'   r   r   CreateParamsInvoiceSettingsz(QuoteService.CreateParamsInvoiceSettings   %    #C((	 LMM	r   rp   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rm   rY   rZ   r[   Nr\   r'   r   r   !CreateParamsInvoiceSettingsIssuerz.QuoteService.CreateParamsInvoiceSettingsIssuer   r^   r   rs   c                   f    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<   y	)
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   sa    I
 	
	 3	   LMM	 c""	 677	r   r{   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y))QuoteService.CreateParamsLineItemDiscountra   rb   rc   Nrd   r'   r   r   CreateParamsLineItemDiscountr}      rf   r   r~   c                   r    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<   y	)
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   p    	 	 A
 	
	 ";<
 	
	 !%%	 )--	r   r   c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r   daymonthweekyearintervalinterval_countNr"   r#   r$   r   r&   r   rN   r'   r   r   &CreateParamsLineItemPriceDataRecurringz3QuoteService.CreateParamsLineItemPriceDataRecurring  %    8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<   y)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  sV     %%	 $;
 	
	 d38n--	 ''899	r   r   c                   <    e Zd ZU ee   ed<   	 ee   ed<   	 eed<   y)%QuoteService.CreateParamsTransferDataamountamount_percentdestinationNr"   r#   r$   r   rN   r&   floatr%   r'   r   r   CreateParamsTransferDatar   &  1    C  	 $E**	 	r   r   c                   6    e Zd ZU eee      ed<   	 ee   ed<   y) QuoteService.FinalizeQuoteParamsr    r?   N)r"   r#   r$   r   r   r%   r&   rN   r'   r   r   FinalizeQuoteParamsr   4  s(    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<   y	)
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	  $$	r   r   c                   $    e Zd ZU eee      ed<   y)QuoteService.PdfParamsr    Nr!   r'   r   r   	PdfParamsr   \  r)   r   r   c                   $    e Zd ZU eee      ed<   y)QuoteService.RetrieveParamsr    Nr!   r'   r   r   RetrieveParamsr   b  r)   r   r   c                   l   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<   y)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	 ##JKK	 ':;
 	
	 c""	 ''>??	 !!233	 A
 	
	 DI&&	  $$	 -..	 -..	 &6
 	
	  %H IJJ	 d38n--	 ""344	 '7
 	
	 #?
 	
	r   r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   rQ   .QuoteService.UpdateParamsAutomaticTaxLiabilityrS   NrT   r'   r   r   UpdateParamsAutomaticTaxz%QuoteService.UpdateParamsAutomaticTax  rW   r   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   rY   rZ   r[   Nr\   r'   r   r   !UpdateParamsAutomaticTaxLiabilityz.QuoteService.UpdateParamsAutomaticTaxLiability  r^   r   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)!QuoteService.UpdateParamsDiscountra   rb   rc   Nrd   r'   r   r   UpdateParamsDiscountr     rf   r   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   rl   .QuoteService.UpdateParamsInvoiceSettingsIssuerrn   Nro   r'   r   r   UpdateParamsInvoiceSettingsz(QuoteService.UpdateParamsInvoiceSettings  rq   r   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   rY   rZ   r[   Nr\   r'   r   r   !UpdateParamsInvoiceSettingsIssuerz.QuoteService.UpdateParamsInvoiceSettingsIssuer  r^   r   r   c                   x    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	<   y
)r   z;Literal['']|List[QuoteService.UpdateParamsLineItemDiscount]r>   idru   *QuoteService.UpdateParamsLineItemPriceDatarw   rx   r:   ry   Nrz   r'   r   r   UpdateParamsLineItemz!QuoteService.UpdateParamsLineItem  ss    I
 	
	 	 3	   LMM	 c""	 677	r   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y))QuoteService.UpdateParamsLineItemDiscountra   rb   rc   Nrd   r'   r   r   UpdateParamsLineItemDiscountr     rf   r   r   c                   r    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<   y	)
r   r   r   3QuoteService.UpdateParamsLineItemPriceDataRecurringr   r   r   r   r   Nr   r'   r   r   UpdateParamsLineItemPriceDataz*QuoteService.UpdateParamsLineItemPriceData  r   r   r   c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)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<   y)	r   r<   r=   r   r   rG   r/   r   N)r"   r#   r$   r   r&   r   r%   r'   r   r   UpdateParamsSubscriptionDataz)QuoteService.UpdateParamsSubscriptionDataF  sW     !233	 $;
 	
	 d38n--	 ''899	r   r   c                   <    e Zd ZU ee   ed<   	 ee   ed<   	 eed<   y)%QuoteService.UpdateParamsTransferDatar   r   r   Nr   r'   r   r   UpdateParamsTransferDatar   Z  r   r   r   paramsr   optionsreturnc           
      X    t        t        t           | j                  ddd||            S )0
        Returns a list of your quotes.
        get
/v1/quotesapibase_addressr   r   )r   r   r   _requestr   r   r   s      r   listzQuoteService.listh  s9     uMM"  	
 		
r   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r   r   r   r   r   N)r   r   r   _request_asyncr   s      r   
list_asynczQuoteService.list_async{  sI      u%%" &  	
 		
s   +86
	8r.   c           
      J    t        t        | j                  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   s      r   createzQuoteService.create  s4     MM"  	
 		
r   c           
      f   K   t        t        | j                  ddd||       d{         S 7 w)r   r   r   r   r   N)r   r   r   r   s      r   create_asynczQuoteService.create_async  sD      %%" &  	
 		
s   $1/
	1ri   r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )8
        Retrieves the quote with the given ID.
        r   /v1/quotes/{quote}ri   r   r   r   r   r   formatr	   r   ri   r   r   s       r   retrievezQuoteService.retrieve  sG     MM$+++e2D+E"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r   r   r   r   r   r   Nr   r   r   r   r	   r   s       r   retrieve_asynczQuoteService.retrieve_async  sW      %%$+++e2D+E" &  	
 		
   =A
A
 	A
r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )D
        A quote models prices and services for a customer.
        r   r   r   r   r   r   r   s       r   updatezQuoteService.update  sG     MM$+++e2D+E"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r   r   r   r   r   Nr   r   s       r   update_asynczQuoteService.update_async  sW      %%$+++e2D+E" &  	
 		
r  r   c                 |    t        t        | j                  ddj                  t	        |            d||            S ).
        Accepts the specified quote.
        r   /v1/quotes/{quote}/acceptr   r   r   r   r   s       r   acceptzQuoteService.accept  G     MM+22U9K2L"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r   r	  r   r   r   Nr   r   s       r   accept_asynczQuoteService.accept_async  W      %%+22U9K2L" &  	
 		
r  r+   c                 |    t        t        | j                  ddj                  t	        |            d||            S )$
        Cancels the quote.
        r   /v1/quotes/{quote}/cancelr   r   r   r   r   s       r   cancelzQuoteService.cancel,  r  r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r   r  r   r   r   Nr   r   s       r   cancel_asynczQuoteService.cancel_async@  r  r  r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )&
        Finalizes the quote.
        r   /v1/quotes/{quote}/finalizer   r   r   r   r   s       r   finalize_quotezQuoteService.finalize_quoteT  sG     MM-44;u;M4N"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r   r  r   r   r   Nr   r   s       r   finalize_quote_asyncz!QuoteService.finalize_quote_asynch  sW      %%-44;u;M4N" &  	
 		
r  r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
        r   /v1/quotes/{quote}/pdfr   filesr   )r   r
   _request_streamr   r	   r   s       r   pdfzQuoteService.pdf|  sI       (//k%6H/I$ ! 	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r   r  r   r  r   N)r   r
   _request_stream_asyncr   r	   r   s       r   	pdf_asynczQuoteService.pdf_async  sW      ,,(//k%6H/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y Zx
9 
I y 	 i I y 0y 	 < y (9 i Y <I  Ry Rh
9 
I y i I y 8y 	 < y (9   -/"$
)
  
 
E		
* -/"$
)
  
 
E		
* /1"$
+
  
 
	
* /1"$
+
  
 
	
, 13"$	

 .
  	

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

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

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

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

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

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

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

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

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

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

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

 

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 0 $ ( ( = =R
= R
r   