
    Ch                         S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	  S SK
Jr  S SKJr  S SKJrJrJrJr  S S	KJrJrJr   " S
 S\5      rg)    )
ListObject)Quote)$QuoteComputedUpfrontLineItemsService)QuoteLineItemService)RequestOptions)StripeService)sanitize_id)AnyDictListcast)LiteralNotRequired	TypedDictc            	         ^  \ rS rSrU 4S jr " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r	 " S S\5      r
 " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r " S- S.\5      r " S/ S0\5      r " S1 S2\5      r " S3 S4\5      r " S5 S6\5      r " S7 S8\5      r  " S9 S:\5      r! " S; S<\5      r" " S= S>\5      r# " S? S@\5      r$ " SA SB\5      r%0 0 4SCSDSE\&SF\'\(   4SG jjr)0 0 4SCSDSE\&SF\'\(   4SH jjr*0 0 4SCSISE\&SF\(4SJ jjr+0 0 4SCSISE\&SF\(4SK jjr,0 0 4SL\-SCSMSE\&SF\(4SN jjr.0 0 4SL\-SCSMSE\&SF\(4SO jjr/0 0 4SL\-SCSPSE\&SF\(4SQ jjr00 0 4SL\-SCSPSE\&SF\(4SR jjr10 0 4SL\-SCSSSE\&SF\(4ST jjr20 0 4SL\-SCSSSE\&SF\(4SU jjr30 0 4SL\-SCSVSE\&SF\(4SW jjr40 0 4SL\-SCSVSE\&SF\(4SX jjr50 0 4SL\-SCSYSE\&SF\(4SZ jjr60 0 4SL\-SCSYSE\&SF\(4S[ jjr70 0 4SL\-SCS\SE\&SF\84S] jjr90 0 4SL\-SCS\SE\&SF\84S^ jjr:S_r;U =r<$ )`QuoteService   c                    > [         TU ]  U5        [        U R                  5      U l        [        U R                  5      U l        g )N)super__init__r   
_requestorcomputed_upfront_line_itemsr   
line_items)self	requestor	__class__s     X/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_quote_service.pyr   QuoteService.__init__   s9    #0 	(
 /t?    c                   ,    \ rS rSr% \\\      \S'   Srg)QuoteService.AcceptParams   expand N	__name__
