o
    Bi;                    @   sD  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rd 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 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                	   @   sr  e Zd ZU dZdZeed  ed< G dd deZ	G dd deZ
G dd	 d	eZG d
d deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZG d"d# d#eZG d$d% d%eZG d&d' d'eZG d(d) d)eZG d*d+ d+eZG d,d- d-eZG d.d/ d/eZ G d0d1 d1eZ!G d2d3 d3eZ"G d4d5 d5eZ#G d6d7 d7eZ$G d8d9 d9eZ%G d:d; d;eZ&G d<d= d=eZ'G d>d? d?eZ(G d@dA dAeZ)G dBdC dCeZ*G dDdE dEeZ+G dFdG dGeZ,G dHdI dIeZ-G dJdK dKeZ.G dLdM dMeZ/G dNdO dOeZ0G dPdQ dQeZ1G dRdS dSeZ2G dTdU 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ddZ?e@eAde8de>d dd fddZBe@de>d dd fddZBeCdde>d dd fddZBe=de8de>d dd fddZDe@eAde8de>d dd fddZEe@de>d dd fddZEeCdde>d dd fddZEe=de8de>d dd fddZFe@eAde8de>d dd fddZGe@de>d dd fddZGeCdde>d dd fddZGe=de8de>d dd fddZHe@eAde8de>d dd fddZIe@de>d dd fddZIeCdde>d dd fddZIe=de>d dd fddZJe=de>d dd fddZKe=de8de>d dd fddZLe@eAde8de>d dd fddZMe@de>d dd fddZMeCdde>d dd fddZMe=de8de>d dd fddZNe@eAde8de>d dd fddZOe@de>d dd fddZOeCdde>d dd fddZOe=de>d de:d  fddZPe=de>d de:d  fddZQe=de8de>d de:dq fddZRe@eAde8de>d de:dq fddZSe@de>d de:dq fddZSeCdăde>d de:dq fddZSe=de8de>d de:dq fddǄZTe@eAde8de>d de:dq fddɄZUe@de>d de:dq fddɄZUeCd˃de>d de:dq fddɄZUe=de8de>d de:dq fddτZVe@eAde8de>d de:dq fddфZWe@de>d de:dq fddфZWeCdӃde>d de:dq fddфZWe=de8de>d de:dq fddքZXe@eAde8de>d de:dq fdd؄ZYe@de>d de:dq fdd؄ZYeCdڃde>d de:dq fdd؄ZYe=dme8de>d dd fddބZZe=dme8de>d dd fddZ[e=de8de>d de\fddZ]e@eAde8de>d de\fddZ^e@de>d de\fddZ^eCdde>d de\fddZ^e=de8de>d de\fddZ_e@eAde8de>d de\fddZ`e@de>d de\fddZ`eCdde>d de\fddZ`e=dme8de>d dd fddZae=dme8de>d dd fdd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                   @   sP   e Zd ZU G dd deZeed< 	 ee ed< 	 eed  ed< 	 deiZ	dS )zQuote.AutomaticTaxc                   @   ,   e Zd ZU eed  ed< 	 ed ed< dS )zQuote.AutomaticTax.Liabilityr   accountr%   selftypeN__name__
__module____qualname__r   r   __annotations__r    r.   r.   M/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_quote.py	Liability.   
   
 r0   enabled	liability)completefailedrequires_location_inputsstatusN)
r*   r+   r,   r   r0   boolr-   r   r   _inner_class_typesr.   r.   r.   r/   AutomaticTax-   s   
 
