
    +h              
          d dl mZ d dlmZmZmZmZ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mZmZmZmZmZ d d
lmZmZm Z m!Z!m"Z" d dl#m$Z$ e"rld dl%m&Z& d dl'm(Z( d dl)m*Z* d dl+m,Z- d dl.m/Z/ d dl0m1Z1 d dl2m3Z3 d dl4m5Z5 d dl6m7Z7 d dl8m9Z9 d dl:m;Z; d dl<m=Z= d dl>m?Z? d dl@mAZA d dlBmCZC d dlDmEZE d dlFmGZG d dlHmIZI  G d ded   ed   ed   ed   ed         ZJy )!    )util)CreateableAPIResourceDeletableAPIResourceListableAPIResourceSearchableAPIResourceUpdateableAPIResource)ExpandableField)
ListObject)SearchResultObject)RequestOptions)StripeObject)class_method_variant)ClassVarDictIteratorListOptionalUnioncastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)
quote_plus)Account)Application)BankAccount)Card)Charge)Customer)Discount)InvoiceLineItem)PaymentIntent)PaymentMethod)Quote)SetupIntent)ShippingRate)Source)Subscription)TaxId)TaxRate)	TestClockc                      e Zd ZU dZdZeed      ed<    G d de      Z	 G d de      Z
 G d d	e      Z G d
 de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d  d!e      Z G d" d#e      Z G d$ d%e      Z G d& d'e      Zer 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      Z0 G dN dOe      Z1 G dP dQe      Z2 G dR dSe      Z3 G dT dUe      Z4 G dV dWe      Z5 G dX dYe      Z6 G dZ d[e      Z7 G d\ d]e      Z8 G d^ d_e      Z9 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      ZA G dp dqe      ZB G dr dse      ZC G dt due      ZD G dv dwe      ZE G dx dye      ZF G dz d{e      ZG G d| d}e      ZH G d~ de      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 de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Zee   ed <   	 ee   ed<   	 eeed         ed<   	 eed<   	 eed<   	 eed<   	 eed<   	 eed      ed	<   	 ee   ed
<   	 eed<   	 eed<   	 ee   ed<   	 e	ed<   eed      ed<   	 eed      ed<   	 ed   ed<   	 eed<   	 eed<   	 eee
      ed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 eed      ed <   	 eee      ed!<   	 eed"      ed#<   	 eeed$         ed%<   	 ed&   ed'<   	 ee   ed(<   	 ed)   ed*<   	 eeed)         ed+<   	 ee   ed,<   	 ee   ed-<   	 ee   ed.<   	 ee   ed/<   	 ee   ed0<   	 ee   ed1<   	 ee   ed2<   	 ee   ed3<   	 ee   ed4<   	 eed       ed5<   	 ed6   ed7<   	 eed8<   	 eeeef      ed9<   	 ee   ed:<   	 ee   ed;<   	 ed   ed<<   	 eed=      ed><   	 eed?<   	 eed@<   	 eedA      edB<   	 eedC<   eedD<   	 eedE<   	 eedF<   	 eedG<   	 eedH      edI<   	 ee   edJ<   	 ee   edK<   	 ee   edL<   	 ee   edM<   	 ee   edN<   	 eedO<   	 ee   edP<   	 eedQ      edR<   	 eedS<   eedT      edU<   	 ee   edV<   	 ee   edW<   	 eedX<   	 ee   edY<   	 ee   edZ<   	 eed[      ed\<   	 ee   ed]<   eed^<   	 eee      ed_<   	 ee   ed`<   	 ee   eda<   	 ee   edb<   	 ee   edc<   	 eedd      ede<   	 e	 	 	 	 ddgee   dhee   diee   djee   dkedl   dmd fdn       Zedoedkedp   dmd fdq       Zeedoedkedp   dmd fdr              Zedkedp   dmd fds       Z edt      dkedp   dmd fdu       Ze	 	 	 ddedgee   diee   djee   dkedv   dmd fdw       Zee	 	 	 ddedgee   diee   djee   dkedv   dmd fdx              Ze	 ddhee   dkedv   dmd fdy       Z edz      	 ddhee   dkedv   dmd fd{       Ze	 	 	 ddgee   diee   djee   dked|   dmed    f
d}       Ze	 	 	 ddedgee   diee   djee   dked~   dmd fd       Zee	 	 	 ddedgee   diee   djee   dked~   dmd fd              Ze	 ddhee   dked~   dmd fd       Z ed      	 ddhee   dked~   dmd fd       Zed2edked   dmd fd       Ze	 	 	 ddedgee   diee   djee   dked   dmd fd       Zee	 	 	 ddedgee   diee   djee   dked   dmd fd              Ze	 ddhee   dked   dmd fd       Z ed      	 ddhee   dked   dmd fd       Zed2edked   dmd fd       Ze	 	 	 ddedgee   diee   djee   dked   dmd fd       Zee	 	 	 ddedgee   diee   djee   dked   dmd fd              Ze	 ddhee   dked   dmd fd       Z ed      	 ddhee   dked   dmd fd       Ze	 	 	 ddgee   diee   djee   dked   dmd f
d       Ze	 	 	 ddgee   diee   djee   dked   dmed6   f
d       Ze	 	 	 ddedgee   diee   djee   dked   dmd fd       Zee	 	 	 ddedgee   diee   djee   dked   dmd fd              Ze	 ddhee   dked   dmd fd       Z ed      	 ddhee   dked   dmd fd       Zeded   dmed    fd       Zeded   dmed    fd       Zi de	de
deded!ed0ed4edCedKedLedMedNedSedVed]ed_edaedbeiZyf(  Invoicea  
    Invoices are statements of amounts owed by a customer, and are either
    generated one-off, or generated periodically from a subscription.

    They contain [invoice items](https://stripe.com/docs/api#invoiceitems), and proration adjustments
    that may be caused by subscription upgrades/downgrades (if necessary).

    If your invoice is configured to be billed through automatic charges,
    Stripe automatically finalizes your invoice and attempts payment. Note
    that finalizing the invoice,
    [when automatic](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection), does
    not happen immediately as the invoice is created. Stripe waits
    until one hour after the last webhook was successfully sent (or the last
    webhook timed out after failing). If you (and the platforms you may have
    connected to) have no webhooks configured, Stripe waits one hour after
    creation to finalize the invoice.

    If your invoice is configured to be billed by sending an email, then based on your
    [email settings](https://dashboard.stripe.com/account/billing/automatic),
    Stripe will email the invoice to your customer and await payment. These
    emails can contain a link to a hosted page to pay the invoice.

    Stripe applies any customer credit on the account before determining the
    amount due for the invoice (i.e., the amount that will be actually
    charged). If the amount due for the invoice is less than Stripe's [minimum allowed charge
    per currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts), the
    invoice is automatically marked paid, and we add the amount due to the
    customer's credit balance which is applied to the next invoice.

    More details on the customer's credit balance are
    [here](https://stripe.com/docs/billing/customer/balance).

    Related guide: [Send invoices to customers](https://stripe.com/docs/billing/invoices/sending)
    invoiceOBJECT_NAMEc                   0    e Zd ZU eed<   	 eed      ed<   y)Invoice.AutomaticTaxenabled)completefailedrequires_location_inputsstatusN)__name__
__module____qualname__bool__annotations__r   r        O/var/www/html/venv/lib/python3.12/site-packages/stripe/api_resources/invoice.pyAutomaticTaxr4   e   s)    	 DE
 	
	r@   rB   c                   $    e Zd ZU eed<   	 eed<   y)Invoice.CustomFieldnamevalueNr:   r;   r<   strr>   r?   r@   rA   CustomFieldrD   q   s    		 
	r@   rI   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)Invoice.CustomerAddresscitycountryline1line2postal_codestateNr:   r;   r<   r   rH   r>   r?   r@   rA   CustomerAddressrK   {   sf    sm	 #	 }	 }	 c]"	 }	r@   rS   c                       e Zd ZU  G d de      Zee   ed<   ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 deiZy)	Invoice.CustomerShippingc                   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) Invoice.CustomerShipping.AddressrL   rM   rN   rO   rP   rQ   NrR   r?   r@   rA   AddressrW      f    3- c]" C=  C=  "#& C= r@   rX   addresscarrierrE   phonetracking_numberN	r:   r;   r<   r   rX   r   r>   rH   _inner_class_typesr?   r@   rA   CustomerShippingrU      j    	l 	4 '""#	 sm	 }	 "#&	 (1r@   r`   c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)Invoice.CustomerTaxId)Cad_nrtae_trnar_cuitau_abnau_arnbg_uicbo_tinbr_cnpjbr_cpfca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qstch_vatcl_tincn_tinco_nitcr_tindo_rcnec_ruceg_tines_cif
eu_oss_vateu_vatgb_vatge_vathk_brhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkr_brnli_uidmx_rfcmy_frpmy_itnmy_sstno_vatnz_gstpe_rucph_tinro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsv_nitth_vattr_tintw_vatua_vatunknownus_einuy_rucve_rifvn_tinza_vattyperF   N)r:   r;   r<   r   r>   r   rH   r?   r@   rA   CustomerTaxIdrc      s.    BD
 D	
