
    HUh                        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            	       X    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      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d0Zi i fdedd1dedefd2Zi i fdedd1dedefd3Zi i fdedd4dedefd5Zi i fdedd4dedefd6Zi i fdedd7dedefd8Zi i fdedd7dedefd9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 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dAZi i fdedd@dedefdBZi fdeddCdedefdDZi fdeddCdedefdEZi i fdeddFdedefdGZi i fdeddFdedefdHZi i fddIdedefdJZi i fddIdedefdKZ xZS (L  InvoiceServicec                 X    t         |   |       t        | j                        | _        y )N)super__init__r   
_requestor
line_items)self	requestor	__class__s     W/var/www/html/Ryun_Seer/newvenv/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                   6    e Zd ZU eee      ed<   	 ee   ed<   y)"InvoiceService.AttachPaymentParamsr   payment_intentNr#   r)   r   r   AttachPaymentParamsr   
  s(    DI&&	 $C((	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.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions0       &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  8      '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    !\
 	
	
 !,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.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsN  +     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   CCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr0  ]  =     3	 gg.//	 m$$	r   r6  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   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer9  n  +     #g
 	
	 "#&&	r   r>  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r:  gInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfereu_bank_transferr   Nr=  r)   r   r   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzYInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer|  +     &u
 	
	 #	r   rC  c                       e Zd ZU eed<   y)rA  r   Nr   r)   r   r   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzgInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer       	r   rF  c                       e Zd Zy)EInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr$   r%   r&   r)   r   r   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinirI        r   rK  c                       e Zd Zy)GInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNrJ  r)   r   r   8CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitrN    rL  r   rO  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   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountrQ    6      +m 
 	
	 );<
 	
	r   rT  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)rR  fInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersfiltersbalances	ownershippayment_methodtransactionspermissionsrZ  r[  r]  prefetchNr$   r%   r&   r   r(   r   r   r)   r   r   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz_InvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections  b     t
 	
	 !M
 	
	 @AB
 	
	r   rb  c                   *    e Zd ZU eeed         ed<   y)rW  checkingsavingsaccount_subcategoriesNr$   r%   r&   r   r   r   r(   r)   r   r   WCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterszfInvoiceService.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters  $      +./0 
 	
	r   rj  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_versionNr=  r)   r   r   CreateParamsRenderingz$InvoiceService.CreateParamsRendering  O    'I
 	
	 BCC	 c""	 &&788	r   rt  c                   $    e Zd ZU eed      ed<   y)ro  a4autoletter	page_sizeNr  r)   r   r   CreateParamsRenderingPdfz'InvoiceService.CreateParamsRenderingPdf      w'=>??	r   r|  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hourr2  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.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum2  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.CreateParamsShippingCostShippingRateDataFixedAmount>  @    	 	 &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.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsQ  +     	 ";<
 	
	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.CreateParamsShippingDetails_  ,    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.CreateParamsShippingDetailsAddressm  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.CreatePreviewParamsCustomerDetailsShippingAddress7  r  r   r  c                       e Zd ZU ed   ed<   y)r  r   
ip_addressNr   r)   r   r   %CreatePreviewParamsCustomerDetailsTaxz4InvoiceService.CreatePreviewParamsCustomerDetailsTaxQ  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.CreatePreviewParamsCustomerDetailsTaxIdW  s)    mo
 o	