r:   c                   @   sN   e Zd ZU G dd deZG dd deZee ed< 	 eed< eedZdS )	zQuote.Computedc                   @   sZ   e Zd ZU G d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 )
zQuote.Computed.Recurringc                   @   T   e Zd ZU G dd deZeed< 	 ee ed< 	 eed< 	 ee ed< deiZdS )z%Quote.Computed.Recurring.TotalDetailsc                   @   T   e Zd ZU G dd deZG dd deZee ed< 	 ee ed< 	 eedZdS )	z/Quote.Computed.Recurring.TotalDetails.Breakdownc                   @       e Zd ZU eed< 	 ded< dS )z8Quote.Computed.Recurring.TotalDetails.Breakdown.DiscountamountDiscountResourcediscountNr*   r+   r,   intr-   r.   r.   r.   r/   r   L   
   
 r   c                   @   @   e Zd ZU eed< 	 ded< 	 eed  ed< 	 ee ed< dS )z3Quote.Computed.Recurring.TotalDetails.Breakdown.Taxr>   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*   r+   r,   rB   r-   r   r   r.   r.   r.   r/   TaxY      
 rY   	discountstaxesr[   r\   N	r*   r+   r,   r   r   rY   r   r-   r9   r.   r.   r.   r/   	BreakdownK      
 &r_   amount_discountamount_shipping
amount_tax	breakdownN	r*   r+   r,   r   r_   rB   r-   r   r9   r.   r.   r.   r/   TotalDetailsJ      
 >rf   amount_subtotalamount_totaldaymonthweekyearintervalinterval_counttotal_detailsN)	r*   r+   r,   r   rf   rB   r-   r   r9   r.   r.   r.   r/   	RecurringI   s   
 Nrr   c                   @   sT   e Zd ZU G dd deZeed< 	 eed< 	 eed  ed< 	 eed< deiZ	dS )	zQuote.Computed.Upfrontc                   @   r;   )z#Quote.Computed.Upfront.TotalDetailsc                   @   r<   )	z-Quote.Computed.Upfront.TotalDetails.Breakdownc                   @   r=   )z6Quote.Computed.Upfront.TotalDetails.Breakdown.Discountr>   r?   r@   NrA   r.   r.   r.   r/   r      rC   r   c                   @   rD   )z1Quote.Computed.Upfront.TotalDetails.Breakdown.Taxr>   r   rE   rF   rV   rW   NrX   r.   r.   r.   r/   rY      rZ   rY   r[   r\   r]   Nr^   r.   r.   r.   r/   r_      r`   r_   ra   rb   rc   rd   Nre   r.   r.   r.   r/   rf      rg   rf   rh   ri   r   
line_itemsrq   N)
r*   r+   r,   r   rf   rB   r-   r   r   r9   r.   r.   r.   r/   Upfront   s   
 Nrt   	recurringupfront)ru   rv   N)	r*   r+   r,   r   rr   rt   r   r-   r9   r.   r.   r.   r/   ComputedH   s   
 b^rw   c                   @   $   e Zd ZU eed< 	 ed ed< dS )zQuote.FromQuoteis_revisionr!   r"   N)r*   r+   r,   r8   r-   r   r.   r.   r.   r/   	FromQuote  
   
 rz   c                   @   s<   e Zd ZU G dd deZee ed< 	 eed< deiZdS )zQuote.InvoiceSettingsc                   @   r$   )zQuote.InvoiceSettings.Issuerr   r%   r&   r(   Nr)   r.   r.   r.   r/   Issuer  r1   r|   days_until_dueissuerN)	r*   r+   r,   r   r|   r   rB   r-   r9   r.   r.   r.   r/   InvoiceSettings  s   
 
