
    <@g;                    P   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 d d	lmZ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  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l0m1Z1 d dl2m3Z3  G d ded   ed   ed         Z4y)    )CreateableAPIResource)ExpandableField)
ListObject)ListableAPIResource)RequestOptions)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)AnyClassVarDictListOptionalcastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)Account)Application)Customer)Discount)Invoice)LineItem)Subscription)SubscriptionSchedule)TaxRate)	TestClockc            	          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 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( G d@ dAe      Z) G dB dCe      Z* G dD dEe      Z+ G dF dGe      Z, G dH dIe      Z- G dJ dKe      Z. G dL dMe      Z/ G dN dOe      Z0 G dP dQe      Z1 G dR dSe      Z2 G dT dUe      Z3e4edV<   	 e4edW<   	 e5e6dX      edY<   	 e5e4   edZ<   	 e5e7   ed[<   	 e	ed\<   ed]   ed^<   	 e
ed_<   e4ed`<   	 e5e8   eda<   	 e5e6db      edc<   	 e5e9e6dd         ede<   	 e5e8   edf<   	 e9e6dg      edh<   	 e4edi<   	 e5e8   edj<   	 e5e   edk<   	 e5e8   edl<   	 e8edm<   	 e5e6dn      edo<   	 eedp<   e5e:dq      edr<   	 e;eds<   	 e<e8e8f   edt<   	 e5e8   edu<   	 ed   edv<   	 e5e6dw      edx<   	 edy   edz<   	 eed{<   e5e6d|      ed}<   	 eed~<   e5e6d      ed<   	 e5e6d      ed<   	 eed<   e5e   ed<   	 e=de8de>d   dd fd       Z?e@eAde8de>d   dd fd              ZBe@de>d   dd fd       ZB eCd      de>d   dd fd       ZBe=de8de>d   dd fd       ZDe@eAde8de>d   dd fd              ZEe@de>d   dd fd       ZE eCd      de>d   dd fd       ZEe=de8de>d   dd fd       ZFe@eAde8de>d   dd fd              ZGe@de>d   dd fd       ZG eCd      de>d   dd fd       ZGe=de8de>d   dd fd       ZHe@eAde8de>d   dd fd              ZIe@de>d   dd fd       ZI eCd      de>d   dd fd       ZIe=de>d   dd fd       ZJe=de>d   dd fd       ZKe=de8de>d   dd fd       ZLe@eAde8de>d   dd fd              ZMe@de>d   dd fd       ZM eCd      de>d   dd fd       ZMe=de8de>d   dd fd       ZNe@eAde8de>d   dd fd              ZOe@de>d   dd fd       ZO eCd      de>d   dd fd       ZOe=de>d   de:d    fd       ZPe=de>d   de:d    fd       ZQe=de8de>d   de:dq   fd       ZRe@eAde8de>d   de:dq   fd              ZSe@de>d   de:dq   fd       ZS eCd      de>d   de:dq   fd       ZSe=de8de>d   de:dq   fd       ZTe@eAde8de>d   de:dq   fd              ZUe@de>d   de:dq   fd       ZU eCd      de>d   de:dq   fd       ZUe=de8de>d   de:dq   fd       ZVe@eAde8de>d   de:dq   fd              ZWe@de>d   de:dq   fd       ZW eCd      de>d   de:dq   fd       ZWe=de8de>d   de:dq   fd       ZXe@eAde8de>d   de:dq   fd              ZYe@de>d   de:dq   fd       ZY eCd«      de>d   de:dq   fdÄ       ZYe=dme8de>d   dd fdń       ZZe=dme8de>d   dd fdƄ       Z[e=de8de>d   de\fdȄ       Z]e@eAde8de>d   de\fdɄ              Z^e@de>d   de\fdʄ       Z^ eCd˫      de>d   de\fd̄       Z^e=de8de>d   de\fd̈́       Z_e@eAde8de>d   de\fd΄              Z`e@de>d   de\fdτ       Z` eCdЫ      de>d   de\fdф       Z`e=dme8de>d   dd fdӄ       Zae=dme8de>d   dd fdԄ       Zbe	e
eeeeeed՜Zcy)Quotez
    A Quote is a way to model prices that you'd like to provide to a customer.
    Once accepted, it will automatically create an invoice, subscription or subscription schedule.
    quoteOBJECT_NAMEc                   b    e Zd ZU  G d de      Zeed<   	 ee   ed<   	 eed      ed<   	 deiZ	y)Quote.AutomaticTaxc                   6    e Zd ZU eed      ed<   	 ed   ed<   y)Quote.AutomaticTax.Liabilityr   accountr*   selftypeN__name__