__module____qualname____firstlineno__r   r   str__annotations____static_attributes__r$   r   r   AcceptParamsr!          DI&&	r   r-   c                   ,    \ rS rSr% \\\      \S'   Srg)QuoteService.CancelParams    r#   r$   Nr%   r$   r   r   CancelParamsr0       r.   r   r2   c                      \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \\S      \S	'    \\   \S
'    \S   \S'    \S   \S'    \S   \S'    \\\      \S'    \\	   \S'    \S   \S'    \S   \S'    \S   \S'    \S   \S'    \\S      \S'    \\
\\4      \S'    \S   \S'    \S   \S'    \\   \S'    \S    \S!'   S"rg#)$QuoteService.CreateParams&   Literal['']|intapplication_fee_amountLiteral['']|floatapplication_fee_percent%QuoteService.CreateParamsAutomaticTaxautomatic_taxcharge_automaticallysend_invoicecollection_methodcustomerLiteral['']|List[str]default_tax_ratesLiteral['']|strdescriptionz3Literal['']|List[QuoteService.CreateParamsDiscount]	discountsr#   
expires_atfooter"QuoteService.CreateParamsFromQuote
from_quoteheader(QuoteService.CreateParamsInvoiceSettingsinvoice_settings!QuoteService.CreateParamsLineItemr   metadataon_behalf_of)QuoteService.CreateParamsSubscriptionDatasubscription_data
test_clockz1Literal['']|QuoteService.CreateParamsTransferDatatransfer_datar$   Nr&   r'   r(   r)   r   r+   r   r*   r   intr   r,   r$   r   r   CreateParamsr4   &   s    +,= >>	 "--@!AA	 ##JKK	 ':;
 	
	 c""	 ''>??	 !!233	 A
 	
	 DI&&	  $$	 -..	   DEE	 -..	 &6
 	
	  %H IJJ	 d38n--	 ""344	 '7
 	
	  $$	 #?
 	
	r   rV   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r:      enabled.QuoteService.CreateParamsAutomaticTaxLiability	liabilityr$   Nr&   r'   r(   r)   boolr+   r   r,   r$   r   r   CreateParamsAutomaticTax%QuoteService.CreateParamsAutomaticTax   #    	 <
 	
	r   r^   c                   8    \ rS rSr% \\   \S'    \S   \S'   Srg)rZ      accountrc   r   typer$   N	r&   r'   r(   r)   r   r*   r+   r   r,   r$   r   r   !CreateParamsAutomaticTaxLiability.QuoteService.CreateParamsAutomaticTaxLiability   %    S!!	 '((	r   rg   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg)!QuoteService.CreateParamsDiscount   coupondiscountpromotion_coder$   Nr&   r'   r(   r)   r   r*   r+   r,   r$   r   r   CreateParamsDiscountrk      6    C  	 c""	 $C((	r   rq   c                   2    \ rS rSr% \\   \S'    \\S'   Srg)rH      is_revisionquoter$   N)	r&   r'   r(   r)   r   r]   r+   r*   r,   r$   r   r   CreateParamsFromQuote"QuoteService.CreateParamsFromQuote   s     &&	 
	r   rw   c                   8    \ rS rSr% \\   \S'    \S   \S'   Srg)rK      days_until_due.QuoteService.CreateParamsInvoiceSettingsIssuerissuerr$   Nr&   r'   r(   r)   r   rU   r+   r,   r$   r   r   CreateParamsInvoiceSettings(QuoteService.CreateParamsInvoiceSettings   %    #C((	 LMM	r   r   c                   8    \ rS rSr% \\   \S'    \S   \S'   Srg)r|      rc   rd   re   r$   Nrf   r$   r   r   !CreateParamsInvoiceSettingsIssuer.QuoteService.CreateParamsInvoiceSettingsIssuer   ri   r   r   c                   n    \ rS rSr% \S   \S'    \\   \S'    \S   \S'    \\   \S'    \S   \S	'   S
rg)rM      z;Literal['']|List[QuoteService.CreateParamsLineItemDiscount]rE   price*QuoteService.CreateParamsLineItemPriceData
price_dataquantityrA   	tax_ratesr$   N	r&   r'   r(   r)   r   r+   r*   rU   r,   r$   r   r   CreateParamsLineItem!QuoteService.CreateParamsLineItem   sa    I
 	
	 3	   LMM	 c""	 677	r   r   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg))QuoteService.CreateParamsLineItemDiscount   rm   rn   ro   r$   Nrp   r$   r   r   CreateParamsLineItemDiscountr      rr   r   r   c                   z    \ rS rSr% \\S'    \\S'    \S   \S'    \\S      \S'    \\   \S'    \\   \S	'   S
r	g)r      currencyproduct3QuoteService.CreateParamsLineItemPriceDataRecurring	recurring	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalr$   N
r&   r'   r(   r)   r*   r+   r   r   rU   r,   r$   r   r   CreateParamsLineItemPriceData*QuoteService.CreateParamsLineItemPriceData   p    	 	 A
 	
	 ";<
 	
	 !%%	 )--	r   r   c                   8    \ rS rSr% \S   \S'    \\   \S'   Srg)r   i  daymonthweekyearintervalinterval_countr$   N	r&   r'   r(   r)   r   r+   r   rU   r,   r$   r   r   &CreateParamsLineItemPriceDataRecurring3QuoteService.CreateParamsLineItemPriceDataRecurring  %    899	 $C((	r   r   c                   x    \ rS rSr% \S   \S'    \\   \S'    \S   \S'    \\\\4      \S'    \S   \S	'   S
