
    h                        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mZ d d	lmZmZmZ  G d
 de      Zy)    )Invoice)InvoiceLineItemService)
ListObject)RequestOptions)SearchResultObject)StripeService)sanitize_id)DictListcast)LiteralNotRequired	TypedDictc            	           e Zd Z fd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 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      Z+ G dP dQe      Z, G dR dSe      Z- G dT dUe      Z. G dV dWe      Z/ G dX dYe      Z0 G dZ d[e      Z1 G d\ d]e      Z2 G d^ d_e      Z3 G d` dae      Z4 G db dce      Z5 G dd dee      Z6 G df dge      Z7 G dh die      Z8 G dj dke      Z9 G dl dme      Z: G dn doe      Z; G dp dqe      Z< G dr dse      Z= G dt due      Z> G dv dwe      Z? G dx dye      Z@ G dz d{e      ZA G d| d}e      ZB G d~ de      ZC G d de      ZD G d de      ZE G d de      ZF G d de      ZG G d de      ZH G d de      ZI G d de      ZJ G d de      ZK G d de      ZL G d de      ZM G d de      ZN G d de      ZO G d de      ZP G d de      ZQ G d de      ZR G d de      ZS G d de      ZT G d de      ZU G d de      ZV G d de      ZW G d de      ZX G d de      ZY G d de      ZZ G d de      Z[ G d de      Z\ G d de      Z] G d de      Z^ G d de      Z_ G d de      Z` G d de      Za G d de      Zb G d de      Zc G d de      Zd G d de      Ze G dĄ de      Zf G dƄ de      Zg G dȄ de      Zh G dʄ de      Zi G d̄ de      Zj G d΄ de      Zk G dЄ de      Zl G d҄ de      Zm G dԄ de      Zn G dք de      Zo G d؄ de      Zp G dڄ de      Zq G d܄ de      Zr G dބ de      Zs G d de      Zt G d de      Zu G d de      Zv G d de      Zw G d de      Zx G d de      Zy G d de      Zz G d de      Z{ G d de      Z| G d de      Z} G d de      Z~ G d de      Z G d de      Z G d de      Z G d de      Z G d de      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      Zi i fdedddedefdZi i fdedddedefdZi i fdedddedefdZi i fdedddedefdZi i fdedddedefdZi i fdedddedefdZi i fdddedee   fdZi i fdddedee   fdZi i fdd dedefd!Zi i fdd dedefd"Zi fdd#dedee   fd$Zi fdd#dedee   fd%Zi fdedd&dedefd'Zi fdedd&dedefd(Zi i fdedd)dedefd*Zi i fdedd)dedefd+Zi i fdedd,dedefd-Zi i fdedd,dedefd.Zi i fdedd/dedefd0Zi i fdedd/dedefd1Zi fdedd2dedefd3Zi fdedd2dedefd4Zi i fdedd5dedefd6Zi i fdedd5dedefd7Zi fdedd8dedefd9Zi fdedd8dedefd:Zi i fdedd;dedefd<Zi i fdedd;dedefd=Zi i fdd>dedefd?Zi i fdd>dedefd@Z xZS (A  InvoiceServicec                 X    t         |   |       t        | j                        | _        y )N)super__init__r   
_requestor
line_items)self	requestor	__class__s     W/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/stripe/_invoice_service.pyr   zInvoiceService.__init__   s     #0A    c                   H    e Zd ZU eee      ed<   	 ed   ed<   	 ed   ed<   y)InvoiceService.AddLinesParamsexpandLiteral['']|Dict[str, str]invoice_metadata!InvoiceService.AddLinesParamsLinelinesN__name__
__module____qualname__r   r   str__annotations__ r   r   AddLinesParamsr      s<    DI&&	 &&BCC	 788	r   r*   c                       e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 ed   ed<   y)r!   amountdescriptiondiscountablez;Literal['']|List[InvoiceService.AddLinesParamsLineDiscount]	discountsinvoice_itemr   metadata'InvoiceService.AddLinesParamsLinePeriodperiod*InvoiceService.AddLinesParamsLinePriceData
price_data(InvoiceService.AddLinesParamsLinePricingpricingquantityz<Literal['']|List[InvoiceService.AddLinesParamsLineTaxAmount]tax_amountsLiteral['']|List[str]	tax_ratesNr$   r%   r&   r   intr(   r'   boolr)   r   r   AddLinesParamsLinez!InvoiceService.AddLinesParamsLine!   s    C  	 !%%	 "$''	 I
 	
	 "#&&	 :;;	 EFF	   LMM	 GHH	 c""	 !J
 	
	 677	r   r?   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y))InvoiceService.AddLinesParamsLineDiscountcoupondiscountpromotion_codeNr$   r%   r&   r   r'   r(   r)   r   r   AddLinesParamsLineDiscountrA   W   6    C  	 c""	 $C((	r   rF   c                   $    e Zd ZU eed<   	 eed<   y)r2   endstartNr$   r%   r&   r=   r(   r)   r   r   AddLinesParamsLinePeriodz'InvoiceService.AddLinesParamsLinePeriode       	 
	r   rL   c                   x    e Zd ZU eed<   	 ee   ed<   	 ed   ed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y	)