__module____qualname__r   r   __annotations__r        L/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_quote.py	Liabilityr)   .   *    oi899 +,,r4   r6   enabled	liability)completefailedrequires_location_inputsstatusN)
r/   r0   r1   r   r6   boolr2   r   r   _inner_class_typesr3   r4   r5   AutomaticTaxr'   -   sV    	 	 	 I&&	 DE
 	
	 *95r4   r@   c                   `    e Zd ZU  G d de      Z G d de      Zee   ed<   	 eed<   eedZy)	Quote.Computedc                   l    e Zd ZU  G d de      Zeed<   	 eed<   	 ed   ed<   	 eed<   	 eed<   deiZy	)
Quote.Computed.Recurringc                   f    e Zd ZU  G d de      Zeed<   	 ee   ed<   	 eed<   	 ee   ed<   deiZy)%Quote.Computed.Recurring.TotalDetailsc                   h    e Zd ZU  G d de      Z G d de      Zee   ed<   	 ee   ed<   	 eedZy)	/Quote.Computed.Recurring.TotalDetails.Breakdownc                   $    e Zd ZU eed<   	 ded<   y)8Quote.Computed.Recurring.TotalDetails.Breakdown.DiscountamountDiscountResourcediscountNr/   r0   r1   intr2   r3   r4   r5   r   rJ   L        # #54r4   r   c                   N    e Zd ZU eed<   	 ded<   	 eed      ed<   	 ee   ed<   y)3Quote.Computed.Recurring.TotalDetails.Breakdown.TaxrK   r    ratecustomer_exemptnot_collectingnot_subject_to_taxnot_supportedportion_product_exemptportion_reduced_ratedportion_standard_ratedproduct_exemptproduct_exempt_holidayproportionally_ratedreduced_ratedreverse_chargestandard_ratedtaxable_basis_reduced
zero_ratedtaxability_reasontaxable_amountNr/   r0   r1   rO   r2   r   r   r3   r4   r5   TaxrR   Y   J     # (
 ,4#!., & )15r4   rg   	discountstaxesri   rj   N	r/   r0   r1   r   r   rg   r   r2   r?   r3   r4   r5   	BreakdownrH   K   K    < $l $L  $H~-  9$ 8@#)N&r4   rm   amount_discountamount_shipping
amount_tax	breakdownN	r/   r0   r1   r   rm   rO   r2   r   r?   r3   r4   r5   TotalDetailsrF   J   S    <O <O| "%$ "*#.   $I..&19%="r4   rt   amount_subtotalamount_totaldaymonthweekyearintervalinterval_counttotal_detailsN)	r/   r0   r1   r   rt   rO   r2   r   r?   r3   r4   r5   	RecurringrD   I   s^    L>| L>\ !   <==   ('"1<!@r4   r   c                   f    e Zd ZU  G d de      Zeed<   	 eed<   	 eed      ed<   	 eed<   deiZ	y)	Quote.Computed.Upfrontc                   f    e Zd ZU  G d de      Zeed<   	 ee   ed<   	 eed<   	 ee   ed<   deiZy)#Quote.Computed.Upfront.TotalDetailsc                   h    e Zd ZU  G d de      Z G d de      Zee   ed<   	 ee   ed<   	 eedZy)	-Quote.Computed.Upfront.TotalDetails.Breakdownc                   $    e Zd ZU eed<   	 ded<   y)6Quote.Computed.Upfront.TotalDetails.Breakdown.DiscountrK   rL   rM   NrN   r3   r4   r5   r   r      rP   r4   r   c                   N    e Zd ZU eed<   	 ded<   	 eed      ed<   	 ee   ed<   y)1Quote.Computed.Upfront.TotalDetails.Breakdown.TaxrK   r    rS   rT   rd   re   Nrf   r3   r4   r5   rg   r      rh   r4   rg   ri   rj   rk   Nrl   r3   r4   r5   rm   r      rn   r4   rm   ro   rp   rq   rr   Nrs   r3   r4   r5   rt   r      ru   r4   rt   rv   rw   r   
line_itemsr   N)
r/   r0   r1   r   rt   rO   r2   r   r   r?   r3   r4   r5   Upfrontr      sU    L>| L>\ !   !J!788 ('"1<!@r4   r   	recurringupfront)r   r   N)	r/   r0   r1   r   r   r   r   r2   r?   r3   r4   r5   ComputedrB   H   sI    `	A `	AD\	Al \	A| I&&	 +4Ir4   r   c                   *    e Zd ZU eed<   	 ed   ed<   y)Quote.FromQuoteis_revisionr#   r$   N)r/   r0   r1   r>   r2   r   r3   r4   r5   	FromQuoter     s    	 w''	r4   r   c                   H    e Zd ZU  G d de      Zee   ed<   	 eed<   deiZy)Quote.InvoiceSettingsc                   6    e Zd ZU eed      ed<   	 ed   ed<   y)Quote.InvoiceSettings.Issuerr   r*   r+   r-   Nr.   r3   r4   r5   Issuerr     r7   r4   r   days_until_dueissuerN)	r/   r0   r1   r   r   r   rO   r2   r?   r3   r4   r5   InvoiceSettingsr     s1    	\ 	 !%	 &/r4   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Quote.StatusTransitionsaccepted_atcanceled_atfinalized_atN)r/   r0   r1   r   rO   r2   r3   r4   r5   StatusTransitionsr   ,  s3    c]"	 c]"	 sm#	r4   r   c                   ^    e Zd ZU ee   ed<   	 ee   ed<   	 eeeef      ed<   	 ee   ed<   y)Quote.SubscriptionDatadescriptioneffective_datemetadatatrial_period_daysN)r/   r0   r1   r   strr2   rO   r   r3   r4   r5   SubscriptionDatar   :  sM    c]"	 !%	 4S>**	 $C=(	r4   r   c                   f    e Zd ZU  G d de      Zeed<   	 ee   ed<   	 eed<   	 ee   ed<   deiZy)Quote.TotalDetailsc                   h    e Zd ZU  G d de      Z G d de      Zee   ed<   	 ee   ed<   	 eedZy)	Quote.TotalDetails.Breakdownc                   $    e Zd ZU eed<   	 ded<   y)%Quote.TotalDetails.Breakdown.DiscountrK   rL   rM   NrN   r3   r4   r5   r   r   N  s     -,r4   r   c                   N    e Zd ZU eed<   	 ded<   	 eed      ed<   	 ee   ed<   y) Quote.TotalDetails.Breakdown.TaxrK   r    rS   rT   rd   re   Nrf   r3   r4   r5   rg   r   [  sJ      
 $,&$ & !)-r4   rg   ri   rj   rk   Nrl   r3   r4   r5   rm   r   M  sJ    < $l $L H~% 9 08#!Fr4   rm   ro   rp   rq   rr   Nrs   r3   r4   r5   rt   r   L  sS    <	G <	G| 	 "#&	 	 I&&)95r4   rt   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   y)Quote.TransferDatarK   amount_percentr   destinationN)r/   r0   r1   r   rO   r2   floatr   r3   r4   r5   TransferDatar     s4    	 !'	 %Y//	r4   r   c                   $    e Zd ZU eee      ed<   y)Quote.AcceptParamsexpandNr/   r0   r1   r   r   r   r2   r3   r4   r5   AcceptParamsr         DI&&	r4   r   c                   $    e Zd ZU eee      ed<   y)Quote.CancelParamsr   Nr   r3   r4   r5   CancelParamsr     r   r4   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!)"Quote.CreateParamsLiteral['']|intapplication_fee_amountLiteral['']|floatapplication_fee_percentQuote.CreateParamsAutomaticTaxautomatic_taxcharge_automaticallysend_invoicecollection_methodcustomerLiteral['']|List[str]default_tax_ratesLiteral['']|strr   z,Literal['']|List[Quote.CreateParamsDiscount]ri   r   
expires_atfooterQuote.CreateParamsFromQuote
from_quoteheader!Quote.CreateParamsInvoiceSettingsinvoice_settingsQuote.CreateParamsLineItemr   r   on_behalf_of"Quote.CreateParamsSubscriptionDatasubscription_data
test_clockz*Literal['']|Quote.CreateParamsTransferDatatransfer_dataN
r/   r0   r1   r   r2   r   r   r   rO   r   r3   r4   r5   CreateParamsr     s    +,= >>	 "--@!AA	 ##CDD	 ':;
 	
	 c""	 ''>??	 !!233	 MNN	 DI&&	  $$	 -..	   =>>	 -..	 &&IJJ	  %A BCC	 d38n--	 ""344	 ''KLL	  $$	 #8
 	
	r4   r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   r8   'Quote.CreateParamsAutomaticTaxLiabilityr9   Nr/   r0   r1   r>   r2   r   r3   r4   r5   CreateParamsAutomaticTaxzQuote.CreateParamsAutomaticTax
      	 HII	r4   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   r*   r+   r-   Nr/   r0   r1   r   r   r2   r   r3   r4   r5   !CreateParamsAutomaticTaxLiabilityz'Quote.CreateParamsAutomaticTaxLiability  %    S!!	 '((	r4   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Quote.CreateParamsDiscountcouponrM   promotion_codeNr/   r0   r1   r   r   r2   r3   r4   r5   CreateParamsDiscountr     6    C  	 c""	 $C((	r4   r   c                   *    e Zd ZU ee   ed<   	 eed<   y)r   r   r$   N)r/   r0   r1   r   r>   r2   r   r3   r4   r5   CreateParamsFromQuotezQuote.CreateParamsFromQuote,  s     &&	 
	r4   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   r   'Quote.CreateParamsInvoiceSettingsIssuerr   Nr/   r0   r1   r   rO   r2   r3   r4   r5   CreateParamsInvoiceSettingsz!Quote.CreateParamsInvoiceSettings6  %    #C((	 EFF	r4   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   r*   r+   r-   Nr   r3   r4   r5   !CreateParamsInvoiceSettingsIssuerz'Quote.CreateParamsInvoiceSettingsIssuer@  r   r4   r   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	)
r   z4Literal['']|List[Quote.CreateParamsLineItemDiscount]ri   price#Quote.CreateParamsLineItemPriceData
price_dataquantityr   	tax_ratesNr/   r0   r1   r   r2   r   rO   r3   r4   r5   CreateParamsLineItemzQuote.CreateParamsLineItemJ  sa    B
 	
	 3	   EFF	 c""	 677	r4   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)"Quote.CreateParamsLineItemDiscountr   rM   r   Nr   r3   r4   r5   CreateParamsLineItemDiscountr  b  r   r4   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   currencyproduct,Quote.CreateParamsLineItemPriceDataRecurringr   	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalNr/   r0   r1   r   r2   r   r   rO   r3   r4   r5   CreateParamsLineItemPriceDataz#Quote.CreateParamsLineItemPriceDatap  l    	 	 MNN	 ";<
 	
	 !%%	 )--	r4   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  rx   r}   r~   Nr/   r0   r1   r   r2   r   rO   r3   r4   r5   &CreateParamsLineItemPriceDataRecurringz,Quote.CreateParamsLineItemPriceDataRecurring  %    899	 $C((	r4   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)r   r   -Literal['']|Literal['current_period_end']|intr   r   r   r   N)r/   r0   r1   r   r   r2   r   r3   r4   r5   CreateParamsSubscriptionDataz"Quote.CreateParamsSubscriptionData  sV     %%	 $;
 	
	 d38n--	 ''899	r4   r  c                   <    e Zd ZU ee   ed<   	 ee   ed<   	 eed<   y)Quote.CreateParamsTransferDatarK   r   r   Nr/   r0   r1   r   rO   r2   r   r   r3   r4   r5   CreateParamsTransferDatar    1    C  	 $E**	 	r4   r  c                   6    e Zd ZU eee      ed<   	 ee   ed<   y)Quote.FinalizeQuoteParamsr   r   N)r/   r0   r1   r   r   r   r2   rO   r3   r4   r5   FinalizeQuoteParamsr    s(    DI&&	  $$	r4   r   c                   Z    e Zd ZU ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   y)(Quote.ListComputedUpfrontLineItemsParamsending_beforer   limitstarting_afterNr/   r0   r1   r   r   r2   r   rO   r3   r4   r5   "ListComputedUpfrontLineItemsParamsr"    L    "3''	 DI&&	 3	 $C((	r4   r'  c                   Z    e Zd ZU ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   y)Quote.ListLineItemsParamsr#  r   r$  r%  Nr&  r3   r4   r5   ListLineItemsParamsr*    r(  r4   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	)
Quote.ListParamsr   r#  r   r$  r%  acceptedcanceleddraftopenr=   r   N)	r/   r0   r1   r   r   r2   r   rO   r   r3   r4   r5   
ListParamsr-    s    c""	 #3''	 DI&&	 3	 $C((	 G$KLMM	  $$	r4   r3  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)Quote.ModifyParamsr   r   r   r   Quote.ModifyParamsAutomaticTaxr   r   r   r   r   r   r   r   z,Literal['']|List[Quote.ModifyParamsDiscount]ri   r   r   r   r   !Quote.ModifyParamsInvoiceSettingsr   Quote.ModifyParamsLineItemr   r   r   "Quote.ModifyParamsSubscriptionDatar   z*Literal['']|Quote.ModifyParamsTransferDatar   Nr   r3   r4   r5   ModifyParamsr5    sq    +,= >>	 "--@!AA	 ##CDD	 ':;
 	
	 c""	 ''>??	 !!233	 MNN	 DI&&	  $$	 -..	 -..	 &&IJJ	  %A BCC	 d38n--	 ""344	 ''KLL	 #8
 	
	r4   r:  c                   *    e Zd ZU eed<   	 ed   ed<   y)r6  r8   'Quote.ModifyParamsAutomaticTaxLiabilityr9   Nr   r3   r4   r5   ModifyParamsAutomaticTaxzQuote.ModifyParamsAutomaticTaxR  r   r4   r=  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r<  r*   r+   r-   Nr   r3   r4   r5   !ModifyParamsAutomaticTaxLiabilityz'Quote.ModifyParamsAutomaticTaxLiability\  r   r4   r?  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Quote.ModifyParamsDiscountr   rM   r   Nr   r3   r4   r5   ModifyParamsDiscountrA  f  r   r4   rB  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r7  r   'Quote.ModifyParamsInvoiceSettingsIssuerr   Nr   r3   r4   r5   ModifyParamsInvoiceSettingsz!Quote.ModifyParamsInvoiceSettingst  r   r4   rE  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rD  r*   r+   r-   Nr   r3   r4   r5   !ModifyParamsInvoiceSettingsIssuerz'Quote.ModifyParamsInvoiceSettingsIssuer~  r   r4   rG  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
)r8  z4Literal['']|List[Quote.ModifyParamsLineItemDiscount]ri   idr   #Quote.ModifyParamsLineItemPriceDatar   r   r   r   Nr   r3   r4   r5   ModifyParamsLineItemzQuote.ModifyParamsLineItem  ss    B
 	
	 	 3	   EFF	 c""	 677	r4   rK  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)"Quote.ModifyParamsLineItemDiscountr   rM   r   Nr   r3   r4   r5   ModifyParamsLineItemDiscountrM    r   r4   rN  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	)
rJ  r  r  ,Quote.ModifyParamsLineItemPriceDataRecurringr   r  r  r  r  Nr  r3   r4   r5   ModifyParamsLineItemPriceDataz#Quote.ModifyParamsLineItemPriceData  r  r4   rQ  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rP  rx   r}   r~   Nr  r3   r4   r5   &ModifyParamsLineItemPriceDataRecurringz,Quote.ModifyParamsLineItemPriceDataRecurring  r  r4   rS  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)	r9  r   r   r  r   r   r   r   N)r/   r0   r1   r   r2   r   r   r3   r4   r5   ModifyParamsSubscriptionDataz"Quote.ModifyParamsSubscriptionData  sW     !233	 $;
 	
	 d38n--	 ''899	r4   rU  c                   <    e Zd ZU ee   ed<   	 ee   ed<   	 eed<   y)Quote.ModifyParamsTransferDatarK   r   r   Nr  r3   r4   r5   ModifyParamsTransferDatarW    r  r4   rX  c                   $    e Zd ZU eee      ed<   y)Quote.PdfParamsr   Nr   r3   r4   r5   	PdfParamsrZ    r   r4   r[  c                   $    e Zd ZU eee      ed<   y)Quote.RetrieveParamsr   Nr   r3   r4   r5   RetrieveParamsr]     r   r4   r^  rv   rw   r   applicationr   r   r   r   r   computedcreatedr  r   r   r    r   r   rL   ri   r   r   r   r   rI  r   invoicer   r   r   livemoder   numberobjectr   r   r.  r=   status_transitionsr   subscriptionr   r   subscription_scheduler!   r   r   r   paramsr   returnc                 p    t        d| j                  ddj                  t        |            |            S ).
        Accepts the specified quote.
        r#   post/v1/quotes/{quote}/acceptr$   ri  r   _static_requestformatr   clsr$   ri  s      r5   _cls_acceptzQuote._cls_accept  C     +22U9K2L   
 	
r4   c                      yrl  Nr3   r$   ri  s     r5   acceptzQuote.accept       	r4   c                      yry  r3   r,   ri  s     r5   r{  zQuote.accept      
 	r4   rv  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )rl  r#   rm  rn  rI  ro  rp  r   _requestrs  r   getr~  s     r5   r{  zQuote.accept  P     MM+22%dhhtn5 3    	
 		
r4   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)rl  r#   rm  rn  ro  rp  Nr   _static_request_asyncrs  r   rt  s      r5   _cls_accept_asynczQuote._cls_accept_async  Q      +++22U9K2L ,  
 	
   7AA
	Ac                    K   ywry  r3   rz  s     r5   accept_asynczQuote.accept_async        	   c                    K   ywry  r3   r~  s     r5   r  zQuote.accept_async        	r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)rl  r#   rm  rn  rI  ro  rp  Nr   _request_asyncrs  r   r  r~  s     r5   r  zQuote.accept_async  `      %%+22%dhhtn5 3   &  	
 		
   AAA
		Ar   c                 p    t        d| j                  ddj                  t        |            |            S )$
        Cancels the quote.
        r#   rm  /v1/quotes/{quote}/cancelro  rp  rq  rt  s      r5   _cls_cancelzQuote._cls_cancel  rw  r4   c                      yr  Nr3   rz  s     r5   cancelzQuote.cancel  r|  r4   c                      yr  r3   r~  s     r5   r  zQuote.cancel  r  r4   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r#   rm  r  rI  ro  rp  r  r~  s     r5   r  zQuote.cancel  r  r4   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r#   rm  r  ro  rp  Nr  rt  s      r5   _cls_cancel_asynczQuote._cls_cancel_async  r  r  c                    K   ywr  r3   rz  s     r5   cancel_asynczQuote.cancel_async(  r  r  c                    K   ywr  r3   r~  s     r5   r  zQuote.cancel_async2  r  r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r#   rm  r  rI  ro  rp  Nr  r~  s     r5   r  zQuote.cancel_async;  r  r  r   c                 Z    t        d| j                  d| j                         |            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).
        r#   rm  rp  )r   rr  	class_urlru  ri  s     r5   createzQuote.createM  s6    
    
 	