r   c                   @   6   e Zd ZU ee ed< 	 ee ed< 	 ee ed< dS )zQuote.StatusTransitionsaccepted_atcanceled_atfinalized_atN)r*   r+   r,   r   rB   r-   r.   r.   r.   r/   StatusTransitions,     
 r   c                   @   sL   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 )zQuote.SubscriptionDatadescriptioneffective_datemetadatatrial_period_daysN)r*   r+   r,   r   strr-   rB   r   r.   r.   r.   r/   SubscriptionData:  s   
 r   c                   @   r;   )zQuote.TotalDetailsc                   @   r<   )	zQuote.TotalDetails.Breakdownc                   @   r=   )z%Quote.TotalDetails.Breakdown.Discountr>   r?   r@   NrA   r.   r.   r.   r/   r   N  rC   r   c                   @   rD   )z Quote.TotalDetails.Breakdown.Taxr>   r   rE   rF   rV   rW   NrX   r.   r.   r.   r/   rY   [  rZ   rY   r[   r\   r]   Nr^   r.   r.   r.   r/   r_   M  r`   r_   ra   rb   rc   rd   Nre   r.   r.   r.   r/   rf   L  rg   rf   c                   @   s6   e Zd ZU ee ed< 	 ee ed< 	 ed ed< dS )zQuote.TransferDatar>   amount_percentr   destinationN)r*   r+   r,   r   rB   r-   floatr   r.   r.   r.   r/   TransferData  r   r   c                   @      e Zd ZU eee  ed< dS )Quote.AcceptParamsexpandNr*   r+   r,   r   r   r   r-   r.   r.   r.   r/   AcceptParams     
 r   c                   @   r   )Quote.CancelParamsr   Nr   r.   r.   r.   r/   CancelParams  r   r   c                   @   s8  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]r[   r   
expires_atfooterQuote.CreateParamsFromQuote
from_quoteheader!Quote.CreateParamsInvoiceSettingsinvoice_settingsQuote.CreateParamsLineItemrs   r   on_behalf_of"Quote.CreateParamsSubscriptionDatasubscription_data
test_clockz*Literal['']|Quote.CreateParamsTransferDatatransfer_dataN
r*   r+   r,   r   r-   r   r   r   rB   r   r.   r.   r.   r/   CreateParams  sZ   
 r   c                   @   rx   )r   r2   'Quote.CreateParamsAutomaticTaxLiabilityr3   Nr*   r+   r,   r8   r-   r   r.   r.   r.   r/   CreateParamsAutomaticTax
  r{   r   c                   @   (   e Zd ZU ee ed< 	 ed ed< dS )r   r%   r&   r(   Nr*   r+   r,   r   r   r-   r   r.   r.   r.   r/   !CreateParamsAutomaticTaxLiability  
   
 r   c                   @   r   )zQuote.CreateParamsDiscountcouponr@   promotion_codeNr*   r+   r,   r   r   r-   r.   r.   r.   r/   CreateParamsDiscount  r   r   c                   @   s$   e Zd ZU ee ed< 	 eed< dS )r   ry   r"   N)r*   r+   r,   r   r8   r-   r   r.   r.   r.   r/   CreateParamsFromQuote,  s
   
 r   c                   @   (   e Zd ZU ee ed< 	 ed ed< dS )r   r}   'Quote.CreateParamsInvoiceSettingsIssuerr~   Nr*   r+   r,   r   rB   r-   r.   r.   r.   r/   CreateParamsInvoiceSettings6  r   r   c                   @   r   )r   r%   r&   r(   Nr   r.   r.   r.   r/   !CreateParamsInvoiceSettingsIssuer@  r   r   c                   @   sR   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]r[   price#Quote.CreateParamsLineItemPriceData
price_dataquantityr   	tax_ratesNr*   r+   r,   r   r-   r   rB   r.   r.   r.   r/   CreateParamsLineItemJ  s   
 r   c                   @   r   )z"Quote.CreateParamsLineItemDiscountr   r@   r   Nr   r.   r.   r.   r/   CreateParamsLineItemDiscountb  r   r   c                   @   \   e Zd ZU eed< 	 eed< 	 ed ed< 	 eed  ed< 	 ee ed< 	 ee ed< d	S )
r   currencyproduct,Quote.CreateParamsLineItemPriceDataRecurringru   	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalNr*   r+   r,   r   r-   r   r   rB   r.   r.   r.   r/   CreateParamsLineItemPriceDatap     
 r   c                   @   (   e Zd ZU ed ed< 	 ee ed< dS )r   rj   ro   rp   Nr*   r+   r,   r   r-   r   rB   r.   r.   r.   r/   &CreateParamsLineItemPriceDataRecurring  r   r   c                   @   sL   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*   r+   r,   r   r   r-   r   r.   r.   r.   r/   CreateParamsSubscriptionData     
 r   c                   @   2   e Zd ZU ee ed< 	 ee ed< 	 eed< dS )zQuote.CreateParamsTransferDatar>   r   r   Nr*   r+   r,   r   rB   r-   r   r   r.   r.   r.   r/   CreateParamsTransferData     
 r   c                   @   s,   e Zd ZU eee  ed< 	 ee ed< dS )Quote.FinalizeQuoteParamsr   r   N)r*   r+   r,   r   r   r   r-   rB   r.   r.   r.   r/   FinalizeQuoteParams  r1   r   c                   @   H   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*   r+   r,   r   r   r-   r   rB   r.   r.   r.   r/   "ListComputedUpfrontLineItemsParams     
 r   c                   @   r   )Quote.ListLineItemsParamsr   r   r   r   Nr   r.   r.   r.   r/   ListLineItemsParams  r   r   c                   @   sv   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openr7   r   N)	r*   r+   r,   r   r   r-   r   rB   r   r.   r.   r.   r/   
ListParams  s   
 r   c                   @   s  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]r[   r   r   r   r   !Quote.ModifyParamsInvoiceSettingsr   Quote.ModifyParamsLineItemrs   r   r   "Quote.ModifyParamsSubscriptionDatar   z*Literal['']|Quote.ModifyParamsTransferDatar   Nr   r.   r.   r.   r/   ModifyParams  sR   
 r   c                   @   rx   )r   r2   'Quote.ModifyParamsAutomaticTaxLiabilityr3   Nr   r.   r.   r.   r/   ModifyParamsAutomaticTaxR  r{   r  c                   @   r   )r   r%   r&   r(   Nr   r.   r.   r.   r/   !ModifyParamsAutomaticTaxLiability\  r   r  c                   @   r   )zQuote.ModifyParamsDiscountr   r@   r   Nr   r.   r.   r.   r/   ModifyParamsDiscountf  r   r  c                   @   r   )r   r}   'Quote.ModifyParamsInvoiceSettingsIssuerr~   Nr   r.   r.   r.   r/   ModifyParamsInvoiceSettingst  r   r  c                   @   r   )r  r%   r&   r(   Nr   r.   r.   r.   r/   !ModifyParamsInvoiceSettingsIssuer~  r   r  c                   @   s`   e Zd ZU ed ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 ee ed< 	 ed ed	< d
S )r   z4Literal['']|List[Quote.ModifyParamsLineItemDiscount]r[   idr   #Quote.ModifyParamsLineItemPriceDatar   r   r   r   Nr   r.   r.   r.   r/   ModifyParamsLineItem  s   
 r	  c                   @   r   )z"Quote.ModifyParamsLineItemDiscountr   r@   r   Nr   r.   r.   r.   r/   ModifyParamsLineItemDiscount  r   r
  c                   @   r   )