J	 }	r@   r   c                   *    e Zd ZU eed<   	 ed   ed<   y)Invoice.FromInvoiceactionr0   r1   N)r:   r;   r<   rH   r>   r	   r?   r@   rA   FromInvoicer     s    	 !++	r@   r   c                       e Zd ZU ee   ed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   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<   y)Invoice.LastFinalizationErrorcharge)account_closedaccount_country_invalid_address6account_error_country_change_requires_additional_stepsaccount_information_mismatchaccount_invalidaccount_number_invalidacss_debit_session_incompletealipay_upgrade_requiredamount_too_largeamount_too_smallapi_key_expiredapplication_fees_not_allowedauthentication_requiredbalance_insufficientbalance_invalid_parameter bank_account_bad_routing_numbersbank_account_declinedbank_account_existsbank_account_restrictedbank_account_unusablebank_account_unverified bank_account_verification_failedbilling_invalid_mandatebitcoin_upgrade_required$capture_charge_authorization_expiredcapture_unauthorized_payment card_decline_rate_limit_exceededcard_declined cardholder_phone_number_requiredcharge_already_capturedcharge_already_refundedcharge_disputedcharge_exceeds_source_limitcharge_expired_for_capturecharge_invalid_parametercharge_not_refundableclearing_code_unsupportedcountry_code_invalidcountry_unsupportedcoupon_expiredcustomer_max_payment_methodscustomer_max_subscriptionsdebit_not_authorizedemail_invalidexpired_cardidempotency_key_in_useincorrect_addressincorrect_cvcincorrect_numberincorrect_zipinstant_payouts_config_disabled!instant_payouts_currency_disabledinstant_payouts_limit_exceededinstant_payouts_unsupportedinsufficient_fundsintent_invalid_state"intent_verification_method_missinginvalid_card_typeinvalid_charactersinvalid_charge_amountinvalid_cvcinvalid_expiry_monthinvalid_expiry_yearinvalid_numberinvalid_source_usageinvalid_tax_locationinvoice_no_customer_line_itemsinvoice_no_payment_method_types"invoice_no_subscription_line_itemsinvoice_not_editable!invoice_on_behalf_of_not_editable&invoice_payment_intent_requires_actioninvoice_upcoming_nonelivemode_mismatchlock_timeoutmissing
no_accountnot_allowed_on_standard_accountout_of_inventory!ownership_declaration_not_allowedparameter_invalid_emptyparameter_invalid_integerparameter_invalid_string_blankparameter_invalid_string_emptyparameter_missingparameter_unknownparameters_exclusivepayment_intent_action_required%payment_intent_authentication_failure*payment_intent_incompatible_payment_method payment_intent_invalid_parameter3payment_intent_konbini_rejected_confirmation_numberpayment_intent_mandate_invalid&payment_intent_payment_attempt_expired%payment_intent_payment_attempt_failedpayment_intent_unexpected_state,payment_method_bank_account_already_verified#payment_method_bank_account_blocked.payment_method_billing_details_address_missing%payment_method_configuration_failures payment_method_currency_mismatchpayment_method_customer_decline payment_method_invalid_parameter)payment_method_invalid_parameter_testmode"payment_method_microdeposit_failed8payment_method_microdeposit_verification_amounts_invalid9payment_method_microdeposit_verification_amounts_mismatch:payment_method_microdeposit_verification_attempts_exceededApayment_method_microdeposit_verification_descriptor_code_mismatch0payment_method_microdeposit_verification_timeoutpayment_method_not_availablepayment_method_provider_declinepayment_method_provider_timeoutpayment_method_unactivatedpayment_method_unexpected_statepayment_method_unsupported_typepayout_reconciliation_not_readypayouts_limit_exceededpayouts_not_allowedplatform_account_requiredplatform_api_key_expiredpostal_code_invalidprocessing_errorproduct_inactive%progressive_onboarding_limit_exceeded
rate_limitrefer_to_customerrefund_disputed_paymentresource_already_existsresource_missingreturn_intent_already_processedrouting_number_invalidsecret_key_requiredsepa_unsupported_accountsetup_attempt_failed#setup_intent_authentication_failuresetup_intent_invalid_parametersetup_intent_mandate_invalid"setup_intent_setup_attempt_expiredsetup_intent_unexpected_stateshipping_calculation_failedsku_inactivestate_unsupportedstatus_transition_invalidstripe_tax_inactivetax_id_invalidtaxes_calculation_failed%terminal_location_country_unsupportedterminal_reader_busyterminal_reader_hardware_faultterminal_reader_offlineterminal_reader_timeouttestmode_charges_onlytls_version_unsupportedtoken_already_usedtoken_card_network_invalidtoken_in_use+transfer_source_balance_parameters_mismatchtransfers_not_allowedurl_invalidcodedecline_codedoc_urlmessageparamr%   payment_intentr&   payment_methodpayment_method_typerequest_log_urlr(   setup_intentr   r   CardResourcer*   source)	api_error
card_erroridempotency_errorinvalid_request_errorr   N)r:   r;   r<   r   rH   r>   r   r   r?   r@   rA   LastFinalizationErrorr     s   	 _ac
 c	
H	 sm#	 #	 #	 }	 !11	 !11	 &c]*	 "#&	 }--	. DE
 	
 %
 	
	r@   ra  c                   n    e Zd ZU  G d de      Zee   ed<   	 ee   ed<   	 eee	d         ed<   	 deiZ
y)Invoice.PaymentSettingsc                      e Zd ZU  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	e
e   ed<   	 e
e   ed<   	 e
e   ed<   	 e
e   ed<   	 e
e   ed<   	 e
e	   ed<   	 eeeeee	dZy),Invoice.PaymentSettings.PaymentMethodOptionsc                   T    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 deiZy)6Invoice.PaymentSettings.PaymentMethodOptions.AcssDebitc                   $    e Zd ZU eed      ed<   y)EInvoice.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions)businesspersonaltransaction_typeNr:   r;   r<   r   r   r>   r?   r@   rA   MandateOptionsri    s    &.w7M/N&OOr@   rn  mandate_options	automaticinstantmicrodepositsverification_methodN)	r:   r;   r<   r   rn  r   r>   r   r_   r?   r@   rA   	AcssDebitrg    sC    \  "*.!99%-CD&  '8%H"r@   ru  c                       e Zd ZU ed   ed<   y)7Invoice.PaymentSettings.PaymentMethodOptions.Bancontact)deenfrnlpreferred_languageNr:   r;   r<   r   r>   r?   r@   rA   
Bancontactrw  ,  s    $+,B$CCr@   r~  c                   T    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 deiZy)1Invoice.PaymentSettings.PaymentMethodOptions.Cardc                       e Zd ZU ee   ed<   y)>Invoice.PaymentSettings.PaymentMethodOptions.Card.Installmentsr5   N)r:   r;   r<   r   r=   r>   r?   r@   rA   Installmentsr  3  s    %d^+r@   r  installments)anyrq  request_three_d_secureN)	r:   r;   r<   r   r  r   r>   r   r_   r?   r@   rA   r    r  2  s>    <  '|44(09K1L(MM '5l%C"r@   r    c                   T    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 deiZy)<Invoice.PaymentSettings.PaymentMethodOptions.CustomerBalancec                   N    e Zd ZU  G d de      Zee   ed<   ee   ed<   	 deiZy)IInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransferc                       e Zd ZU ed   ed<   y)XInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer)BEDEESFRIENLrM   Nr}  r?   r@   rA   EuBankTransferr  B  s    !()K!LLr@   r  eu_bank_transferr   N)	r:   r;   r<   r   r  r   r>   rH   r_   r?   r@   rA   BankTransferr  A  s7      '/~&>>"3-' +=n)M&r@   r  bank_transferfunding_typeN)	r:   r;   r<   r   r  r   r>   r   r_   r?   r@   rA   CustomerBalancer  @  s?    N< N  (55&w'?@@ '6|%D"r@   r  c                       e Zd Zy)4Invoice.PaymentSettings.PaymentMethodOptions.KonbiniNr:   r;   r<   r?   r@   rA   Konbinir  V  s    r@   r  c                   T    e Zd ZU  G d de      Zee   ed<   eed      ed<   	 deiZy):Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccountc                   H    e Zd ZU eeed         ed<   	 eeed         ed<   y)OInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections)balancesrV  transactionspermissionsr  prefetchN)r:   r;   r<   r   r   r   r>   r?   r@   rA   FinancialConnectionsr  Z  sC    !)# L"  'tGJ,?'@AAr@   r  financial_connectionsrp  rt  N)	r:   r;   r<   r   r  r   r>   r   r_   r?   r@   rA   UsBankAccountr  Y  sG    <   (00D'EE%-CD&  ,-A&"r@   r  
acss_debit
bancontactcardcustomer_balancekonbinius_bank_account)r  r  r  r  r  r  N)r:   r;   r<   r   ru  r~  r    r  r  r  r   r>   r_   r?   r@   rA   PaymentMethodOptionsre    s    IL I \ D| DE, E,,  8 !++ !,, 4.  '77 g&& &m44 (($3"#0"r@   r  default_mandatepayment_method_options)ach_credit_transfer	ach_debitr  au_becs_debit
bacs_debitr  boletor  cashappr  fpxgiropaygrabpayidealr  linkpaynowpaypal	promptpaysepa_credit_transfer
sepa_debitsofortr  
wechat_paypayment_method_typesN)r:   r;   r<   r   r  r   rH   r>   r   r   r_   r?   r@   rA   PaymentSettingsrc    sl    y	< y	v "#&	 !))= >>	 '"
 	