r4   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r  r#   rm  rp  N)r   r  r  r  s     r5   create_asynczQuote.create_async[  sD      ++ ,  
 	
s   ,97
	9r  c                 p    t        d| j                  ddj                  t        |            |            S )&
        Finalizes the quote.
        r#   rm  /v1/quotes/{quote}/finalizero  rp  rq  rt  s      r5   _cls_finalize_quotezQuote._cls_finalize_quotek  sC     -44;u;M4N   
 	
r4   c                      yr  Nr3   rz  s     r5   finalize_quotezQuote.finalize_quote{       	r4   c                      yr  r3   r~  s     r5   r  zQuote.finalize_quote       	r4   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r#   rm  r  rI  ro  rp  r  r~  s     r5   r  zQuote.finalize_quote  sP     MM-44%dhhtn5 5    	
 		
r4   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r#   rm  r  ro  rp  Nr  rt  s      r5   _cls_finalize_quote_asynczQuote._cls_finalize_quote_async  sQ      ++-44;u;M4N ,  
 	
r  c                    K   ywr  r3   rz  s     r5   finalize_quote_asynczQuote.finalize_quote_async  r  r  c                    K   ywr  r3   r~  s     r5   r  zQuote.finalize_quote_async  r  r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r#   rm  r  rI  ro  rp  Nr  r~  s     r5   r  zQuote.finalize_quote_async  s`      %%-44%dhhtn5 5   &  	
 		
r  r-  c                     | j                  d| j                         |      }t        |t              s!t	        dt        |      j                  z        |S )0
        Returns a list of your quotes.
        r  rp  %Expected list object from API, got %s)rr  r  
