
    hi                       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 d d	lmZ d d
lmZ d dlmZ d dlmZmZ d dlmZmZmZmZmZmZm Z m!Z!m"Z" d dl#m$Z$m%Z%m&Z&m'Z'm(Z( e(rld dl)m*Z* d dl+m,Z, d dl-m.Z. d dl/m0Z1 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 d dlJmKZK d d lLmMZM  ed!       G d" d#ed#   ed#   e	d#   ed#   ed#                ZNy$)%    )CreateableAPIResource)DeletableAPIResource)ExpandableField)
ListObject)ListableAPIResource)nested_resource_class_methods)RequestOptions)SearchResultObject)SearchableAPIResource)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)	AsyncIteratorClassVarDictIteratorListOptionalUnioncastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)Account)Application)BankAccount)Card)Customer)Discount)InvoiceLineItem)InvoicePayment)PaymentIntent)PaymentMethod)SetupIntent)ShippingRate)Source)Subscription)TaxId)TaxRate)CreditBalanceTransaction)	TestClocklinec                   %   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 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      Z0 G dP dQe      Z1 G dR dSe      Z2 G dT dUe      Z3 G dV dWe      Z4 G dX dYe      Z5 G dZ d[e      Z6 G d\ d]e      Z7 G d^ d_e      Z8 G d` dae      Z9 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      ZA G dr dse      ZB G dt due      ZC G dv dwe      ZD G dx dye      ZE G dz d{e      ZF G d| d}e      ZG G d~ de      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 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      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      Zee   ed:<   	 ee   ed;<   	 eeed<         ed=<   	 eed><   	 eed?<   	 eed@<   	 eedA<   	 eedB<   	 eedC      edD<   	 eedE<   	 eedF<   	 ee   edG<   	 e	edH<   ee   edI<   	 eedJ      edK<   	 edL   edM<   	 ee
   edN<   	 eedO<   	 eedP<   	 eee      edQ<   	 eedR      edS<   	 ee   edT<   	 ee   edU<   	 ee   edV<   	 ee   edW<   	 ee   edX<   	 eedY      edZ<   	 eee      ed[<   	 eed\      ed]<   	 eeed^         ed_<   	 ed`   eda<   	 ee   edb<   	 eedc      edd<   	 ee   ede<   	 ee   edf<   	 ee   edg<   	 ee   edh<   	 ee   edi<   	 ee   edj<   	 ee   edk<   	 ee   edl<   	 eedm<   ee   edn<   	 eed       edo<   	 edp   edq<   	 eedr<   	 eeeef      eds<   	 ee   edt<   	 ee   edu<   	 ed   edv<   	 eedw      edx<   	 ee   edy<   	 eedz<   eed{      ed|<   	 eed}<   	 eed~<   	 eed<   	 eed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 eed<   	 ee   ed<   	 eed      ed<   	 eed<   eed<   	 ee   ed<   	 eed      ed<   	 ee   ed<   eed<   	 eee      ed<   	 ee   ed<   	 eee      ed<   	 eee      ed<   	 ee   ed<   	 eed      ed<   	 ededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zeded   dd fd       Zeded   dd fd       Zeded   dd fd       Zeded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zeded   ded    fd       Zeded   ded    fdÄ       Zededed   dd fdń       Zeededed   dd fdƄ              Zeded   dd fdǄ       Z edȫ      ded   dd fdɄ       Zededed   dd fdʄ       Zeededed   dd fd˄              Zeded   dd fd̄       Z edͫ      ded   dd fd΄       Zedkeded   dd fdЄ       Zedkeded   dd fdф       Zededed   dd fdӄ       Zeededed   dd fdԄ              Zeded   dd fdՄ       Z ed֫      ded   dd fdׄ       Zededed   dd fd؄       Zeededed   dd fdل              Zeded   dd fdڄ       Z ed۫      ded   dd fd܄       Zededed   dd fdބ       Zeededed   dd fd߄              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zedkeded   dd fd       Zedkeded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd        Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd       Z ed      ded   dd fd       Zededed   dd fd       Zeededed   dd fd              Zeded   dd fd	       Z ed
      ded   dd fd       Zeded   ded    fd       Zeded   ded    fd       Zeded   ded    fd       Zeded   ded    fd       Zededed   dedp   fd       Zededed   dedp   fd       Zi dHe	dNe