r  r   r   ,Quote.ModifyParamsLineItemPriceDataRecurringru   r   r   r   r   Nr   r.   r.   r.   r/   ModifyParamsLineItemPriceData  r   r  c                   @   r   )r  rj   ro   rp   Nr   r.   r.   r.   r/   &ModifyParamsLineItemPriceDataRecurring  r   r  c                   @   sL   e Zd ZU ed ed< 	 ed ed< 	 eeeef  ed< 	 ed ed< dS )	r   r   r   r   r   r   r   r   N)r*   r+   r,   r   r-   r   r   r.   r.   r.   r/   ModifyParamsSubscriptionData  r   r  c                   @   r   )zQuote.ModifyParamsTransferDatar>   r   r   Nr   r.   r.   r.   r/   ModifyParamsTransferData  r   r  c                   @   r   )Quote.PdfParamsr   Nr   r.   r.   r.   r/   	PdfParams  r   r  c                   @   r   )Quote.RetrieveParamsr   Nr   r.   r.   r.   r/   RetrieveParams   r   r  rh   ri   r   applicationr   r   r   r   r   computedcreatedr   r   r   r   r   r   r?   r[   r   r   r   r   r  r   invoicer   r   rs   livemoder   numberobjectr   r   r   r7   status_transitionsr   subscriptionr   r   subscription_scheduler    r   rq   r   paramsr   returnc                 K   "   t d| jddjt|d|dS ).
        Accepts the specified quote.
        r!   post/v1/quotes/{quote}/acceptr"   r  r   _static_requestformatr
   clsr"   r  r.   r.   r/   _cls_accept     zQuote._cls_acceptc                 K      dS r!  Nr.   r"   r  r.   r.   r/   accept     zQuote.acceptc                 K   r-  r.  r.   r'   r  r.   r.   r/   r0       r+  c              	   K   (   t d| jddjt| dd|dS )r!  r!   r"  r#  r  r$  r%  r   _requestr(  r
   getr2  r.   r.   r/   r0       c                    *   t d| jddjt|d|dI dH S )r!  r!   r"  r#  r$  r%  Nr   _static_request_asyncr(  r
   r)  r.   r.   r/   _cls_accept_async     
zQuote._cls_accept_asyncc                       dS r.  r.   r/  r.   r.   r/   accept_async     zQuote.accept_asyncc                    r>  r.  r.   r2  r.   r.   r/   r?       r<  c              	      0   t d| jddjt| dd|dI dH S )r!  r!   r"  r#  r  r$  r%  Nr   _request_asyncr(  r
   r7  r2  r.   r.   r/   r?       
