
    jof7<                    j   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                   Z4dS )    )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՜ZcdS )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                   |    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	dS )Quote.AutomaticTaxc                   J    e Zd ZU eed                  ed<   	 ed         ed<   dS )Quote.AutomaticTax.Liabilityr   accountr*   selftypeN__name__
__module____qualname__r   r   __annotations__r        G/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/_quote.py	Liabilityr)   .   E         oi899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'   -   s         	 	 	 	 	 	 	 	 	 I&&&&	 DE
 	
 	
 	
	 *95r4   r@   c                   t    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dS )	Quote.Computedc                   z    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d	S )
Quote.Computed.Recurringc                   z    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dS )%Quote.Computed.Recurring.TotalDetailsc                       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dS )	/Quote.Computed.Recurring.TotalDetails.Breakdownc                   &    e Zd ZU eed<   	 ded<   dS )8Quote.Computed.Recurring.TotalDetails.Breakdown.DiscountamountDiscountResourcediscountNr/   r0   r1   intr2   r3   r4   r5   r   rJ   L   2          # #5444 r4   r   c                   b    e Zd ZU eed<   	 ded<   	 eed                  ed<   	 ee         ed<   dS )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   q          # (
 ,4#!.,   & )1555 r4   rg   	discountstaxesri   rj   N	r/   r0   r1   r   r   rg   r   r2   r?   r3   r4   r5   	BreakdownrH   K                <   $ $ $ $ $l $ $ $L  $H~---  9$$$ 8@#)N)N&&&r4   rm   amount_discountamount_shipping