<	 78LMr@   r  c                   P    e Zd ZU  G d de      Zee   ed<   	 ee   ed<   	 deiZy)Invoice.Renderingc                   $    e Zd ZU eed      ed<   y)Invoice.Rendering.Pdf)a4autoletter	page_sizeNrm  r?   r@   rA   Pdfr    s    (> ?@@r@   r  amount_tax_displaypdfN)	r:   r;   r<   r   r  r   rH   r>   r_   r?   r@   rA   	Renderingr    s<    	, 	 %SM)	 c]	 $S\r@   r  c                       e Zd ZU ee   ed<   y)Invoice.RenderingOptionsr  NrR   r?   r@   rA   RenderingOptionsr    s    $SM)	r@   r  c                       e Zd ZU  G d de      Zeed<   	 eed<   	 eed<   	 eed      ed<   	 ee	e      ed<   	 deiZ
y	)
Invoice.ShippingCostc                   N    e Zd ZU eed<   	 ded<   	 eed      ed<   	 ee   ed<   y)Invoice.ShippingCost.Taxamountr-   ratecustomer_exemptnot_collectingnot_subject_to_taxnot_supportedportion_product_exemptportion_reduced_ratedportion_standard_ratedproduct_exemptproduct_exempt_holidayproportionally_ratedreduced_ratedreverse_chargestandard_ratedtaxable_basis_reduced
zero_ratedtaxability_reasontaxable_amountN)r:   r;   r<   intr>   r   r   r?   r@   rA   Taxr    sJ    K O
  ("  & %SM)r@   r  amount_subtotal
amount_taxamount_totalr)   shipping_ratetaxesN)r:   r;   r<   r   r  r  r>   r   r	   r   r_   r?   r@   rA   ShippingCostr    sn    $	, $	L 	 	 	   ?@@	 S	""	 &s^r@   r  c                       e Zd ZU  G d de      Zee   ed<   ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 deiZy)	Invoice.ShippingDetailsc                   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)Invoice.ShippingDetails.AddressrL   rM   rN   rO   rP   rQ   NrR   r?   r@   rA   rX   r    rY   r@   rX   rZ   r[   rE   r\   r]   Nr^   r?   r@   rA   ShippingDetailsr    ra   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)Invoice.StatusTransitionsfinalized_atmarked_uncollectible_atpaid_at	voided_atN)r:   r;   r<   r   r  r>   r?   r@   rA   StatusTransitionsr  C  sD    sm#	 "*#.	 #	 C= 	r@   r  c                   (    e Zd ZU eeeef      ed<   y)Invoice.SubscriptionDetailsmetadataN)r:   r;   r<   r   r   rH   r>   r?   r@   rA   SubscriptionDetailsr  U  s    4S>**	r@   r  c                   P    e Zd ZU  G d de      Zee   ed<   	 ee   ed<   	 deiZ	y)Invoice.ThresholdReasonc                   *    e Zd ZU ee   ed<   	 eed<   y)"Invoice.ThresholdReason.ItemReasonline_item_ids	usage_gteN)r:   r;   r<   r   rH   r>   r  r?   r@   rA   
ItemReasonr  \  s    9$ Nr@   r
  
amount_gteitem_reasonsN)
r:   r;   r<   r   r
  r   r  r>   r   r_   r?   r@   rA   ThresholdReasonr  [  s>    	 	 SM!	 :&&	 -j9r@   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)Invoice.TotalDiscountAmountr  r#   discountN)r:   r;   r<   r  r>   r	   r?   r@   rA   TotalDiscountAmountr  p  s    	 "*--	r@   r  c                   `    e Zd ZU eed<   	 eed<   	 ed   ed<   	 eed      ed<   	 ee   ed<   y)	Invoice.TotalTaxAmountr  	inclusiver-   tax_rater  r  r  N)	r:   r;   r<   r  r>   r=   r	   r   r   r?   r@   rA   TotalTaxAmountr  z  s\    	 	 "),,	 $
 	