rg)rP   i  4QuoteService.CreateParamsSubscriptionDataBillingModebilling_moderD   -Literal['']|Literal['current_period_end']|inteffective_daterN   r6   trial_period_daysr$   N)	r&   r'   r(   r)   r   r+   r*   r   r,   r$   r   r   CreateParamsSubscriptionData)QuoteService.CreateParamsSubscriptionData  sm    !B
 	
	 !%%	 $;
 	
	 d38n--	 ''899	r   r   c                   &    \ rS rSr% \S   \S'   Srg)r   i,  )classicflexiblere   r$   N)r&   r'   r(   r)   r   r+   r,   r$   r   r   'CreateParamsSubscriptionDataBillingMode4QuoteService.CreateParamsSubscriptionDataBillingMode,  s    +,,	r   r   c                   D    \ rS rSr% \\   \S'    \\   \S'    \\S'   Sr	g)%QuoteService.CreateParamsTransferDatai2  amountamount_percentdestinationr$   N
r&   r'   r(   r)   r   rU   r+   floatr*   r,   r$   r   r   CreateParamsTransferDatar   2  1    C  	 $E**	 	r   r   c                   >    \ rS rSr% \\\      \S'    \\   \S'   Sr	g) QuoteService.FinalizeQuoteParamsi@  r#   rF   r$   N)
r&   r'   r(   r)   r   r   r*   r+   rU   r,   r$   r   r   FinalizeQuoteParamsr   @  s(    DI&&	  $$	r   r   c                       \ rS rSr% \\   \S'    \\   \S'    \\\      \S'    \\   \S'    \\   \S'    \\	S      \S'    \\   \S	'   S
r
g)QuoteService.ListParamsiJ  r@   ending_beforer#   limitstarting_after)acceptedcanceleddraftopenstatusrR   r$   N)r&   r'   r(   r)   r   r*   r+   r   rU   r   r,   r$   r   r   
ListParamsr   J  s    c""	 #3''	 DI&&	 3	 $C((	 G$KLMM	  $$	r   r   c                   ,    \ rS rSr% \\\      \S'   Srg)QuoteService.PdfParamsih  r#   r$   Nr%   r$   r   r   	PdfParamsr   h  r.   r   r   c                   ,    \ rS rSr% \\\      \S'   Srg)QuoteService.RetrieveParamsin  r#   r$   Nr%   r$   r   r   RetrieveParamsr   n  r.   r   r   c                   t   \ rS rSr% \S   \S'    \S   \S'    \S   \S'    \\S      \S	'    \\   \S
'    \S   \S'    \S   \S'    \S   \S'    \\\      \S'    \\	   \S'    \S   \S'    \S   \S'    \S   \S'    \\S      \S'    \\
\\4      \S'    \S   \S'    \S   \S'    \S   \S'   Srg )!QuoteService.UpdateParamsit  r6   r7   r8   r9   %QuoteService.UpdateParamsAutomaticTaxr;   r<   r?   r@   rA   rB   rC   rD   z3Literal['']|List[QuoteService.UpdateParamsDiscount]rE   r#   rF   rG   rJ   (QuoteService.UpdateParamsInvoiceSettingsrL   !QuoteService.UpdateParamsLineItemr   rN   rO   )QuoteService.UpdateParamsSubscriptionDatarQ   z1Literal['']|QuoteService.UpdateParamsTransferDatarS   r$   NrT   r$   r   r   UpdateParamsr   t  s}    +,= >>	 "--@!AA	 ##JKK	 ':;
 	
	 c""	 ''>??	 !!233	 A
 	
	 DI&&	  $$	 -..	 -..	 &6
 	
	  %H IJJ	 d38n--	 ""344	 '7
 	
	 #?
 	
	r   r   c                   2    \ rS rSr% \\S'    \S   \S'   Srg)r   i  rY   .QuoteService.UpdateParamsAutomaticTaxLiabilityr[   r$   Nr\   r$   r   r   UpdateParamsAutomaticTax%QuoteService.UpdateParamsAutomaticTax  r`   r   r   c                   8    \ rS rSr% \\   \S'    \S   \S'   Srg)r   i  rc   rd   re   r$   Nrf   r$   r   r   !UpdateParamsAutomaticTaxLiability.QuoteService.UpdateParamsAutomaticTaxLiability  ri   r   r   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg)!QuoteService.UpdateParamsDiscounti  rm   rn   ro   r$   Nrp   r$   r   r   UpdateParamsDiscountr     rr   r   r   c                   8    \ rS rSr% \\   \S'    \S   \S'   Srg)r   i  r{   .QuoteService.UpdateParamsInvoiceSettingsIssuerr}   r$   Nr~   r$   r   r   UpdateParamsInvoiceSettings(QuoteService.UpdateParamsInvoiceSettings  r   r   r   c                   8    \ rS rSr% \\   \S'    \S   \S'   Srg)r   i  rc   rd   re   r$   Nrf   r$   r   r   !UpdateParamsInvoiceSettingsIssuer.QuoteService.UpdateParamsInvoiceSettingsIssuer  ri   r   r   c                       \ rS rSr% \S   \S'    \\   \S'    \\   \S'    \S   \S'    \\   \S'    \S	   \S
'   Srg)r   i   z;Literal['']|List[QuoteService.UpdateParamsLineItemDiscount]rE   idr   *QuoteService.UpdateParamsLineItemPriceDatar   r   rA   r   r$   Nr   r$   r   r   UpdateParamsLineItem!QuoteService.UpdateParamsLineItem   ss    I
 	
	 	 3	   LMM	 c""	 677	r   r   c                   J    \ rS rSr% \\   \S'    \\   \S'    \\   \S'   Srg))QuoteService.UpdateParamsLineItemDiscounti  rm   rn   ro   r$   Nrp   r$   r   r   UpdateParamsLineItemDiscountr     rr   r   r   c                   z    \ rS rSr% \\S'    \\S'    \S   \S'    \\S      \S'    \\   \S'    \\   \S	'   S
r	g)r   i*  r   r   3QuoteService.UpdateParamsLineItemPriceDataRecurringr   r   r   r   r   r$   Nr   r$   r   r   UpdateParamsLineItemPriceData*QuoteService.UpdateParamsLineItemPriceData*  r   r   r   c                   8    \ rS rSr% \S   \S'    \\   \S'   Srg)r   iH  r   r   r   r$   Nr   r$   r   r   &UpdateParamsLineItemPriceDataRecurring3QuoteService.UpdateParamsLineItemPriceDataRecurringH  r   r   r   c                   f    \ rS rSr% \S   \S'    \S   \S'    \\\\4      \S'    \S   \S'   S	rg
)r   iR  rC   rD   r   r   rN   r6   r   r$   N)	r&   r'   r(   r)   r   r+   r   r*   r,   r$   r   r   UpdateParamsSubscriptionData)QuoteService.UpdateParamsSubscriptionDataR  sW     !233	 $;
 	
	 d38n--	 ''899	r   r  c                   D    \ rS rSr% \\   \S'    \\   \S'    \\S'   Sr	g)%QuoteService.UpdateParamsTransferDataif  r   r   r   r$   Nr   r$   r   r   UpdateParamsTransferDatar  f  r   r   r  paramsr   optionsreturnc                 R    [        [        [           U R                  SSSUUS95      $ ) 
Returns a list of your quotes.
get
/v1/quotesapibase_addressr  r	  )r   r   r   _requestr   r  r	  s      r   listQuoteService.listt  s9     uMM"  	
 		
r   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)r  r  r  r  r  N)r   r   r   _request_asyncr  s      r   
list_asyncQuoteService.list_async  sH      u%%" &  	
 		
s   (53
	5r4   c                 D    [        [        U R                  SSSUUS95      $ )
A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the [quote template](https://dashboard.stripe.com/settings/billing/quote).
postr  r  r  )r   r   r  r  s      r   createQuoteService.create  s4     MM"  	
 		
r   c                 `   #    [        [        U R                  SSSUUS9I Sh  vN 5      $  N7f)r  r  r  r  r  N)r   r   r  r  s      r   create_asyncQuoteService.create_async  sC      %%" &  	
 		
s   !.,
	.rv   r   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )(
Retrieves the quote with the given ID.
r  /v1/quotes/{quote}rv   r  r  r   r   r  formatr	   r   rv   r  r	  s       r   retrieveQuoteService.retrieve  sG     MM$+++e2D+E"  	
 		
r   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)r#  r  r$  r%  r  r  Nr   r   r  r'  r	   r(  s       r   retrieve_asyncQuoteService.retrieve_async  sV      %%$+++e2D+E" &  	
 		
   7AA
	Ar   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )4