isinstancer   	TypeErrorr-   r/   ru  ri  results      r5   listz
Quote.list  s]    
 $$MMO % 

 &*-7<((* 
 r4   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)r  r  rp  Nr  )r  r  r  r   r  r-   r/   r  s      r5   
list_asynczQuote.list_async  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"r"  c                 ~    t        t        d   | j                  ddj                  t	        |            |            S )E  
        When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items.
        r   r  ./v1/quotes/{quote}/computed_upfront_line_itemsro  rp  r   r   rr  rs  r   rt  s      r5   %_cls_list_computed_upfront_line_itemsz+Quote._cls_list_computed_upfront_line_items  sP     z"@GG%e, H     	
 		
r4   c                      yr  Nr3   rz  s     r5    list_computed_upfront_line_itemsz&Quote.list_computed_upfront_line_items  s     	r4   c                      yr  r3   r~  s     r5   r  z&Quote.list_computed_upfront_line_items  r  r4   r  c                     t        t        d   | j                  ddj                  t	        | j                  d                  |            S )r  r   r  r  rI  ro  rp  r   r   r  rs  r   r  r~  s     r5   r  z&Quote.list_computed_upfront_line_items#  sV     z"MM@GG%dhhtn5 H    	
 		
r4   c                    K   t        t        d   | j                  ddj                  t	        |            |       d{         S 7 w)r  r   r  r  ro  rp  Nr   r   r  rs  r   rt  s      r5   +_cls_list_computed_upfront_line_items_asyncz1Quote._cls_list_computed_upfront_line_items_async5  s^      z"++@GG%e, H   ,  	
 		
   >A A	
	Ac                    K   ywr  r3   rz  s     r5   &list_computed_upfront_line_items_asyncz,Quote.list_computed_upfront_line_items_asyncI  s      	r  c                    K   ywr  r3   r~  s     r5   r  z,Quote.list_computed_upfront_line_items_asyncT  r  r  r  c                    K   t        t        d   | j                  ddj                  t	        | j                  d                  |       d{         S 7 w)r  r   r  r  rI  ro  rp  Nr   r   r  rs  r   r  r~  s     r5   r  z,Quote.list_computed_upfront_line_items_async]  sf      z"%%@GG%dhhtn5 H   &  	
 		
   AAA
	Ar*  c                 ~    t        t        d   | j                  ddj                  t	        |            |            S )
        When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        r   r  /v1/quotes/{quote}/line_itemsro  rp  r  rt  s      r5   _cls_list_line_itemszQuote._cls_list_line_itemso  sO     z"/66%e, 7     	
 		