&	 !%	r@   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)Invoice.TransferDatar  r   destinationN)r:   r;   r<   r   r  r>   r	   r?   r@   rA   TransferDatar    s#    	 %Y//	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<   	 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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d'   ed(<   	 ed)   ed*<   	 ed+   ed,<   	 ed   ed-<   	 ed   ed.<   	 ed/   ed0<   y1)2Invoice.CreateParamsLiteral['']|List[str]account_tax_idsr  application_fee_amountr=   auto_advance Invoice.CreateParamsAutomaticTaxautomatic_tax/Literal['charge_automatically', 'send_invoice']collection_methodrH   currencyz1Literal['']|List[Invoice.CreateParamsCustomField]custom_fieldscustomerdays_until_duedefault_payment_methoddefault_source	List[str]default_tax_ratesdescriptionz.Literal['']|List[Invoice.CreateParamsDiscount]	discountsdue_dateeffective_atexpandfooterInvoice.CreateParamsFromInvoicefrom_invoiceLiteral['']|Dict[str, str]r  on_behalf_of#Invoice.CreateParamsPaymentSettingspayment_settingsz4Literal['exclude', 'include', 'include_and_require']pending_invoice_items_behaviorInvoice.CreateParamsRendering	renderingz0Literal['']|Invoice.CreateParamsRenderingOptionsrendering_options Invoice.CreateParamsShippingCostshipping_cost#Invoice.CreateParamsShippingDetailsshipping_detailsstatement_descriptorsubscription Invoice.CreateParamsTransferDatatransfer_dataNr:   r;   r<   r   r>   r?   r@   rA   CreateParamsr    sF   ()@AA %0$66 &f-- ''IJJ  +A   "%(( 'C  "%(( (.. %0$66 (..  +;77 %U++ #@  "%(( &e,,  ,,  && &&GHH "">?? &e,, *5  -8F-  ##BCC  +B   ''IJJ *5  #.e"44 &e,, ''IJJr@   rF  c                   *    e Zd ZU ed   ed<   	 eed<   y)rC  r  r  r  Nr:   r;   r<   r   r>   rH   r?   r@   rA   CreateParamsTransferDataz Invoice.CreateParamsTransferData6      && r@   rI  c                   6    e Zd ZU ded<   	 eed<   	 ed   ed<   y)r?  *Invoice.CreateParamsShippingDetailsAddressrZ   rE   Literal['']|strr\   Nr:   r;   r<   r>   rH   r   r?   r@   rA   CreateParamsShippingDetailsz#Invoice.CreateParamsShippingDetails@  ,    AA I 011r@   rO  c                   x    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<   y)	rL  rH   rL   rM   rN   rO   rP   rQ   NrE  r?   r@   rA   "CreateParamsShippingDetailsAddressz*Invoice.CreateParamsShippingDetailsAddressN  l    e$$ !'' u%% u%% %U++ u%%r@   rR  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r=  rH   r  0Invoice.CreateParamsShippingCostShippingRateDatashipping_rate_dataNrE  r?   r@   rA   CreateParamsShippingCostz Invoice.CreateParamsShippingCosth  )    &u-- !,B! r@   rW  c                       e Zd ZU ed   ed<   	 eed<   	 ed   ed<   	 ed   ed<   	 ed   ed	<   	 ed
   ed<   	 ed   ed<   y)rU  @Invoice.CreateParamsShippingCostShippingRateDataDeliveryEstimatedelivery_estimatedisplay_name;Invoice.CreateParamsShippingCostShippingRateDataFixedAmountfixed_amountDict[str, str]r  0Literal['exclusive', 'inclusive', 'unspecified']tax_behaviorrH   tax_codeLiteral['fixed_amount']r   NrH  r?   r@   rA   (CreateParamsShippingCostShippingRateDataz0Invoice.CreateParamsShippingCostShippingRateDatat      *R    &M  ""233 &B  "%(( 788r@   rd  c                   6    e Zd ZU eed<   	 eed<   	 ed   ed<   y)r]  r  r%  zUDict[str, Invoice.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions]currency_optionsNr:   r;   r<   r  r>   rH   r   r?   r@   rA   3CreateParamsShippingCostShippingRateDataFixedAmountz;Invoice.CreateParamsShippingCostShippingRateDataFixedAmount  /    K M *g r@   ri  c                   *    e Zd ZU eed<   	 ed   ed<   y)JInvoice.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr  r`  ra  Nr:   r;   r<   r  r>   r   r?   r@   rA   BCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsrl    %     K &B r@   rn  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rZ  GInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximummaximumGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimumminimumNrE  r?   r@   rA   8CreateParamsShippingCostShippingRateDataDeliveryEstimatez@Invoice.CreateParamsShippingCostShippingRateDataDeliveryEstimate  0     !Y  !Y r@   ru  c                   *    e Zd ZU ed   ed<   	 eed<   y)rs  business_daydayhourmonthweekunitrF   Nr:   r;   r<   r   r>   r  r?   r@   rA   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimumzGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum  !     HII Jr@   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)rq  rx  r~  rF   Nr  r?   r@   rA   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximumzGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum  r  r@   r  c                       e Zd ZU ed   ed<   y)$Invoice.CreateParamsRenderingOptions;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']r  NrE  r?   r@   rA   CreateParamsRenderingOptionsr         +M! r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r:  r  r   Invoice.CreateParamsRenderingPdfr  NrE  r?   r@   rA   CreateParamsRenderingzInvoice.CreateParamsRendering  *     +M!  ?@@r@   r  c                       e Zd ZU ed   ed<   y)r  Literal['a4', 'auto', 'letter']r  NrE  r?   r@   rA   CreateParamsRenderingPdfz Invoice.CreateParamsRenderingPdf      "#DEEr@   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r7  rM  r  7Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsr  T  Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'paynow', 'paypal', 'promptpay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay']]r  NrE  r?   r@   rA   CreateParamsPaymentSettingsz#Invoice.CreateParamsPaymentSettings  D    ():;; %0I%  #. g# r@   r  c                   x    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<   y)r  zLLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr  zMLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr  zGLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardr  zRLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  zJLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir  zPLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  NrE  r?   r@   rA   /CreateParamsPaymentSettingsPaymentMethodOptionsz7Invoice.CreateParamsPaymentSettingsPaymentMethodOptions      #^  $_  Y  *d  !\  )b r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)DInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  0Literal['automatic', 'instant', 'microdeposits']rt  NrE  r?   r@   rA   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  2  0     $/j$  "-B" r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  HList[Literal['balances', 'ownership', 'payment_method', 'transactions']]r  List[Literal['balances']]r  NrE  r?   r@   rA   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionszXInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsB  ,     %Z  ""=>>r@   r  c                       e Zd Zy)>Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr  r?   r@   rA   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir  P       r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)FInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr  rH   r  NrE  r?   r@   rA   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  U  +     'd  &e,,r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  `Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr  rH   r   NrE  r?   r@   rA   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzRInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferc  +     *r  e$$r@   r  c                       e Zd ZU eed<   y)r  rM   NrG   r?   r@   rA   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferz`Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferq       Lr@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y);Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  Literal['any', 'automatic']r  NrE  r?   r@   rA   3CreateParamsPaymentSettingsPaymentMethodOptionsCardr  y  *    %Y 
 %00M$NNr@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r=   r5   zWLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanplanNrE  r?   r@   rA   ?CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszGInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments  +     !(( i r@   r  c                   <    e Zd ZU eed<   	 ed   ed<   	 ed   ed<   y)KInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlancountr|  intervalfixed_countr   Nr:   r;   r<   r  r>   r   r?   r@   rA   CCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr    2     J g&& -((r@   r  c                       e Zd ZU ed   ed<   y)AInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactLiteral['de', 'en', 'fr', 'nl']r|  NrE  r?   r@   rA   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr         !,,M NNr@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)@Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsro  r  rt  NrE  r?   r@   rA   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr    0     )`  "-B" r@   r  c                       e Zd ZU ed   ed<   y)r  Literal['business', 'personal']rl  NrE  r?   r@   rA   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszNInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions       **KLLr@   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r3  revisionr   r1   Nr:   r;   r<   r   r>   rH   r?   r@   rA   CreateParamsFromInvoicezInvoice.CreateParamsFromInvoice  s    J'' Lr@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)Invoice.CreateParamsDiscountrH   couponr  NrE  r?   r@   rA   CreateParamsDiscountr    $    && "%((r@   r  c                   $    e Zd ZU eed<   	 eed<   y)Invoice.CreateParamsCustomFieldrE   rF   NrG   r?   r@   rA   CreateParamsCustomFieldr        I Jr@   r  c                       e Zd ZU eed<   y)r!  r5   Nr:   r;   r<   r=   r>   r?   r@   rA   CreateParamsAutomaticTaxz Invoice.CreateParamsAutomaticTax      Mr@   r  c                       e Zd Zy)Invoice.DeleteParamsNr  r?   r@   rA   DeleteParamsr    s    r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)Invoice.FinalizeInvoiceParamsr=   r   r+  r1  NrE  r?   r@   rA   FinalizeInvoiceParamsr    s$    %f--  ,,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<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)Invoice.ListParamsr#  r$  zInvoice.ListParamsCreated|intcreatedrH   r'  zInvoice.ListParamsDueDate|intr/  ending_beforer+  r1  r  limitstarting_afterz9Literal['draft', 'open', 'paid', 'uncollectible', 'void']r9   rB  NrE  r?   r@   rA   
ListParamsr    s    *A   !!@AA!%(( ""ABB&u--  ,, u%% (..  K  &e,,r@   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)Invoice.ListParamsDueDater  gtgteltlteNrE  r?   r@   rA   ListParamsDueDater     H    E"" U## E"" U##r@   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)Invoice.ListParamsCreatedr  r  r  r  r  NrE  r?   r@   rA   ListParamsCreatedr  2  r  r@   r  c                       e Zd ZU ed   ed<   y)Invoice.MarkUncollectibleParamsr+  r1  NrE  r?   r@   rA   MarkUncollectibleParamsr  D      ,,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<   	 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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d*   ed+<   y,)-Invoice.ModifyParamsr  r  r  r  r=   r    Invoice.ModifyParamsAutomaticTaxr"  r#  r$  z1Literal['']|List[Invoice.ModifyParamsCustomField]r&  r(  rH   r)  rM  r*  r,  r-  z.Literal['']|List[Invoice.ModifyParamsDiscount]r.  r/  Literal['']|intr0  r+  r1  r2  r5  r  r6  #Invoice.ModifyParamsPaymentSettingsr8  Invoice.ModifyParamsRenderingr;  z0Literal['']|Invoice.ModifyParamsRenderingOptionsr<  z,Literal['']|Invoice.ModifyParamsShippingCostr>  z/Literal['']|Invoice.ModifyParamsShippingDetailsr@  rA  z,Literal['']|Invoice.ModifyParamsTransferDatarD  NrE  r?   r@   rA   ModifyParamsr  J  s   ()@AA %0$66 &f-- ''IJJ  +A   'C  (.. %0$66 ((9::  ++BCC %U++ #@  "%(( &&788  ,,  && "">?? &&788 *5  ##BCC  +B   '>  *A  #.e"44 '> r@   r  c                   *    e Zd ZU ed   ed<   	 eed<   y) Invoice.ModifyParamsTransferDatar  r  r  NrH  r?   r@   rA   ModifyParamsTransferDatar	    rJ  r@   r
  c                   6    e Zd ZU ded<   	 eed<   	 ed   ed<   y)#Invoice.ModifyParamsShippingDetails*Invoice.ModifyParamsShippingDetailsAddressrZ   rE   rM  r\   NrN  r?   r@   rA   ModifyParamsShippingDetailsr    rP  r@   r  c                   x    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<   y)	r  rH   rL   rM   rN   rO   rP   rQ   NrE  r?   r@   rA   "ModifyParamsShippingDetailsAddressz*Invoice.ModifyParamsShippingDetailsAddress  rS  r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y) Invoice.ModifyParamsShippingCostrH   r  0Invoice.ModifyParamsShippingCostShippingRateDatarV  NrE  r?   r@   rA   ModifyParamsShippingCostr    rX  r@   r  c                       e Zd ZU ed   ed<   	 eed<   	 ed   ed<   	 ed   ed<   	 ed   ed	<   	 ed
   ed<   	 ed   ed<   y)r  @Invoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimater[  r\  ;Invoice.ModifyParamsShippingCostShippingRateDataFixedAmountr^  r_  r  r`  ra  rH   rb  rc  r   NrH  r?   r@   rA   (ModifyParamsShippingCostShippingRateDataz0Invoice.ModifyParamsShippingCostShippingRateData  re  r@   r  c                   6    e Zd ZU eed<   	 eed<   	 ed   ed<   y)r  r  r%  zUDict[str, Invoice.ModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions]rg  Nrh  r?   r@   rA   3ModifyParamsShippingCostShippingRateDataFixedAmountz;Invoice.ModifyParamsShippingCostShippingRateDataFixedAmount"  rj  r@   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)JInvoice.ModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr  r`  ra  Nrm  r?   r@   rA   BModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr  2  ro  r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  GInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximumrr  GInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimumrt  NrE  r?   r@   rA   8ModifyParamsShippingCostShippingRateDataDeliveryEstimatez@Invoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimate@  rv  r@   r!  c                   *    e Zd ZU ed   ed<   	 eed<   y)r   rx  r~  rF   Nr  r?   r@   rA   ?ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimumzGInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimumP  r  r@   r#  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  rx  r~  rF   Nr  r?   r@   rA   ?ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximumzGInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum\  r  r@   r%  c                       e Zd ZU ed   ed<   y)$Invoice.ModifyParamsRenderingOptionsr  r  NrE  r?   r@   rA   ModifyParamsRenderingOptionsr'  h  r  r@   r(  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r  r   Invoice.ModifyParamsRenderingPdfr  NrE  r?   r@   rA   ModifyParamsRenderingzInvoice.ModifyParamsRenderingp  r  r@   r+  c                       e Zd ZU ed   ed<   y)r*  r  r  NrE  r?   r@   rA   ModifyParamsRenderingPdfz Invoice.ModifyParamsRenderingPdf|  r  r@   r-  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  rM  r  7Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsr  r  r  NrE  r?   r@   rA   ModifyParamsPaymentSettingsz#Invoice.ModifyParamsPaymentSettings  r  r@   r0  c                   x    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<   y)r/  zLLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr  zMLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  zGLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardr  zRLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  zJLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir  zPLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  NrE  r?   r@   rA   /ModifyParamsPaymentSettingsPaymentMethodOptionsz7Invoice.ModifyParamsPaymentSettingsPaymentMethodOptions  r  r@   r2  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)DInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  r  rt  NrE  r?   r@   rA   <ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr4    r  r@   r6  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r5  r  r  r  r  NrE  r?   r@   rA   PModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionszXInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections  r  r@   r8  c                       e Zd Zy)>Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbiniNr  r?   r@   rA   6ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir:    r  r@   r;  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)FInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr  rH   r  NrE  r?   r@   rA   >ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer=    r  r@   r?  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r>  `Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr  rH   r   NrE  r?   r@   rA   JModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzRInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer  r  r@   rB  c                       e Zd ZU eed<   y)rA  rM   NrG   r?   r@   rA   XModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferz`Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer  r  r@   rD  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y);Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  r  r  NrE  r?   r@   rA   3ModifyParamsPaymentSettingsPaymentMethodOptionsCardrF    r  r@   rH  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rG  r=   r5   zWLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr  NrE  r?   r@   rA   ?ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszGInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments  r  r@   rJ  c                   <    e Zd ZU eed<   	 ed   ed<   	 ed   ed<   y)KInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr  r|  r  r  r   Nr  r?   r@   rA   CModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanrL     r  r@   rM  c                       e Zd ZU ed   ed<   y)AInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  r|  NrE  r?   r@   rA   9ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactrO  1  r  r@   rP  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)@Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsro  r  rt  NrE  r?   r@   rA   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitrR  9  r  r@   rT  c                       e Zd ZU ed   ed<   y)rS  r  rl  NrE  r?   r@   rA   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszNInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsI  r  r@   rV  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)Invoice.ModifyParamsDiscountrH   r  r  NrE  r?   r@   rA   ModifyParamsDiscountrX  Q  r  r@   rY  c                   $    e Zd ZU eed<   	 eed<   y)Invoice.ModifyParamsCustomFieldrE   rF   NrG   r?   r@   rA   ModifyParamsCustomFieldr[  [  r  r@   r\  c                       e Zd ZU eed<   y)r  r5   Nr  r?   r@   rA   ModifyParamsAutomaticTaxz Invoice.ModifyParamsAutomaticTaxe  r  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)Invoice.PayParamsr+  r1  r=   forgiverM  mandateoff_sessionpaid_out_of_bandrH   rV  r\  NrE  r?   r@   rA   	PayParamsr`  k  s    ,, !((
 !!233 %V,, *&11 (..  &&r@   re  c                       e Zd ZU ed   ed<   y)Invoice.RetrieveParamsr+  r1  NrE  r?   r@   rA   RetrieveParamsrg    r   r@   rh  c                       e Zd ZU ed   ed<   y)Invoice.SendInvoiceParamsr+  r1  NrE  r?   r@   rA   SendInvoiceParamsrj    r   r@   rk  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<   	 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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&)'Invoice.UpcomingParams"Invoice.UpcomingParamsAutomaticTaxr"  rH   r  r%  r'  %Invoice.UpcomingParamsCustomerDetailscustomer_detailsz0Literal['']|List[Invoice.UpcomingParamsDiscount]r.  r+  r1  z'List[Invoice.UpcomingParamsInvoiceItem]invoice_itemsschedulerB  Literal['now', 'unchanged']|int!subscription_billing_cycle_anchorr  subscription_cancel_atr=   !subscription_cancel_at_period_endsubscription_cancel_nowr  subscription_default_tax_ratesz,List[Invoice.UpcomingParamsSubscriptionItem]subscription_items6Literal['always_invoice', 'create_prorations', 'none']subscription_proration_behaviorr  subscription_proration_dateLiteral['now']subscription_resume_atsubscription_start_dateLiteral['now']|intsubscription_trial_endsubscription_trial_from_planNrE  r?   r@   rA   UpcomingParamsrm    s   &'KLL  && "%(( "%(( *7  #B   ,, '9  "%(( &e,, 0;10  %00A$BB 0;6/BB &1%88 -8'-  !,>!  .9H.  *5U);; %00@$AA &1%77 %00D$EE +6f*==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<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)&Invoice.UpcomingParamsSubscriptionItemzCLiteral['']|Invoice.UpcomingParamsSubscriptionItemBillingThresholdsbilling_thresholdsr=   clear_usagedeletedrH   idr5  r  r  price/Invoice.UpcomingParamsSubscriptionItemPriceData
price_datar  quantityr  	tax_ratesNrE  r?   r@   rA   UpcomingParamsSubscriptionItemr    s     +U!  %V,, !(( E"" "">?? e$$ u%% $A  "%(( ##:;;r@   r  c                   f    e Zd ZU eed<   	 eed<   	 ded<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   y)r  r%  product8Invoice.UpcomingParamsSubscriptionItemPriceDataRecurring	recurringr`  ra  r  unit_amountrH   unit_amount_decimalNr:   r;   r<   rH   r>   r   r?   r@   rA   'UpcomingParamsSubscriptionItemPriceDataz/Invoice.UpcomingParamsSubscriptionItemPriceData-	  sa    M L RQ &B  %U++ "-U!33r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  rz  r|  r}  yearr  r  interval_countNr:   r;   r<   r   r>   r   r?   r@   rA   0UpcomingParamsSubscriptionItemPriceDataRecurringz8Invoice.UpcomingParamsSubscriptionItemPriceDataRecurringI	  %    <== (..r@   r  c                       e Zd ZU eed<   y)7Invoice.UpcomingParamsSubscriptionItemBillingThresholdsr	  Nr:   r;   r<   r  r>   r?   r@   rA   /UpcomingParamsSubscriptionItemBillingThresholdsr  S	      N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<   	 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d<   y)!Invoice.UpcomingParamsInvoiceItemr  r  rH   r%  r-  r=   discountablez;Literal['']|List[Invoice.UpcomingParamsInvoiceItemDiscount]r.  invoiceitemr5  r  'Invoice.UpcomingParamsInvoiceItemPeriodperiodr  *Invoice.UpcomingParamsInvoiceItemPriceDatar  r  r`  ra  rM  rb  r  r  r  r  NrE  r?   r@   rA   UpcomingParamsInvoiceItemr  Y	  s3   && "%(( %U++ &f-- #M  %U++ "">??   IJJ u%% $<  "%(( &B  ""344 ##:;; %U++ "-U!33r@   r  c                   Z    e Zd ZU eed<   	 eed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y	)
r  r%  r  r`  ra  r  r  rH   r  Nr  r?   r@   rA   "UpcomingParamsInvoiceItemPriceDataz*Invoice.UpcomingParamsInvoiceItemPriceData	  S    M L &B  %U++ "-U!33r@   r  c                   $    e Zd ZU eed<   	 eed<   y)r  endstartNr  r?   r@   rA   UpcomingParamsInvoiceItemPeriodz'Invoice.UpcomingParamsInvoiceItemPeriod	      H Jr@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y))Invoice.UpcomingParamsInvoiceItemDiscountrH   r  r  NrE  r?   r@   rA   !UpcomingParamsInvoiceItemDiscountr  	  r  r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)Invoice.UpcomingParamsDiscountrH   r  r  NrE  r?   r@   rA   UpcomingParamsDiscountr  	  r  r@   r  c                   f    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
<   y)ro  z8Literal['']|Invoice.UpcomingParamsCustomerDetailsAddressrZ   z9Literal['']|Invoice.UpcomingParamsCustomerDetailsShippingshipping(Invoice.UpcomingParamsCustomerDetailsTaxtax0Literal['']|Literal['exempt', 'none', 'reverse']
tax_exemptz0List[Invoice.UpcomingParamsCustomerDetailsTaxId]tax_idsNrE  r?   r@   rA   UpcomingParamsCustomerDetailsz%Invoice.UpcomingParamsCustomerDetails	  so     J  "K  GHH $B  !B r@   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)*Invoice.UpcomingParamsCustomerDetailsTaxIdBrd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   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   r   r   r   r   r   r   rF   Nr  r?   r@   rA   "UpcomingParamsCustomerDetailsTaxIdr  	  )    AC CH Jr@   r  c                       e Zd ZU ed   ed<   y)r  rM  
ip_addressNrE  r?   r@   rA    UpcomingParamsCustomerDetailsTaxz(Invoice.UpcomingParamsCustomerDetailsTaxB
      #$566r@   r  c                   6    e Zd ZU ded<   	 eed<   	 ed   ed<   y)-Invoice.UpcomingParamsCustomerDetailsShipping4Invoice.UpcomingParamsCustomerDetailsShippingAddressrZ   rE   rH   r\   NrN  r?   r@   rA   %UpcomingParamsCustomerDetailsShippingr  H
  s+    KK I u%%r@   r  c                   x    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<   y)	r  rH   rL   rM   rN   rO   rP   rQ   NrE  r?   r@   rA   ,UpcomingParamsCustomerDetailsShippingAddressz4Invoice.UpcomingParamsCustomerDetailsShippingAddressV
  rS  r@   r  c                   x    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<   y)	,Invoice.UpcomingParamsCustomerDetailsAddressrH   rL   rM   rN   rO   rP   rQ   NrE  r?   r@   rA   $UpcomingParamsCustomerDetailsAddressr  p
  rS  r@   r  c                       e Zd ZU eed<   y)rn  r5   Nr  r?   r@   rA   UpcomingParamsAutomaticTaxz"Invoice.UpcomingParamsAutomaticTax
  r  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<   	 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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d   ed(<   y))*Invoice.UpcomingLinesParams'Invoice.UpcomingLinesParamsAutomaticTaxr"  rH   r  r%  r'  *Invoice.UpcomingLinesParamsCustomerDetailsrp  z5Literal['']|List[Invoice.UpcomingLinesParamsDiscount]r.  r  r+  r1  z,List[Invoice.UpcomingLinesParamsInvoiceItem]rq  r  r  rr  r  rB  rs  rt  r  ru  r=   rv  rw  r  rx  z1List[Invoice.UpcomingLinesParamsSubscriptionItem]ry  rz  r{  r|  r}  r~  r  r  r  r  NrE  r?   r@   rA   UpcomingLinesParamsr  
  s   &9   && "%(( "%(( *<  #G  'u--  ,, '>  u%% "%(( (.. &e,, 0;10  %00A$BB 0;6/BB &1%88 -8'-  !,C!  .9H.  *5U);; %00@$AA &1%77 %00D$EE +6f*==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<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)+Invoice.UpcomingLinesParamsSubscriptionItemzHLiteral['']|Invoice.UpcomingLinesParamsSubscriptionItemBillingThresholdsr  r=   r  r  rH   r  r5  r  r  r  4Invoice.UpcomingLinesParamsSubscriptionItemPriceDatar  r  r  r  r  NrE  r?   r@   rA   #UpcomingLinesParamsSubscriptionItemr    s     +Z!  %V,, !(( E"" "">?? e$$ u%% $F  "%(( ##:;;r@   r  c                   f    e Zd ZU eed<   	 eed<   	 ded<   	 ed   ed<   	 ed   ed<   	 ed	   ed
<   y)r  r%  r  =Invoice.UpcomingLinesParamsSubscriptionItemPriceDataRecurringr  r`  ra  r  r  rH   r  Nr  r?   r@   rA   ,UpcomingLinesParamsSubscriptionItemPriceDataz4Invoice.UpcomingLinesParamsSubscriptionItemPriceData4  sa    M L WV &B  %U++ "-U!33r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r  r  r  r  Nr  r?   r@   rA   5UpcomingLinesParamsSubscriptionItemPriceDataRecurringz=Invoice.UpcomingLinesParamsSubscriptionItemPriceDataRecurringP  r  r@   r  c                       e Zd ZU eed<   y)<Invoice.UpcomingLinesParamsSubscriptionItemBillingThresholdsr	  Nr  r?   r@   rA   4UpcomingLinesParamsSubscriptionItemBillingThresholdsr  Z  r  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<   	 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d<   y)&Invoice.UpcomingLinesParamsInvoiceItemr  r  rH   r%  r-  r=   r  z@Literal['']|List[Invoice.UpcomingLinesParamsInvoiceItemDiscount]r.  r  r5  r  ,Invoice.UpcomingLinesParamsInvoiceItemPeriodr  r  /Invoice.UpcomingLinesParamsInvoiceItemPriceDatar  r  r`  ra  rM  rb  r  r  r  r  NrE  r?   r@   rA   UpcomingLinesParamsInvoiceItemr  `  s3   && "%(( %U++ &f-- #R  %U++ "">??   NOO u%% $A  "%(( &B  ""344 ##:;; %U++ "-U!33r@   r  c                   Z    e Zd ZU eed<   	 eed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y	)
r  r%  r  r`  ra  r  r  rH   r  Nr  r?   r@   rA   'UpcomingLinesParamsInvoiceItemPriceDataz/Invoice.UpcomingLinesParamsInvoiceItemPriceData  r  r@   r  c                   $    e Zd ZU eed<   	 eed<   y)r  r  r  Nr  r?   r@   rA   $UpcomingLinesParamsInvoiceItemPeriodz,Invoice.UpcomingLinesParamsInvoiceItemPeriod  r  r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y).Invoice.UpcomingLinesParamsInvoiceItemDiscountrH   r  r  NrE  r?   r@   rA   &UpcomingLinesParamsInvoiceItemDiscountr    r  r@   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)#Invoice.UpcomingLinesParamsDiscountrH   r  r  NrE  r?   r@   rA   UpcomingLinesParamsDiscountr    r  r@   r  c                   f    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
<   y)r  z=Literal['']|Invoice.UpcomingLinesParamsCustomerDetailsAddressrZ   z>Literal['']|Invoice.UpcomingLinesParamsCustomerDetailsShippingr  -Invoice.UpcomingLinesParamsCustomerDetailsTaxr  r  r  z5List[Invoice.UpcomingLinesParamsCustomerDetailsTaxId]r  NrE  r?   r@   rA   "UpcomingLinesParamsCustomerDetailsz*Invoice.UpcomingLinesParamsCustomerDetails  so     O  "P  LMM $B  !G r@   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)/Invoice.UpcomingLinesParamsCustomerDetailsTaxIdr  r   rF   Nr  r?   r@   rA   'UpcomingLinesParamsCustomerDetailsTaxIdr    r  r@   r  c                       e Zd ZU ed   ed<   y)r  rM  r  NrE  r?   r@   rA   %UpcomingLinesParamsCustomerDetailsTaxz-Invoice.UpcomingLinesParamsCustomerDetailsTaxI  r  r@   r  c                   6    e Zd ZU ded<   	 eed<   	 ed   ed<   y)2Invoice.UpcomingLinesParamsCustomerDetailsShipping9Invoice.UpcomingLinesParamsCustomerDetailsShippingAddressrZ   rE   rH   r\   NrN  r?   r@   rA   *UpcomingLinesParamsCustomerDetailsShippingr  O  s+    PP I u%%r@   r  c                   x    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<   y)	r   rH   rL   rM   rN   rO   rP   rQ   NrE  r?   r@   rA   1UpcomingLinesParamsCustomerDetailsShippingAddressz9Invoice.UpcomingLinesParamsCustomerDetailsShippingAddress]  rS  r@   r  c                   x    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<   y)	1Invoice.UpcomingLinesParamsCustomerDetailsAddressrH   rL   rM   rN   rO   rP   rQ   NrE  r?   r@   rA   )UpcomingLinesParamsCustomerDetailsAddressr  w  rS  r@   r  c                       e Zd ZU eed<   y)r  r5   Nr  r?   r@   rA   UpcomingLinesParamsAutomaticTaxz'Invoice.UpcomingLinesParamsAutomaticTax  r  r@   r  c                       e Zd ZU ed   ed<   y)Invoice.VoidInvoiceParamsr+  r1  NrE  r?   r@   rA   VoidInvoiceParamsr
    r   r@   r  c                   N    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 eed<   y)	Invoice.SearchParamsr+  r1  r  r  rH   pagequeryNrH  r?   r@   rA   SearchParamsr    sB    ,, u%% e$$ Jr@   r  account_countryaccount_namer,   r  
amount_dueamount_paidamount_remainingamount_shippingr   applicationr  attempt_count	attemptedr   r"  )	&automatic_pending_invoice_item_invoicemanualquote_acceptrB  subscription_createsubscription_cyclesubscription_thresholdsubscription_updateupcomingbilling_reasonr!   r   )charge_automaticallysend_invoicer$  r  r%  r&  r"   r'  customer_addresscustomer_emailcustomer_namecustomer_phonecustomer_shipping)exemptnonereversecustomer_tax_exemptcustomer_tax_idsr&   r)  rZ  r*  r-   r,  r-  r#   r  r.  r/  r0  ending_balancer2  r4  hosted_invoice_urlr  invoice_pdflast_finalization_errorlatest_revisionr$   lineslivemoder  next_payment_attemptnumberobjectr   r6  paidrd  r%   rU  r8  
period_endperiod_start post_payment_credit_notes_amountpre_payment_credit_notes_amountr'   quotereceipt_numberr;  r<  r>  r@  starting_balancerA  )draftopenr9  uncollectiblevoidr9   status_transitionsr+   rB  subscription_detailsr|  subtotalsubtotal_excluding_taxr  r.   
test_clockthreshold_reasontotaltotal_discount_amountstotal_excluding_taxtotal_tax_amountsrD  webhooks_delivered_atTr  Napi_keyidempotency_keystripe_versionstripe_accountparamsr  returnc                 `    t        d| j                  d| j                         |||||            S )a   
        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.
        r0   post)r   _static_request	class_url)clsrP  rQ  rR  rS  rT  s         rA   createzInvoice.create  s=     
 	
r@   sidr  c                 z    | j                         dt        |      }t        d| j                  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).
        /r0   deleterT  rY  r   r   rX  )rZ  r\  rT  urls       rA   _cls_deletezInvoice._cls_delete!  s=     *S/:#f=
 	