A quote models prices and services for a customer.
r  r$  r%  r  r  r&  r(  s       r   updateQuoteService.update  sG     MM$+++e2D+E"  	
 		
r   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)r1  r  r$  r%  r  r  Nr,  r(  s       r   update_asyncQuoteService.update_async  sV      %%$+++e2D+E" &  	
 		
r/  r!   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Accepts the specified quote.
r  /v1/quotes/{quote}/acceptr%  r  r  r&  r(  s       r   acceptQuoteService.accept  G     MM+22U9K2L"  	
 		
r   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)r8  r  r9  r%  r  r  Nr,  r(  s       r   accept_asyncQuoteService.accept_async$  V      %%+22U9K2L" &  	
 		
r/  r0   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Cancels the quote.
r  /v1/quotes/{quote}/cancelr%  r  r  r&  r(  s       r   cancelQuoteService.cancel8  r<  r   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rB  r  rC  r%  r  r  Nr,  r(  s       r   cancel_asyncQuoteService.cancel_asyncL  r@  r/  r   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Finalizes the quote.
r  /v1/quotes/{quote}/finalizer%  r  r  r&  r(  s       r   finalize_quoteQuoteService.finalize_quote`  sG     MM-44;u;M4N"  	
 		
r   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rJ  r  rK  r%  r  r  Nr,  r(  s       r   finalize_quote_async!QuoteService.finalize_quote_asynct  sV      %%-44;u;M4N" &  	
 		
r/  r   c                 p    [        [        U R                  SSR                  [	        U5      S9SUUS95      $ )
Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
r  /v1/quotes/{quote}/pdfr%  filesr  )r   r
   _request_streamr'  r	   r(  s       r   pdfQuoteService.pdf  sI       (//k%6H/I$ ! 	
 		
r   c                    #    [        [        U R                  SSR                  [	        U5      S9SUUS9I Sh  vN 5      $  N7f)rR  r  rS  r%  rT  r  N)r   r
   _request_stream_asyncr'  r	   r(  s       r   	pdf_asyncQuoteService.pdf_async  sV      ,,(//k%6H/I$ -  	
 		
r/  )r   r   )=r&   r'   r(   r)   r   r   r-   r2   rV   r^   rg   rq   rw   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-  r2  r5  r:  r>  rD  rG  rL  rO  r
   rV  rZ  r,   __classcell__)r   s   @r   r   r      s   @y y Zy Zx
9 
I y 	 i I y 0y 	 < y 4) 9 i Y <I  Ry Rh
9 
I y i I y 8y 	 < y (9   -/"$
)
  
 
E		
* -/"$
)
  
 
E		
* /1"$
+
  
 
	
* /1"$
+
  
 
	
, 13"$	

 .
  	

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

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

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

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

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

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

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

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

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

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

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

 

 
r   r   N)stripe._list_objectr   stripe._quoter   1stripe._quote_computed_upfront_line_items_servicer   stripe._quote_line_item_servicer   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr	   typingr
   r   r   r   typing_extensionsr   r   r   r   r$   r   r   <module>rf     s;    +  A 2 0 $ ( ( = =^
= ^
r   