
    `g                       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                   z    e Zd ZU  G d de      Zeed      ed<   	 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        L/var/www/html/Manimaran/venv/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)completefailedrequires_location_inputsstatusN)
r>   r?   r@   r   rE   r   r   rA   bool_inner_class_typesrB   rC   rD   AutomaticTaxr6   f   sw    	 	 "-
 	
	 	 I&&	 DE
 	
	 *95rC   rQ   c                   $    e Zd ZU eed<   	 eed<   y)Invoice.ConfirmationSecretclient_secretr<   Nr>   r?   r@   strrA   rB   rC   rD   ConfirmationSecretrS      s    	 		rC   rW   c                   $    e Zd ZU eed<   	 eed<   y)Invoice.CustomFieldnamevalueNrU   rB   rC   rD   CustomFieldrY          		 
	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   rV   rA   rB   rC   rD   CustomerAddressr_      sf    sm	 #	 }	 }	 c]"	 }	rC   rg   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.Addressr`   ra   rb   rc   rd   re   Nrf   rB   rC   rD   Addressrk      f    3- c]" C=  C=  "#& C= rC   rl   addresscarrierrZ   phonetracking_numberN	r>   r?   r@   r   rl   r   rA   rV   rP   rB   rC   rD   CustomerShippingri      j    	l 	4 '""#	 sm	 }	 "#&	 (1rC   rs   c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)Invoice.CustomerTaxId)ead_nrtae_trnal_tinam_tinao_tinar_cuitau_abnau_arnba_tinbb_tinbg_uicbh_vat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cn_tinco_nitcr_tinde_stndo_rcnec_ruceg_tines_cif
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kh_tinkr_brnkz_bin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   rV   rB   rC   rD   CustomerTaxIdrv      s.    df
 f	