r@   c                      yr^  Nr?   )r\  rT  s     rA   r`  zInvoice.delete.  s     	r@   c                      yrf  r?   selfrT  s     rA   r`  zInvoice.delete8  s    
 	r@   rd  c                 F    | j                  d| j                         |      S )r^  r`  ra  )_request_and_refreshinstance_urlrh  s     rA   r`  zInvoice.delete?  s.     (( ) 
 	
r@   r  c                     t        d| j                  ddj                  t        j                  |            ||||            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.
        r0   rW  /v1/invoices/{invoice}/finalizer1   rP  rR  rS  rT  r   rX  formatr   sanitize_idrZ  r1   rP  rR  rS  rT  s         rA   _cls_finalize_invoicezInvoice._cls_finalize_invoiceL  sY     188 ,,W5 9   --   	
 	
r@   c                      yrn  Nr?   r1   rP  rR  rS  rT  s        rA   finalize_invoicezInvoice.finalize_invoicef       	r@   c                      yrx  r?   ri  rQ  rT  s      rA   rz  zInvoice.finalize_invoicet       	r@   rv  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )rn  r0   rW  ro  r  rp  rQ  rT  r   _requestrs  r   rt  getr}  s      rA   rz  zInvoice.finalize_invoice  sY     MM188 ,,TXXd^< 9  !0  

 
	
