
    h^<                    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                   t    e Zd ZU  G d de      Zeed<   	 e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        M/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/stripe/_quote.py	Liabilityr)   .   *    oi899 +,,r4   r6   enabled	liabilityprovider)completefailedrequires_location_inputsstatusN)r/   r0   r1   r   r6   boolr2   r   strr   _inner_class_typesr3   r4   r5   AutomaticTaxr'   -   sg    	 	 	 I&&	 3-	 DE
 	
	 *95r4   rB   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   rL   P        # #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.TaxrM   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   rQ   r2   r   r   r3   r4   r5   TaxrT   ]   J     # (
 ,4#!., & )15r4   ri   	discountstaxesrk   rl   N	r/   r0   r1   r   r   ri   r   r2   rA   r3   r4   r5   	BreakdownrJ   O   K    < $l $L  $H~-  9$ 8@#)N&r4   ro   amount_discountamount_shipping
amount_tax	breakdownN	r/   r0   r1   r   ro   rQ   r2   r   rA   r3   r4   r5   TotalDetailsrH   N   S    <O <O| "%$ "*#.   $I..&19%="r4   rv   amount_subtotalamount_totaldaymonthweekyearintervalinterval_counttotal_detailsN)	r/   r0   r1   r   rv   rQ   r2   r   rA   r3   r4   r5   	RecurringrF   M   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.DiscountrM   rN   rO   NrP   r3   r4   r5   r   r      rR   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.TaxrM   r    rU   rV   rf   rg   Nrh   r3   r4   r5   ri   r      rj   r4   ri   rk   rl   rm   Nrn   r3   r4   r5   ro   r      rp   r4   ro   rq   rr   rs   rt   Nru   r3   r4   r5   rv   r      rw   r4   rv   rx   ry   r   
line_itemsr   N)
r/   r0   r1   r   rv   rQ   r2   r   r   rA   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   rA   r3   r4   r5   ComputedrD   L   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   rQ   r2   rA   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   rQ   r2   r3   r4   r5   StatusTransitionsr   0  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   r@   r2   rQ   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.DiscountrM   rN   rO   NrP   r3   r4   r5   r   r   R  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.TaxrM   r    rU   rV   rf   rg   Nrh   r3   r4   r5   ri   r   _  sJ      
 $,&$ & !)-r4   ri   rk   rl   rm   Nrn   r3   r4   r5   ro   r   Q  sJ    < $l $L H~% 9 08#!Fr4   ro   rq   rr   rs   rt   Nru   r3   r4   r5   rv   r   P  sS    <	G <	G| 	 "#&	 	 I&&)95r4   rv   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   y)Quote.TransferDatarM   amount_percentr   destinationN)r/   r0   r1   r   rQ   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]rk   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   rQ   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couponrO   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.CreateParamsFromQuote0  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   rQ   r2   r3   r4   r5   CreateParamsInvoiceSettingsz!Quote.CreateParamsInvoiceSettings:  %    #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.CreateParamsInvoiceSettingsIssuerD  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]rk   price#Quote.CreateParamsLineItemPriceData
price_dataquantityr   	tax_ratesNr/   r0   r1   r   r2   r@   rQ   r3   r4   r5   CreateParamsLineItemzQuote.CreateParamsLineItemN  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   rO   r   Nr   r3   r4   r5   CreateParamsLineItemDiscountr  f  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   rQ   r3   r4   r5   CreateParamsLineItemPriceDataz#Quote.CreateParamsLineItemPriceDatat  l    	 	 MNN	 ";<
 	
	 !%%	 )--	r4   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  rz   r   r   Nr/   r0   r1   r   r2   r   rQ   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.CreateParamsTransferDatarM   r   r   Nr/   r0   r1   r   rQ   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   rQ   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   rQ   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   rQ   r   r3   r4   r5   