N	 }	rC   r   c                   *    e Zd ZU eed<   	 ed   ed<   y)Invoice.FromInvoiceactionr2   r3   N)r>   r?   r@   rV   rA   r   rB   rC   rD   FromInvoicer   V  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   `  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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   rV   rA   r   r   rB   rC   rD   LastFinalizationErrorr   j  s7   c]"	 	 moq
 q	
d	 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quoteNrU   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   rV   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   rP   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   rP   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   rO   rA   rB   rC   rD   Installmentsr    s    %d^+rC   r  installmentsanyr  	challengerequest_three_d_secureN)	r>   r?   r@   r   r  r   rA   r   rP   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NLra   Nr  rB   rC   rD   EuBankTransferr    s    !()K!LLrC   r  eu_bank_transferr<   N)	r>   r?   r@   r   r  r   rA   rV   rP   rB   rC   rD   BankTransferr    s7      '/~&>>"3-' +=n)M&rC   r  bank_transferfunding_typeN)	r>   r?   r@   r   r  r   rA   r   rP   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   rP   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   rP   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   rP   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  
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   rV   rA   r   r   rP   rB   rC   rD   PaymentSettingsr    sm    R	< R	h "#&	 !))= >>	 '$"&(*
 *	
V	 78LMrC   r<  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   Pdfr@  x  s    (> ?@@rC   rF  amount_tax_displaypdftemplatetemplate_versionN)
r>   r?   r@   r   rF  r   rV   rA   r  rP   rB   rC   rD   	Renderingr>  w  s^    	, 	 %SM)	 c]	 3-	 #3-'	 $S\rC   rK  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   TaxrO    sJ    K O
  ("  & %SM)rC   rd  amount_subtotal
amount_taxamount_totalr)   shipping_ratetaxesN)r>   r?   r@   r   rd  r  rA   r   r   r   rP   rB   rC   rD   ShippingCostrM    sn    $	, $	L 	 	 	   ?@@	 S	""	 &s^rC   rj  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.Addressr`   ra   rb   rc   rd   re   Nrf   rB   rC   rD   rl   rn    rm   rC   rl   rn   ro   rZ   rp   rq   Nrr   rB   rC   rD   ShippingDetailsrl    rt   rC   ro  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   StatusTransitionsrq    sD    sm#	 "*#.	 #	 C= 	rC   rv  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   rV   rA   r  rB   rC   rD   
ItemReasonrz    s    9$ NrC   r}  
amount_gteitem_reasonsN)
r>   r?   r@   r   r}  r   r  rA   r   rP   rB   rC   rD   ThresholdReasonrx    s>    	 	 SM!	 :&&	 -j9rC   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)Invoice.TotalDiscountAmountrP  r#   discountN)r>   r?   r@   r  rA   r   rB   rC   rD   TotalDiscountAmountr  "  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.TotalPretaxCreditAmountrP  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_rateNrU   rB   rC   rD   TaxRateDetailsr  A  s    MrC   r  rP  )	exclusive	inclusivetax_behaviortax_rate_details)rS  not_availablerT  rU  rV  rW  rX  rY  rZ  r[  r\  r]  r^  r_  r`  ra  rb  rc  r<   N)
r>   r?   r@   r   r  r  rA   r   r   rP   rB   rC   rD   TotalTaxr  @  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   rV   rA   rB   rC   rD   AddLinesParamsr  o  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  rP  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   rV   rO   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   rV   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@   rV   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  rZ   tax_codeNr>   r?   r@   r   rV   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.AddLinesParamsLineTaxAmountrP  .Invoice.AddLinesParamsLineTaxAmountTaxRateDatatax_rate_datarR  rb  rc  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  ra   r  display_namer  jurisdictionr`   ra   countydistrictmultiplere   jurisdiction_level
percentagere   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   rV   rA   rO   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  rO   r   rV   r   rB   rC   rD   CreateParamsr  f  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@   rO   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   rV   rA   r   rB   rC   rD   !CreateParamsAutomaticTaxLiabilityz)Invoice.CreateParamsAutomaticTaxLiability  %    S!!	 '((	rC   r&  c                   $    e Zd ZU eed<   	 eed<   y)Invoice.CreateParamsCustomFieldrZ   r[   NrU   rB   rC   rD   CreateParamsCustomFieldr)    r]   rC   r*  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   CreateParamsDiscountr,    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   rV   rB   rC   rD   CreateParamsFromInvoicezInvoice.CreateParamsFromInvoice  s    
##	 	rC   r1  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr%  rB   rC   rD   CreateParamsIssuerzInvoice.CreateParamsIssuer&  r'  rC   r3  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', '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']]r;  Nr>   r?   r@   r   rA   rB   rC   rD   CreateParamsPaymentSettingsz#Invoice.CreateParamsPaymentSettings0  D    $%677	 !,E!
 	
	 * F
 	
	rC   r9  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)r6  zLLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr  zMLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr  zGLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardr  zRLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  zJLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir  zLLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr  zPLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  Nr8  rB   rC   rD   /CreateParamsPaymentSettingsPaymentMethodOptionsz7Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsB      Z
 	
	  [
 	
	 U
 	
	 &`
 	
	 X
 	
	  Z
 	
	 %^
 	
	rC   r<  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   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr?  n  4    $\
 	
	 );<
 	
	rC   rB  c                   $    e Zd ZU eed      ed<   y)r@  r  r  Nr>   r?   r@   r   r   rA   rB   rC   rD   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszNInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions|       &g.D&EFF	rC   rF  c                   $    e Zd ZU eed      ed<   y)AInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr  r  NrE  rB   rC   rD   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontactrI        '0F(GHH	rC   rJ  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y);Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  r  r  NrA  rB   rC   rD   3CreateParamsPaymentSettingsPaymentMethodOptionsCardrM    4    !U
 	
	
 !,34!
 	
	rC   rO  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rN  rI   zWLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanplanNr>   r?   r@   r   rO   rA   rB   rC   rD   ?CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszGInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments  +     T""	 e
 	
	rC   rT  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   CCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanrW    =     3	 gg.//	 m$$	rC   r]  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   rV   rB   rC   rD   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer`    +     #`
 	
	 "#&&	rC   rc  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)ra  `Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr  r<   Nrb  rB   rC   rD   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzRInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer  +     &n
 	
	 #	rC   rg  c                       e Zd ZU eed<   y)rf  ra   NrU   rB   rC   rD   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferz`Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer       	rC   rj  c                       e Zd Zy)>Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr  rB   rC   rD   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbinirm        rC   rn  c                       e Zd Zy)@Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr  rB   rC   rD   8CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitrq    ro  rC   rr  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)DInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  r  r  NrA  rB   rC   rD   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountrt    6      +f 
 	
	 );<
 	
	rC   rv  c                   Z    e Zd ZU ed   ed<   	 eeed         ed<   	 eeed         ed<   y)ru  _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)ry  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']rG   Invoice.CreateParamsRenderingPdfrH  rI  Literal['']|intrJ  Nrb  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  rA  rE  NrE  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  rh  0Invoice.CreateParamsShippingCostShippingRateDatashipping_rate_dataNr  rB   rC   rD   CreateParamsShippingCostz Invoice.CreateParamsShippingCost4  )    "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   rV   r   r   rB   rC   rD   (CreateParamsShippingCostShippingRateDataz0Invoice.CreateParamsShippingCostShippingRateData@      &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minimumNr8  rB   rC   rD   8CreateParamsShippingCostShippingRateDataDeliveryEstimatez@Invoice.CreateParamsShippingCostShippingRateDataDeliveryEstimated  .    U
 	
	 U
 	
	rC   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  business_daydayhourrY  weekunitr[   Nr>   r?   r@   r   rA   r  rB   rC   rD   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximumzGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximumr  !     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  rP  r  JInvoice.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionscurrency_optionsNr>   r?   r@   r  rA   rV   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  rP  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.CreateParamsShippingDetailsAddressrn   rZ   r5  rp   Nr>   r?   r@   rA   rV   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  r`   ra   rb   rc   rd   re   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  rP  destinationNr>   r?   r@   r   r  rA   rV   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  r5  r  )next	recurringpreview_modeschedule*Invoice.CreatePreviewParamsScheduleDetailsschedule_detailsr  .Invoice.CreatePreviewParamsSubscriptionDetailsr  N)r>   r?   r@   r   rA   rV   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.CreatePreviewParamsAutomaticTax!  s#    	 >
 	
	rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr%  rB   rC   rD   (CreatePreviewParamsAutomaticTaxLiabilityz0Invoice.CreatePreviewParamsAutomaticTaxLiability-  r'  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.CreatePreviewParamsCustomerDetailsAddressrn   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.CreatePreviewParamsCustomerDetails7  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.CreatePreviewParamsCustomerDetailsAddressr`   ra   rb   rc   rd   re   Nr  rB   rC   rD   )CreatePreviewParamsCustomerDetailsAddressr  U  r  rC   r  c                   6    e Zd ZU ded<   	 eed<   	 ee   ed<   y)2Invoice.CreatePreviewParamsCustomerDetailsShipping9Invoice.CreatePreviewParamsCustomerDetailsShippingAddressrn   rZ   rp   Nr  rB   rC   rD   *CreatePreviewParamsCustomerDetailsShippingr  o  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  r`   ra   rb   rc   rd   re   Nr  rB   rC   rD   1CreatePreviewParamsCustomerDetailsShippingAddressz9Invoice.CreatePreviewParamsCustomerDetailsShippingAddress}  r  rC   r  c                       e Zd ZU ed   ed<   y)r  r5  
ip_addressNr8  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  )drw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r<   r[   Nr0  rB   rC   rD   'CreatePreviewParamsCustomerDetailsTaxIdz/Invoice.CreatePreviewParamsCustomerDetailsTaxId  s)    ce
 e	
L	 
	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  rP  r  r  r  z@Literal['']|List[Invoice.CreatePreviewParamsInvoiceItemDiscount]r  invoiceitemr  r  ,Invoice.CreatePreviewParamsInvoiceItemPeriodr  r  /Invoice.CreatePreviewParamsInvoiceItemPriceDatar  r  r  r  r5  r  r  r  r  r  N)	r>   r?   r@   r   r  rA   rV   rO   r   rB   rC   rD   CreatePreviewParamsInvoiceItemz&Invoice.CreatePreviewParamsInvoiceItem	  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  b	  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.CreatePreviewParamsInvoiceItemPeriodp	  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.CreatePreviewParamsInvoiceItemPriceDataz	  sY    	 	 ";<
 	
	 !%%	 )--	rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr%  rB   rC   rD   CreatePreviewParamsIssuerz!Invoice.CreatePreviewParamsIssuer	  r'  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  r5  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   rV   r  r   rO   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   rV   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.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount0
  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.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData@
  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.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxZ
  s#    	 R
 	
	rC   r$  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r#  r9   r:   r<   Nr%  rB   rC   rD   <CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiabilityzDInvoice.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiabilityf
  '     S!!	 '((	rC   r&  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   /CreatePreviewParamsScheduleDetailsPhaseDiscountr)  r
  r  rC   r*  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)r,  r9   r:   r<   Nr%  rB   rC   rD   <CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerzDInvoice.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuer
  r'  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  rR  r  <Invoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceDatar  r  r  r  N)r>   r?   r@   r   rA   r   rV   r  rB   rC   rD   +CreatePreviewParamsScheduleDetailsPhaseItemz3Invoice.CreatePreviewParamsScheduleDetailsPhaseItem
  s    [
 	
	 d38n--	 #	 3	  J
 	
	 c""	 677	rC   r2  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   3CreatePreviewParamsScheduleDetailsPhaseItemDiscountr4  
  r  rC   r5  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	)
r1  r  r  EInvoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurringr  r  r  r  r  Nr  rB   rC   rD   4CreatePreviewParamsScheduleDetailsPhaseItemPriceDataz<Invoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceData
  sg    	 	 [Z	 ";<
 	
	 !%%	 )--	rC   r8  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r7  r  rY  r  yearrZ  interval_countNr>   r?   r@   r   rA   r   r  rB   rC   rD   =CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurringzEInvoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurring
  '     899	 $C((	rC   r>  c                   *    e Zd ZU ee   ed<   	 eed<   y)r  amount_percentr  N)r>   r?   r@   r   r  rA   rV   rB   rC   rD   3CreatePreviewParamsScheduleDetailsPhaseTransferDataz;Invoice.CreatePreviewParamsScheduleDetailsPhaseTransferData
  s    #E**	 	rC   rB  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   rO   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   rK  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)rG  clear_usagedeletedzLLiteral['']|List[Invoice.CreatePreviewParamsSubscriptionDetailsItemDiscount]r  idr  r  rR  r  ;Invoice.CreatePreviewParamsSubscriptionDetailsItemPriceDatar  r  r  r  N)r>   r?   r@   r   rO   rA   rV   r  rB   rC   rD   *CreatePreviewParamsSubscriptionDetailsItemz2Invoice.CreatePreviewParamsSubscriptionDetailsItem0  s     &&	 T""	 Z
 	
	 	 :;;	 #	 3	  I
 	
	 c""	 677	rC   rQ  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   2CreatePreviewParamsSubscriptionDetailsItemDiscountrS  ^  r  rC   rT  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	)
rP  r  r  DInvoice.CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringr  r  r  r  r  Nr  rB   rC   rD   3CreatePreviewParamsSubscriptionDetailsItemPriceDataz;Invoice.CreatePreviewParamsSubscriptionDetailsItemPriceDatal  sg    	 	 ZY	 ";<
 	
	 !%%	 )--	rC   rW  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)rV  r:  rZ  r<  Nr=  rB   rC   rD   <CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringzDInvoice.CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring  r?  rC   rY  c                       e Zd Zy)Invoice.DeleteParamsNr  rB   rC   rD   DeleteParamsr[    ro  rC   r\  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   rO   rA   r   rV   rB   rC   rD   FinalizeInvoiceParamsr^    s(    !$''	 DI&&	rC   r_  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   rV   rA   r   r  rB   rC   rD   ListLinesParamsra    sL    "3''	 DI&&	 3	 $C((	rC   re  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  rb  r  rc  rd  draftopenpaiduncollectiblevoidrN   r  N)	r>   r?   r@   r   r   rA   rV   r   r  rB   rC   rD   
ListParamsrg    s    &:;
 	
	 <==	 c""	 =>>"3''	 DI&&	 3	 $C((	 DE
 	
	 "#&&	rC   ro  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   ListParamsCreatedrq    H    	 	 	 	rC   rw  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.ListParamsDueDaterr  rs  rt  ru  Nrv  rB   rC   rD   ListParamsDueDaterz    rx  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  r5  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  r#  rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r9   r:   r<   Nr%  rB   rC   rD   !ModifyParamsAutomaticTaxLiabilityz)Invoice.ModifyParamsAutomaticTaxLiability  r'  rC   r  c                   $    e Zd ZU eed<   	 eed<   y)Invoice.ModifyParamsCustomFieldrZ   r[   NrU   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<   Nr%  rB   rC   rD   ModifyParamsIssuerzInvoice.ModifyParamsIssuer  r'  rC   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  r5  r  7Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsr  r7  r;  Nr8  rB   rC   rD   ModifyParamsPaymentSettingsz#Invoice.ModifyParamsPaymentSettings  r:  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  Nr8  rB   rC   rD   /ModifyParamsPaymentSettingsPaymentMethodOptionsz7Invoice.ModifyParamsPaymentSettingsPaymentMethodOptions  r=  rC   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)@Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr  r  r  NrA  rB   rC   rD   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr    rC  rC   r  c                   $    e Zd ZU eed      ed<   y)r  r  r  NrE  rB   rC   rD   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionszNInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions  rG  rC   r  c                   $    e Zd ZU eed      ed<   y)AInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  r  NrE  rB   rC   rD   9ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr    rK  rC   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y);Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  r  r  NrA  rB   rC   rD   3ModifyParamsPaymentSettingsPaymentMethodOptionsCardr    rP  rC   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  rI   zWLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanrR  NrS  rB   rC   rD   ?ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentszGInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments"  rU  rC   r  c                   H    e Zd ZU ee   ed<   	 eed      ed<   	 ed   ed<   y)KInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanrX  rY  rZ  r[  r<   Nr\  rB   rC   rD   CModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr  1  r^  rC   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)FInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr  r  Nrb  rB   rC   rD   >ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  B  rd  rC   r  c                   0    e Zd ZU ed   ed<   	 ee   ed<   y)r  `Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr  r<   Nrb  rB   rC   rD   JModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferzRInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferP  rh  rC   r  c                       e Zd ZU eed<   y)r  ra   NrU   rB   rC   rD   XModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferz`Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer^  rk  rC   r  c                       e Zd Zy)>Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbiniNr  rB   rC   rD   6ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir  f  ro  rC   r  c                       e Zd Zy)@Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr  rB   rC   rD   8ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr  i  ro  rC   r  c                   6    e Zd ZU ed   ed<   	 eed      ed<   y)DInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  r  r  NrA  rB   rC   rD   <ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  l  rw  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  Nrz  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  rG   Invoice.ModifyParamsRenderingPdfrH  rI  r  rJ  Nrb  rB   rC   rD   ModifyParamsRenderingzInvoice.ModifyParamsRendering  r  rC   r  c                   $    e Zd ZU eed      ed<   y)r  rA  rE  NrE  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.ModifyParamsShippingCostrh  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  Nr8  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  rP  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  rP  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.ModifyParamsShippingDetailsAddressrn   rZ   r5  rp   Nr  rB   rC   rD   ModifyParamsShippingDetailsr  3  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  r`   ra   rb   rc   rd   re   Nr  rB   rC   rD   "ModifyParamsShippingDetailsAddressz*Invoice.ModifyParamsShippingDetailsAddressA  r  rC   r  c                   *    e Zd ZU ee   ed<   	 eed<   y) Invoice.ModifyParamsTransferDatarP  r  Nr  rB   rC   rD   ModifyParamsTransferDatar  [  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  forgiver5  mandateoff_sessionpaid_out_of_bandr  r  N)r>   r?   r@   r   r   rV   rA   rO   rB   rC   rD   	PayParamsr  e  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behaviorrO  Nr0  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  rc  pagequeryN)r>   r?   r@   r   r   rV   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  rP  r  r  z7Literal['']|List[Invoice.UpdateLinesParamsLineDiscount]r  rO  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.UpdateLinesParamsLinePriceData  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  rZ   r  Nr  rB   rC   rD   )UpdateLinesParamsLinePriceDataProductDataz1Invoice.UpdateLinesParamsLinePriceDataProductData5  r  rC   r  c                       e Zd ZU ee   ed<   y)r	  r  Nr  rB   rC   rD   UpdateLinesParamsLinePricingz$Invoice.UpdateLinesParamsLinePricingK  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.UpdateLinesParamsLineTaxAmountrP  1Invoice.UpdateLinesParamsLineTaxAmountTaxRateDatar  rR  rb  rc  Nr  rB   rC   rD   UpdateLinesParamsLineTaxAmountr  Q  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  ra   r  r  r  r  r  r  r  re   r  r  Nr  rB   rC   rD   )UpdateLinesParamsLineTaxAmountTaxRateDataz1Invoice.UpdateLinesParamsLineTaxAmountTaxRateDataw  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_secretrh  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_urlrO  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  ri  rN   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_atTrN  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   rX  r   _static_requestformatr   clsr3   rX  s      rD   _cls_add_lineszInvoice._cls_add_lines  sJ     299'0 :     	
 		