r@   r  c                     | j                  d| j                         ||||      }t        |t              s!t	        dt        |      j                  z        |S )z
        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  rq  z%Expected list object from API, got %s)rX  rY  
isinstancer
   	TypeErrorr   r:   )rZ  rP  rR  rS  rT  results         rA   listzInvoice.list  sf     $$MMO)) % 
 &*-7<((* 
 r@   r  c                     t        d| j                  ddj                  t        j                  |            ||||            S )
        Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.
        r0   rW  )/v1/invoices/{invoice}/mark_uncollectiblerp  rq  rr  ru  s         rA   _cls_mark_uncollectiblezInvoice._cls_mark_uncollectible  sZ     ;BB ,,W5 C   --   	
 	
r@   c                      yr  Nr?   ry  s        rA   mark_uncollectiblezInvoice.mark_uncollectible  r{  r@   c                      yr  r?   r}  s      rA   r  zInvoice.mark_uncollectible  r~  r@   r  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )r  r0   rW  r  r  rp  r  r  r}  s      rA   r  zInvoice.mark_uncollectible  sZ     MM;BB ,,TXXd^< C  !0  

 
	
r@   r  c                 z    | j                         dt        |      }t        d| j                  d||            S )a  
        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.
        r_  r0   rW  ra  rb  )rZ  r  rT  rc  s       rA   modifyzInvoice.modify  s=     *R.9F;
 	