ListParamsr.    s    c""	 #3''	 DI&&	 3	 $C((	 G$KLMM	  $$	r4   r4  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]rk   r   r   r   r   !Quote.ModifyParamsInvoiceSettingsr   Quote.ModifyParamsLineItemr   r   r   "Quote.ModifyParamsSubscriptionDatar   z*Literal['']|Quote.ModifyParamsTransferDatar   Nr   r3   r4   r5   ModifyParamsr6    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)r7  r8   'Quote.ModifyParamsAutomaticTaxLiabilityr9   Nr   r3   r4   r5   ModifyParamsAutomaticTaxzQuote.ModifyParamsAutomaticTaxV  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   rO   r   Nr   r3   r4   r5   ModifyParamsDiscountrB  j  r   r4   rC  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r8  r   'Quote.ModifyParamsInvoiceSettingsIssuerr   Nr   r3   r4   r5   ModifyParamsInvoiceSettingsz!Quote.ModifyParamsInvoiceSettingsx  r   r4   rF  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rE  r*   r+   r-   Nr   r3   r4   r5   !ModifyParamsInvoiceSettingsIssuerz'Quote.ModifyParamsInvoiceSettingsIssuer  r   r4   rH  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
)r9  z4Literal['']|List[Quote.ModifyParamsLineItemDiscount]rk   idr   #Quote.ModifyParamsLineItemPriceDatar   r   r   r   Nr   r3   r4   r5   ModifyParamsLineItemzQuote.ModifyParamsLineItem  ss    B
 	
	 	 3	   EFF	 c""	 677	r4   rL  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)"Quote.ModifyParamsLineItemDiscountr   rO   r   Nr   r3   r4   r5   ModifyParamsLineItemDiscountrN    r   r4   rO  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	)
rK  r  r  ,Quote.ModifyParamsLineItemPriceDataRecurringr   r	  r  r  r  Nr  r3   r4   r5   ModifyParamsLineItemPriceDataz#Quote.ModifyParamsLineItemPriceData  r  r4   rR  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rQ  rz   r   r   Nr  r3   r4   r5   &ModifyParamsLineItemPriceDataRecurringz,Quote.ModifyParamsLineItemPriceDataRecurring  r  r4   rT  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   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   rV  c                   <    e Zd ZU ee   ed<   	 ee   ed<   	 eed<   y)Quote.ModifyParamsTransferDatarM   r   r   Nr  r3   r4   r5   ModifyParamsTransferDatarX    r  r4   rY  c                   $    e Zd ZU eee      ed<   y)Quote.PdfParamsr   Nr   r3   r4   r5   	PdfParamsr[    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_  rx   ry   r   applicationr   r   r   r   r   computedcreatedr  r   r   r    r   r   rN   rk   r   r   r   r   rJ  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$   rj  r   _static_requestformatr   clsr$   rj  s      r5   _cls_acceptzQuote._cls_accept  C     +22U9K2L   
 	
r4   c                      yrm  Nr3   r$   rj  s     r5   acceptzQuote.accept       	r4   c                      yrz  r3   r,   rj  s     r5   r|  zQuote.accept      
 	r4   rw  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )rm  r#   rn  ro  rJ  rp  rq  r   _requestrt  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)rm  r#   rn  ro  rp  rq  Nr   _static_request_asyncrt  r   ru  s      r5   _cls_accept_asynczQuote._cls_accept_async  Q      +++22U9K2L ,  
 	
   7AA
	Ac                    K   ywrz  r3   r{  s     r5   accept_asynczQuote.accept_async        	   c                    K   ywrz  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)rm  r#   rn  ro  rJ  rp  rq  Nr   _request_asyncrt  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#   rn  /v1/quotes/{quote}/cancelrp  rq  rr  ru  s      r5   _cls_cancelzQuote._cls_cancel  rx  r4   c                      yr  Nr3   r{  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#   rn  r  rJ  rp  rq  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#   rn  r  rp  rq  Nr  ru  s      r5   _cls_cancel_asynczQuote._cls_cancel_async  r  r  c                    K   ywr  r3   r{  s     r5   cancel_asynczQuote.cancel_async,  r  r  c                    K   ywr  r3   r  s     r5   r  zQuote.cancel_async6  r  r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r#   rn  r  rJ  rp  rq  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#   rn  rq  )r   rs  	class_urlrv  rj  s     r5   createzQuote.createQ  s6    
    
 	
r4   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r  r#   rn  rq  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#   rn  /v1/quotes/{quote}/finalizerp  rq  rr  ru  s      r5   _cls_finalize_quotezQuote._cls_finalize_quoteo  sC     -44;u;M4N   
 	