dQedTedXed[ediedmednedyedzededededededeeedZy(  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                       e Zd ZU  G d de      Zeed      ed<   	 eed<   	 ee   ed<   	 ee	   ed<   	 eed      ed	<   	 deiZ
y
)Invoice.AutomaticTaxc                   6    e Zd ZU eed      ed<   	 ed   ed<   y)Invoice.AutomaticTax.Liabilityr   accountr9   selftypeN__name__
__module____qualname__r   r   __annotations__r        O/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/stripe/_invoice.py	Liabilityr8   g   s*    oi899 +,,rC   rE   )%finalization_requires_location_inputsfinalization_system_errordisabled_reasonenabled	liabilityprovider)completefailedrequires_location_inputsstatusN)r>   r?   r@   r   rE   r   r   rA   boolstr_inner_class_typesrB   rC   rD   AutomaticTaxr6   f   s    	 	 "-
 	
	 	 I&&	 3-	 DE
 	
	 *95rC   rS   c                   $    e Zd ZU eed<   	 eed<   y)Invoice.ConfirmationSecretclient_secretr<   Nr>   r?   r@   rQ   rA   rB   rC   rD   ConfirmationSecretrU      s    	 		rC   rX   c                   $    e Zd ZU eed<   	 eed<   y)Invoice.CustomFieldnamevalueNrW   rB   rC   rD   CustomFieldrZ          		 
	rC   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)Invoice.CustomerAddresscitycountryline1line2postal_codestateNr>   r?   r@   r   rQ   rA   rB   rC   rD   CustomerAddressr`      sf    sm	 #	 }	 }	 c]"	 }	rC   rh   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.Addressra   rb   rc   rd   re   rf   Nrg   rB   rC   rD   Addressrl      f    3- c]" C=  C=  "#& C= rC   rm   addresscarrierr[   phonetracking_numberN	r>   r?   r@   r   rm   r   rA   rQ   rR   rB   rC   rD   CustomerShippingrj      j    	l 	4 '""#	 sm	 }	 "#&	 (1rC   rt   c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)Invoice.CustomerTaxId)o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unknownus_einuy_rucuz_tinuz_vatve_rifvn_tinza_vatzm_tinzw_tinr<   r\   N)r>   r?   r@   r   rA   r   rQ   rB   rC   rD   CustomerTaxIdrw      s.    np
 p	
b	 }	rC   r   c                   *    e Zd ZU eed<   	 ed   ed<   y)Invoice.FromInvoiceactionr2   r3   N)r>   r?   r@   rQ   rA   r   rB   rC   rD   FromInvoicer   d  s    	 !++	rC   r   c                   6    e Zd ZU eed      ed<   	 ed   ed<   y)Invoice.Issuerr   r9   r:   r<   Nr=   rB   rC   rD   Issuerr   n  s*    /)455	 '((	rC   r   c                   6   e Zd ZU ee   ed<   	 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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advice_code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_exceeds_transaction_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customer_tax_location_invaliddebit_not_authorizedemail_invalidexpired_card&financial_connections_account_inactive7financial_connections_no_successful_transaction_refreshforwarding_api_inactive forwarding_api_invalid_parameter'forwarding_api_retryable_upstream_error(forwarding_api_upstream_connection_error*forwarding_api_upstream_connection_timeout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_mandate_reference_prefix_format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_mobile_wallet_unsupported"setup_intent_setup_attempt_expiredsetup_intent_unexpected_stateshipping_address_invalidshipping_calculation_failedsku_inactivestate_unsupportedstatus_transition_invalidstripe_tax_inactivetax_id_invalidtax_id_prohibitedtaxes_calculation_failed%terminal_location_country_unsupportedterminal_reader_busyterminal_reader_hardware_fault/terminal_reader_invalid_location_for_activation,terminal_reader_invalid_location_for_payment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network_advice_codenetwork_decline_code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   rQ   rA   r   r   rB   rC   rD   LastFinalizationErrorr   x  s7   c]"	 	 npr
 r	
f	 sm#	 #	 #	 &c]*	 'sm+	 }	 !11	 !11	 &c]*	 "#&	 }--	. DE
 	
 %
 	
	rC   r  c                   z    e Zd ZU  G d de      Z G d de      Zee   ed<   	 ee   ed<   	 ed   ed<   	 eedZ	y	)
Invoice.Parentc                       e Zd ZU eed<   y)Invoice.Parent.QuoteDetailsquoteNrW   rB   rC   rD   QuoteDetailsr    s    JrC   r  c                   L    e Zd ZU eeeef      ed<   	 ed   ed<   	 ee   ed<   y)"Invoice.Parent.SubscriptionDetailsmetadatar+   subscriptionsubscription_proration_dateN)	r>   r?   r@   r   r   rQ   rA   r   intrB   rC   rD   SubscriptionDetailsr    s=    tCH~.. *.99 *2#6rC   r  quote_detailssubscription_details)r  r  r<   N)
r>   r?   r@   r   r  r  r   rA   r   rR   rB   rC   rD   Parentr    sb    	< 		, 	  --	 '':;;	 =>>	 *$7
rC   r  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	 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d<   	 e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   rA   rB   rC   rD   MandateOptionsr    s    &.w7M/N&OOrC   r  mandate_options	automaticinstantmicrodepositsverification_methodN)	r>   r?   r@   r   r  r   rA   r   rR   rB   rC   rD   	AcssDebitr    sC    \  "*.!99%-CD&  '8%H"rC   r  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   rA   rB   rC   rD   
Bancontactr    s    $+,B$CCrC   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.InstallmentsrI   N)r>   r?   r@   r   rP   rA   rB   rC   rD   Installmentsr    s    %d^+rC   r  installmentsanyr  	challengerequest_three_d_secureN)	r>   r?   r@   r   r  r   rA   r   rR   rB   rC   rD   r!   r    sC    <  '|44(0;<)  '5l%C"rC   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NLrb   Nr  rB   rC   rD   EuBankTransferr    s    !()K!LLrC   r  eu_bank_transferr<   N)	r>   r?   r@   r   r  r   rA   rQ   rR   rB   rC   rD   BankTransferr    s7      '/~&>>"3-' +=n)M&rC   r  bank_transferfunding_typeN)	r>   r?   r@   r   r  r   rA   r   rR   rB   rC   rD   CustomerBalancer    s?    N< N  (55&w'?@@ '6|%D"rC   r   c                       e Zd Zy)4Invoice.PaymentSettings.PaymentMethodOptions.KonbiniNr>   r?   r@   rB   rC   rD   Konbinir        rC   r  c                       e Zd Zy)6Invoice.PaymentSettings.PaymentMethodOptions.SepaDebitNr  rB   rC   rD   	SepaDebitr    r  rC   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                   x    e Zd ZU  G d de      Zee   ed<   eeed         ed<   	 eeed         ed<   	 deiZ	y)	OInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnectionsc                   *    e Zd ZU eeed         ed<   y)WInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filterscheckingsavingsaccount_subcategoriesN)r>   r?   r@   r   r   r   rA   rB   rC   rD   Filtersr    s"    /7 )>!?@0 rC   r  filtersbalances	ownershipr  transactionspermissionsr  r  r  prefetchN)
r>   r?   r@   r   r  r   rA   r   r   rR   rB   rC   rD   FinancialConnectionsr    sq    ,  &g..!)#!0	" 	 'W%LMN  +4W)=&rC   r  financial_connectionsr  r  N)	r>   r?   r@   r   r  r   rA   r   rR   rB   rC   rD   UsBankAccountr
    sG    >< >> (00D'EE%-CD&  ,-A&"rC   r  
acss_debit
bancontactcardcustomer_balancekonbini
sepa_debitus_bank_account)r  r   r!  r"  r#  r$  r%  N)r>   r?   r@   r   r  r  r!   r   r  r  r  r   rA   rR   rB   rC   rD   PaymentMethodOptionsr    s    IL I \ D| D E, E,, L ) )V !++ !,, 4.  '77 g&& !++ &m44 (($3"'#0"rC   r&  default_mandatepayment_method_options)&ach_credit_transfer	ach_debitr  affirm
amazon_payau_becs_debit
bacs_debitr   boletor!  cashappr"  epsfpxgiropaygrabpayidealjp_credit_transfer	kakao_payklarnar#  kr_cardlink
multibanco	naver_paynz_bank_accountp24paycopaynowpaypal	promptpayrevolut_paysepa_credit_transferr$  sofortswishr%  
wechat_paypayment_method_typesN)r>   r?   r@   r   r&  r   rQ   rA   r   r   rR   rB   rC   rD   PaymentSettingsr    sm    R	< R	h "#&	 !))= >>	 '%"')+
 +	
X	 78LMrC   rI  c                   t    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<   	 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_sizeNr  rB   rC   rD   PdfrM    s    (> ?@@rC   rS  amount_tax_displaypdftemplatetemplate_versionN)
r>   r?   r@   r   rS  r   rQ   rA   r  rR   rB   rC   rD   	RenderingrK    s^    	, 	 %SM)	 c]	 3-	 #3-'	 $S\rC   rX  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@   r  rA   r   r   rB   rC   rD   Taxr\    sJ    K O
  ("  & %SM)rC   rq  amount_subtotal
amount_taxamount_totalr)   shipping_ratetaxesN)r>   r?   r@   r   rq  r  rA   r   r   r   rR   rB   rC   rD   ShippingCostrZ    sn    $	, $	L 	 	 	   ?@@	 S	""	 &s^rC   rw  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.Addressra   rb   rc   rd   re   rf   Nrg   rB   rC   rD   rm   r{    rn   rC   rm   ro   rp   r[   rq   rr   Nrs   rB   rC   rD   ShippingDetailsry    ru   rC   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  rA   rB   rC   rD   StatusTransitionsr~    sD    sm#	 "*#.	 #	 C= 	rC   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   rQ   rA   r  rB   rC   rD   
ItemReasonr    s    9$ NrC   r  
amount_gteitem_reasonsN)
r>   r?   r@   r   r  r   r  rA   r   rR   rB   rC   rD   ThresholdReasonr    s>    	 	 SM!	 :&&	 -j9rC   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)Invoice.TotalDiscountAmountr]  r#   discountN)r>   r?   r@   r  rA   r   rB   rC   rD   TotalDiscountAmountr  2  s    	 "*--	rC   r  c                   Z    e Zd ZU eed<   	 eed      ed<   	 eed      ed<   	 ed   ed<   y)	Invoice.TotalPretaxCreditAmountr]  r.   credit_balance_transactionr#   r  )r  r  r<   N)r>   r?   r@   r  rA   r   r   r   rB   rC   rD   TotalPretaxCreditAmountr  <  sS    	 %-67%
 	
	 ?:677	 >??	rC   r  c                       e Zd ZU  G d de      Zeed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed	<   	 ed   ed
<   	 deiZ	y)Invoice.TotalTaxc                       e Zd ZU eed<   y)Invoice.TotalTax.TaxRateDetailstax_rateNrW   rB   rC   rD   TaxRateDetailsr  Q  s    MrC   r  r]  )	exclusive	inclusivetax_behaviortax_rate_details)r`  not_availablera  rb  rc  rd  re  rf  rg  rh  ri  rj  rk  rl  rm  rn  ro  rp  r<   N)
r>   r?   r@   r   r  r  rA   r   r   rR   rB   rC   rD   TotalTaxr  P  s    	\ 	 	 677	 #>22	 #
 	