rC   c                      yr[  NrB   r3   rX  s     rD   	add_lineszInvoice.add_lines       	rC   c                      yrg  rB   r;   rX  s     rD   ri  zInvoice.add_lines       	rC   re  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r[  r2   r\  r]  rO  r^  r_  r   _requestrb  r   getrl  s     rD   ri  zInvoice.add_lines  sP     MM299'7 :    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r[  r2   r\  r]  r^  r_  Nr   _static_request_asyncrb  r   rc  s      rD   _cls_add_lines_asynczInvoice._cls_add_lines_async-  sX      ++299'0 :   ,  	
 		
   7AA
	Ac                    K   ywrg  rB   rh  s     rD   add_lines_asynczInvoice.add_lines_async?        	   c                    K   ywrg  rB   rl  s     rD   rx  zInvoice.add_lines_asyncI        	rz  ru  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r[  r2   r\  r]  rO  r^  r_  Nr   _request_asyncrb  r   rq  rl  s     rD   rx  zInvoice.add_lines_asyncR  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   r\  r_  )r   ra  	class_urlrd  rX  s     rD   createzInvoice.created  s6    
    
 	
rC   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)r  r2   r\  r_  N)r   rt  r  r  s     rD   create_asynczInvoice.create_asyncr  sD      ++ ,  
 	