r   c                 K   r   )$
        Cancels the quote.
        r!   r"  /v1/quotes/{quote}/cancelr$  r%  r&  r)  r.   r.   r/   _cls_cancel  r,  zQuote._cls_cancelc                 K   r-  rF  Nr.   r/  r.   r.   r/   cancel  r1  zQuote.cancelc                 K   r-  rI  r.   r2  r.   r.   r/   rJ    r3  rH  c              	   K   r4  )rF  r!   r"  rG  r  r$  r%  r5  r2  r.   r.   r/   rJ    r8  c                    r9  )rF  r!   r"  rG  r$  r%  Nr:  r)  r.   r.   r/   _cls_cancel_async  r=  zQuote._cls_cancel_asyncc                    r>  rI  r.   r/  r.   r.   r/   cancel_async(  r@  zQuote.cancel_asyncc                    r>  rI  r.   r2  r.   r.   r/   rL  2  rA  rK  c              	      rB  )rF  r!   r"  rG  r  r$  r%  NrC  r2  r.   r.   r/   rL  ;  rE  r   c                 K   s   t d| j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!   r"  r%  )r   r'  	class_urlr*  r  r.   r.   r/   createM  s   zQuote.createc                    s"   t d| jd|  |dI dH S )rM  r!   r"  r%  N)r   r;  rN  rO  r.   r.   r/   create_async[  s   
zQuote.create_asyncr   c                 K   r   )&
        Finalizes the quote.
        r!   r"  /v1/quotes/{quote}/finalizer$  r%  r&  r)  r.   r.   r/   _cls_finalize_quotek  r,  zQuote._cls_finalize_quotec                 K   r-  rR  Nr.   r/  r.   r.   r/   finalize_quote{     zQuote.finalize_quotec                 K   r-  rU  r.   r2  r.   r.   r/   rV       rT  c              	   K   r4  )rR  r!   r"  rS  r  r$  r%  r5  r2  r.   r.   r/   rV    r8  c                    r9  )rR  r!   r"  rS  r$  r%  Nr:  r)  r.   r.   r/   _cls_finalize_quote_async  r=  zQuote._cls_finalize_quote_asyncc                    r>  rU  r.   r/  r.   r.   r/   finalize_quote_async  r@  zQuote.finalize_quote_asyncc                    r>  rU  r.   r2  r.   r.   r/   rZ    rA  rY  c              	      rB  )rR  r!   r"  rS  r  r$  r%  NrC  r2  r.   r.   r/   rZ    rE  r   c                 K   s4   | j d|  |d}t|tstdt|j |S )0
        Returns a list of your quotes.
        r7  r%  %Expected list object from API, got %s)r'  rN  
isinstancer   	TypeErrorr(   r*   r*  r  resultr.   r.   r/   list  s   
z
Quote.listc                    s<   | j d|  |dI dH }t|tstdt|j |S )r[  r7  r%  Nr\  )r;  rN  r]  r   r^  r(   r*   r_  r.   r.   r/   
list_async  s   
zQuote.list_asyncr   c                 K   &   t td | jddjt|d|d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   r7  ./v1/quotes/{quote}/computed_upfront_line_itemsr$  r%  r   r   r'  r(  r
   r)  r.   r.   r/   %_cls_list_computed_upfront_line_items  s   	z+Quote._cls_list_computed_upfront_line_itemsc                 K   r-  rd  Nr.   r/  r.   r.   r/    list_computed_upfront_line_items  s   	z&Quote.list_computed_upfront_line_itemsc                 K   r-  rh  r.   r2  r.   r.   r/   ri    rX  rg  c              	   K   ,   t td | jddjt| dd|dS )rd  r   r7  re  r  r$  r%  r   r   r6  r(  r
   r7  r2  r.   r.   r/   ri  #     c                    .   t td | jddjt|d|dI dH S )rd  r   r7  re  r$  r%  Nr   r   r;  r(  r
   r)  r.   r.   r/   +_cls_list_computed_upfront_line_items_async5  s   	