r@   r`  c                     t        d| j                  ddj                  t        j                  |            ||||            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.
        r0   rW  /v1/invoices/{invoice}/payrp  rq  rr  ru  s         rA   _cls_payzInvoice._cls_pay
  sY     ,33 ,,W5 4   --   	
 	
r@   c                      yr  Nr?   ry  s        rA   payzInvoice.pay$  r{  r@   c                      yr  r?   r}  s      rA   r  zInvoice.pay2  r~  r@   r  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )r  r0   rW  r  r  rp  r  r  r}  s      rA   r  zInvoice.pay=  sY     MM,33 ,,TXXd^< 4  !0  

 
	
r@   rg  c                 8     | |fi |}|j                          |S )z:
        Retrieves the invoice with the given ID.
        )refresh)rZ  r  rT  instances       rA   retrievezInvoice.retrieveR  s$     r$V$r@   rj  c                     t        d| j                  ddj                  t        j                  |            ||||            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.
        r0   rW  /v1/invoices/{invoice}/sendrp  rq  rr  ru  s         rA   _cls_send_invoicezInvoice._cls_send_invoice]  sY     -44 ,,W5 5   --   	
 	
r@   c                      yr  Nr?   ry  s        rA   r$  zInvoice.send_invoicey  s     	r@   c                      yr  r?   r}  s      rA   r$  zInvoice.send_invoice  s     	r@   r  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )r  r0   rW  r  r  rp  r  r  r}  s      rA   r$  zInvoice.send_invoice  sY     MM-44 ,,TXXd^< 5  !0  

 
	
r@   rm  c                 D    t        d| j                  dd||||            S )u$  
        At any time, you can preview the upcoming invoice for a customer. 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 a proration_date parameter when doing the actual subscription update. The value passed in should be the same as the subscription_proration_date returned on the upcoming invoice resource. 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_proration_date on the upcoming invoice resource.
        r0   r  z/v1/invoices/upcomingrq  )r   rX  rZ  rP  rR  rS  rT  s        rA   r!  zInvoice.upcoming  s9     '--   

 
	
r@   r  c                 R    t        t        d   | j                  dd||||            S )z
        When retrieving an upcoming invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        r$   r  z/v1/invoices/upcoming/linesrq  )r   r
   rX  r  s        rA   upcoming_lineszInvoice.upcoming_lines  s?     ()---   

 
	
r@   r
  c                     t        d| j                  ddj                  t        j                  |            ||||            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.
        r0   rW  /v1/invoices/{invoice}/voidrp  rq  rr  ru  s         rA   _cls_void_invoicezInvoice._cls_void_invoice  sY     -44 ,,W5 5   --   	
 	
r@   c                      yr  Nr?   ry  s        rA   void_invoicezInvoice.void_invoice  r{  r@   c                      yr  r?   r}  s      rA   r  zInvoice.void_invoice  r~  r@   r  c                     t        d| j                  ddj                  t        j                  | j                  d                  ||            S )r  r0   rW  r  r  rp  r  r  r}  s      rA   r  zInvoice.void_invoice  sY     MM-44 ,,TXXd^< 5  !0  

 
	
r@   kwargsr  c                 *     | j                   |ddi|S )a  
        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.
        
search_urlz/v1/invoices/search)_searchrZ  argsr  s      rA   searchzInvoice.search'  s      s{{dM&;MfMMr@   c                 B     | j                   |i |j                         S N)r  auto_paging_iterr  s      rA   search_auto_paging_iterzInvoice.search_auto_paging_iter3  s#     szz4*6*;;==r@   )NNNN)NNNr  )r:   r;   r<   __doc__r2   r   r   r>   r   rB   rI   rS   r`   r   r   ra  r  r  r  r  r  r  r  r  r  r  r  r   r   rF  r   rI  rO  rR  rW  rd  ri  rn  ru  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?  rB  rD  rH  rJ  rM  rP  rT  rV  rY  r\  r^  re  rh  rk  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   rH   r   r	   r  r=   r   r
   r   classmethodr   r[  rd  r   staticmethodr`  r   rv  rz  r  r  r  r  r  r  r  r  r$  r!  r  r  r  r   r  r   r  r_   r?   r@   rA   r0   r0   9   s   !F 1:K'),-9
| 
l , 4,2< ,2\L L\l } }~eN, eNN*L *"< ;,| ;,z,2, ,2\L $l :, :*l & &P|  F	> F	P	y 		) 		 	4
	y 
	"	y "	H	) 	 				 
	
	
	
		9 	
	I 
		y 		) 	$$	i $	L		 				
							) 					"				 			i 		9 		i 		y 		> 		N 	&	 &	P		 	$		 	$	n 	t	> t	l	y 		) 		 	4
	y 
	"	y "	H	) 	 				 
	
	
	
		9 	
	I 
		y 		) 	$$	i $	L		 				
							) 					"				 			9 		i 		y 		 	@	^ 		 	f	^ f	P,	Y ,	\	i 	8	y 		i 	F		 F	P	 	0	i 			 		Y 		I 	<K	 K	Z	y 		I 		9 	4	9 	4	 	t	. t	l,	) ,	\	9 	8	I 		9 	F	Y F	P	i 	0	9 		Y 		) 		 	<K	i K	Z	I 		 			 	4		 	4	i 		 		> 	$ c]" 3- d?7#;<== O    /-899 %SM)  O 4.   
	
 
 _X.// EFF L M D-.. z233 // SM! C=  SM!   011 "'*E"FGG tM233 %__%EFF DE	
 
 I& # z"" _Z89:: sm 3- SM! SM ;'' !% 	 # &&;<< oi899 '(( N tCH~&& #3-' SM I ?9566 J  __=>> &%O  '*) &)( OG,-- SM! 	""   011 L)) //  #3-' WMNOO *)?>:;; ##677 "*#. M %SM) 
# 566 //J %T*=%>?? "#& N++ L)) $C=( gdm$$  "&)-(,(,
#
 "#
 !	

 !
 /0
 

 
0 



!'(>!?

	

 

 "#9:	   v&<= )   -(

56

	

 )

  "&(,(,

 #
 !	

 !
 89
 

 
2  "&(,(,	

#
 !
 !	

 89
 

  
  *.!# 89 
	  12 *.
!#
 89
 
	
 3
(  "&(,(,	# ! !	
 -. 
I	 6  "&(,(,

 #
 !	

 !
 :;
 

 
2  "&(,(,	

#
 !
 !	

 :;
 

  
  *.!# :; 
	  34 *.
!#
 :;
 
	
 5
( 

 &'= >
	
 
"  "&(,(,

 #
 !	

 !
 ,-
 

 
2  "&(,(,	

#
 !
 !	

 ,-
 

  
  *.!# ,- 
	  *% *.
!#
 ,-
 
	
 &
(  &'? @	   "&(,(,

 #
 !	

 !
 45
 

 
6  "&(,(,	# ! !	
 45 
    *.
!#
 45
 
	
 
 -. *.
!#
 45
 
	
 /
,  "&(,(,	
#
 !
 !	

 12
 

 
4  "&(,(,	
#
 !
 !	

 67
 
%	&
 
,  "&(,(,

 #
 !	

 !
 45
 

 
2  "&(,(,	

#
 !
 !	

 45
 

  
  *.!# 45 
	  -. *.
!#
 45
 
	
 /
( 	N$%;<	N	I	&	N 	N >$%;<>	)	> >
 	O 	-	
 	M 	 	"#8 	O 	Y 	- 	 	O 	/ 	 3 	O  	!"5!" 	^#$ 	%r@   r0   N)Kstriper   stripe.api_resources.abstractr   r   r   r   r   %stripe.api_resources.expandable_fieldr	    stripe.api_resources.list_objectr
   )stripe.api_resources.search_result_objectr   stripe.request_optionsr   stripe.stripe_objectr   stripe.utilr   typingr   r   r   r   r   r   r   r   typing_extensionsr   r   r   r   r   urllib.parser   stripe.api_resources.accountr    stripe.api_resources.applicationr   !stripe.api_resources.bank_accountr   stripe.api_resources.cardr    r[  stripe.api_resources.charger!   stripe.api_resources.customerr"   stripe.api_resources.discountr#   &stripe.api_resources.invoice_line_itemr$   #stripe.api_resources.payment_intentr%   #stripe.api_resources.payment_methodr&   stripe.api_resources.quoter'   !stripe.api_resources.setup_intentr(   "stripe.api_resources.shipping_rater)   stripe.api_resources.sourcer*   !stripe.api_resources.subscriptionr+   stripe.api_resources.tax_idr,   stripe.api_resources.tax_rater-   ,stripe.api_resources.test_helpers.test_clockr.   r0   r?   r@   rA   <module>r     s      B 7 H 1 - ,	 	 	  $4<=>266FAA0=?2>15FS@)$#	")$)$S@r@   