$	 !%	 ())	 1.ArC   r  c                   H    e Zd ZU eee      ed<   	 ed   ed<   	 ed   ed<   y)Invoice.AddLinesParamsexpandLiteral['']|Dict[str, str]invoice_metadataInvoice.AddLinesParamsLinelinesNr>   r?   r@   r   r   rQ   rA   rB   rC   rD   AddLinesParamsr    s<    DI&&	 &&BCC	 011	rC   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  r]  descriptiondiscountablez4Literal['']|List[Invoice.AddLinesParamsLineDiscount]	discountsinvoice_itemr  r   Invoice.AddLinesParamsLinePeriodperiod#Invoice.AddLinesParamsLinePriceData
price_data!Invoice.AddLinesParamsLinePricingpricingquantityz5Literal['']|List[Invoice.AddLinesParamsLineTaxAmount]tax_amountsLiteral['']|List[str]	tax_ratesNr>   r?   r@   r   r  rA   rQ   rP   rB   rC   rD   AddLinesParamsLinezInvoice.AddLinesParamsLine  s    C  	 !%%	 "$''	 B
 	
	 "#&&	 :;;	 >??	   EFF	 @AA	 c""	 !C
 	
	 677	rC   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)"Invoice.AddLinesParamsLineDiscountcouponr  promotion_codeNr>   r?   r@   r   rQ   rA   rB   rC   rD   AddLinesParamsLineDiscountr    6    C  	 c""	 $C((	rC   r  c                   $    e Zd ZU eed<   	 eed<   y)r  endstartNr>   r?   r@   r  rA   rB   rC   rD   AddLinesParamsLinePeriodz Invoice.AddLinesParamsLinePeriod      	 
	rC   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  currencyproduct.Invoice.AddLinesParamsLinePriceDataProductDataproduct_datar  r  unspecifiedr  unit_amountunit_amount_decimalNr>   r?   r@   rQ   rA   r   r   r  rB   rC   rD   AddLinesParamsLinePriceDataz#Invoice.AddLinesParamsLinePriceData  sv    	 S!!	 "<
 	
	 ";<
 	
	 !%%	 )--	rC   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  imagesr  r[   tax_codeNr>   r?   r@   r   rQ   rA   r   r   rB   rC   rD   &AddLinesParamsLinePriceDataProductDataz.Invoice.AddLinesParamsLinePriceDataProductData  `     %%	 DI&&	 d38n--	 		 c""	rC   r  c                       e Zd ZU ee   ed<   y)r  priceNr  rB   rC   rD   AddLinesParamsLinePricingz!Invoice.AddLinesParamsLinePricing      3	rC   r  c                   H    e Zd ZU eed<   	 ded<   	 eed      ed<   	 eed<   y)#Invoice.AddLinesParamsLineTaxAmountr]  .Invoice.AddLinesParamsLineTaxAmountTaxRateDatatax_rate_datar_  ro  rp  Nr>   r?   r@   r  rA   r   r   rB   rC   rD   AddLinesParamsLineTaxAmountr    sH    	 HG	
 '
 	
&	 	rC   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  rb   r  display_namer  jurisdictionra   rb   countydistrictmultiplerf   jurisdiction_level
percentagerf   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   rQ   rA   rP   r   floatrB   rC   rD   &AddLinesParamsLineTaxAmountTaxRateDataz.Invoice.AddLinesParamsLineTaxAmountTaxRateData;      S!!	 !%%	 	 	 "#&&	 (L
 	

	 	 3	 
 	
$	rC   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Invoice.CreateParamsr  account_tax_idsapplication_fee_amountauto_advance Invoice.CreateParamsAutomaticTaxautomatic_taxautomatically_finalizes_atcharge_automaticallysend_invoicecollection_methodr  z1Literal['']|List[Invoice.CreateParamsCustomField]custom_fieldscustomerdays_until_duedefault_payment_methoddefault_sourcedefault_tax_ratesr  z.Literal['']|List[Invoice.CreateParamsDiscount]r  due_dateeffective_atr  footerInvoice.CreateParamsFromInvoicefrom_invoiceInvoice.CreateParamsIssuerissuerr  r  numberon_behalf_of#Invoice.CreateParamsPaymentSettingspayment_settings)excludeincludepending_invoice_items_behaviorInvoice.CreateParamsRendering	rendering Invoice.CreateParamsShippingCostshipping_cost#Invoice.CreateParamsShippingDetailsshipping_detailsstatement_descriptorr   Invoice.CreateParamsTransferDatatransfer_dataN
r>   r?   r@   r   rA   r  rP   r   rQ   r   rB   rC   rD   CreateParamsr  v  sr   $%<==	 !,C 00	 "$''	 ##EFF	 %0$44	 ':;
 	
	 c""	 #?
 	
	 c""	 $C((	 !,C 00	 $C((	 'tCy11	 !%%	 <
 	
	 c""	 "#&&	 DI&&	 C  	 ""CDD	 899	 :;;	 C  	 "#&&	 &&KLL	 )4())
 	
	 >??	 ##EFF	 &&KLL	 *#..	 "#&&	 ##EFF	rC   r+  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rI   )Invoice.CreateParamsAutomaticTaxLiabilityrJ   Nr>   r?   r@   rP   rA   r   rB   rC   rD   CreateParamsAutomaticTaxz Invoice.CreateParamsAutomaticTax       	 JKK	rC   r/  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r-  r9   r:   r<   Nr>   r?   r@   r   rQ   rA   r   rB   rC   rD   !CreateParamsAutomaticTaxLiabilityz)Invoice.CreateParamsAutomaticTaxLiability
  %    S!!	 '((	rC   r3  c                   $    e Zd ZU eed<   	 eed<   y)Invoice.CreateParamsCustomFieldr[   r\   NrW   rB   rC   rD   CreateParamsCustomFieldr6    r^   rC   r7  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Invoice.CreateParamsDiscountr  r  r  Nr  rB   rC   rD   CreateParamsDiscountr9    r  rC   r:  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  revisionr   r3   Nr>   r?   r@   r   rA   rQ   rB   rC   rD   CreateParamsFromInvoicezInvoice.CreateParamsFromInvoice,  s    
##	 	rC   r>  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr2  rB   rC   rD   CreateParamsIssuerzInvoice.CreateParamsIssuer6  r4  rC   r@  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  Literal['']|strr'  7Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsr(    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']]rH  Nr>   r?   r@   r   rA   rB   rC   rD   CreateParamsPaymentSettingsz#Invoice.CreateParamsPaymentSettings@  D    $%677	 !,E!
 	
	 * P
 	
	rC   rF  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)rC  zLLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr  zMLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr   zGLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardr!  zRLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer"  zJLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir#  zLLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr$  zPLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr%  NrE  rB   rC   rD   /CreateParamsPaymentSettingsPaymentMethodOptionsz7Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsR      Z
 	
	  [
 	
	 U
 	
	 &`
 	
	 X
 	
	  Z
 	
	 %^
 	
	rC   rI  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)@Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr  r  r  Nr>   r?   r@   r   rA   r   rB   rC   rD   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitrL  ~  4    $\
 	
	 );<
 	
	rC   rO  c                   $    e Zd ZU eed      ed<   y)rM  r  r  Nr>   r?   r@   r   r   rA   rB   rC   rD   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszNInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions       &g.D&EFF	rC   rS  c                   $    e Zd ZU eed      ed<   y)AInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr  r  NrR  rB   rC   rD   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontactrV        '0F(GHH	rC   rW  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y);Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  r  r  NrN  rB   rC   rD   3CreateParamsPaymentSettingsPaymentMethodOptionsCardrZ    4    !U
 	
	
 !,34!
 	
	rC   r\  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r[  rI   zWLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanplanNr>   r?   r@   r   rP   rA   rB   rC   rD   ?CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszGInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments  +     T""	 e
 	
	rC   ra  c                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ed   ed<   y)KInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlancountmonthintervalfixed_countr<   Nr>   r?   r@   r   r  rA   r   rB   rC   rD   CCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanrd    =     3	 gg.//	 m$$	rC   rj  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)FInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr  r  Nr>   r?   r@   r   rA   rQ   rB   rC   rD   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancerm    +     #`
 	
	 "#&&	rC   rp  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rn  `Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr  r<   Nro  rB   rC   rD   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzRInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer  +     &n
 	
	 #	rC   rt  c                       e Zd ZU eed<   y)rs  rb   NrW   rB   rC   rD   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferz`Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer       	rC   rw  c                       e Zd Zy)>Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr  rB   rC   rD   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinirz        rC   r{  c                       e Zd Zy)@Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr  rB   rC   rD   8CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr~    r|  rC   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)DInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  r  r  NrN  rB   rC   rD   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr    6      +f 
 	
	 );<
 	
	rC   r  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)r  _Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersr  r  r  r  r  Nr>   r?   r@   r   rA   r   r   rB   rC   rD   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionszXInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections  b     m
 	
	 !M
 	
	 @AB
 	
	rC   r  c                   *    e Zd ZU eeed         ed<   y)r  r  r  Nr>   r?   r@   r   r   r   rA   rB   rC   rD   WCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersz_Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters  $      +./0 
 	
	rC   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y)	r!  ;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']rT   Invoice.CreateParamsRenderingPdfrU  rV  Literal['']|intrW  Nro  rB   rC   rD   CreateParamsRenderingzInvoice.CreateParamsRendering(  O    'I
 	
	 ;<<	 c""	 &&788	rC   r  c                   $    e Zd ZU eed      ed<   y)r  rN  rR  NrR  rB   rC   rD   CreateParamsRenderingPdfz Invoice.CreateParamsRenderingPdf<      w'=>??	rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r#  ru  0Invoice.CreateParamsShippingCostShippingRateDatashipping_rate_dataNr  rB   rC   rD   CreateParamsShippingCostz Invoice.CreateParamsShippingCostD  )    "3''	 (>
 	
	rC   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  @Invoice.CreateParamsShippingCostShippingRateDataDeliveryEstimatedelivery_estimater  ;Invoice.CreateParamsShippingCostShippingRateDataFixedAmountfixed_amountr  r  r  r  r<   Nr>   r?   r@   r   rA   rQ   r   r   rB   rC   rD   (CreateParamsShippingCostShippingRateDataz0Invoice.CreateParamsShippingCostShippingRateDataP      &N
 	
	 	 "I
 	
	 d38n--	 ";<
 	
	 c""	 '.122	rC   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  GInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximummaximumGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimumminimumNrE  rB   rC   rD   8CreateParamsShippingCostShippingRateDataDeliveryEstimatez@Invoice.CreateParamsShippingCostShippingRateDataDeliveryEstimatet  .    U
 	
	 U
 	
	rC   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  business_daydayhourrf  weekunitr\   Nr>   r?   r@   r   rA   r  rB   rC   rD   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximumzGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum  !     DEE	 
	rC   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  r  r  r\   Nr  rB   rC   rD   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimumzGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum  r  rC   r  c                   @    e Zd ZU eed<   	 eed<   	 eeedf      ed<   y)r  r]  r  JInvoice.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionscurrency_optionsNr>   r?   r@   r  rA   rQ   r   r   rB   rC   rD   3CreateParamsShippingCostShippingRateDataFixedAmountz;Invoice.CreateParamsShippingCostShippingRateDataFixedAmount  @    	 	 &\^
 	
	rC   r  c                   0    e Zd ZU eed<   	 eed      ed<   y)r  r]  r  r  Nr  rB   rC   rD   BCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionszJInvoice.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions  +     	 ";<
 	
	rC   r  c                   6    e Zd ZU ded<   	 eed<   	 ed   ed<   y)r%  *Invoice.CreateParamsShippingDetailsAddressro   r[   rB  rq   Nr>   r?   r@   rA   rQ   r   rB   rC   rD   CreateParamsShippingDetailsz#Invoice.CreateParamsShippingDetails  ,    ==	 		 ,--	rC   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  ra   rb   rc   rd   re   rf   Nr  rB   rC   rD   "CreateParamsShippingDetailsAddressz*Invoice.CreateParamsShippingDetailsAddress  l    #	 S!!	 3	 3	 !%%	 3	rC   r  c                   *    e Zd ZU ee   ed<   	 eed<   y)r(  r]  destinationNr>   r?   r@   r   r  rA   rQ   rB   rC   rD   CreateParamsTransferDataz Invoice.CreateParamsTransferData      C  	 	rC   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)Invoice.CreatePreviewParams'Invoice.CreatePreviewParamsAutomaticTaxr  r  r  *Invoice.CreatePreviewParamsCustomerDetailscustomer_detailsz5Literal['']|List[Invoice.CreatePreviewParamsDiscount]r  r  &Invoice.CreatePreviewParamsInvoiceIteminvoice_items!Invoice.CreatePreviewParamsIssuerr  rB  r  )next	recurringpreview_modeschedule*Invoice.CreatePreviewParamsScheduleDetailsschedule_detailsr  .Invoice.CreatePreviewParamsSubscriptionDetailsr  N)r>   r?   r@   r   rA   rQ   r   r   rB   rC   rD   CreatePreviewParamsr    s(   "#LMM	 c""	 c""	 &8
 	
	 C
 	
	 DI&&	 #9:
 	
	 ?@@	 ""344	 "'*=">??	 c""	 &8
 	
	 "#&&	 *<
 	
	rC   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rI   0Invoice.CreatePreviewParamsAutomaticTaxLiabilityrJ   Nr.  rB   rC   rD   CreatePreviewParamsAutomaticTaxz'Invoice.CreatePreviewParamsAutomaticTax1  s#    	 >
 	
	rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr2  rB   rC   rD   (CreatePreviewParamsAutomaticTaxLiabilityz0Invoice.CreatePreviewParamsAutomaticTaxLiability=  r4  rC   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  z=Literal['']|Invoice.CreatePreviewParamsCustomerDetailsAddressro   z>Literal['']|Invoice.CreatePreviewParamsCustomerDetailsShippingshipping-Invoice.CreatePreviewParamsCustomerDetailsTaxtaxz0Literal['']|Literal['exempt', 'none', 'reverse']
tax_exempt/Invoice.CreatePreviewParamsCustomerDetailsTaxIdtax_idsN)r>   r?   r@   r   rA   r   rB   rC   rD   "CreatePreviewParamsCustomerDetailsz*Invoice.CreatePreviewParamsCustomerDetailsG  su    K
 	
	 L
 	
	 HII	  >
 	
	 BC
 	
	rC   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)1Invoice.CreatePreviewParamsCustomerDetailsAddressra   rb   rc   rd   re   rf   Nr  rB   rC   rD   )CreatePreviewParamsCustomerDetailsAddressr  e  r  rC   r  c                   6    e Zd ZU ded<   	 eed<   	 ee   ed<   y)2Invoice.CreatePreviewParamsCustomerDetailsShipping9Invoice.CreatePreviewParamsCustomerDetailsShippingAddressro   r[   rq   Nr  rB   rC   rD   *CreatePreviewParamsCustomerDetailsShippingr    s+    LL	 		 3	rC   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  ra   rb   rc   rd   re   rf   Nr  rB   rC   rD   1CreatePreviewParamsCustomerDetailsShippingAddressz9Invoice.CreatePreviewParamsCustomerDetailsShippingAddress  r  rC   r  c                       e Zd ZU ed   ed<   y)r  rB  