r4   currencyproduct5InvoiceService.AddLinesParamsLinePriceDataProductDataproduct_data	exclusive	inclusiveunspecifiedtax_behaviorunit_amountunit_amount_decimalNr$   r%   r&   r'   r(   r   r   r=   r)   r   r   AddLinesParamsLinePriceDataz*InvoiceService.AddLinesParamsLinePriceDatao   sv    	 S!!	 "C
 	
	 ";<
 	
	 !%%	 )--	r   r[   c                   p    e Zd ZU ee   ed<   	 eee      ed<   	 eeeef      ed<   	 eed<   	 ee   ed<   y)rQ   r-   imagesr1   nametax_codeNr$   r%   r&   r   r'   r(   r   r
   r)   r   r   &AddLinesParamsLinePriceDataProductDataz5InvoiceService.AddLinesParamsLinePriceDataProductData   `     %%	 DI&&	 d38n--	 		 c""	r   ra   c                       e Zd ZU ee   ed<   y)r6   priceNrE   r)   r   r   AddLinesParamsLinePricingz(InvoiceService.AddLinesParamsLinePricing       3	r   re   c                   H    e Zd ZU eed<   	 ded<   	 eed      ed<   	 eed<   y)*InvoiceService.AddLinesParamsLineTaxAmountr,   5InvoiceService.AddLinesParamsLineTaxAmountTaxRateDatatax_rate_data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&   r=   r(   r   r   r)   r   r   AddLinesParamsLineTaxAmountrh      sH    	 ON	
 '
 	
&	 	r   r~   c                       e Zd ZU ee   ed<   	 ee   ed<   	 eed<   	 eed<   	 ee   ed<   	 eed      ed<   	 eed<   	 ee   ed	<   	 eed
      ed<   y)ri   countryr-   display_namerU   jurisdictioncityr   countydistrictmultiplestatejurisdiction_level
percentager   amusement_taxcommunications_taxgsthstigstjct	lease_taxpstqstretail_delivery_feerst	sales_taxservice_taxvattax_typeN	r$   r%   r&   r   r'   r(   r>   r   floatr)   r   r   &AddLinesParamsLineTaxAmountTaxRateDataz5InvoiceService.AddLinesParamsLineTaxAmountTaxRateData       S!!	 !%%	 	 	 "#&&	 (L
 	

	 	 3	 
 	
$	r   r   c                   d   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ed      ed	<   	 ee   ed
<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee	e      ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   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   ed<   	 ee   ed <   	 ed!   ed"<   	 eed#      ed$<   	 ed%   ed&<   	 ed'   ed(<   	 ed)   ed*<   	 ee   ed+<   	 ee   ed,<   	 ed-   ed.<   y/)0InvoiceService.CreateParamsr:   account_tax_idsapplication_fee_amountauto_advance'InvoiceService.CreateParamsAutomaticTaxautomatic_taxautomatically_finalizes_atcharge_automaticallysend_invoicecollection_methodrO   z8Literal['']|List[InvoiceService.CreateParamsCustomField]custom_fieldscustomerdays_until_duedefault_payment_methoddefault_sourcedefault_tax_ratesr-   z5Literal['']|List[InvoiceService.CreateParamsDiscount]r/   due_dateeffective_atr   footer&InvoiceService.CreateParamsFromInvoicefrom_invoice!InvoiceService.CreateParamsIssuerissuerr   r1   numberon_behalf_of*InvoiceService.CreateParamsPaymentSettingspayment_settings)excludeincludepending_invoice_items_behavior$InvoiceService.CreateParamsRendering	rendering'InvoiceService.CreateParamsShippingCostshipping_cost*InvoiceService.CreateParamsShippingDetailsshipping_detailsstatement_descriptorsubscription'InvoiceService.CreateParamsTransferDatatransfer_dataN
r$   r%   r&   r   r(   r=   r>   r   r'   r   r)   r   r   CreateParamsr   
  sz   $%<==	 !,C 00	 "$''	 ##LMM	 %0$44	 ':;
 	
	 c""	 #F
 	
	 c""	 $C((	 !,C 00	 $C((	 'tCy11	 !%%	 C
 	
	 c""	 "#&&	 DI&&	 C  	 ""JKK	 ?@@	 :;;	 C  	 "#&&	 &8
 	
	 )4())
 	
	 EFF	 ##LMM	 &8
 	
	 *#..	 "#&&	 ##LMM	r   r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r   enabled0InvoiceService.CreateParamsAutomaticTaxLiability	liabilityNr$   r%   r&   r>   r(   r   r)   r   r   CreateParamsAutomaticTaxz'InvoiceService.CreateParamsAutomaticTax  #    	 >
 	
	r   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   accountr   r   typeNr$   r%   r&   r   r'   r(   r   r)   r   r   !CreateParamsAutomaticTaxLiabilityz0InvoiceService.CreateParamsAutomaticTaxLiability  %    S!!	 '((	r   r   c                   $    e Zd ZU eed<   	 eed<   y)&InvoiceService.CreateParamsCustomFieldr^   valueNr$   r%   r&   r'   r(   r)   r   r   CreateParamsCustomFieldr         		 
	r   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)#InvoiceService.CreateParamsDiscountrB   rC   rD   NrE   r)   r   r   CreateParamsDiscountr     rG   r   r   c                   *    e Zd ZU ed   ed<   	 eed<   y)r   revisionactioninvoiceNr$   r%   r&   r   r(   r'   r)   r   r   CreateParamsFromInvoicez&InvoiceService.CreateParamsFromInvoice  s    
##	 	r   r   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   r   r   r   Nr   r)   r   r   CreateParamsIssuerz!InvoiceService.CreateParamsIssuer  r   r   r   c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r   Literal['']|strdefault_mandate>InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionspayment_method_options  Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]payment_method_typesNr$   r%   r&   r   r(   r)   r   r   CreateParamsPaymentSettingsz*InvoiceService.CreateParamsPaymentSettings  D    $%677	 !,L!
 	
	 * P
 	
	r   r   c                       e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ed   ed<   y)r   zSLiteral['']|InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit
acss_debitzTLiteral['']|InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsBancontact
bancontactzNLiteral['']|InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCardcardzYLiteral['']|InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancecustomer_balancezQLiteral['']|InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinikonbinizSLiteral['']|InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit
sepa_debitzWLiteral['']|InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountus_bank_accountNr   r)   r   r   /CreateParamsPaymentSettingsPaymentMethodOptionsz>InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptions      a
 	
	  b
 	
	 \
 	
	 &g
 	
	 _
 	
	  a
 	
	 %e
 	
	r   r   c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)GInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitUInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsmandate_options	automaticinstantmicrodepositsverification_methodNr$   r%   r&   r   r(   r   r)   r   r   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr     4    $c
 	
	 );<
 	
	r   r  c                   $    e Zd ZU eed      ed<   y)r   businesspersonaltransaction_typeNr$   r%   r&   r   r   r(   r)   r   r   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszUInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions&       &g.D&EFF	r   r  c                   $    e Zd ZU eed      ed<   y)HInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactdeenfrnlpreferred_languageNr  r)   r   r   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr  .      '0F(GHH	r   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)BInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCardNInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsinstallmentsanyr  	challengerequest_three_d_secureNr  r)   r   r   3CreateParamsPaymentSettingsPaymentMethodOptionsCardr  4  4    !\
 	
	
 !,34!
 	
	r   r$  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r   z^Literal['']|InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanplanNr$   r%   r&   r   r>   r(   r)   r   r   ?CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszNInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsD  +     T""	 l
 	
	r   r)  c                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ed   ed<   y)RInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlancountmonthintervalfixed_countr   Nr$   r%   r&   r   r=   r(   r   r)   r   r   CCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr,  S  =     3	 gg.//	 m$$	r   r2  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)MInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceYInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferbank_transferfunding_typeNr$   r%   r&   r   r(   r'   r)   r   r   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer5  d  +     #g
 	
	 "#&&	r   r:  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r6  gInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfereu_bank_transferr   Nr9  r)   r   r   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzYInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr  +     &u
 	
	 #	r   r?  c                       e Zd ZU eed<   y)r=  r   Nr   r)   r   r   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzgInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer       	r   rB  c                       e Zd Zy)EInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr$   r%   r&   r)   r   r   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinirE        r   rG  c                       e Zd Zy)GInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNrF  r)   r   r   8CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitrJ    rH  r   rK  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)KInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount_InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsfinancial_connectionsr  r  Nr  r)   r   r   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountrM    6      +m 
 	
	 );<
 	
	r   rP  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)rN  fInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersfiltersbalances	ownershippayment_methodtransactionspermissionsrV  rW  rY  prefetchNr$   r%   r&   r   r(   r   r   r)   r   r   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz_InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections  b     t
 	
	 !M
 	
	 @AB
 	
	r   r^  c                   *    e Zd ZU eeed         ed<   y)rS  checkingsavingsaccount_subcategoriesNr$   r%   r&   r   r   r   r(   r)   r   r   WCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterszfInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters  $      +./0 
 	
	r   rf  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y)	r   ;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']amount_tax_display'InvoiceService.CreateParamsRenderingPdfpdftemplateLiteral['']|inttemplate_versionNr9  r)   r   r   CreateParamsRenderingz$InvoiceService.CreateParamsRendering  O    'I
 	
	 BCC	 c""	 &&788	r   rp  c                   $    e Zd ZU eed      ed<   y)rk  a4autoletter	page_sizeNr  r)   r   r   CreateParamsRenderingPdfz'InvoiceService.CreateParamsRenderingPdf      w'=>??	r   rx  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r   shipping_rate7InvoiceService.CreateParamsShippingCostShippingRateDatashipping_rate_dataNrE   r)   r   r   CreateParamsShippingCostz'InvoiceService.CreateParamsShippingCost  )    "3''	 (E
 	
	r   r~  c                       e Zd ZU ed   ed<   	 eed<   	 ed   ed<   	 eeeef      ed<   	 eed      ed<   	 ee   ed	<   	 eed      ed
<   y)r|  GInvoiceService.CreateParamsShippingCostShippingRateDataDeliveryEstimatedelivery_estimater   BInvoiceService.CreateParamsShippingCostShippingRateDataFixedAmountfixed_amountr1   rS   rW   r_   r   Nr$   r%   r&   r   r(   r'   r
   r   r)   r   r   (CreateParamsShippingCostShippingRateDataz7InvoiceService.CreateParamsShippingCostShippingRateData      &U
 	
	 	 "P
 	
	 d38n--	 ";<
 	
	 c""	 '.122	r   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  NInvoiceService.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximummaximumNInvoiceService.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimumminimumNr   r)   r   r   8CreateParamsShippingCostShippingRateDataDeliveryEstimatezGInvoiceService.CreateParamsShippingCostShippingRateDataDeliveryEstimate  .    \
 	
	 \
 	
	r   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  business_daydayhourr.  weekunitr   Nr$   r%   r&   r   r(   r=   r)   r   r   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximumzNInvoiceService.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum  !     DEE	 
	r   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  r  r  r   Nr  r)   r   r   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimumzNInvoiceService.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum(  r  r   r  c                   @    e Zd ZU eed<   	 eed<   	 eeedf      ed<   y)r  r,   rO   QInvoiceService.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionscurrency_optionsNr$   r%   r&   r=   r(   r'   r   r
   r)   r   r   3CreateParamsShippingCostShippingRateDataFixedAmountzBInvoiceService.CreateParamsShippingCostShippingRateDataFixedAmount4  @    	 	 &ce
 	
	r   r  c                   0    e Zd ZU eed<   	 eed      ed<   y)r  r,   rS   rW   Nr}   r)   r   r   BCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionszQInvoiceService.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsG  +     	 ";<
 	
	r   r  c                   6    e Zd ZU ded<   	 eed<   	 ed   ed<   y)r   1InvoiceService.CreateParamsShippingDetailsAddressaddressr^   r   phoneNr$   r%   r&   r(   r'   r   r)   r   r   CreateParamsShippingDetailsz*InvoiceService.CreateParamsShippingDetailsU  ,    DD	 		 ,--	r   r  c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r  r   r   line1line2postal_coder   NrE   r)   r   r   "CreateParamsShippingDetailsAddressz1InvoiceService.CreateParamsShippingDetailsAddressc  l    #	 S!!	 3	 3	 !%%	 3	r   r  c                   *    e Zd ZU ee   ed<   	 eed<   y)r   r,   destinationNr$   r%   r&   r   r=   r(   r'   r)   r   r   CreateParamsTransferDataz'InvoiceService.CreateParamsTransferData}      C  	 	r   r  c                      e Zd ZU ed   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ed   ed<   	 eee      ed	<   	 e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e   ed<   	 ed   ed<   y)"InvoiceService.CreatePreviewParams.InvoiceService.CreatePreviewParamsAutomaticTaxr   rO   r   1InvoiceService.CreatePreviewParamsCustomerDetailscustomer_detailsz<Literal['']|List[InvoiceService.CreatePreviewParamsDiscount]r/   r   -InvoiceService.CreatePreviewParamsInvoiceIteminvoice_items(InvoiceService.CreatePreviewParamsIssuerr   r   r   )next	recurringpreview_modeschedule1InvoiceService.CreatePreviewParamsScheduleDetailsschedule_detailsr   5InvoiceService.CreatePreviewParamsSubscriptionDetailssubscription_detailsN)r$   r%   r&   r   r(   r'   r   r   r)   r   r   CreatePreviewParamsr    s,   "<
 	
	 c""	 c""	 &?
 	
	 J
 	
	 DI&&	 #@A
 	
	 FGG	 ""344	 "'*=">??	 c""	 &?
 	
	 "#&&	 *C
 	
	r   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  r   7InvoiceService.CreatePreviewParamsAutomaticTaxLiabilityr   Nr   r)   r   r   CreatePreviewParamsAutomaticTaxz.InvoiceService.CreatePreviewParamsAutomaticTax  s#    	 E
 	
	r   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r   r   r   Nr   r)   r   r   (CreatePreviewParamsAutomaticTaxLiabilityz7InvoiceService.CreatePreviewParamsAutomaticTaxLiability  r   r   r  c                   l    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 eed	      ed
<   y)r  zDLiteral['']|InvoiceService.CreatePreviewParamsCustomerDetailsAddressr  zELiteral['']|InvoiceService.CreatePreviewParamsCustomerDetailsShippingshipping4InvoiceService.CreatePreviewParamsCustomerDetailsTaxtaxz0Literal['']|Literal['exempt', 'none', 'reverse']
tax_exempt6InvoiceService.CreatePreviewParamsCustomerDetailsTaxIdtax_idsN)r$   r%   r&   r   r(   r   r)   r   r   "CreatePreviewParamsCustomerDetailsz1InvoiceService.CreatePreviewParamsCustomerDetails  sy    R
 	
	 S
 	
	 B
 	
	  >
 	
	 IJ
 	
	r   r  c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)8InvoiceService.CreatePreviewParamsCustomerDetailsAddressr   r   r  r  r  r   NrE   r)   r   r   )CreatePreviewParamsCustomerDetailsAddressr    r  r   r  c                   6    e Zd ZU ded<   	 eed<   	 ee   ed<   y)9InvoiceService.CreatePreviewParamsCustomerDetailsShipping@InvoiceService.CreatePreviewParamsCustomerDetailsShippingAddressr  r^   r  Nr  r)   r   r   *CreatePreviewParamsCustomerDetailsShippingr    s-    N	
	 		 3	r   r  c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r  r   r   r  r  r  r   NrE   r)   r   r   1CreatePreviewParamsCustomerDetailsShippingAddressz@InvoiceService.CreatePreviewParamsCustomerDetailsShippingAddress-  r  r   r  c                       e Zd ZU ed   ed<   y)r  r   
ip_addressNr   r)   r   r   %CreatePreviewParamsCustomerDetailsTaxz4InvoiceService.CreatePreviewParamsCustomerDetailsTaxG  s     122	r   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  )nad_nrtae_trnal_tinam_tinao_tinar_cuitau_abnau_arnaw_tinaz_tinba_tinbb_tinbd_binbf_ifubg_uicbh_vatbj_ifubo_tinbr_cnpjbr_cpfbs_tinby_tinca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qstcd_nifch_uidch_vatcl_tincm_niucn_tinco_nitcr_tincv_nifde_stndo_rcnec_ruceg_tines_cifet_tin
eu_oss_vateu_vatgb_vatge_vatgn_nifhk_brhr_oibhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkg_tinkh_tinkr_brnkz_binla_tinli_uidli_vatma_vatmd_vatme_pibmk_vatmr_nifmx_rfcmy_frpmy_itnmy_sstng_tinno_vatno_voecnp_pannz_gstom_vatpe_rucph_tinro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsn_nineasr_finsv_nitth_vattj_tintr_tintw_vattz_vatua_vatug_tinus_einuy_rucuz_tinuz_vatve_rifvn_tinza_vatzm_tinzw_tinr   r   Nr   r)   r   r   'CreatePreviewParamsCustomerDetailsTaxIdz6InvoiceService.CreatePreviewParamsCustomerDetailsTaxIdM  s)    mo
 o	
`	 
	r   rO  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)*InvoiceService.CreatePreviewParamsDiscountrB   rC   rD   NrE   r)   r   r   CreatePreviewParamsDiscountrQ    rG   r   rR  c                   2   e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed	<   	 ed
   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 eed      ed<   	 ed   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   y)r  r,   rO   r-   r.   zGLiteral['']|List[InvoiceService.CreatePreviewParamsInvoiceItemDiscount]r/   invoiceitemr   r1   3InvoiceService.CreatePreviewParamsInvoiceItemPeriodr3   rd   6InvoiceService.CreatePreviewParamsInvoiceItemPriceDatar5   r8   rS   rW   r   r_   r:   r;   rX   rY   N)	r$   r%   r&   r   r=   r(   r'   r>   r   r)   r   r   CreatePreviewParamsInvoiceItemz-InvoiceService.CreatePreviewParamsInvoiceItem  s=   C  	 c""	 !%%	 "$''	 U
 	
	 !%%	 :;;	 A
 	
	 3	  D
 	
	 c""	 ";<
 	
	 /00	 677	 !%%	 )--	r   rW  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)5InvoiceService.CreatePreviewParamsInvoiceItemDiscountrB   rC   rD   NrE   r)   r   r   &CreatePreviewParamsInvoiceItemDiscountrY    rG   r   rZ  c                   $    e Zd ZU eed<   	 eed<   y)rU  rI   rJ   NrK   r)   r   r   $CreatePreviewParamsInvoiceItemPeriodz3InvoiceService.CreatePreviewParamsInvoiceItemPeriod,  rM   r   r\  c                   `    e Zd ZU eed<   	 eed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y)rV  rO   rP   rS   rW   rX   rY   NrZ   r)   r   r   'CreatePreviewParamsInvoiceItemPriceDataz6InvoiceService.CreatePreviewParamsInvoiceItemPriceData6  sY    	 	 ";<
 	
	 !%%	 )--	r   r^  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r   r   r   Nr   r)   r   r   CreatePreviewParamsIssuerz(InvoiceService.CreatePreviewParamsIssuerN  r   r   r`  c                   T    e Zd ZU eed      ed<   	 eed      ed<   	 eed      ed<   y)r  )cancelreleaseend_behavior6InvoiceService.CreatePreviewParamsScheduleDetailsPhasephasesalways_invoicecreate_prorationsnoneproration_behaviorN)r$   r%   r&   r   r   r(   r   r)   r   r   "CreatePreviewParamsScheduleDetailsz1InvoiceService.CreatePreviewParamsScheduleDetailsX  sR    !'*=">??	 IJ
 	
	 (AB
 	
	r   rl  c                      e Zd ZU eed      ed<   	 ee   ed<   	 ed   ed<   	 eed      ed<   	 eed      ed	<   	 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d   ed<   	 ed   ed<   	 ee	   ed<   	 ee
eef      ed<   	 ee   ed<   	 eed      ed<   	 ed   ed<   	 ed   ed<   	 ee   ed <   	 ed   ed!<   y")#re  DInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemadd_invoice_itemsapplication_fee_percentBInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxr   )r  phase_startbilling_cycle_anchorr   r   rO   r   r:   r   r   r-   zPLiteral['']|List[InvoiceService.CreatePreviewParamsScheduleDetailsPhaseDiscount]r/   zint|Literal['now']end_dateEInvoiceService.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsinvoice_settings:InvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemitems
iterationsr1   r   rg  rk  
start_dateBInvoiceService.CreatePreviewParamsScheduleDetailsPhaseTransferDatar   trial	trial_endN)r$   r%   r&   r   r   r(   r   r   r'   r=   r
   r>   r)   r   r   'CreatePreviewParamsScheduleDetailsPhasez6InvoiceService.CreatePreviewParamsScheduleDetailsPhasej  s   &V
 	

	 "-U!33	 #P
 	
	 *'2L*MNN	 ':;
 	
	 c""	 !,C 00	 ''>??	 !!233	 ^
 	
	 233	 &S
 	
	 H
 	
	  $$	 d38n--	 "#&&	 (AB
 	
	   455	 #P
 	
	 4  	 344	r   r~  c                   l    e Zd ZU eed      ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y	)