r4   c                      yr  Nr3   r{  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#   rn  r  rJ  rp  rq  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#   rn  r  rp  rq  Nr  ru  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   r{  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#   rn  r  rJ  rp  rq  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  rq  %Expected list object from API, got %s)rs  r  
isinstancer   	TypeErrorr-   r/   rv  rj  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  rq  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_itemsrp  rq  r   r   rs  rt  r   ru  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   r{  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  rJ  rp  rq  r   r   r  rt  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  rp  rq  Nr   r   r  rt  r   ru  s      r5   +_cls_list_computed_upfront_line_items_asyncz1Quote._cls_list_computed_upfront_line_items_async9  s^      z"++@GG%e, H   ,  	
 		
   >A A	
	Ac                    K   ywr  r3   r{  s     r5   &list_computed_upfront_line_items_asyncz,Quote.list_computed_upfront_line_items_asyncM  s      	r  c                    K   ywr  r3   r  s     r5   r  z,Quote.list_computed_upfront_line_items_asyncX  r  r  r  c                    K   t        t        d   | j                  ddj                  t	        | j                  d                  |       d{         S 7 w)r  r   r  r  rJ  rp  rq  Nr   r   r  rt  r   r  r  s     r5   r  z,Quote.list_computed_upfront_line_items_asynca  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_itemsrp  rq  r  ru  s      r5   _cls_list_line_itemszQuote._cls_list_line_itemss  sO     z"/66%e, 7     	
 		
r4   c                      yr  Nr3   r{  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  rJ  rp  rq  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  rp  rq  Nr  ru  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   r{  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  rJ  rp  rq  Nr  r  s     r5   r  zQuote.list_line_items_async  se      z"%%/66%dhhtn5 7   &  	
 		
r  r6  c                 z    | j                         dt        |      }t        d| j                  d||            S )D
        A quote models prices and services for a customer.
        /r#   rn  rq  )r  r   r   rs  rv  rJ  rj  urls       r5   modifyzQuote.modify  sD     +b/:   
 	
r4   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r  r  r#   rn  rq  N)r  r   r   r  r  s       r5   modify_asynczQuote.modify_async  sR      +b/:++ ,  
 	
   <A	A
	A	r[  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}/pdfrp  filesrj  base_address)r   r   _static_request_streamrt  r   ru  s      r5   _cls_pdfzQuote._cls_pdf  sF    
 &&(//k%6H/I$	 ' 
 	
r4   c                      yr  Nr3   r{  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  rJ  rp  r  r  )r   r   _request_streamrt  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  rp  r  r  N)r   r   _static_request_stream_asyncrt  r   ru  s      r5   _cls_pdf_asynczQuote._cls_pdf_async4  sT      22(//k%6H/I$	 3  
 	
r  c                    K   ywr  r3   r{  s     r5   	pdf_asynczQuote.pdf_asyncE  r  r  c                    K   ywr  r3   r  s     r5   r  zQuote.pdf_asyncO  s     
 	r  r  c                    K   t        t        | j                  ddj                  t	        | j                  d                  |d       d{         S 7 w)r  r  r  rJ  rp  r  r  N)r   r   _request_stream_asyncrt  r   r  r  s     r5   r  zQuote.pdf_asyncV  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rv  rJ  rj  instances       r5   retrievezQuote.retrievei  s$     r$V$r4   c                 T   K    | |fi |}|j                          d{    |S 7 w)r  N)refresh_asyncr  s       r5   retrieve_asynczQuote.retrieve_asynct  s3      r$V$$$&&& 	's   (&()r   ra  r   r   rg  r   r   r   N)dr/   r0   r1   __doc__r%   r   r   r2   r   rB   r   r   r   r   r   rv   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r!  r(  r,  r4  r;  r>  r@  rC  rF  rH  rL  rO  rR  rT  rV  rY  r\  r_  rQ   r   r   r   r@   r   r   r?   r   classmethodr   rw  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  rA   r3   r4   r5   r#   r#   !   s   

 /6K''*+56| 6>F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   rN   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g'" '"gr4   