ip_addressNrE  rB   rC   rD   %CreatePreviewParamsCustomerDetailsTaxz-Invoice.CreatePreviewParamsCustomerDetailsTax  s     122	rC   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  )nrx   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   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   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r<   r\   Nr=  rB   rC   rD   'CreatePreviewParamsCustomerDetailsTaxIdz/Invoice.CreatePreviewParamsCustomerDetailsTaxId  s)    mo
 o	
`	 
	rC   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)#Invoice.CreatePreviewParamsDiscountr  r  r  Nr  rB   rC   rD   CreatePreviewParamsDiscountr  &	  r  rC   r  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]  r  r  r  z@Literal['']|List[Invoice.CreatePreviewParamsInvoiceItemDiscount]r  invoiceitemr  r  ,Invoice.CreatePreviewParamsInvoiceItemPeriodr  r  /Invoice.CreatePreviewParamsInvoiceItemPriceDatar  r  r  r  rB  r  r  r  r  r  N)	r>   r?   r@   r   r  rA   rQ   rP   r   rB   rC   rD   CreatePreviewParamsInvoiceItemz&Invoice.CreatePreviewParamsInvoiceItem4	  s9   C  	 c""	 !%%	 "$''	 N
 	
	 !%%	 :;;	 JKK	 3	  =
 	
	 c""	 ";<
 	
	 /00	 677	 !%%	 )--	rC   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y).Invoice.CreatePreviewParamsInvoiceItemDiscountr  r  r  Nr  rB   rC   rD   &CreatePreviewParamsInvoiceItemDiscountr  |	  r  rC   r  c                   $    e Zd ZU eed<   	 eed<   y)r  r  r  Nr  rB   rC   rD   $CreatePreviewParamsInvoiceItemPeriodz,Invoice.CreatePreviewParamsInvoiceItemPeriod	  r  rC   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  r  r  r  r  r  r  Nr  rB   rC   rD   'CreatePreviewParamsInvoiceItemPriceDataz/Invoice.CreatePreviewParamsInvoiceItemPriceData	  sY    	 	 ";<
 	
	 !%%	 )--	rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr2  rB   rC   rD   CreatePreviewParamsIssuerz!Invoice.CreatePreviewParamsIssuer	  r4  rC   r  c                   T    e Zd ZU eed      ed<   	 eed      ed<   	 eed      ed<   y)r  )cancelreleaseend_behavior/Invoice.CreatePreviewParamsScheduleDetailsPhasephasesalways_invoicecreate_prorationsnoneproration_behaviorN)r>   r?   r@   r   r   rA   r   rB   rC   rD   "CreatePreviewParamsScheduleDetailsz*Invoice.CreatePreviewParamsScheduleDetails	  sR    !'*=">??	 BC
 	
	 (AB
 	
	rC   r  c                      e Zd ZU eed      ed<   	 ee   ed<   	 ed   ed<   	 eed      ed<   	 eed      ed	<   	 ee   ed
<   	 ee   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ee	   ed<   	 ee
eef      ed<   	 ee   ed<   	 eed      ed<   	 ed   ed<   	 ed   ed<   	 ee   ed <   	 ed   ed!<   y")#r  =Invoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemadd_invoice_itemsapplication_fee_percent;Invoice.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxr  )r  phase_startbilling_cycle_anchorr	  r  r  r  r  r  rB  r  zILiteral['']|List[Invoice.CreatePreviewParamsScheduleDetailsPhaseDiscount]r  zint|Literal['now']end_date>Invoice.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsinvoice_settings3Invoice.CreatePreviewParamsScheduleDetailsPhaseItemitems
iterationsr  r  r  r  
start_date;Invoice.CreatePreviewParamsScheduleDetailsPhaseTransferDatar)  trial	trial_endN)r>   r?   r@   r   r   rA   r  r   rQ   r  r   rP   rB   rC   rD   'CreatePreviewParamsScheduleDetailsPhasez/Invoice.CreatePreviewParamsScheduleDetailsPhase	  s   &O
 	

	 "-U!33	 #I
 	
	 *'2L*MNN	 ':;
 	
	 c""	 !,C 00	 ''>??	 !!233	 W
 	
	 233	 &L
 	
	 IJJ	  $$	 d38n--	 "#&&	 (AB
 	
	   455	 #I
 	
	 4  	 344	rC   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	)
r  EInvoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountr  r  FInvoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceDatar  r  r  r  N)r>   r?   r@   r   r   rA   rQ   r  rB   rC   rD   5CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemz=Invoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItem.
  sm    W
 	

	 3	  T
 	
	 c""	 677	rC   r*  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)r(  r  r  r  Nr  rB   rC   rD   =CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountzEInvoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountJ
  s8     C  	 c""	 $C((	rC   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)  r  r  r  r  r  r  Nr  rB   rC   rD   >CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceDatazFInvoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceDataZ
  s[     	 	 ";<
 	
	 !%%	 )--	rC   r.  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rI   DInvoice.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiabilityrJ   Nr.  rB   rC   rD   3CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxz;Invoice.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxt
  s#    	 R
 	
	rC   r1  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r0  r9   r:   r<   Nr2  rB   rC   rD   <CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiabilityzDInvoice.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiability
  '     S!!	 '((	rC   r3  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)7Invoice.CreatePreviewParamsScheduleDetailsPhaseDiscountr  r  r  Nr  rB   rC   rD   /CreatePreviewParamsScheduleDetailsPhaseDiscountr6  
  r  rC   r7  c                   B    e Zd ZU ed   ed<   	 ee   ed<   	 ed   ed<   y)r  r  r  r  DInvoice.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerr  N)r>   r?   r@   r   rA   r  rB   rC   rD   6CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsz>Invoice.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettings
  s<    $%<==	 $C((	 R
 	
	rC   r:  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r9  r9   r:   r<   Nr2  rB   rC   rD   <CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerzDInvoice.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuer
  r4  rC   r<  c                       e Zd ZU ed   ed<   	 eeeef      ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed	   ed
<   y)r  zMLiteral['']|List[Invoice.CreatePreviewParamsScheduleDetailsPhaseItemDiscount]r  r  r_  r  <Invoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceDatar  r  r  r  N)r>   r?   r@   r   rA   r   rQ   r  rB   rC   rD   +CreatePreviewParamsScheduleDetailsPhaseItemz3Invoice.CreatePreviewParamsScheduleDetailsPhaseItem
  s    [
 	
	 d38n--	 #	 3	  J
 	
	 c""	 677	rC   r?  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y);Invoice.CreatePreviewParamsScheduleDetailsPhaseItemDiscountr  r  r  Nr  rB   rC   rD   3CreatePreviewParamsScheduleDetailsPhaseItemDiscountrA  
  r  rC   rB  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>  r  r  EInvoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurringr  r  r  r  r  Nr  rB   rC   rD   4CreatePreviewParamsScheduleDetailsPhaseItemPriceDataz<Invoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceData
  sg    	 	 [Z	 ";<
 	
	 !%%	 )--	rC   rE  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rD  r  rf  r  yearrg  interval_countNr>   r?   r@   r   rA   r   r  rB   rC   rD   =CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurringzEInvoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring  '     899	 $C((	rC   rK  c                   *    e Zd ZU ee   ed<   	 eed<   y)r#  amount_percentr  N)r>   r?   r@   r   r  rA   rQ   rB   rC   rD   3CreatePreviewParamsScheduleDetailsPhaseTransferDataz;Invoice.CreatePreviewParamsScheduleDetailsPhaseTransferData  s    #E**	 	rC   rO  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']|intr  r  	cancel_atcancel_at_period_end
cancel_nowr  r  2Invoice.CreatePreviewParamsSubscriptionDetailsItemr   r  r  proration_datenow	resume_atr"  zLiteral['now']|intr%  N)	r>   r?   r@   r   rA   rP   r   r   r  rB   rC   rD   &CreatePreviewParamsSubscriptionDetailsz.Invoice.CreatePreviewParamsSubscriptionDetails  s    )*KLL	 011	 *$//	  %%	 ''>??	 EF
 	
	 (AB
 	
	 $C((	 wu~..	  $$	 344	rC   rX  c                       e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed	<   	 ed
   ed<   	 ee   ed<   	 ed   ed<   y)rT  clear_usagedeletedzLLiteral['']|List[Invoice.CreatePreviewParamsSubscriptionDetailsItemDiscount]r  idr  r  r_  r  ;Invoice.CreatePreviewParamsSubscriptionDetailsItemPriceDatar  r  r  r  N)r>   r?   r@   r   rP   rA   rQ   r  rB   rC   rD   *CreatePreviewParamsSubscriptionDetailsItemz2Invoice.CreatePreviewParamsSubscriptionDetailsItemJ  s     &&	 T""	 Z
 	
	 	 :;;	 #	 3	  I
 	
	 c""	 677	rC   r^  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y):Invoice.CreatePreviewParamsSubscriptionDetailsItemDiscountr  r  r  Nr  rB   rC   rD   2CreatePreviewParamsSubscriptionDetailsItemDiscountr`  x  r  rC   ra  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]  r  r  DInvoice.CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringr  r  r  r  r  Nr  rB   rC   rD   3CreatePreviewParamsSubscriptionDetailsItemPriceDataz;Invoice.CreatePreviewParamsSubscriptionDetailsItemPriceData  sg    	 	 ZY	 ";<
 	
	 !%%	 )--	rC   rd  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rc  rG  rg  rI  NrJ  rB   rC   rD   <CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringzDInvoice.CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring  rL  rC   rf  c                       e Zd Zy)Invoice.DeleteParamsNr  rB   rC   rD   DeleteParamsrh    r|  rC   ri  c                   6    e Zd ZU ee   ed<   	 eee      ed<   y)Invoice.FinalizeInvoiceParamsr  r  N)r>   r?   r@   r   rP   rA   r   rQ   rB   rC   rD   FinalizeInvoiceParamsrk    s(    !$''	 DI&&	rC   rl  c                   Z    e Zd ZU ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   y)Invoice.ListLinesParamsending_beforer  limitstarting_afterN)r>   r?   r@   r   rQ   rA   r   r  rB   rC   rD   ListLinesParamsrn    sL    "3''	 DI&&	 3	 $C((	rC   rr  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)Invoice.ListParamsr	  r  zInvoice.ListParamsCreated|intcreatedr  zInvoice.ListParamsDueDate|intr  ro  r  rp  rq  draftopenpaiduncollectiblevoidrO   r  N)	r>   r?   r@   r   r   rA   rQ   r   r  rB   rC   rD   