rn  LInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountr/   rd   MInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceDatar5   r8   r:   r;   N)r$   r%   r&   r   r   r(   r'   r=   r)   r   r   5CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemzDInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem  sm    ^
 	

	 3	  [
 	
	 c""	 677	r   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)r  rB   rC   rD   NrE   r)   r   r   =CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountzLInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount  s8     C  	 c""	 $C((	r   r  c                   `    e Zd ZU eed<   	 eed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y)r  rO   rP   rS   rW   rX   rY   NrZ   r)   r   r   >CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceDatazMInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData  s[     	 	 ";<
 	
	 !%%	 )--	r   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)rq  r   KInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiabilityr   Nr   r)   r   r   3CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxzBInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAutomaticTax  s#    	 Y
 	
	r   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r   r   r   Nr   r)   r   r   <CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiabilityzKInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiability$  '     S!!	 '((	r   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)>InvoiceService.CreatePreviewParamsScheduleDetailsPhaseDiscountrB   rC   rD   NrE   r)   r   r   /CreatePreviewParamsScheduleDetailsPhaseDiscountr  0  rG   r   r  c                   B    e Zd ZU ed   ed<   	 ee   ed<   	 ed   ed<   y)ru  r:   r   r   KInvoiceService.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerr   N)r$   r%   r&   r   r(   r=   r)   r   r   6CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingszEInvoiceService.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettings>  s<    $%<==	 $C((	 Y
 	
	r   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r   r   r   Nr   r)   r   r   <CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerzKInvoiceService.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerN  r  r   r  c                       e Zd ZU ed   ed<   	 eeeef      ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed	   ed
<   y)rw  zTLiteral['']|List[InvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemDiscount]r/   r1   r'  rd   CInvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemPriceDatar5   r8   r:   r;   N)r$   r%   r&   r   r(   r
   r'   r=   r)   r   r   +CreatePreviewParamsScheduleDetailsPhaseItemz:InvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemZ  s    b
 	
	 d38n--	 #	 3	  Q
 	
	 c""	 677	r   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)BInvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemDiscountrB   rC   rD   NrE   r)   r   r   3CreatePreviewParamsScheduleDetailsPhaseItemDiscountr  |  rG   r   r  c                   l    e Zd ZU eed<   	 eed<   	 ded<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y	)
r  rO   rP   LInvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurringr  rS   rW   rX   rY   NrZ   r)   r   r   4CreatePreviewParamsScheduleDetailsPhaseItemPriceDatazCInvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemPriceData  sg    	 	 ba	 ";<
 	
	 !%%	 )--	r   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  r  r.  r  yearr/  interval_countNr$   r%   r&   r   r(   r   r=   r)   r   r   =CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurringzLInvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring  '     899	 $C((	r   r  c                   *    e Zd ZU ee   ed<   	 eed<   y)r{  amount_percentr  N)r$   r%   r&   r   r   r(   r'   r)   r   r   3CreatePreviewParamsScheduleDetailsPhaseTransferDatazBInvoiceService.CreatePreviewParamsScheduleDetailsPhaseTransferData  s    #E**	 	r   r  c                       e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 eed	      ed
<   	 eed      ed<   	 ee   ed<   	 eed      ed<   	 ee   ed<   	 ed   ed<   y)r  zLiteral['now', 'unchanged']|intrs  rn  	cancel_atcancel_at_period_end
cancel_nowr:   r   9InvoiceService.CreatePreviewParamsSubscriptionDetailsItemrx  rg  rk  proration_datenow	resume_atrz  zLiteral['now']|intr}  N)	r$   r%   r&   r   r(   r>   r   r   r=   r)   r   r   &CreatePreviewParamsSubscriptionDetailsz5InvoiceService.CreatePreviewParamsSubscriptionDetails  s    )*KLL	 011	 *$//	  %%	 ''>??	 LM
 	
	 (AB
 	
	 $C((	 wu~..	  $$	 344	r   r  c                       e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed	<   	 ed
   ed<   	 ee   ed<   	 ed   ed<   y)r  clear_usagedeletedzSLiteral['']|List[InvoiceService.CreatePreviewParamsSubscriptionDetailsItemDiscount]r/   idr   r1   r'  rd   BInvoiceService.CreatePreviewParamsSubscriptionDetailsItemPriceDatar5   r8   r:   r;   N)r$   r%   r&   r   r>   r(   r'   r=   r)   r   r   *CreatePreviewParamsSubscriptionDetailsItemz9InvoiceService.CreatePreviewParamsSubscriptionDetailsItem  s     &&	 T""	 a
 	
	 	 :;;	 #	 3	  P
 	
	 c""	 677	r   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)AInvoiceService.CreatePreviewParamsSubscriptionDetailsItemDiscountrB   rC   rD   NrE   r)   r   r   2CreatePreviewParamsSubscriptionDetailsItemDiscountr    rG   r   r  c                   l    e Zd ZU eed<   	 eed<   	 ded<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y	)
r  rO   rP   KInvoiceService.CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringr  rS   rW   rX   rY   NrZ   r)   r   r   3CreatePreviewParamsSubscriptionDetailsItemPriceDatazBInvoiceService.CreatePreviewParamsSubscriptionDetailsItemPriceData*  sg    	 	 a`	 ";<
 	
	 !%%	 )--	r   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  r  r/  r  Nr  r)   r   r   <CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringzKInvoiceService.CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringF  r  r   r  c                       e Zd Zy)InvoiceService.DeleteParamsNrF  r)   r   r   DeleteParamsr  R  rH  r   r  c                   6    e Zd ZU ee   ed<   	 eee      ed<   y)$InvoiceService.FinalizeInvoiceParamsr   r   N)r$   r%   r&   r   r>   r(   r   r'   r)   r   r   FinalizeInvoiceParamsr  U  s(    !$''	 DI&&	r   r  c                       e Zd ZU eed      ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   ee   ed<   	 eee      ed	<   	 ee   ed
<   	 ee   ed<   	 eed      ed<   	 ee   ed<   y)InvoiceService.ListParamsr   r   z$InvoiceService.ListParamsCreated|intcreatedr   z$InvoiceService.ListParamsDueDate|intr   ending_beforer   limitstarting_after)draftopenpaiduncollectiblevoidstatusr   N)	r$   r%   r&   r   r   r(   r'   r   r=   r)   r   r   
ListParamsr  _  s    &:;
 	
	 CDD	 c""	 DEE"3''	 DI&&	 3	 $C((	 DE
 	
	 "#&&	r   r  c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y) InvoiceService.ListParamsCreatedgtgteltlteNr$   r%   r&   r   r=   r(   r)   r   r   ListParamsCreatedr    H    	 	 	 	r   r  c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y) InvoiceService.ListParamsDueDater  r  r  r  Nr  r)   r   r   ListParamsDueDater    r  r   r  c                   $    e Zd ZU eee      ed<   y)&InvoiceService.MarkUncollectibleParamsr   Nr#   r)   r   r   MarkUncollectibleParamsr        DI&&	r   r  c                       e Zd ZU eee      ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y	)
InvoiceService.PayParamsr   forgiver   mandateoff_sessionpaid_out_of_bandrX  sourceN)r$   r%   r&   r   r   r'   r(   r>   r)   r   r   	PayParamsr    s    DI&&	 T""	
 .//	 !&&	 &d++	 $C((	 C  	r   r  c                   H    e Zd ZU eee      ed<   	 ed   ed<   	 ed   ed<   y) InvoiceService.RemoveLinesParamsr   r   r    $InvoiceService.RemoveLinesParamsLiner"   Nr#   r)   r   r   RemoveLinesParamsr    <    DI&&	 &&BCC	 :;;	r   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  )deleteunassignbehaviorr  Nr   r)   r   r   RemoveLinesParamsLinez$InvoiceService.RemoveLinesParamsLine  s    .//	 	r   r  c                   $    e Zd ZU eee      ed<   y)InvoiceService.RetrieveParamsr   Nr#   r)   r   r   RetrieveParamsr    r  r   r  c                   T    e Zd ZU eee      ed<   	 ee   ed<   	 ee   ed<   	 eed<   y)InvoiceService.SearchParamsr   r  pagequeryN)r$   r%   r&   r   r   r'   r(   r=   r)   r   r   SearchParamsr    sF    DI&&	 3	 #	 
	r   r  c                   $    e Zd ZU eee      ed<   y) InvoiceService.SendInvoiceParamsr   Nr#   r)   r   r   SendInvoiceParamsr    r  r   r  c                   H    e Zd ZU eee      ed<   	 ed   ed<   	 ed   ed<   y) InvoiceService.UpdateLinesParamsr   r   r    $InvoiceService.UpdateLinesParamsLiner"   Nr#   r)   r   r   UpdateLinesParamsr   
  r  r   r  c                       e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 eed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 ed   ed<   y)r  r,   r-   r.   z>Literal['']|List[InvoiceService.UpdateLinesParamsLineDiscount]r/   r  r   r1   *InvoiceService.UpdateLinesParamsLinePeriodr3   -InvoiceService.UpdateLinesParamsLinePriceDatar5   +InvoiceService.UpdateLinesParamsLinePricingr7   r8   z?Literal['']|List[InvoiceService.UpdateLinesParamsLineTaxAmount]r9   r:   r;   Nr<   r)   r   r   UpdateLinesParamsLinez$InvoiceService.UpdateLinesParamsLine  s    C  	 !%%	 "$''	 L
 	
	 	 :;;	 HII	  ;
 	
	 JKK	 c""	 !M
 	
	 677	r   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y),InvoiceService.UpdateLinesParamsLineDiscountrB   rC   rD   NrE   r)   r   r   UpdateLinesParamsLineDiscountr	  P  rG   r   r
  c                   $    e Zd ZU eed<   	 eed<   y)r  rI   rJ   NrK   r)   r   r   UpdateLinesParamsLinePeriodz*InvoiceService.UpdateLinesParamsLinePeriod^  rM   r   r  c                   x    e Zd ZU eed<   	 ee   ed<   	 ed   ed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y	)