r4   c                      yr  Nr3   rz  s     r5   list_line_itemszQuote.list_line_items  r  r4   c                      yr  r3   r~  s     r5   r  zQuote.list_line_items  r  r4   r  c                     t        t        d   | j                  ddj                  t	        | j                  d                  |            S )r  r   r  r  rI  ro  rp  r  r~  s     r5   r  zQuote.list_line_items  sU     z"MM/66%dhhtn5 7    	
 		
r4   c                    K   t        t        d   | j                  ddj                  t	        |            |       d{         S 7 w)r  r   r  r  ro  rp  Nr  rt  s      r5   _cls_list_line_items_asyncz Quote._cls_list_line_items_async  s]      z"++/66%e, 7   ,  	
 		
r  c                    K   ywr  r3   rz  s     r5   list_line_items_asynczQuote.list_line_items_async  r  r  c                    K   ywr  r3   r~  s     r5   r  zQuote.list_line_items_async  r  r  r  c                    K   t        t        d   | j                  ddj                  t	        | j                  d                  |       d{         S 7 w)r  r   r  r  rI  ro  rp  Nr  r~  s     r5   r  zQuote.list_line_items_async  se      z"%%/66%dhhtn5 7   &  	
 		
r  r5  c                 z    | j                         dt        |      }t        d| j                  d||            S )D
        A quote models prices and services for a customer.
        /r#   rm  rp  )r  r   r   rr  ru  rI  ri  urls       r5   modifyzQuote.modify  sD     +b/:   
 	