ListParamsrt    s    &:;
 	
	 <==	 c""	 =>>"3''	 DI&&	 3	 $C((	 DE
 	
	 "#&&	rC   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.ListParamsCreatedgtgteltlteNr>   r?   r@   r   r  rA   rB   rC   rD   ListParamsCreatedr~    H    	 	 	 	rC   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.ListParamsDueDater  r  r  r  Nr  rB   rC   rD   ListParamsDueDater  
  r  rC   r  c                   $    e Zd ZU eee      ed<   y)Invoice.MarkUncollectibleParamsr  Nr  rB   rC   rD   MarkUncollectibleParamsr        DI&&	rC   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*)+Invoice.ModifyParamsr  r  r  r   Invoice.ModifyParamsAutomaticTaxr  r  r	  r  z1Literal['']|List[Invoice.ModifyParamsCustomField]r  r  r  rB  r  r  r  z.Literal['']|List[Invoice.ModifyParamsDiscount]r  r  r  r  r  r  Invoice.ModifyParamsIssuerr  r  r  r  r  #Invoice.ModifyParamsPaymentSettingsr  Invoice.ModifyParamsRenderingr"  z,Literal['']|Invoice.ModifyParamsShippingCostr$  z/Literal['']|Invoice.ModifyParamsShippingDetailsr&  r'  z,Literal['']|Invoice.ModifyParamsTransferDatar)  Nr*  rB   rC   rD   ModifyParamsr  "  s   $%<==	 !,C 00	 "$''	 ##EFF	 %0$44	 ':;
 	
	 #?
 	
	 $C((	 !,C 00	 $$566	 ''>??	 !%%	 <
 	
	 c""	 ""344	 DI&&	 C  	 899	 :;;	 -..	 ""344	 &&KLL	 >??	 #:
 	
	 &=
 	
	 *#..	 #:
 	
	rC   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rI   )Invoice.ModifyParamsAutomaticTaxLiabilityrJ   Nr.  rB   rC   rD   ModifyParamsAutomaticTaxz Invoice.ModifyParamsAutomaticTax  r0  rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr2  rB   rC   rD   !ModifyParamsAutomaticTaxLiabilityz)Invoice.ModifyParamsAutomaticTaxLiability  r4  rC   r  c                   $    e Zd ZU eed<   	 eed<   y)Invoice.ModifyParamsCustomFieldr[   r\   NrW   rB   rC   rD   ModifyParamsCustomFieldr    r^   rC   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Invoice.ModifyParamsDiscountr  r  r  Nr  rB   rC   rD   ModifyParamsDiscountr    r  rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr2  rB   rC   rD   ModifyParamsIssuerzInvoice.ModifyParamsIssuer  r4  rC   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  rB  r'  7Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsr(  rD  rH  NrE  rB   rC   rD   ModifyParamsPaymentSettingsz#Invoice.ModifyParamsPaymentSettings  rG  rC   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  zLLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr  zMLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr   zGLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardr!  zRLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer"  zJLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir#  zLLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr$  zPLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr%  NrE  rB   rC   rD   /ModifyParamsPaymentSettingsPaymentMethodOptionsz7Invoice.ModifyParamsPaymentSettingsPaymentMethodOptions  rJ  rC   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)@Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr  r  r  NrN  rB   rC   rD   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr    rP  rC   r  c                   $    e Zd ZU eed      ed<   y)r  r  r  NrR  rB   rC   rD   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszNInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions  rT  rC   r  c                   $    e Zd ZU eed      ed<   y)AInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  r  NrR  rB   rC   rD   9ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  &  rX  rC   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y);Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  r  r  NrN  rB   rC   rD   3ModifyParamsPaymentSettingsPaymentMethodOptionsCardr  ,  r]  rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  rI   zWLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr_  Nr`  rB   rC   rD   ?ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszGInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments<  rb  rC   r  c                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ed   ed<   y)KInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanre  rf  rg  rh  r<   Nri  rB   rC   rD   CModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr  K  rk  rC   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)FInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr  r  Nro  rB   rC   rD   >ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  \  rq  rC   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  `Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr  r<   Nro  rB   rC   rD   JModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzRInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferj  ru  rC   r  c                       e Zd ZU eed<   y)r  rb   NrW   rB   rC   rD   XModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferz`Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferx  rx  rC   r  c                       e Zd Zy)>Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbiniNr  rB   rC   rD   6ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir    r|  rC   r  c                       e Zd Zy)@Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr  rB   rC   rD   8ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr    r|  rC   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)DInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  r  r  NrN  rB   rC   rD   <ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr    r  rC   r  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)r  _Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersr  r  r  r  r  Nr  rB   rC   rD   PModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionszXInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections  r  rC   r  c                   *    e Zd ZU eeed         ed<   y)r  r  r  Nr  rB   rC   rD   WModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersz_Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters  r  rC   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   y)	r  r  rT   Invoice.ModifyParamsRenderingPdfrU  rV  r  rW  Nro  rB   rC   rD   ModifyParamsRenderingzInvoice.ModifyParamsRendering  r  rC   r  c                   $    e Zd ZU eed      ed<   y)r  rN  rR  NrR  rB   rC   rD   ModifyParamsRenderingPdfz Invoice.ModifyParamsRenderingPdf  r  rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y) Invoice.ModifyParamsShippingCostru  0Invoice.ModifyParamsShippingCostShippingRateDatar  Nr  rB   rC   rD   ModifyParamsShippingCostr    r  rC   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  @Invoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimater  r  ;Invoice.ModifyParamsShippingCostShippingRateDataFixedAmountr  r  r  r  r  r<   Nr  rB   rC   rD   (ModifyParamsShippingCostShippingRateDataz0Invoice.ModifyParamsShippingCostShippingRateData  r  rC   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  GInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximumr  GInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimumr  NrE  rB   rC   rD   8ModifyParamsShippingCostShippingRateDataDeliveryEstimatez@Invoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimate  r  rC   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  r  r  r\   Nr  rB   rC   rD   ?ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximumzGInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximum  r  rC   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  r  r  r\   Nr  rB   rC   rD   ?ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimumzGInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum   r  rC   r  c                   @    e Zd ZU eed<   	 eed<   	 eeedf      ed<   y)r  r]  r  JInvoice.ModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr  Nr  rB   rC   rD   3ModifyParamsShippingCostShippingRateDataFixedAmountz;Invoice.ModifyParamsShippingCostShippingRateDataFixedAmount,  r  rC   r  c                   0    e Zd ZU eed<   	 eed      ed<   y)r  r]  r  r  Nr  rB   rC   rD   BModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptionszJInvoice.ModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions?  r  rC   r  c                   6    e Zd ZU ded<   	 eed<   	 ed   ed<   y)#Invoice.ModifyParamsShippingDetails*Invoice.ModifyParamsShippingDetailsAddressro   r[   rB  rq   Nr  rB   rC   rD   ModifyParamsShippingDetailsr  M  r  rC   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  ra   rb   rc   rd   re   rf   Nr  rB   rC   rD   "ModifyParamsShippingDetailsAddressz*Invoice.ModifyParamsShippingDetailsAddress[  r  rC   r  c                   *    e Zd ZU ee   ed<   	 eed<   y) Invoice.ModifyParamsTransferDatar]  r  Nr  rB   rC   rD   ModifyParamsTransferDatar  u  r  rC   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	)
Invoice.PayParamsr  forgiverB  mandateoff_sessionpaid_out_of_bandr  r  N)r>   r?   r@   r   r   rQ   rA   rP   rB   rC   rD   	PayParamsr    s    DI&&	 T""	
 .//	 !&&	 &d++	 $C((	 C  	rC   r  c                   H    e Zd ZU eee      ed<   	 ed   ed<   	 ed   ed<   y)Invoice.RemoveLinesParamsr  r  r  Invoice.RemoveLinesParamsLiner  Nr  rB   rC   rD   RemoveLinesParamsr    <    DI&&	 &&BCC	 344	rC   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  )deleteunassignbehaviorr\  Nr=  rB   rC   rD   RemoveLinesParamsLinezInvoice.RemoveLinesParamsLine  s    .//	 	rC   r  c                   $    e Zd ZU eee      ed<   y)Invoice.RetrieveParamsr  Nr  rB   rC   rD   RetrieveParamsr    r  rC   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)Invoice.SearchParamsr  rp  pagequeryN)r>   r?   r@   r   r   rQ   rA   r  rB   rC   rD   SearchParamsr    sF    DI&&	 3	 #	 
	rC   r  c                   $    e Zd ZU eee      ed<   y)Invoice.SendInvoiceParamsr  Nr  rB   rC   rD   SendInvoiceParamsr    r  rC   r  c                   H    e Zd ZU eee      ed<   	 ed   ed<   	 ed   ed<   y)Invoice.UpdateLinesParamsr  r  r  Invoice.UpdateLinesParamsLiner  Nr  rB   rC   rD   UpdateLinesParamsr    r  rC   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  z7Literal['']|List[Invoice.UpdateLinesParamsLineDiscount]r  r\  r  r  #Invoice.UpdateLinesParamsLinePeriodr  &Invoice.UpdateLinesParamsLinePriceDatar  $Invoice.UpdateLinesParamsLinePricingr  r  z8Literal['']|List[Invoice.UpdateLinesParamsLineTaxAmount]r  r  r  Nr  rB   rC   rD   UpdateLinesParamsLinezInvoice.UpdateLinesParamsLine  s    C  	 !%%	 "$''	 E
 	
	 	 :;;	 ABB	   HII	 CDD	 c""	 !F
 	
	 677	rC   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)%Invoice.UpdateLinesParamsLineDiscountr  r  r  Nr  rB   rC   rD   UpdateLinesParamsLineDiscountr    r  rC   r  c                   $    e Zd ZU eed<   	 eed<   y)r  r  r  Nr  rB   rC   rD   UpdateLinesParamsLinePeriodz#Invoice.UpdateLinesParamsLinePeriod'  r  rC   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  r  r  1Invoice.UpdateLinesParamsLinePriceDataProductDatar  r  r  r  r  Nr  rB   rC   rD   UpdateLinesParamsLinePriceDataz&Invoice.UpdateLinesParamsLinePriceData1  sv    	 S!!	 "?
 	
	 ";<
 	
	 !%%	 )--	rC   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  r  r[   r  Nr  rB   rC   rD   )UpdateLinesParamsLinePriceDataProductDataz1Invoice.UpdateLinesParamsLinePriceDataProductDataO  r  rC   r!  c                       e Zd ZU ee   ed<   y)r  r  Nr  rB   rC   rD   UpdateLinesParamsLinePricingz$Invoice.UpdateLinesParamsLinePricinge  r  rC   r#  c                   H    e Zd ZU eed<   	 ded<   	 eed      ed<   	 eed<   y)&Invoice.UpdateLinesParamsLineTaxAmountr]  1Invoice.UpdateLinesParamsLineTaxAmountTaxRateDatar  r_  ro  rp  Nr  rB   rC   rD   UpdateLinesParamsLineTaxAmountr%  k  sH    	 KJ	
 '
 	