s   ,97
	9r  c                 >    t        d| j                  dd|            S )  
        At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.

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

        You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass 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   r\  /v1/invoices/create_previewr_  )r   ra  r  s     rD   create_previewzInvoice.create_preview  s0     -   
 	
rC   c                 Z   K   t        d| j                  dd|       d{         S 7 w)r  r2   r\  r  r_  N)r   rt  r  s     rD   create_preview_asynczInvoice.create_preview_async  s>      ++- ,  
 	
s   +)
	+sidr[  c                 z    | j                         dt        |      }t        d| j                  d||            S )*  
        Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://stripe.com/docs/api#void_invoice).
        /r2   r  r_  r  r   r   ra  rd  r  rX  urls       rD   _cls_deletezInvoice._cls_delete  sE     +c*:;   
 	
rC   c                      yr  NrB   r  rX  s     rD   r  zInvoice.delete  rj  rC   c                      yr  rB   rl  s     rD   r  zInvoice.delete      
 	rC   r  c                 F    | j                  d| j                         |      S )r  r  r_  )_request_and_refreshinstance_urlrl  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  r_  Nr  r   r   rt  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  ry  rz  c                    K   ywr  rB   rl  s     rD   r  zInvoice.delete_async  r|  rz  r  c                 b   K   | j                  d| j                         |       d{   S 7 w)r  r  r_  N)_request_and_refresh_asyncr  rl  s     rD   r  zInvoice.delete_async  s<      44 5 
 
 	
 