amount_tax	breakdownN	r/   r0   r1   r   rm   rO   r2   r   r?   r3   r4   r5   TotalDetailsrF   J            <O <O <O <O <O <O <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> L> L> L>| L> L> L>\ !     <====   ('''"1<!@r4   r   c                   z    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	dS )	Quote.Computed.Upfrontc                   z    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dS )#Quote.Computed.Upfront.TotalDetailsc                       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dS )	-Quote.Computed.Upfront.TotalDetails.Breakdownc                   &    e Zd ZU eed<   	 ded<   dS )6Quote.Computed.Upfront.TotalDetails.Breakdown.DiscountrK   rL   rM   NrN   r3   r4   r5   r   r      rP   r4   r   c                   b    e Zd ZU eed<   	 ded<   	 eed                  ed<   	 ee         ed<   dS )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      s         L> L> L> L> L>| L> L> L>\ !     !J!78888 ('''"1<!@r4   r   	recurringupfront)r   r   N)	r/   r0   r1   r   r   r   r   r2   r?   r3   r4   r5   ComputedrB   H   s         `	A `	A `	A `	A `	A `	A `	A `	AD\	A \	A \	A \	A \	Al \	A \	A \	A| I&&&&	 +4IIr4   r   c                   2    e Zd ZU eed<   	 ed         ed<   dS )Quote.FromQuoteis_revisionr#   r$   N)r/   r0   r1   r>   r2   r   r3   r4   r5   	FromQuoter     s:         	 w''''	 	r4   r   c                   V    e Zd ZU  G d de          Zee         ed<   	 eed<   deiZdS )Quote.InvoiceSettingsc                   J    e Zd ZU eed                  ed<   	 ed         ed<   dS )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     si         	 	 	 	 	\ 	 	 	 !%%%	 &/r4   r   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )Quote.StatusTransitionsaccepted_atcanceled_atfinalized_atN)r/   r0   r1   r   rO   r2   r3   r4   r5   StatusTransitionsr   ,  sT         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<   dS )Quote.SubscriptionDatadescriptioneffective_datemetadatatrial_period_daysN)r/   r0   r1   r   strr2   rO   r   r3   r4   r5   SubscriptionDatar   :  st         c]"""	 !%%%	 4S>****	 $C=(((	 	r4   r   c                   z    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dS )Quote.TotalDetailsc                       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dS )	Quote.TotalDetails.Breakdownc                   &    e Zd ZU eed<   	 ded<   dS )%Quote.TotalDetails.Breakdown.DiscountrK   rL   rM   NrN   r3   r4   r5   r   r   N  s2          -,,, r4   r   c                   b    e Zd ZU eed<   	 ded<   	 eed                  ed<   	 ee         ed<   dS ) Quote.TotalDetails.Breakdown.TaxrK   r    rS   rT   rd   re   Nrf   r3   r4   r5   rg   r   [  sq           
 $,&$   & !)--- r4   rg   ri   rj   rk   Nrl   r3   r4   r5   rm   r   M  s             <   $ $ $ $ $l $ $ $L H~%%% 9 08#!F!Fr4   rm   ro   rp   rq   rr   Nrs   r3   r4   r5   rt   r   L  s         <	G <	G <	G <	G <	G <	G <	G <	G| 	 "#&&&	 	 I&&&&)95r4   rt   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ed         ed<   dS )Quote.TransferDatarK   amount_percentr   destinationN)r/   r0   r1   r   rO   r2   floatr   r3   r4   r5   TransferDatar     sU         	 !'''	 %Y////	 	r4   r   c                   2    e Zd ZU eee                  ed<   dS )Quote.AcceptParamsexpandNr/   r0   r1   r   r   r   r2   r3   r4   r5   AcceptParamsr     +         DI&&&&	 	r4   r   c                   2    e Zd ZU eee                  ed<   dS )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 <   d!S )"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AA	 ##CDDDD	 ':;
 	
 	
 	
	 c""""	 ''>????	 !!23333	 MNNNN	 DI&&&&	  $$$$	 -....	   =>>>>	 -....	 &&IJJJJ	  %A BCCCC	 d38n----	 ""34444	 ''KLLLL	  $$$$	 #8
 	
 	
 	
	 	r4   r   c                   2    e Zd ZU eed<   	 ed         ed<   dS )r   r8   'Quote.CreateParamsAutomaticTaxLiabilityr9   Nr/   r0   r1   r>   r2   r   r3   r4   r5   CreateParamsAutomaticTaxzQuote.CreateParamsAutomaticTax
  8         	 HIIII	 	r4   r   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r   r*   r+   r-   Nr/   r0   r1   r   r   r2   r   r3   r4   r5   !CreateParamsAutomaticTaxLiabilityz'Quote.CreateParamsAutomaticTaxLiability  @         S!!!!	 '((((	 	r4   r   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )Quote.CreateParamsDiscountcouponrM   promotion_codeNr/   r0   r1   r   r   r2   r3   r4   r5   CreateParamsDiscountr     W         C    	 c""""	 $C((((	 	r4   r   c                   2    e Zd ZU ee         ed<   	 eed<   dS )r   r   r$   N)r/   r0   r1   r   r>   r2   r   r3   r4   r5   CreateParamsFromQuotezQuote.CreateParamsFromQuote,  s7          &&&&	 


	 	r4   r   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r   r   'Quote.CreateParamsInvoiceSettingsIssuerr   Nr/   r0   r1   r   rO   r2   r3   r4   r5   CreateParamsInvoiceSettingsz!Quote.CreateParamsInvoiceSettings6  @         #C((((	 EFFFF	 	r4   r   c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r   r*   r+   r-   Nr   r3   r4   r5   !CreateParamsInvoiceSettingsIssuerz'Quote.CreateParamsInvoiceSettingsIssuer@  r   r4   r   c                       e Zd ZU ed         ed<   	 ee         ed<   	 ed         ed<   	 ee         ed<   	 ed         ed<   d	S )
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  s         B
 	
 	
 	
	 3	   EFFFF	 c""""	 67777	 	r4   r   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )"Quote.CreateParamsLineItemDiscountr   rM   r   Nr   r3   r4   r5   CreateParamsLineItemDiscountr  b  r   r4   r  c                       e Zd ZU eed<   	 eed<   	 ed         ed<   	 eed                  ed<   	 ee         ed<   	 ee         ed<   d	S )
r   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           	 	 MNNNN	 ";<
 	
 	
 	
	 !%%%%	 )----	 	r4   r  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )r  rx   r}   r~   Nr/   r0   r1   r   r2   r   rO   r3   r4   r5   &CreateParamsLineItemPriceDataRecurringz,Quote.CreateParamsLineItemPriceDataRecurring  @         899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<   dS )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  s          %%%%	 $;
 	
 	
 	
	 d38n----	 ''89999	 	r4   r  c                   J    e Zd ZU ee         ed<   	 ee         ed<   	 eed<   dS )Quote.CreateParamsTransferDatarK   r   r   Nr/   r0   r1   r   rO   r2   r   r   r3   r4   r5   CreateParamsTransferDatar    R         C    	 $E****	 	 	r4   r  c                   J    e Zd ZU eee                  ed<   	 ee         ed<   dS )Quote.FinalizeQuoteParamsr   r   N)r/   r0   r1   r   r   r   r2   rO   r3   r4   r5   FinalizeQuoteParamsr    sC         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<   dS )(Quote.ListComputedUpfrontLineItemsParamsending_beforer   limitstarting_afterNr/   r0   r1   r   r   r2   r   rO   r3   r4   r5   "ListComputedUpfrontLineItemsParamsr"    s         "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<   dS )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<   d	S )
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MM	  $$$$	 	r4   r3  c                      e Zd ZU ed         ed<   	 ed         ed<   	 ed         ed<   	 eed                  ed<   	 ee         ed	<   	 ed
         ed<   	 ed         ed<   	 ed         ed<   	 eee                  ed<   	 ee         ed<   	 ed         ed<   	 ed         ed<   	 ed         ed<   	 eed                  ed<   	 ee	eef                  ed<   	 ed         ed<   	 ed         ed<   	 ed         ed<   dS )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    s         +,= >>>>	 "--@!AAAA	 ##CDDDD	 ':;
 	
 	
 	
	 c""""	 ''>????	 !!23333	 MNNNN	 DI&&&&	  $$$$	 -....	 -....	 &&IJJJJ	  %A BCCCC	 d38n----	 ""34444	 ''KLLLL	 #8
 	
 	
 	
	 	r4   r:  c                   2    e Zd ZU eed<   	 ed         ed<   dS )r6  r8   'Quote.ModifyParamsAutomaticTaxLiabilityr9   Nr   r3   r4   r5   ModifyParamsAutomaticTaxzQuote.ModifyParamsAutomaticTaxR  r   r4   r=  c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r<  r*   r+   r-   Nr   r3   r4   r5   !ModifyParamsAutomaticTaxLiabilityz'Quote.ModifyParamsAutomaticTaxLiability\  r   r4   r?  c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )Quote.ModifyParamsDiscountr   rM   r   Nr   r3   r4   r5   ModifyParamsDiscountrA  f  r   r4   rB  c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )r7  r   'Quote.ModifyParamsInvoiceSettingsIssuerr   Nr   r3   r4   r5   ModifyParamsInvoiceSettingsz!Quote.ModifyParamsInvoiceSettingst  r   r4   rE  c                   >    e Zd ZU ee         ed<   	 ed         ed<   dS )rD  r*   r+   r-   Nr   r3   r4   r5   !ModifyParamsInvoiceSettingsIssuerz'Quote.ModifyParamsInvoiceSettingsIssuer~  r   r4   rG  c                       e Zd ZU ed         ed<   	 ee         ed<   	 ee         ed<   	 ed         ed<   	 ee         ed<   	 ed         ed	<   d