&	 	rC   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&  rb   r  r  r  r  r  r  r  rf   r  r  Nr  rB   rC   rD   )UpdateLinesParamsLineTaxAmountTaxRateDataz1Invoice.UpdateLinesParamsLineTaxAmountTaxRateData  r   rC   r)  c                   $    e Zd ZU eee      ed<   y)Invoice.VoidInvoiceParamsr  Nr  rB   rC   rD   VoidInvoiceParamsr+    r  rC   r,  account_countryaccount_namer,   r  
amount_dueamount_overpaidamount_paidamount_remainingamount_shippingr   applicationattempt_count	attemptedr  r  r  )	&automatic_pending_invoice_item_invoicemanualquote_acceptr  subscription_createsubscription_cyclesubscription_thresholdsubscription_updateupcomingbilling_reasonr	  r  confirmation_secretru  r  r  r"   r  customer_addresscustomer_emailcustomer_namecustomer_phonecustomer_shipping)exemptr  reversecustomer_tax_exemptcustomer_tax_idsr'   r  r  r  r-   r  r  r#   r  r  r  ending_balancer  r  hosted_invoice_urlr\  invoice_pdfr  last_finalization_errorlatest_revisionr$   r  livemoder  next_payment_attemptr  objectr   r  parentr  r%   payments
period_endperiod_start post_payment_credit_notes_amountpre_payment_credit_notes_amountreceipt_numberr"  r$  r&  starting_balancer'  rv  rO   status_transitionssubtotalsubtotal_excluding_taxr/   
test_clockthreshold_reasontotaltotal_discount_amountstotal_excluding_taxtotal_pretax_credit_amountstotal_taxeswebhooks_delivered_atTr[  paramsr  returnc                 p    t        d| j                  ddj                  t        |            |            S )q
        Adds multiple line items to an invoice. This is only possible when an invoice is still a draft.
        r2   post /v1/invoices/{invoice}/add_linesr3   re  r   _static_requestformatr   clsr3   re  s      rD   _cls_add_lineszInvoice._cls_add_lines  sJ     299'0 :     	
 		