`	 
	r   rS  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   CreatePreviewParamsDiscountrU    rG   r   rV  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   r[  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   &CreatePreviewParamsInvoiceItemDiscountr]  (  rG   r   r^  c                   $    e Zd ZU eed<   	 eed<   y)rY  rI   rJ   NrK   r)   r   r   $CreatePreviewParamsInvoiceItemPeriodz3InvoiceService.CreatePreviewParamsInvoiceItemPeriod6  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)rZ  rO   rP   rS   rW   rX   rY   NrZ   r)   r   r   'CreatePreviewParamsInvoiceItemPriceDataz6InvoiceService.CreatePreviewParamsInvoiceItemPriceData@  sY    	 	 ";<
 	
	 !%%	 )--	r   rb  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.CreatePreviewParamsIssuerX  r   r   rd  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.CreatePreviewParamsScheduleDetailsb  sR    !'*=">??	 IJ
 	
	 (AB
 	
	r   rp  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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$)%ri  DInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemadd_invoice_itemsapplication_fee_percentBInvoiceService.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxr   )r  phase_startbilling_cycle_anchorzSLiteral['']|InvoiceService.CreatePreviewParamsScheduleDetailsPhaseBillingThresholdsbilling_thresholdsr   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   rk  ro  
start_dateBInvoiceService.CreatePreviewParamsScheduleDetailsPhaseTransferDatar   trial	trial_endN)r$   r%   r&   r   r   r(   r   r   r'   r=   r
   r>   r)   r   r   'CreatePreviewParamsScheduleDetailsPhasez6InvoiceService.CreatePreviewParamsScheduleDetailsPhaset  s   &V
 	

	 "-U!33	 #P
 	
	 *'2L*MNN	 (a
 	
	 ':;
 	
	 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	)
rr  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)ru  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.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiability4  '     S!!	 '((	r   r  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)GInvoiceService.CreatePreviewParamsScheduleDetailsPhaseBillingThresholds
amount_gtereset_billing_cycle_anchorN)r$   r%   r&   r   r=   r(   r>   r)   r   r   8CreatePreviewParamsScheduleDetailsPhaseBillingThresholdsr  @  s$    $$	 %0$55	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  J  rG   r   r  c                   B    e Zd ZU ed   ed<   	 ee   ed<   	 ed   ed<   y)rz  r:   r   r   KInvoiceService.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerr   N)r$   r%   r&   r   r(   r=   r)   r   r   6CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingszEInvoiceService.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsX  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.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerh  r  r   r  c                       e Zd ZU ed   ed<   	 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)r|  zWLiteral['']|InvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemBillingThresholdsrx  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.CreatePreviewParamsScheduleDetailsPhaseItemt  s    'e
 	
	 b
 	
	 d38n--	 #	 3	  Q
 	
	 c""	 677	r   r  c                       e Zd ZU eed<   y)KInvoiceService.CreatePreviewParamsScheduleDetailsPhaseItemBillingThresholds	usage_gteNrK   r)   r   r   <CreatePreviewParamsScheduleDetailsPhaseItemBillingThresholdsr         	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  r2  r  yearr3  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']|intrw  rr  	cancel_atcancel_at_period_end
cancel_nowr:   r   9InvoiceService.CreatePreviewParamsSubscriptionDetailsItemr}  rk  ro  proration_datenow	resume_atr  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d   ed<   	 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  zVLiteral['']|InvoiceService.CreatePreviewParamsSubscriptionDetailsItemBillingThresholdsrx  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    'd
 	
	 !&&	 T""	 a
 	
	 	 :;;	 #	 3	  P
 	
	 c""	 677	r   r  c                       e Zd ZU eed<   y)JInvoiceService.CreatePreviewParamsSubscriptionDetailsItemBillingThresholdsr  NrK   r)   r   r   ;CreatePreviewParamsSubscriptionDetailsItemBillingThresholdsr  J  r  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  R  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  r3  r  Nr  r)   r   r   <CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringzKInvoiceService.CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring|  r  r   r  c                       e Zd Zy)InvoiceService.DeleteParamsNrJ  r)   r   r   DeleteParamsr    rL  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    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_bandr\  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.UpdateLinesParamsLineN  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    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.UpdateLinesParamsLinePriceData  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   rr  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   r2  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   r5  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r4  r   r   r   Nr   r)   r   r   !UpdateParamsAutomaticTaxLiabilityz0InvoiceService.UpdateParamsAutomaticTaxLiability	  r   r   r7  c                   $    e Zd ZU eed<   	 eed<   y)&InvoiceService.UpdateParamsCustomFieldr^   r   Nr   r)   r   r   UpdateParamsCustomFieldr9  	  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)r0  r   r   >InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsr   r   r   Nr   r)   r   r   UpdateParamsPaymentSettingsz*InvoiceService.UpdateParamsPaymentSettings	  r   r   rB  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)rA  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   rD  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   8UpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitrF  -
  r  r   rH  c                   $    e Zd ZU eed      ed<   y)rG  r  r  Nr  r)   r   r   FUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszUInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions;
  r  r   rJ  c                   $    e Zd ZU eed      ed<   y)HInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsBancontactr  r  Nr  r)   r   r   9UpdateParamsPaymentSettingsPaymentMethodOptionsBancontactrL  C
  r  r   rM  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   3UpdateParamsPaymentSettingsPaymentMethodOptionsCardrO  I
  r)  r   rQ  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rP  r   z^Literal['']|InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr+  Nr,  r)   r   r   ?UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszNInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsY
  r.  r   rS  c                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ed   ed<   y)RInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr1  r2  r3  r4  r   Nr5  r)   r   r   CUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanrU  h
  r7  r   rV  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)MInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceYInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr;  r<  Nr=  r)   r   r   >UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancerX  y
  r?  r   rZ  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rY  gInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferrB  r   Nr=  r)   r   r   JUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzYInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer
  rD  r   r]  c                       e Zd ZU eed<   y)r\  r   Nr   r)   r   r   XUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferzgInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer
  rG  r   r_  c                       e Zd Zy)EInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsKonbiniNrJ  r)   r   r   6UpdateParamsPaymentSettingsPaymentMethodOptionsKonbinira  
  rL  r   rb  c                       e Zd Zy)GInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNrJ  r)   r   r   8UpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebitrd  
  rL  r   re  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)KInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount_InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsrS  r  r
  Nr  r)   r   r   <UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountrg  
  rU  r   ri  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)rh  fInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersrX  rY  r^  r_  r`  Nra  r)   r   r   PUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsz_InvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections
  rc  r   rl  c                   *    e Zd ZU eeed         ed<   y)rk  re  rh  Nri  r)   r   r   WUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterszfInvoiceService.UpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters
  rk  r   rn  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y)	r1  rm  rn  'InvoiceService.UpdateParamsRenderingPdfrp  rq  rr  rs  Nr=  r)   r   r   UpdateParamsRenderingz$InvoiceService.UpdateParamsRendering
  ru  r   rq  c                   $    e Zd ZU eed      ed<   y)rp  rw  r{  Nr  r)   r   r   UpdateParamsRenderingPdfz'InvoiceService.UpdateParamsRenderingPdf
  r}  r   rs  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)'InvoiceService.UpdateParamsShippingCostr  7InvoiceService.UpdateParamsShippingCostShippingRateDatar  NrE   r)   r   r   UpdateParamsShippingCostru  
  r  r   rw  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)rv  GInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimater  r   BInvoiceService.UpdateParamsShippingCostShippingRateDataFixedAmountr  r1   rS   rW   r_   r   Nr  r)   r   r   (UpdateParamsShippingCostShippingRateDataz7InvoiceService.UpdateParamsShippingCostShippingRateData
  r  r   r{  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)ry  NInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximumr  NInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimumr  Nr   r)   r   r   8UpdateParamsShippingCostShippingRateDataDeliveryEstimatezGInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimate#  r  r   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r}  r  r  r   Nr  r)   r   r   ?UpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximumzNInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum1  r  r   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r~  r  r  r   Nr  r)   r   r   ?UpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimumzNInvoiceService.UpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum=  r  r   r  c                   @    e Zd ZU eed<   	 eed<   	 eeedf      ed<   y)rz  r,   rO   QInvoiceService.UpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr  Nr  r)   r   r   3UpdateParamsShippingCostShippingRateDataFixedAmountzBInvoiceService.UpdateParamsShippingCostShippingRateDataFixedAmountI  r  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   BUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionszQInvoiceService.UpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions\  r  r   r  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   UpdateParamsShippingDetailsr  j  r  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   "UpdateParamsShippingDetailsAddressz1InvoiceService.UpdateParamsShippingDetailsAddressx  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    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://docs.stripe.com/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.delete  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://docs.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://docs.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_async7  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://docs.stripe.com/api#finalize_invoice) the invoice to your customers.
        r  r  r  r  r   r   r  r  s      r   createzInvoiceService.createJ  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://docs.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.searchp  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_async  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_lines  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 )O  
        Attaches a PaymentIntent or an Out of Band Payment to the invoice, adding it to the list of payments.

        For the PaymentIntent, when the PaymentIntent's status changes to succeeded, the payment is credited
        to the invoice, increasing its amount_paid. When the invoice is fully paid, the
        invoice's status becomes paid.

        If the PaymentIntent's status is already succeeded when it's attached, it's
        credited to the invoice immediately.

        See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more.
        r  %/v1/invoices/{invoice}/attach_paymentr  r  r  r  r  s       r   attach_paymentzInvoiceService.attach_payment  sN    $ MM7>>'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   attach_payment_asyncz#InvoiceService.attach_payment_async  s^     $ %%7>>'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_uncollectible2  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_asyncH  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_asynct  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_invoice  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_async  ^      %%-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_lines  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://docs.stripe.com/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://docs.stripe.com/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.

        You can also preview the effects of creating or updating a subscription or subscription schedule, including a preview of any prorations that 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 on the invoice is to consider line items where parent.subscription_item_details.proration is true.

        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.

        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_previewB  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(  r-  r6  r>  rC  rF  rK  rO  rT  rb  rj  rt  r|  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rS  rV  r[  r^  r`  rb  rd  rp  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+  r2  r5  r7  r:  r=  r?  rB  rD  rH  rJ  rM  rQ  rS  rV  rZ  r]  r_  rb  re  ri  rl  rn  rq  rs  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  r  r  r  r  r   r  r  r  r   r  r  r  __classcell__)r   s   @r   r   r      s   B 4Y 4lY 9 i < ,I $i $L9 9vi 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 $l) l\	 8 4
i 


9 )   

&i &Pi y 8

i 0 0d2Y 2h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 8:"$	

 5
  	

 

D 8:"$	

 5
  	

 

D :<"$	

 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
  
 
	
: 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 $ # # = =h9
] h9
r   