s   &/-/r^  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   r\  /v1/invoices/{invoice}/finalizer^  r_  r`  rc  s      rD   _cls_finalize_invoicezInvoice._cls_finalize_invoice  sJ     188'0 9     	
 		
rC   c                      yr  NrB   rh  s     rD   finalize_invoicezInvoice.finalize_invoice   rj  rC   c                      yr  rB   rl  s     rD   r  zInvoice.finalize_invoice*  rm  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   r\  r  rO  r^  r_  ro  rl  s     rD   r  zInvoice.finalize_invoice3  sP     MM188'7 9    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   r\  r  r^  r_  Nrs  rc  s      rD   _cls_finalize_invoice_asyncz#Invoice._cls_finalize_invoice_asyncE  sX      ++188'0 9   ,  	
 		
rv  c                    K   ywr  rB   rh  s     rD   finalize_invoice_asynczInvoice.finalize_invoice_asyncW  ry  rz  c                    K   ywr  rB   rl  s     rD   r  zInvoice.finalize_invoice_asynca  r|  rz  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   r\  r  rO  r^  r_  Nr~  rl  s     rD   r  zInvoice.finalize_invoice_asyncj  s`      %%188'7 9   &  	
 		
r  rg  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.
        rq  r_  %Expected list object from API, got %s)ra  r  