S )r8  z4Literal['']|List[Quote.ModifyParamsLineItemDiscount]ri   idr   #Quote.ModifyParamsLineItemPriceDatar   r   r   r   Nr   r3   r4   r5   ModifyParamsLineItemzQuote.ModifyParamsLineItem  s         B
 	
 	
 	
	 	 3	   EFFFF	 c""""	 67777	 	r4   rK  c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )"Quote.ModifyParamsLineItemDiscountr   rM   r   Nr   r3   r4   r5   ModifyParamsLineItemDiscountrM    r   r4   rN  c                       e Zd ZU eed<   	 eed<   	 ed         ed<   	 eed                  ed<   	 ee         ed<   	 ee         ed<   d	S )
rJ  r  r  ,Quote.ModifyParamsLineItemPriceDataRecurringr   r  r  r  r  Nr  r3   r4   r5   ModifyParamsLineItemPriceDataz#Quote.ModifyParamsLineItemPriceData  r  r4   rQ  c                   >    e Zd ZU ed         ed<   	 ee         ed<   dS )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<   dS )	r9  r   r   r  r   r   r   r   N)r/   r0   r1   r   r2   r   r   r3   r4   r5   ModifyParamsSubscriptionDataz"Quote.ModifyParamsSubscriptionData  s          !23333	 $;
 	
 	
 	
	 d38n----	 ''89999	 	r4   rU  c                   J    e Zd ZU ee         ed<   	 ee         ed<   	 eed<   dS )Quote.ModifyParamsTransferDatarK   r   r   Nr  r3   r4   r5   ModifyParamsTransferDatarW    r  r4   rX  c                   2    e Zd ZU eee                  ed<   dS )Quote.PdfParamsr   Nr   r3   r4   r5   	PdfParamsrZ    r   r4   r[  c                   2    e Zd ZU eee                  ed<   dS )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                     t          d|                     dd                    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  S     +22U9K9K2LL    
 
 	
r4   c                     dS rl  Nr3   r$   ri  s     r5   acceptzQuote.accept  	     	r4   c                     dS ry  r3   r,   ri  s     r5   r{  zQuote.accept  	    
 	r4   rv  c                     t          d|                     dd                    t          |                     d                              |                    S )rl  r#   rm  rn  rI  ro  rp  r   _requestrs  r   getr~  s     r5   r{  zQuote.accept  d     MM+22%dhhtnn55 3      	
 	
 		
r4   c                    K   t          d|                     dd                    t          |                    |           d{V           S )rl  r#   rm  rn  ro  rp  Nr   _static_request_asyncrs  r   rt  s      r5   _cls_accept_asynczQuote._cls_accept_async  u       +++22U9K9K2LL ,        
 
 	
r4   c                 
   K   dS ry  r3   rz  s     r5   accept_asynczQuote.accept_async         	r4   c                 
   K   dS ry  r3   r~  s     r5   r  zQuote.accept_async         	r4   r  c                    K   t          d|                     dd                    t          |                     d                              |           d{V           S )rl  r#   rm  rn  rI  ro  rp  Nr   _request_asyncrs  r   r  r~  s     r5   r  zQuote.accept_async         %%+22%dhhtnn55 3    &        	
 	
 		
r4   r   c                     t          d|                     dd                    t          |                    |                    S )$
        Cancels the quote.
        r#   rm  /v1/quotes/{quote}/cancelro  rp  rq  rt  s      r5   _cls_cancelzQuote._cls_cancel  rw  r4   c                     dS r  Nr3   rz  s     r5   cancelzQuote.cancel  r|  r4   c                     dS r  r3   r~  s     r5   r  zQuote.cancel  r  r4   r  c                     t          d|                     dd                    t          |                     d                              |                    S )r  r#   rm  r  rI  ro  rp  r  r~  s     r5   r  zQuote.cancel  r  r4   c                    K   t          d|                     dd                    t          |                    |           d{V           S )r  r#   rm  r  ro  rp  Nr  rt  s      r5   _cls_cancel_asynczQuote._cls_cancel_async  r  r4   c                 
   K   dS r  r3   rz  s     r5   cancel_asynczQuote.cancel_async(  r  r4   c                 
   K   dS r  r3   r~  s     r5   r  zQuote.cancel_async2  r  r4   r  c                    K   t          d|                     dd                    t          |                     d                              |           d{V           S )r  r#   rm  r  rI  ro  rp  Nr  r~  s     r5   r  zQuote.cancel_async;  r  r4   r   c                 r    t          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).
        r#   rm  rp  )r   rr  	class_urlru  ri  s     r5   createzQuote.createM  sB    
     
 
 	
r4   c                    K   t          d|                     d|                                 |           d{V           S )r  r#   rm  rp  N)r   r  r  r  s     r5   create_asynczQuote.create_async[  sd       ++ ,        
 
 	
r4   r  c                     t          d|                     dd                    t          |                    |                    S )&
        Finalizes the quote.
        r#   rm  /v1/quotes/{quote}/finalizero  rp  rq  rt  s      r5   _cls_finalize_quotezQuote._cls_finalize_quotek  sS     -44;u;M;M4NN    
 
 	
r4   c                     dS r  Nr3   rz  s     r5   finalize_quotezQuote.finalize_quote{  	     	r4   c                     dS r  r3   r~  s     r5   r  zQuote.finalize_quote  	     	r4   r  c                     t          d|                     dd                    t          |                     d                              |                    S )r  r#   rm  r  rI  ro  rp  r  r~  s     r5   r  zQuote.finalize_quote  sd     MM-44%dhhtnn55 5      	
 	
 		
r4   c                    K   t          d|                     dd                    t          |                    |           d{V           S )r  r#   rm  r  ro  rp  Nr  rt  s      r5   _cls_finalize_quote_asynczQuote._cls_finalize_quote_async  su       ++-44;u;M;M4NN ,        
 
 	
r4   c                 
   K   dS r  r3   rz  s     r5   finalize_quote_asynczQuote.finalize_quote_async  r  r4   c                 
   K   dS r  r3   r~  s     r5   r  zQuote.finalize_quote_async  r  r4   r  c                    K   t          d|                     dd                    t          |                     d                              |           d{V           S )r  r#   rm  r  rI  ro  rp  Nr  r~  s     r5   r  zQuote.finalize_quote_async  s       %%-44%dhhtnn55 5    &        	
 	
 		
r4   r-  c                     |                      d|                                 |          }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  sp    
 $$MMOO % 
 

 &*-- 	7<<(*  
 r4   c                    K   |                      d|                                 |           d{V }t          |t                    s$t	          dt          |          j        z            |S )r  r  rp  Nr  )r  r  r  r   r  r-   r/   r  s      r5   
list_asynczQuote.list_async  s       00MMOO 1 
 
 
 
 
 
 
 

 &*-- 	7<<(*  
 r4   r"  c                     t          t          d         |                     dd                    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  sb     z"@GG%e,, H       	
 	
 		
r4   c                     dS r  Nr3   rz  s     r5    list_computed_upfront_line_itemsz&Quote.list_computed_upfront_line_items  s	     	r4   c                     dS r  r3   r~  s     r5   r  z&Quote.list_computed_upfront_line_items  r  r4   r  c                     t          t          d         |                     dd                    t	          |                     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#  sj     z"MM@GG%dhhtnn55 H      	
 	
 		
r4   c                    K   t          t          d         |                     dd                    t	          |                    |           d{V           S )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    ,        	
 	
 		
r4   c                 
   K   dS r  r3   rz  s     r5   &list_computed_upfront_line_items_asyncz,Quote.list_computed_upfront_line_items_asyncI  s       	r4   c                 
   K   dS r  r3   r~  s     r5   r  z,Quote.list_computed_upfront_line_items_asyncT  r  r4   r  c                    K   t          t          d         |                     dd                    t	          |                     d                              |           d{V           S )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]  s       z"%%@GG%dhhtnn55 H    &        	
 	
 		
r4   r*  c                     t          t          d         |                     dd                    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  sa     z"/66%e,, 7       	
 	
 		
r4   c                     dS r  Nr3   rz  s     r5   list_line_itemszQuote.list_line_items  r  r4   c                     dS r  r3   r~  s     r5   r  zQuote.list_line_items  r  r4   r  c                     t          t          d         |                     dd                    t	          |                     d                              |                    S )r  r   r  r  rI  ro  rp  r  r~  s     r5   r  zQuote.list_line_items  si     z"MM/66%dhhtnn55 7      	
 	
 		
r4   c                    K   t          t          d         |                     dd                    t	          |                    |           d{V           S )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    ,        	
 	
 		
r4   c                 
   K   dS r  r3   rz  s     r5   list_line_items_asynczQuote.list_line_items_async  r  r4   c                 
   K   dS r  r3   r~  s     r5   r  zQuote.list_line_items_async  r  r4   r  c                    K   t          t          d         |                     dd                    t	          |                     d                              |           d{V           S )r  r   r  r  rI  ro  rp  Nr  r~  s     r5   r  zQuote.list_line_items_async  s       z"%%/66%dhhtnn55 7    &        	
 	
 		
r4   r5  c                     |                                  dt          |          }t          d|                     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  sX     +b///:    
 
 	
r4   c                    K   |                                  dt          |          }t          d|                     d||           d{V           S )r  r  r#   rm  rp  N)r  r   r   r  r  s       r5   modify_asynczQuote.modify_async  sz       +b///:++ ,        
 
 	
r4   rZ  c                     t          t          |                     dd                    t	          |                    |d                    S )
        Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.corp.stripe.com/quotes/overview#quote_pdf)
        r  /v1/quotes/{quote}/pdfro  filesri  base_address)r   r   _static_request_streamrs  r   rt  s      r5   _cls_pdfzQuote._cls_pdf  sV    
 &&(//k%6H6H/II$	 '  
 
 	
r4   c                     dS r  Nr3   rz  s     r5   pdfz	Quote.pdf  r|  r4   c                     dS r  r3   r~  s     r5   r  z	Quote.pdf  r  r4   r  c                     t          t          |                     dd                    t	          |                     d                              |d                    S )r  r  r  rI  ro  r  r  )r   r   _request_streamrs  r   r  r~  s     r5   r  z	Quote.pdf  si       (//%dhhtnn55 0   $ !  

 

 
	
r4   c                    K   t          t          |                     dd                    t	          |                    |d           d{V           S )r  r  r  ro  r  r  N)r   r   _static_request_stream_asyncrs  r   rt  s      r5   _cls_pdf_asynczQuote._cls_pdf_async0  sx       22(//k%6H6H/II$	 3        
 
 	
r4   c                 
   K   dS r  r3   rz  s     r5   	pdf_asynczQuote.pdf_asyncA  r  r4   c                 
   K   dS r  r3   r~  s     r5   r   zQuote.pdf_asyncK  s      
 	r4   r  c                    K   t          t          |                     dd                    t	          |                     d                              |d           d{V           S )r  r  r  rI  ro  r  r  N)r   r   _request_stream_asyncrs  r   r  r~  s     r5   r   zQuote.pdf_asyncR  s       ,,(//%dhhtnn55 0   $ -        

 

 
	
r4   r]  c                 @     | |fi |}|                                  |S )8
        Retrieves the quote with the given ID.
        )refreshru  rI  ri  instances       r5   retrievezQuote.retrievee  s2     3r$$V$$r4   c                 P   K    | |fi |}|                                  d{V  |S )r  N)refresh_asyncr  s       r5   retrieve_asynczQuote.retrieve_asyncp  sH       3r$$V$$$$&&&&&&&&&r4   )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#   !   sc        
 
 /6K''*+5556 6 6 6 6| 6 6 66FJ FJ FJ FJ FJ< FJ FJ FJP    L   0 0 0 0 0, 0 0 0$    L       <   $L6 L6 L6 L6 L6| L6 L6 L6\    |       ~       ~   T T T T T~ T T Tl    9       I       y       	       i       I       y   0    y       	   8           y   (    9       n       ^   $    n   $    ^   <L L L L L~ L L L\    9       I       y       i       I       y   8    y       	   8           y   (    9       N             /-89999 %SM))) &e_,,,  EFFFF LLL sm z23333  _Y%? @AAAA # O$678888 OOO SM #### SM 	GGG oi01111 &%%%J/0000 NNN 38n SM G ?956666 ;<<<< *)))?>:;;;; ('''#O4J$KLLLL 56666  L)))) 

#)*>#?
	
 
 
 [
 c V,@%A g    \ X v&:;     X -((
34
	
 
 
 )(
" 

#)*>#?
	
 
 
 [
 $%9:	   \ X 34	   X -..
34
	
 
 
 /.
" 

#)*>#?
	
 
 
 [
 c V,@%A g    \ X v&:;     X -((
34
	
 
 
 )(
" 

#)*>#?
	
 
 
 [
 $%9:	   \ X 34	   X -..
34
	
 
 
 /.
" 
f%9: 
w 
 
 
 [
 
23
	
 
 
 [
 

#)*E#F
	
 
 
 [
 $%@A	   \ X :;	   X /00
:;
	
 
 
 10
" 

#)*E#F
	
 
 
 [
 $%@A	   \ X :;	   X 566
:;
	
 
 
 76
" F#56 :g;N    [" 01	G	   [& 

 CD
 
J		
 
 
 [
& CD 
J	   \ X IJ	J	   X ABB
IJ
	J	
 
 
 CB
" 

 CD
 
J		
 
 
 [
& CD 
J	   \ X IJ	J	   X GHH
IJ
	J	
 
 
 IH
" 

#)*E#F
	J	
 
 
 [
" $%@A	J	   \ X :;	J	   X 011
:;
	J	
 
 
 21
" 

#)*E#F
	J	
 
 
 [
" $%@A	J	   \ X :;	J	   X 677
:;
	J	
 
 
 87
" 

 &'; <
	
 
 
 [
  

 &'; <
	
 
 
 [
  
S 
F3D,E 
# 
 
 
 [
 3 &):";     \ X F#45 #    X *%%
01
	
 
 
 &%
$ 

#)*;#<
	
 
 
 [
  $%67	   \ X /@(A c    X *++
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$     s,   B A A A A A 4 4 4 4 4 4 * * * * * * = = = = = = 2 2 2 2 2 2 . . . . . . A A A A A A : : : : : : : : F F F F F F F F F F F F F F F F F F               
:''''''//////))))))======''''''******111111BBBBBB((((((999999c c c c c'" '"c c c c cr4   