r4   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r  r  r#   rm  rp  N)r  r   r   r  r  s       r5   modify_asynczQuote.modify_async  sR      +b/:++ ,  
 	
   <A	A
	A	rZ  c                 z    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}/pdfro  filesri  base_address)r   r   _static_request_streamrs  r   rt  s      r5   _cls_pdfzQuote._cls_pdf  sF    
 &&(//k%6H/I$	 ' 
 	
r4   c                      yr  Nr3   rz  s     r5   pdfz	Quote.pdf  r|  r4   c                      yr  r3   r~  s     r5   r  z	Quote.pdf  r  r4   r  c                     t        t        | j                  ddj                  t	        | j                  d                  |d            S )r  r  r  rI  ro  r  r  )r   r   _request_streamrs  r   r  r~  s     r5   r  z	Quote.pdf  sU       (//%dhhtn5 0  $ ! 

 
	
r4   c                    K   t        t        | j                  ddj                  t	        |            |d       d{         S 7 w)r  r  r  ro  r  r  N)r   r   _static_request_stream_asyncrs  r   rt  s      r5   _cls_pdf_asynczQuote._cls_pdf_async0  sT      22(//k%6H/I$	 3  
 	
r  c                    K   ywr  r3   rz  s     r5   	pdf_asynczQuote.pdf_asyncA  r  r  c                    K   ywr  r3   r~  s     r5   r  zQuote.pdf_asyncK  s     
 	r  r  c                    K   t        t        | j                  ddj                  t	        | j                  d                  |d       d{         S 7 w)r  r  r  rI  ro  r  r  N)r   r   _request_stream_asyncrs  r   r  r~  s     r5   r  zQuote.pdf_asyncR  sc      ,,(//%dhhtn5 0  $ -  

 
	
s   AAA
	Ar]  c                 8     | |fi |}|j                          |S )8
        Retrieves the quote with the given ID.
        )refreshru  rI  ri  instances       r5   retrievezQuote.retrievee  s$     r$V$r4   c                 T   K    | |fi |}|j                          d{    |S 7 w)r  N)refresh_asyncr  s       r5   retrieve_asynczQuote.retrieve_asyncp  s3      r$V$$$&&& 	's   (&()r   r`  r   r   rf  r   r   r   N)dr/   r0   r1   __doc__r%   r   r   r2   r   r@   r   r   r   r   r   rt   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r   r'  r+  r3  r:  r=  r?  rB  rE  rG  rK  rN  rQ  rS  rU  rX  r[  r^  rO   r   r   r   r   r   r   r>   r   classmethodr   rv  r   staticmethodr{  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?   r3   r4   r5   r#   r#   !   s   

 /6K''*+56| 66FJ< FJPL 0, 0$L < $L6| L6\| ~ ~ T~ Tl9 I y 	 i I y 0y 	 8 y (9 n ^ $n $^ <L~ L\9 I y i I y 8y 	 8 y (9 N     /-899 %SM) &e_,  EFF L sm z233  _Y%? @AA # O$6788 O SM ## SM 	G oi011 &%J/00 N 38n SM G ?9566 ;<< *)?>:;; ('#O4J$KLL 566  L)) 

#)*>#?
	
 
 c V,@%A g    v&:;    -(
34
	
 )
" 

#)*>#?
	
 
 $%9:	   34	  -.
34
	
 /
" 

#)*>#?
	
 
 c V,@%A g    v&:;    -(
34
	
 )
" 

#)*>#?
	
 
 $%9:	   34	  -.
34
	
 /
" 
f%9: 
w 
 
 
23
	
 
 

#)*E#F
	
 
 $%@A	   :;	  /0
:;
	
 1
" 

#)*E#F
	
 
 $%@A	   :;	  56
:;
	
 7
" F#56 :g;N  " 01	G	 & 

 CD
 
J		
 
& CD 
J	   IJ	J	  AB
IJ
	J	
 C
" 

 CD
 
J		
 
& CD 
J	   IJ	J	  GH
IJ
	J	
 I
" 

#)*E#F
	J	
 
" $%@A	J	   :;	J	  01
:;
	J	
 2
" 

#)*E#F
	J	
 
" $%@A	J	   :;	J	  67
:;
	J	
 8
" 

 &'; <
	
 
  

 &'; <
	
 
  
S 
F3D,E 
# 
 
 3 &):";     F#45 #   *%
01
	
 &
$ 

#)*;#<
	
 
  $%67	   /@(A c   *+
01
	
 ,
$  &'= >	   &'= >	  &+/-%%	r4   r#   N)5stripe._createable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   stripe._updateable_api_resourcer	   stripe._utilr
   r   typingr   r   r   r   r   r   r   typing_extensionsr   r   r   r   r   stripe._accountr   stripe._applicationr   stripe._customerr   stripe._discountr   rL   stripe._invoicer   stripe._line_itemr   stripe._subscriptionr   stripe._subscription_scheduler   stripe._tax_rater    stripe.test_helpers._test_clockr!   r#   r3   r4   r5   <module>r*     sz    B 4 * = 2 . A : F F F  '/)='*1B(9c'" '"cr4   