r  rO   rP   8InvoiceService.UpdateLinesParamsLinePriceDataProductDatarR   rS   rW   rX   rY   NrZ   r)   r   r   UpdateLinesParamsLinePriceDataz-InvoiceService.UpdateLinesParamsLinePriceDatah  sv    	 S!!	 "F
 	
	 ";<
 	
	 !%%	 )--	r   r  c                   p    e Zd ZU ee   ed<   	 eee      ed<   	 eeeef      ed<   	 eed<   	 ee   ed<   y)r  r-   r]   r1   r^   r_   Nr`   r)   r   r   )UpdateLinesParamsLinePriceDataProductDataz8InvoiceService.UpdateLinesParamsLinePriceDataProductData  rb   r   r  c                       e Zd ZU ee   ed<   y)r  rd   NrE   r)   r   r   UpdateLinesParamsLinePricingz+InvoiceService.UpdateLinesParamsLinePricing  rf   r   r  c                   H    e Zd ZU eed<   	 ded<   	 eed      ed<   	 eed<   y)-InvoiceService.UpdateLinesParamsLineTaxAmountr,   8InvoiceService.UpdateLinesParamsLineTaxAmountTaxRateDatarj   rk   r{   r|   Nr}   r)   r   r   UpdateLinesParamsLineTaxAmountr    sJ    	 G	
	
 '
 	
&	 	r   r  c                       e Zd ZU ee   ed<   	 ee   ed<   	 eed<   	 eed<   	 ee   ed<   	 eed      ed<   	 eed<   	 ee   ed	<   	 eed
      ed<   y)r  r   r-   r   rU   r   r   r   r   r   r   r   Nr   r)   r   r   )UpdateLinesParamsLineTaxAmountTaxRateDataz8InvoiceService.UpdateLinesParamsLineTaxAmountTaxRateData  r   r   r  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ed      ed	<   	 ed
   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 ee   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d   ed <   	 ed!   ed"<   	 ed#   ed$<   	 ed%   ed&<   	 ee   ed'<   	 ed(   ed)<   y*)+InvoiceService.UpdateParamsr:   r   r   r   'InvoiceService.UpdateParamsAutomaticTaxr   r   r   r   z8Literal['']|List[InvoiceService.UpdateParamsCustomField]r   r   r   r   r   r   r-   z5Literal['']|List[InvoiceService.UpdateParamsDiscount]r/   r   rn  r   r   r   !InvoiceService.UpdateParamsIssuerr   r   r1   r   r   *InvoiceService.UpdateParamsPaymentSettingsr   $InvoiceService.UpdateParamsRenderingr   z3Literal['']|InvoiceService.UpdateParamsShippingCostr   z6Literal['']|InvoiceService.UpdateParamsShippingDetailsr   r   z3Literal['']|InvoiceService.UpdateParamsTransferDatar   Nr   r)   r   r   UpdateParamsr  	  s   $%<==	 !,C 00	 "$''	 ##LMM	 %0$44	 ':;
 	
	 #F
 	
	 $C((	 !,C 00	 $$566	 ''>??	 !%%	 C
 	
	 c""	 ""344	 DI&&	 C  	 ?@@	 :;;	 -..	 ""344	 &8
 	
	 EFF	 #A
 	
	 &D
 	
	 *#..	 #A
 	
	r   r   c                   *    e Zd ZU eed<   	 ed   ed<   y)r  r   0InvoiceService.UpdateParamsAutomaticTaxLiabilityr   Nr   r)   r   r   UpdateParamsAutomaticTaxz'InvoiceService.UpdateParamsAutomaticTax	  r   r   r#  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r"  r   r   r   Nr   r)   r   r   !UpdateParamsAutomaticTaxLiabilityz0InvoiceService.UpdateParamsAutomaticTaxLiability	  r   r   r%  c                   $    e Zd ZU eed<   	 eed<   y)&InvoiceService.UpdateParamsCustomFieldr^   r   Nr   r)   r   r   UpdateParamsCustomFieldr'  	  r   r   r(  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)#InvoiceService.UpdateParamsDiscountrB   rC   rD   NrE   r)   r   r   UpdateParamsDiscountr*  	  rG   r   r+  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r   r   r   Nr   r)   r   r   UpdateParamsIssuerz!InvoiceService.UpdateParamsIssuer	  r   r   r-  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  r   r   >InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsr   r   r   Nr   r)   r   r   UpdateParamsPaymentSettingsz*InvoiceService.UpdateParamsPaymentSettings	  r   r   r0  c                       e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   	 ed   ed<   y)r/  zSLiteral['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zTLiteral['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsBancontactr   zNLiteral['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardr   zYLiteral['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zQLiteral['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsKonbinir   zSLiteral['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr   zWLiteral['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr   r)   r   r   /UpdateParamsPaymentSettingsPaymentMethodOptionsz>InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptions	  r   r   r2  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)GInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitUInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr  r  r  Nr  r)   r   r   8UpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr4  	  r	  r   r6  c                   $    e Zd ZU eed      ed<   y)r5  r  r  Nr  r)   r   r   FUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszUInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions
  r  r   r8  c                   $    e Zd ZU eed      ed<   y)HInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsBancontactr  r  Nr  r)   r   r   9UpdateParamsPaymentSettingsPaymentMethodOptionsBancontactr:  
  r  r   r;  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)BInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardNInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  r   r#  Nr  r)   r   r   3UpdateParamsPaymentSettingsPaymentMethodOptionsCardr=  
  r%  r   r?  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r>  r   z^Literal['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr'  Nr(  r)   r   r   ?UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszNInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments#
  r*  r   rA  c                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ed   ed<   y)RInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr-  r.  r/  r0  r   Nr1  r)   r   r   CUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanrC  2
  r3  r   rD  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)MInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceYInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr7  r8  Nr9  r)   r   r   >UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancerF  C
  r;  r   rH  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rG  gInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr>  r   Nr9  r)   r   r   JUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzYInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferQ
  r@  r   rK  c                       e Zd ZU eed<   y)rJ  r   Nr   r)   r   r   XUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzgInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer_
  rC  r   rM  c                       e Zd Zy)EInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsKonbiniNrF  r)   r   r   6UpdateParamsPaymentSettingsPaymentMethodOptionsKonbinirO  g
  rH  r   rP  c                       e Zd Zy)GInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNrF  r)   r   r   8UpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitrR  j
  rH  r   rS  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)KInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount_InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsrO  r  r  Nr  r)   r   r   <UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountrU  m
  rQ  r   rW  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)rV  fInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersrT  rU  rZ  r[  r\  Nr]  r)   r   r   PUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz_InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections}
  r_  r   rZ  c                   *    e Zd ZU eeed         ed<   y)rY  ra  rd  Nre  r)   r   r   WUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterszfInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters
  rg  r   r\  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y)	r  ri  rj  'InvoiceService.UpdateParamsRenderingPdfrl  rm  rn  ro  Nr9  r)   r   r   UpdateParamsRenderingz$InvoiceService.UpdateParamsRendering
  rq  r   r_  c                   $    e Zd ZU eed      ed<   y)r^  rs  rw  Nr  r)   r   r   UpdateParamsRenderingPdfz'InvoiceService.UpdateParamsRenderingPdf
  ry  r   ra  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)'InvoiceService.UpdateParamsShippingCostr{  7InvoiceService.UpdateParamsShippingCostShippingRateDatar}  NrE   r)   r   r   UpdateParamsShippingCostrc  
  r  r   re  c                       e Zd ZU ed   ed<   	 eed<   	 ed   ed<   	 eeeef      ed<   	 eed      ed<   	 ee   ed	<   	 eed      ed
<   y)rd  GInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimater  r   BInvoiceService.UpdateParamsShippingCostShippingRateDataFixedAmountr  r1   rS   rW   r_   r   Nr  r)   r   r   (UpdateParamsShippingCostShippingRateDataz7InvoiceService.UpdateParamsShippingCostShippingRateData
  r  r   ri  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rg  NInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximumr  NInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimumr  Nr   r)   r   r   8UpdateParamsShippingCostShippingRateDataDeliveryEstimatezGInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimate
  r  r   rm  c                   *    e Zd ZU ed   ed<   	 eed<   y)rk  r  r  r   Nr  r)   r   r   ?UpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximumzNInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum
  r  r   ro  c                   *    e Zd ZU ed   ed<   	 eed<   y)rl  r  r  r   Nr  r)   r   r   ?UpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimumzNInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum  r  r   rq  c                   @    e Zd ZU eed<   	 eed<   	 eeedf      ed<   y)rh  r,   rO   QInvoiceService.UpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr  Nr  r)   r   r   3UpdateParamsShippingCostShippingRateDataFixedAmountzBInvoiceService.UpdateParamsShippingCostShippingRateDataFixedAmount  r  r   rt  c                   0    e Zd ZU eed<   	 eed      ed<   y)rs  r,   rS   rW   Nr}   r)   r   r   BUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionszQInvoiceService.UpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions&  r  r   rv  c                   6    e Zd ZU ded<   	 eed<   	 ed   ed<   y)*InvoiceService.UpdateParamsShippingDetails1InvoiceService.UpdateParamsShippingDetailsAddressr  r^   r   r  Nr  r)   r   r   UpdateParamsShippingDetailsrx  4  r  r   rz  c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)ry  r   r   r  r  r  r   NrE   r)   r   r   "UpdateParamsShippingDetailsAddressz1InvoiceService.UpdateParamsShippingDetailsAddressB  r  r   r|  c                   *    e Zd ZU ee   ed<   	 eed<   y)'InvoiceService.UpdateParamsTransferDatar,   r  Nr  r)   r   r   UpdateParamsTransferDatar~  \  r  r   r  c                   $    e Zd ZU eee      ed<   y) InvoiceService.VoidInvoiceParamsr   Nr#   r)   r   r   VoidInvoiceParamsr  f  r  r   r  r   paramsr  optionsreturnc                 |    t        t        | j                  ddj                  t	        |            d||            S )*  
        Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://stripe.com/docs/api#void_invoice).
        r  /v1/invoices/{invoice}r   apibase_addressr  r  r   r   _requestformatr	   r   r   r  r  s       r   r  zInvoiceService.deletel  sG     MM(//G8L/M"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr   r   _request_asyncr  r	   r  s       r   delete_asynczInvoiceService.delete_async  sW      %%(//G8L/M" &  	
 		
   =A
A
 	A
r  c                 |    t        t        | j                  ddj                  t	        |            d||            S ):
        Retrieves the invoice with the given ID.
        getr  r  r  r  r  r  s       r   retrievezInvoiceService.retrieve  sG     MM(//G8L/M"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   retrieve_asynczInvoiceService.retrieve_async  sW      %%(//G8L/M" &  	
 		
r  r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )  
        Draft invoices are fully editable. Once an invoice is [finalized](https://stripe.com/docs/billing/invoices/workflow#finalized),
        monetary values, as well as collection_method, become uneditable.

        If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
        sending reminders for, or [automatically reconciling](https://stripe.com/docs/billing/invoices/reconciliation) invoices, pass
        auto_advance=false.
        postr  r  r  r  r  r  s       r   updatezInvoiceService.update  sG     MM(//G8L/M"  	
 		
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   update_asynczInvoiceService.update_async  sW      %%(//G8L/M" &  	
 		
r  r  c           
      X    t        t        t           | j                  ddd||            S )
        You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.
        r  /v1/invoicesr  r  )r   r   r   r  r   r  r  s      r   listzInvoiceService.list  s9     wMM"  	
 		
r   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r  r  r  r  r  N)r   r   r   r  r  s      r   
list_asynczInvoiceService.list_async  sI      w%%" &  	
 		
   +86
	8r   c           
      J    t        t        | j                  ddd||            S )   
        This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://stripe.com/docs/api#finalize_invoice) the invoice to your customers.
        r  r  r  r  r   r   r  r  s      r   createzInvoiceService.create  s4     MM"  	
 		
r   c           
      f   K   t        t        | j                  ddd||       d{         S 7 w)r  r  r  r  r  Nr   r   r  r  s      r   create_asynczInvoiceService.create_async'  sD      %%" &  	
 		
   $1/
	1r  c           
      X    t        t        t           | j                  ddd||            S )  
        Search for invoices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
        Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
        conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
        to an hour behind during outages. Search functionality is not available to merchants in India.
        r  /v1/invoices/searchr  r  )r   r   r   r  r  s      r   searchzInvoiceService.search:  s9     w'MM%"  	
 		
r   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r  r  r  r  r  N)r   r   r   r  r  s      r   search_asynczInvoiceService.search_asyncP  sI      w'%%%" &  	
 		
r  r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )q
        Adds multiple line items to an invoice. This is only possible when an invoice is still a draft.
        r   /v1/invoices/{invoice}/add_linesr  r  r  r  r  s       r   	add_lineszInvoiceService.add_linesf  sN     MM299'0 :  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   add_lines_asynczInvoiceService.add_lines_async|  s^      %%299'0 :  # &  
 	
r  r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
        r  /v1/invoices/{invoice}/finalizer  r  r  r  r  s       r   finalize_invoicezInvoiceService.finalize_invoice  sN     MM188'0 9  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   finalize_invoice_asyncz%InvoiceService.finalize_invoice_async  s^      %%188'0 9  # &  
 	
r  r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.
        r  )/v1/invoices/{invoice}/mark_uncollectibler  r  r  r  r  s       r   mark_uncollectiblez!InvoiceService.mark_uncollectible  sO     MM;BB'0 C  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   mark_uncollectible_asyncz'InvoiceService.mark_uncollectible_async  s_      %%;BB'0 C  # &  
 	
r  r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )i  
        Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so.
        r  /v1/invoices/{invoice}/payr  r  r  r  r  s       r   payzInvoiceService.pay  sN     MM,33'0 4  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   	pay_asynczInvoiceService.pay_async   s^      %%,33'0 4  # &  
 	
r  r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )v
        Removes multiple line items from an invoice. This is only possible when an invoice is still a draft.
        r  #/v1/invoices/{invoice}/remove_linesr  r  r  r  r  s       r   remove_lineszInvoiceService.remove_lines  N     MM5<<'0 =  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   remove_lines_asyncz!InvoiceService.remove_lines_async,  ^      %%5<<'0 =  # &  
 	
r  r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )  
        Stripe will automatically send invoices to customers according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to manually send an invoice to your customer out of the normal schedule, you can do so. When sending invoices that have already been paid, there will be no reference to the payment in the email.

        Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event.
        r  /v1/invoices/{invoice}/sendr  r  r  r  r  s       r   r   zInvoiceService.send_invoiceB  N     MM-44'0 5  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   send_invoice_asyncz!InvoiceService.send_invoice_asyncZ  ^      %%-44'0 5  # &  
 	
r  r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )t
        Updates multiple line items on an invoice. This is only possible when an invoice is still a draft.
        r  #/v1/invoices/{invoice}/update_linesr  r  r  r  r  s       r   update_lineszInvoiceService.update_linesr  r  r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   update_lines_asyncz!InvoiceService.update_lines_async  r  r  r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )  
        Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://stripe.com/docs/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.

        Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or <a href="#create_credit_note">credit note](https://stripe.com/docs/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
        r  /v1/invoices/{invoice}/voidr  r  r  r  r  s       r   void_invoicezInvoiceService.void_invoice  r  r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   void_invoice_asyncz!InvoiceService.void_invoice_async  r  r  r  c           
      J    t        t        | j                  ddd||            S )  
        At any time, you can preview the upcoming invoice for a subscription or subscription schedule. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.

        Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount.

        You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request.

        Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions)
        r  /v1/invoices/create_previewr  r  r  r  s      r   create_previewzInvoiceService.create_preview  s4     MM-"  	
 		
r   c           
      f   K   t        t        | j                  ddd||       d{         S 7 w)r  r  r  r  r  Nr  r  s      r   create_preview_asyncz#InvoiceService.create_preview_async  sD      %%-" &  	
 		
r  )r$   r%   r&   r   r   r*   r?   rF   rL   r[   ra   re   r~   r   r   r   r   r   r   r   r   r   r   r  r  r  r$  r)  r2  r:  r?  rB  rG  rK  rP  r^  rf  rp  rx  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rO  rR  rW  rZ  r\  r^  r`  rl  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  r  r  r  r  r   r#  r%  r(  r+  r-  r0  r2  r6  r8  r;  r?  rA  rD  rH  rK  rM  rP  rS  rW  rZ  r\  r_  ra  re  ri  rm  ro  rq  rt  rv  rz  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  r  r  __classcell__)r   s   @r   r   r      sH   B 4Y 4lY 9 i < ,I $i $L9 9vLy L\
9 
I ) y ) Y i $*) *X9 I i  " 9  4	 (9 
9 
"9 "H9 