rC   c                      yrh  NrB   r3   re  s     rD   	add_lineszInvoice.add_lines"       	rC   c                      yrt  rB   r;   re  s     rD   rv  zInvoice.add_lines,       	rC   rr  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )rh  r2   ri  rj  r\  rk  rl  r   _requestro  r   getry  s     rD   rv  zInvoice.add_lines5  sP     MM299'7 :    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)rh  r2   ri  rj  rk  rl  Nr   _static_request_asyncro  r   rp  s      rD   _cls_add_lines_asynczInvoice._cls_add_lines_asyncG  sX      ++299'0 :   ,  	
 		
   7AA
	Ac                    K   ywrt  rB   ru  s     rD   add_lines_asynczInvoice.add_lines_asyncY        	   c                    K   ywrt  rB   ry  s     rD   r  zInvoice.add_lines_asyncc        	r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)rh  r2   ri  rj  r\  rk  rl  Nr   _request_asyncro  r   r~  ry  s     rD   r  zInvoice.add_lines_asyncl  s`      %%299'7 :   &  	
 		
   AAA
		Ar  c                 Z    t        d| j                  d| j                         |            S )   
        This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://stripe.com/docs/api#finalize_invoice) the invoice to your customers.
        r2   ri  rl  )r   rn  	class_urlrq  re  s     rD   createzInvoice.create~  s6    
    
 	
rC   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r  r2   ri  rl  N)r   r  r  r  s     rD   create_asynczInvoice.create_async  sD      ++ ,  
 	
s   ,97
	9r  c                 >    t        d| j                  dd|            S )  
        At any time, you can preview the upcoming invoice for a subscription or subscription schedule. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.

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

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

        Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions)
        r2   ri  /v1/invoices/create_previewrl  )r   rn  r  s     rD   create_previewzInvoice.create_preview  s0     -   
 	
rC   c                 Z   K   t        d| j                  dd|       d{         S 7 w)r  r2   ri  r  rl  N)r   r  r  s     rD   create_preview_asynczInvoice.create_preview_async  s>      ++- ,  
 	
s   +)
	+sidrh  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).
        /r2   r   rl  r  r   r   rn  rq  r  re  urls       rD   _cls_deletezInvoice._cls_delete  sE     +c*:;   
 	
rC   c                      yr  NrB   r  re  s     rD   r   zInvoice.delete  rw  rC   c                      yr  rB   ry  s     rD   r   zInvoice.delete      
 	rC   r  c                 F    | j                  d| j                         |      S )r  r   rl  )_request_and_refreshinstance_urlry  s     rD   r   zInvoice.delete  s.     (( ) 
 	
rC   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r  r  r2   r   rl  Nr  r   r   r  r  s       rD   _cls_delete_asynczInvoice._cls_delete_async  sS      +c*:;++ ,  
 	
   <A	A
	A	c                    K   ywr  rB   r  s     rD   delete_asynczInvoice.delete_async  r  r  c                    K   ywr  rB   ry  s     rD   r  zInvoice.delete_async  r  r  r  c                 b   K   | j                  d| j                         |       d{   S 7 w)r  r   rl  N)_request_and_refresh_asyncr  ry  s     rD   r  zInvoice.delete_async  s<      44 5 
 
 	
 
s   &/-/rk  c                 p    t        d| j                  ddj                  t        |            |            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.
        r2   ri  /v1/invoices/{invoice}/finalizerk  rl  rm  rp  s      rD   _cls_finalize_invoicezInvoice._cls_finalize_invoice(  sJ     188'0 9     	
 		
rC   c                      yr  NrB   ru  s     rD   finalize_invoicezInvoice.finalize_invoice:  rw  rC   c                      yr  rB   ry  s     rD   r  zInvoice.finalize_invoiceD  rz  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   ri  r  r\  rk  rl  r|  ry  s     rD   r  zInvoice.finalize_invoiceM  sP     MM188'7 9    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   ri  r  rk  rl  Nr  rp  s      rD   _cls_finalize_invoice_asyncz#Invoice._cls_finalize_invoice_async_  sX      ++188'0 9   ,  	
 		
r  c                    K   ywr  rB   ru  s     rD   finalize_invoice_asynczInvoice.finalize_invoice_asyncq  r  r  c                    K   ywr  rB   ry  s     rD   r  zInvoice.finalize_invoice_async{  r  r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   ri  r  r\  rk  rl  Nr  ry  s     rD   r  zInvoice.finalize_invoice_async  s`      %%188'7 9   &  	
 		
r  rt  c                     | j                  d| j                         |      }t        |t              s!t	        dt        |      j                  z        |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~  rl  %Expected list object from API, got %s)rn  r  
isinstancer   	TypeErrorr<   r>   rq  re  results      rD   listzInvoice.list  s]     $$MMO % 

 &*-7<((* 
 rC   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)r  r~  rl  Nr  )r  r  r  r   r  r<   r>   r  s      rD   
list_asynczInvoice.list_async  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"r  c                 p    t        d| j                  ddj                  t        |            |            S )
        Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.
        r2   ri  )/v1/invoices/{invoice}/mark_uncollectiblerk  rl  rm  rp  s      rD   _cls_mark_uncollectiblezInvoice._cls_mark_uncollectible  sK     ;BB'0 C     	
 		
rC   c                      yr  NrB   ru  s     rD   mark_uncollectiblezInvoice.mark_uncollectible  rw  rC   c                      yr  rB   ry  s     rD   r  zInvoice.mark_uncollectible  rz  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   ri  r  r\  rk  rl  r|  ry  s     rD   r  zInvoice.mark_uncollectible  sQ     MM;BB'7 C    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   ri  r  rk  rl  Nr  rp  s      rD   _cls_mark_uncollectible_asyncz%Invoice._cls_mark_uncollectible_async  sY      ++;BB'0 C   ,  	
 		
r  c                    K   ywr  rB   ru  s     rD   mark_uncollectible_asyncz Invoice.mark_uncollectible_async  r  r  c                    K   ywr  rB   ry  s     rD   r  z Invoice.mark_uncollectible_async  r  r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   ri  r  r\  rk  rl  Nr  ry  s     rD   r  z Invoice.mark_uncollectible_async  sa      %%;BB'7 C   &  	
 		
r  r  c                 z    | j                         dt        |      }t        d| j                  d||            S )  
        Draft invoices are fully editable. Once an invoice is [finalized](https://stripe.com/docs/billing/invoices/workflow#finalized),
        monetary values, as well as collection_method, become uneditable.

        If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
        sending reminders for, or [automatically reconciling](https://stripe.com/docs/billing/invoices/reconciliation) invoices, pass
        auto_advance=false.
        r  r2   ri  rl  r  rq  r\  re  r  s       rD   modifyzInvoice.modify,  sD     +b/:   
 	
rC   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r  r  r2   ri  rl  Nr  r  s       rD   modify_asynczInvoice.modify_asyncB  sR      +b/:++ ,  
 	
r  r  c                 p    t        d| j                  ddj                  t        |            |            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.
        r2   ri  /v1/invoices/{invoice}/payrk  rl  rm  rp  s      rD   _cls_payzInvoice._cls_payX  sJ     ,33'0 4     	
 		
rC   c                      yr  NrB   ru  s     rD   payzInvoice.payj  s     	rC   c                      yr  rB   ry  s     rD   r  zInvoice.payr  r  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   ri  r  r\  rk  rl  r|  ry  s     rD   r  zInvoice.payy  sP     MM,33'7 4    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   ri  r  rk  rl  Nr  rp  s      rD   _cls_pay_asynczInvoice._cls_pay_async  sX      ++,33'0 4   ,  	
 		
r  c                    K   ywr  rB   ru  s     rD   	pay_asynczInvoice.pay_async  r  r  c                    K   ywr  rB   ry  s     rD   r  zInvoice.pay_async  r  r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   ri  r  r\  rk  rl  Nr  ry  s     rD   r  zInvoice.pay_async  s`      %%,33'7 4   &  	
 		
r  r  c                 p    t        d| j                  ddj                  t        |            |            S )v
        Removes multiple line items from an invoice. This is only possible when an invoice is still a draft.
        r2   ri  #/v1/invoices/{invoice}/remove_linesrk  rl  rm  rp  s      rD   _cls_remove_lineszInvoice._cls_remove_lines  J     5<<'0 =     	
 		
rC   c                      yr  NrB   ru  s     rD   remove_lineszInvoice.remove_lines  rw  rC   c                      yr  rB   ry  s     rD   r  zInvoice.remove_lines  rz  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   ri  r  r\  rk  rl  r|  ry  s     rD   r  zInvoice.remove_lines  P     MM5<<'7 =    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   ri  r  rk  rl  Nr  rp  s      rD   _cls_remove_lines_asynczInvoice._cls_remove_lines_async  X      ++5<<'0 =   ,  	
 		
r  c                    K   ywr  rB   ru  s     rD   remove_lines_asynczInvoice.remove_lines_async  r  r  c                    K   ywr  rB   ry  s     rD   r   zInvoice.remove_lines_async  r  r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   ri  r  r\  rk  rl  Nr  ry  s     rD   r   zInvoice.remove_lines_async  `      %%5<<'7 =   &  	
 		
r  r  c                 8     | |fi |}|j                          |S ):
        Retrieves the invoice with the given ID.
        )refreshrq  r\  re  instances       rD   retrievezInvoice.retrieve0  s$     r$V$rC   c                 T   K    | |fi |}|j                          d{    |S 7 w)r  N)refresh_asyncr  s       rD   retrieve_asynczInvoice.retrieve_async;  s3      r$V$$$&&& 	's   (&(r  c                 p    t        d| j                  ddj                  t        |            |            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.
        r2   ri  /v1/invoices/{invoice}/sendrk  rl  rm  rp  s      rD   _cls_send_invoicezInvoice._cls_send_invoiceF  J     -44'0 5     	
 		
rC   c                      yr  NrB   ru  s     rD   r  zInvoice.send_invoiceZ       	rC   c                      yr  rB   ry  s     rD   r  zInvoice.send_invoicef       	rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   ri  r  r\  rk  rl  r|  ry  s     rD   r  zInvoice.send_invoiceq  P     MM-44'7 5    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   ri  r  rk  rl  Nr  rp  s      rD   _cls_send_invoice_asynczInvoice._cls_send_invoice_async  X      ++-44'0 5   ,  	
 		