isinstancer   	TypeErrorr<   r>   rd  rX  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  rq  r_  Nr  )rt  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   r\  )/v1/invoices/{invoice}/mark_uncollectibler^  r_  r`  rc  s      rD   _cls_mark_uncollectiblezInvoice._cls_mark_uncollectible  sK     ;BB'0 C     	
 		
rC   c                      yr  NrB   rh  s     rD   mark_uncollectiblezInvoice.mark_uncollectible  rj  rC   c                      yr  rB   rl  s     rD   r  zInvoice.mark_uncollectible  rm  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   r\  r  rO  r^  r_  ro  rl  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   r\  r  r^  r_  Nrs  rc  s      rD   _cls_mark_uncollectible_asyncz%Invoice._cls_mark_uncollectible_async  sY      ++;BB'0 C   ,  	
 		
rv  c                    K   ywr  rB   rh  s     rD   mark_uncollectible_asyncz Invoice.mark_uncollectible_async  ry  rz  c                    K   ywr  rB   rl  s     rD   r  z Invoice.mark_uncollectible_async  r|  rz  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   r\  r  rO  r^  r_  Nr~  rl  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   r\  r_  r  rd  rO  rX  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   r\  r_  Nr  r  s       rD   modify_asynczInvoice.modify_async(  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   r\  /v1/invoices/{invoice}/payr^  r_  r`  rc  s      rD   _cls_payzInvoice._cls_pay>  sJ     ,33'0 4     	
 		