i &i Y 49 Di DL
) 
9 Y @I 4Y  I 4	 w) wri H HT y ) 0I Y $f) fP	 8 4
i 


)   

 i  Di y 8

i 0 0d,Y ,\Y i 8

y 	 )Y )VI $I $) I @I 	  y $I I 6	 6p	 i  <I ,y & &P9I 9vzy zx
9 
I ) y Y i $*) *X9 I i  " 9  4	 (9 
9 
"9 "H9 



i &i Y 49 I  13"$	

 .
  	

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

 

. 35"$	

 0
  	

 

. 35"$	

 0
  	

 

. 13"$	

 .
  	

 

8 13"$	

 .
  	

 

6 /1"$
+
  
 
G		
* /1"$
+
  
 
G		
* 13"$
-
  
 
	
* 13"$
-
  
 
	
, #%
-
  
 
G	$	
2 #%
-
  
 
G	$	
4 #%	

 0
  	

 

4 #%	

 0
  	

 

2 :<"$	

 7
  	

 

2 :<"$	

 7
  	

 

2 <>"$	

 9
  	

 

2 <>"$	

 9
  	

 

2 .0"$	

 +
  	

 

2 .0"$	

 +
  	

 

4 #%	

 3
  	

 

4 #%	

 3
  	

 

2 68"$	

 3
  	

 

6 68"$	

 3
  	

 

8 #%	

 3
  	

 

4 #%	

 3
  	

 

2 68"$	

 3
  	

 

6 68"$	

 3
  	

 

4 8:"$
4
  
 
	
6 8:"$
4
  
 
	
 
r   r   N)stripe._invoicer   !stripe._invoice_line_item_servicer   stripe._list_objectr   stripe._request_optionsr   stripe._search_result_objectr   stripe._stripe_servicer   stripe._utilr	   typingr
   r   r   typing_extensionsr   r   r   r   r)   r   r   <module>r     s6    $ D * 2 ; 0 $ # # = =p7
] p7
r   