r  c                    K   ywr  rB   ru  s     rD   send_invoice_asynczInvoice.send_invoice_async        	r  c                    K   ywr  rB   ry  s     rD   r  zInvoice.send_invoice_async        	r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   ri  r  r\  rk  rl  Nr  ry  s     rD   r  zInvoice.send_invoice_async  `      %%-44'7 5   &  	
 		
r  r  c                 p    t        d| j                  ddj                  t        |            |            S )t
        Updates multiple line items on an invoice. This is only possible when an invoice is still a draft.
        r2   ri  #/v1/invoices/{invoice}/update_linesrk  rl  rm  rp  s      rD   _cls_update_lineszInvoice._cls_update_lines  r  rC   c                      yr$  NrB   ru  s     rD   update_lineszInvoice.update_lines  rw  rC   c                      yr(  rB   ry  s     rD   r)  zInvoice.update_lines  rz  rC   r&  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r$  r2   ri  r%  r\  rk  rl  r|  ry  s     rD   r)  zInvoice.update_lines  r  rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r$  r2   ri  r%  rk  rl  Nr  rp  s      rD   _cls_update_lines_asynczInvoice._cls_update_lines_async  r  r  c                    K   ywr(  rB   ru  s     rD   update_lines_asynczInvoice.update_lines_async  r  r  c                    K   ywr(  rB   ry  s     rD   r/  zInvoice.update_lines_async  r  r  r-  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r$  r2   ri  r%  r\  rk  rl  Nr  ry  s     rD   r/  zInvoice.update_lines_async   r  r  r+  c                 p    t        d| j                  ddj                  t        |            |            S )  
        Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://stripe.com/docs/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.

        Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or <a href="#create_credit_note">credit note](https://stripe.com/docs/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
        r2   ri  /v1/invoices/{invoice}/voidrk  rl  rm  rp  s      rD   _cls_void_invoicezInvoice._cls_void_invoice2  r  rC   c                      yr3  NrB   ru  s     rD   void_invoicezInvoice.void_invoiceF  r  rC   c                      yr7  rB   ry  s     rD   r8  zInvoice.void_invoiceR  r  rC   r5  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r3  r2   ri  r4  r\  rk  rl  r|  ry  s     rD   r8  zInvoice.void_invoice]  r  rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r3  r2   ri  r4  rk  rl  Nr  rp  s      rD   _cls_void_invoice_asynczInvoice._cls_void_invoice_asyncq  r  r  c                    K   ywr7  rB   ru  s     rD   void_invoice_asynczInvoice.void_invoice_async  r  r  c                    K   ywr7  rB   ry  s     rD   r>  zInvoice.void_invoice_async  r   r  r<  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r3  r2   ri  r4  r\  rk  rl  Nr  ry  s     rD   r>  zInvoice.void_invoice_async  r"  r  kwargsr  c                 *     | j                   |ddi|S )  
        Search for invoices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
        Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
        conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
        to an hour behind during outages. Search functionality is not available to merchants in India.
        
search_url/v1/invoices/search)_searchrq  argsrA  s      rD   searchzInvoice.search  s      s{{dM&;MfMMrC   c                 F   K    | j                   |ddi| d{   S 7 w)rC  rD  rE  N)_search_asyncrG  s      rD   search_asynczInvoice.search_async  s:      'S&&/3
,
7=
 
 	
 
s   !!c                 B     | j                   |i |j                         S N)rI  auto_paging_iterrG  s      rD   search_auto_paging_iterzInvoice.search_auto_paging_iter  s#     szz4*6*;;==rC   c                 ^   K    | j                   |i | d {   j                         S 7 wrN  )rL  rO  rG  s      rD   search_auto_paging_iter_asyncz%Invoice.search_auto_paging_iter_async  s/      'c&&777IIKK7s   -+-rn  c                 ~    t        t        d   | j                  ddj                  t	        |            |            S )
        When retrieving an 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~  /v1/invoices/{invoice}/linesrk  rl  )r   r   rn  ro  r   rp  s      rD   
list_lineszInvoice.list_lines  sP     ().55'0 6     	
 		
rC   c                    K   t        t        d   | j                  ddj                  t	        |            |       d{         S 7 w)rT  r$   r~  rU  rk  rl  N)r   r   r  ro  r   rp  s      rD   list_lines_asynczInvoice.list_lines_async  s^      ()++.55'0 6   ,  	
 		
s   >A A	
	A)rb  rc  N)r>   r?   r@   __doc__r4   r   r   rA   r   rS   rX   r]   rh   rt   r   r   r   r  r  rI  rX  rw  r|  r  r  r  r  r  r	   r  r   r  r  r  r  r  r  r  r  r+  r/  r3  r7  r:  r>  r@  rF  rI  rO  rS  rW  r\  ra  rj  rp  rt  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.  r1  r3  r7  r:  r<  r?  rB  rE  rK  rO  rX  r^  ra  rd  rf  ri  rl  rr  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  r  r  r!  r#  r'  r)  r,  r   rQ   r   r   r  rP   r   r   r   classmethodr   rr  r   staticmethodrv  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/  r5  r8  r<  r>  r
   rI  rL  r   rP  r   rR  rV  rX  rR   rB   rC   rD   r2   r2   9   s   !F 1:K'),-9&6| &6P\ l , 4,2< ,2\x xtl  X Xt%
 %
NLN, LN\*L *2;,| ;,z,2, ,2\L $:, :*l , (-B< -B^ 4Y 4lY 9 i < ,I $i $L9 9vH~ HT9 I ) y ) Y i $*) *X9 I i  " 9  4	 (9 
9 
"9 "H9 



i &i Y 49 Bn BH
) 
9 Y <I 4Y I 4	 w) wri F FP y ) 0I Y $d) dL	 8 4
i 


)   

 i  Di y 8

i 0 0d,Y ,\Y i 8

~  . $)^ )VI $I $. x~ xt9 I ) y Y i $*) *X9 I i  " 9  4	 (9 
9 
"9 "H9 



i &i Y 49 N @N 	  ~ $N N 4	 4l	 i  <I ,y $ $L9I 9vN  c]" 3- d?7#;<== O     /-899  O 4.    (- 
	
 
 EFF ""455 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& # OJ/00 sm 3- SM! SM ;'' !% 	 # N%&;<< oi899 '(( N tCH~&& #3-' SM I ?9566 V &%z"2344 O  '*) &)( SM! 	"" L)) //  #3-' WMNOO *)M %SM) 566 //J %T*=%>?? "#& "*$/F*G!HH $x.)) $C=( gdm$$ 

%+,D%E
	
 
"  &'? @	   78	  *+
78
	
 ,
" 

%+,D%E
	
 
"  &'? @	   78	  01
78
	
 2
" 
f%;< 
 
 
 
45
	
 
 
;<
	
 
* 
;<
	
 
* 

!'(>!?
	
 
  "#9:	   v&<= )   -(

56

	

 )

 

!'(>!?
	
 
  "#9:	   56	  -.

56

	

 /

 

%+,K%L
	
 
"  &'F G	   >?	  12
>?
	
 3
" 

%+,K%L
	
 
"  &'F G	   >?	  78
>?
	
 9
" 23	I	 & 23	I	 & 

%+,M%N
	
 
"  &'H I	   @A	  34
@A
	
 5
" 

%+,M%N
	
 
"  &'H I	   @A	  9:
@A
	
 ;
" 

 &'= >
	
 
* 

 &'= >
	
 
* 

%+,?%@
	
 
" S F+>$? I    F#67 I   *%
23
	
 &
" 

%+,?%@
	
 
"  &': ;	   23	  *+
23
	
 ,
" 

%+,G%H
	
 
"  &'B C	   :;	  -.
:;
	
 /
" 

%+,G%H
	
 
"  &'B C	   :;	  34
:;
	
 5
"  &'? @	   &'? @	  

%+,G%H
	
 
&  &'B C	   :;	  -.
:;
	
 /
& 

%+,G%H
	
 
&  &'B C	   :;	  34
:;
	
 5
& 

%+,G%H
	
 
"  &'B C	   :;	  -.
:;
	
 /
" 

%+,G%H
	
 
"  &'B C	   :;	  34
:;
	
 5
" 

%+,G%H
	
 
&  &'B C	   :;	  -.
:;
	
 /
& 

%+,G%H
	
 
&  &'B C	   :;	  34
:;
	
 5
& 	N$%;<	N	I	&	N 	N 
$%;<
	I	&
 
 >$%;<>	)	> >
 L$%;<L	y	!L L
 

%+,E%F
	%	&
 
" 

%+,E%F
	%	&
 
"1 	 	O	
 	- 	M 	 	& 	"#8 	& 	O 	Y 	 	O 	/  	O!" 	!"5#$ (?'rC   r2   N)Ostripe._createable_api_resourcer   stripe._deletable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   %stripe._nested_resource_class_methodsr   stripe._request_optionsr	   stripe._search_result_objectr
   stripe._searchable_api_resourcer   stripe._stripe_objectr   stripe._updateable_api_resourcer   stripe._utilr   r   typingr   r   r   r   r   r   r   r   r   typing_extensionsr   r   r   r   r   stripe._accountr   stripe._applicationr   stripe._bank_accountr    stripe._cardr!   r  stripe._customerr"   stripe._discountr#   stripe._invoice_line_itemr$   stripe._invoice_paymentr%   stripe._payment_intentr&   stripe._payment_methodr'   stripe._setup_intentr(   stripe._shipping_rater)   stripe._sourcer*   stripe._subscriptionr+   stripe._tax_idr,   stripe._tax_rater-   *stripe.billing._credit_balance_transactionr.   stripe.test_helpers._test_clockr/   r2   rB   rC   rD   <module>r|     s    B ? 4 * = O 2 ; A . A :
 
 
  '/01))964402%1$( : v&TW)$#	")$)$TW 'TWrC   