rC   c                      yr  NrB   rh  s     rD   payzInvoice.payP  s     	rC   c                      yr  rB   rl  s     rD   r  zInvoice.payX  r  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   r\  r  rO  r^  r_  ro  rl  s     rD   r  zInvoice.pay_  sP     MM,33'7 4    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   r\  r  r^  r_  Nrs  rc  s      rD   _cls_pay_asynczInvoice._cls_pay_asyncq  sX      ++,33'0 4   ,  	
 		
rv  c                    K   ywr  rB   rh  s     rD   	pay_asynczInvoice.pay_async  ry  rz  c                    K   ywr  rB   rl  s     rD   r  zInvoice.pay_async  r|  rz  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   r\  r  rO  r^  r_  Nr~  rl  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   r\  #/v1/invoices/{invoice}/remove_linesr^  r_  r`  rc  s      rD   _cls_remove_lineszInvoice._cls_remove_lines  J     5<<'0 =     	
 		
rC   c                      yr  NrB   rh  s     rD   remove_lineszInvoice.remove_lines  rj  rC   c                      yr  rB   rl  s     rD   r  zInvoice.remove_lines  rm  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   r\  r  rO  r^  r_  ro  rl  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   r\  r  r^  r_  Nrs  rc  s      rD   _cls_remove_lines_asynczInvoice._cls_remove_lines_async  X      ++5<<'0 =   ,  	
 		