z1Quote._cls_list_computed_upfront_line_items_asyncc                    r>  rh  r.   r/  r.   r.   r/   &list_computed_upfront_line_items_asyncI  s   	z,Quote.list_computed_upfront_line_items_asyncc                    r>  rh  r.   r2  r.   r.   r/   rp  T  rA  ro  c              	      4   t td | jddjt| dd|dI dH S )rd  r   r7  re  r  r$  r%  Nr   r   rD  r(  r
   r7  r2  r.   r.   r/   rp  ]     
r   c                 K   rc  )
        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   r7  /v1/quotes/{quote}/line_itemsr$  r%  rf  r)  r.   r.   r/   _cls_list_line_itemso  s   zQuote._cls_list_line_itemsc                 K   r-  rt  Nr.   r/  r.   r.   r/   list_line_items  rW  zQuote.list_line_itemsc                 K   r-  rw  r.   r2  r.   r.   r/   rx    rX  rv  c              	   K   rj  )rt  r   r7  ru  r  r$  r%  rk  r2  r.   r.   r/   rx    rl  c                    rm  )rt  r   r7  ru  r$  r%  Nrn  r)  r.   r.   r/   _cls_list_line_items_async  s   
z Quote._cls_list_line_items_asyncc                    r>  rw  r.   r/  r.   r.   r/   list_line_items_async  r@  zQuote.list_line_items_asyncc                    r>  rw  r.   r2  r.   r.   r/   rz    rA  ry  c              	      rq  )rt  r   r7  ru  r  r$  r%  Nrr  r2  r.   r.   r/   rz    rs  r   c                 K   s*   d|   t|f }td| jd||dS )D
        A quote models prices and services for a customer.
        %s/%sr!   r"  r%  )rN  r
   r   r'  r*  r  r  urlr.   r.   r/   modify  s   zQuote.modifyc                    s2   d|   t|f }td| jd||dI dH S )r{  r|  r!   r"  r%  N)rN  r
   r   r;  r}  r.   r.   r/   modify_async  s   
zQuote.modify_asyncr  c                 K   s$   t t| jddjt|d|d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)
        r7  /v1/quotes/{quote}/pdfr$  filesr  base_address)r   r   _static_request_streamr(  r
   r)  r.   r.   r/   _cls_pdf  s   zQuote._cls_pdfc                 K   r-  r  Nr.   r/  r.   r.   r/   pdf  r1  z	Quote.pdfc                 K   r-  r  r.   r2  r.   r.   r/   r    r3  r  c              	   K   s*   t t| jddjt| dd|ddS )r  r7  r  r  r$  r  r  )r   r   _request_streamr(  r
   r7  r2  r.   r.   r/   r    s   c                    s,   t t| jddjt|d|ddI dH S )r  r7  r  r$  r  r  N)r   r   _static_request_stream_asyncr(  r
   r)  r.   r.   r/   _cls_pdf_async0  s   
zQuote._cls_pdf_asyncc                    r>  r  r.   r/  r.   r.   r/   	pdf_asyncA  r@  zQuote.pdf_asyncc                    r>  r  r.   r2  r.   r.   r/   r  K  s   r  c              	      s2   t t| jddjt| dd|ddI dH S )r  r7  r  r  r$  r  r  N)r   r   _request_stream_asyncr(  r
   r7  r2  r.   r.   r/   r  R  s   
r  c                 K   s   | |fi |}|   |S )8
        Retrieves the quote with the given ID.
        )refreshr*  r  r  instancer.   r.   r/   retrievee  s   zQuote.retrievec                    s$   | |fi |}|  I dH  |S )r  N)refresh_asyncr  r.   r.   r/   retrieve_asyncp  s   zQuote.retrieve_async)r   r  r   r   r  r   rq   r   N)dr*   r+   r,   __doc__r#   r   r   r-   r   r:   rw   rz   r   r   r   rf   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r	  r
  r  r  r  r  r  r  rB   r   r   r   r   r   r   r8   r   classmethodr   r+  r   staticmethodr0  r	   r<  r?  rH  rJ  rK  rL  rP  rQ  rT  rV  rY  rZ  ra  rb  rg  ri  ro  rp  rv  rx  ry  rz  r  r  r   r  r  r  r  r  r  r9   r.   r.   r.   r/   r!   !   s  
  I
NV






N




		

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   r?   stripe._invoicer   stripe._line_itemr   stripe._subscriptionr   stripe._subscription_scheduler   stripe._tax_rater   stripe.test_helpers._test_clockr    r!   r.   r.   r.   r/   <module>   s4   $