rv  c                    K   ywr  rB   rh  s     rD   remove_lines_asynczInvoice.remove_lines_async  ry  rz  c                    K   ywr  rB   rl  s     rD   r  zInvoice.remove_lines_async  r|  rz  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   r\  r  rO  r^  r_  Nr~  rl  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rd  rO  rX  instances       rD   retrievezInvoice.retrieve  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   r\  /v1/invoices/{invoice}/sendr^  r_  r`  rc  s      rD   _cls_send_invoicezInvoice._cls_send_invoice,  J     -44'0 5     	
 		
rC   c                      yr  NrB   rh  s     rD   r  zInvoice.send_invoice@       	rC   c                      yr  rB   rl  s     rD   r  zInvoice.send_invoiceL       	rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   r\  r  rO  r^  r_  ro  rl  s     rD   r  zInvoice.send_invoiceW  P     MM-44'7 5    	
 		
rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   r\  r  r^  r_  Nrs  rc  s      rD   _cls_send_invoice_asynczInvoice._cls_send_invoice_asynck  X      ++-44'0 5   ,  	
 		
rv  c                    K   ywr  rB   rh  s     rD   send_invoice_asynczInvoice.send_invoice_async        	rz  c                    K   ywr  rB   rl  s     rD   r  zInvoice.send_invoice_async        	rz  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   r\  r  rO  r^  r_  Nr~  rl  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   r\  #/v1/invoices/{invoice}/update_linesr^  r_  r`  rc  s      rD   _cls_update_lineszInvoice._cls_update_lines  r  rC   c                      yr  NrB   rh  s     rD   update_lineszInvoice.update_lines  rj  rC   c                      yr  rB   rl  s     rD   r  zInvoice.update_lines  rm  rC   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r2   r\  r  rO  r^  r_  ro  rl  s     rD   r  zInvoice.update_lines  r  rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r2   r\  r  r^  r_  Nrs  rc  s      rD   _cls_update_lines_asynczInvoice._cls_update_lines_async  r  rv  c                    K   ywr  rB   rh  s     rD   update_lines_asynczInvoice.update_lines_async  ry  rz  c                    K   ywr  rB   rl  s     rD   r"  zInvoice.update_lines_async  r|  rz  r   c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r2   r\  r  rO  r^  r_  Nr~  rl  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   r\  /v1/invoices/{invoice}/voidr^  r_  r`  rc  s      rD   _cls_void_invoicezInvoice._cls_void_invoice  r  rC   c                      yr&  NrB   rh  s     rD   void_invoicezInvoice.void_invoice,  r  rC   c                      yr*  rB   rl  s     rD   r+  zInvoice.void_invoice8  r	  rC   r(  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r&  r2   r\  r'  rO  r^  r_  ro  rl  s     rD   r+  zInvoice.void_invoiceC  r  rC   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r&  r2   r\  r'  r^  r_  Nrs  rc  s      rD   _cls_void_invoice_asynczInvoice._cls_void_invoice_asyncW  r  rv  c                    K   ywr*  rB   rh  s     rD   void_invoice_asynczInvoice.void_invoice_asynck  r  rz  c                    K   ywr*  rB   rl  s     rD   r1  zInvoice.void_invoice_asyncw  r  rz  r/  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r&  r2   r\  r'  rO  r^  r_  Nr~  rl  s     rD   r1  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rd  argsr4  s      rD   searchzInvoice.search  s      s{{dM&;MfMMrC   c                 F   K    | j                   |ddi| d{   S 7 w)r6  r7  r8  N)_search_asyncr:  s      rD   search_asynczInvoice.search_async  s:      'S&&/3
,
7=
 
 	
 
s   !!c                 B     | j                   |i |j                         S N)r<  auto_paging_iterr:  s      rD   search_auto_paging_iterzInvoice.search_auto_paging_iter  s#     szz4*6*;;==rC   c                 ^   K    | j                   |i | d {   j                         S 7 wrA  )r?  rB  r:  s      rD   search_auto_paging_iter_asyncz%Invoice.search_auto_paging_iter_async  s/      'c&&777IIKK7s   -+-ra  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$   rq  /v1/invoices/{invoice}/linesr^  r_  )r   r   ra  rb  r   rc  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)rG  r$   rq  rH  r^  r_  N)r   r   rt  rb  r   rc  s      rD   list_lines_asynczInvoice.list_lines_async  s^      ()++.55'0 6   ,  	
 		
s   >A A	
	A)rU  rV  N)r>   r?   r@   __doc__r4   r   r   rA   r   rQ   rW   r\   rg   rs   r   r   r   r  r  r<  rK  rj  ro  rv  r  r  r  r  r	   r  r   r  r  r  r  r  r  r  r  r  r"  r&  r*  r-  r1  r3  r9  r<  rB  rF  rJ  rO  rT  r]  rc  rg  rj  rn  rr  rv  r{  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r!  r$  r&  r*  r-  r/  r2  r5  r8  r>  rB  rK  rQ  rT  rW  rY  r\  r_  re  ro  rw  r{  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r
  r  r  r  r  r  r  r  r  r   rV   r   r   r  rO   r   r   r   classmethodr   re  r   staticmethodri  r   ru  rx  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  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  r
   r<  r?  r   rC  r   rE  rI  rK  rP   rB   rC   rD   r2   r2   9   s   !F 1:K'),-9"6| "6H\ l , 4,2< ,2\n n`l  W Wr%
 %
NKN, KNZ*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	 m) m^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>ro     s    B ? 4 * = O 2 ; A . A :
 
 
  '/01))964402%1$( : v&zV)$#	")$)$zV 'zVrC   