o
    Bi                 
   @   s  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(rd 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# d#ed# ed# e	d# ed# ed# ZNd$S )%    )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)Charge)Customer)Discount)InvoiceLineItem)PaymentIntent)PaymentMethod)Quote)SetupIntent)ShippingRate)Source)Subscription)TaxId)TaxRate)	TestClocklinec                   @   s)  e Zd ZU dZdZeed  ed< G dd deZ	G dd deZ
G dd	 d	eZG d
d deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZG d"d# d#eZG d$d% d%eZG d&d' d'eZG d(d) d)eZG d*d+ d+eZG d,d- d-eZG d.d/ d/eZ G d0d1 d1eZ!G d2d3 d3eZ"G d4d5 d5eZ#G d6d7 d7eZ$G d8d9 d9eZ%G d:d; d;eZ&G d<d= d=eZ'G d>d? d?eZ(G d@dA dAeZ)G dBdC dCeZ*G dDdE dEeZ+G dFdG dGeZ,G dHdI dIeZ-G dJdK dKeZ.G dLdM dMeZ/G dNdO dOeZ0G dPdQ dQeZ1G dRdS dSeZ2G dTdU dUeZ3G dVdW dWeZ4G dXdY dYeZ5G dZd[ d[eZ6G d\d] d]eZ7G d^d_ d_eZ8G d`da daeZ9G dbdc dceZ:G ddde deeZ;G dfdg dgeZ<G dhdi dieZ=G djdk dkeZ>G dldm dmeZ?G dndo doeZ@G dpdq dqeZAG drds dseZBG dtdu dueZCG dvdw dweZDG dxdy dyeZEG dzd{ d{eZFG d|d} d}eZGG d~d deZHG dd deZIG dd deZJG dd deZKG dd deZLG dd deZMG dd deZNG dd deZOG dd deZPG dd deZQG dd deZRG dd deZSG dd deZTG dd deZUG dd deZVG dd deZWG dd deZXG dd deZYG dd deZZG dd deZ[G dd deZ\G dd deZ]G dd deZ^G dd deZ_G dd deZ`G dd deZaG dd deZbG dd deZcG dd deZdG dd deZeG dd deZfG dd deZgG dd deZhG dd deZiG ddÄ deZjG ddń deZkG ddǄ deZlG ddɄ deZmG dd˄ deZnG dd̈́ deZoG ddτ deZpG ddф deZqG ddӄ deZrG ddՄ deZsG ddׄ deZtG ddل deZuG ddۄ deZvG dd݄ deZwG dd߄ deZxG dd deZyG dd deZzG dd deZ{G dd deZ|G dd deZ}G dd deZ~G dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d deZG dd deZG dd deZG dd deZG dd	 d	eZG d
d deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZG d"d# d#eZG d$d% d%eZG d&d' d'eZG d(d) d)eZG d*d+ d+eZG d,d- d-eZG d.d/ d/eZG d0d1 d1eZG d2d3 d3eZG d4d5 d5eZG d6d7 d7eZG d8d9 d9eZG d:d; d;eZG d<d= d=eZG d>d? d?eZG d@dA dAeZG dBdC dCeZG dDdE dEeZG dFdG dGeZG dHdI dIeZG dJdK dKeZG dLdM dMeZG dNdO dOeZG dPdQ dQeZG dRdS dSeZG dTdU dUeZG dVdW dWeZG dXdY dYeZG dZd[ d[eZG d\d] d]eZG d^d_ d_eZG d`da daeZG dbdc dceZG ddde deeZG dfdg dgeZG dhdi dieZG djdk dkeZG dldm dmeZG dndo doeZG dpdq dqeZG drds dseZG dtdu dueZG dvdw dweZG dxdy dyeZG dzd{ d{eZG d|d} d}eZG d~d deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG ddÄ deZG dĐdń deZG dƐdǄ deZG dȐdɄ deZG dʐd˄ deZG d̐d̈́ deZG dΐdτ deZG dАdф deZG dҐdӄ deZG dԐdՄ deZG d֐dׄ deZG dؐdل deZG dڐdۄ deZG dܐd݄ deZG dސd߄ deZG dd deZG dd deZG dd deZee ed< 	 ee ed< 	 eeed   ed< 	 e ed< 	 e ed< 	 e ed< 	 e ed< 	 eed  ed< 	 ee  ed< 	 e ed< 	 eed< 	 ee ed< 	 e	ed< ee  ed< 	 eed  ed< 	 eed  ed< 	 ed ed< 	 e ed< 	 eed< 	 eee
  ed< 	 eed  ed < 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 eed  ed< 	 eee  ed< 	 eed	  ed
< 	 eeed   ed< 	 ed ed< 	 ee ed< 	 ed ed< 	 eed  ed< 	 ee  ed< 	 ee  ed< 	 ee  ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 eed< ee ed< 	 eed   ed< 	 ed ed< 	 eed < 	 eeeef  ed!< 	 ee  ed"< 	 ee ed#< 	 ed ed$< 	 eed%  ed&< 	 eed'< 	 eed(< 	 eed)  ed*< 	 eed+< e ed,< 	 e ed-< 	 e ed.< 	 e ed/< 	 eed0  ed1< 	 ee ed2< 	 ee ed3< 	 ee ed4< 	 ee ed5< 	 e ed6< 	 ee ed7< 	 eed8  ed9< 	 eed:< eed;  ed<< 	 ee ed=< 	 ee  ed>< 	 e ed?< 	 ee  ed@< 	 ee  edA< 	 eedB  edC< 	 ee edD< e edE< 	 eee  edF< 	 ee  edG< 	 ee edH< 	 ee edI< 	 ee  edJ< 	 eedK  edL< 	 ededMedN dOd fdPdQZee	dedMedN dOd fdRdSZ
edMedN dOd fdTdSZ
edUdMedN dOd fdVdSZ
ededMedN dOd fdWdXZee	dedMedN dOd fdYdZZedMedN dOd fd[dZZed\dMedN dOd fd]dZZedMed^ dOd fd_d`ZedMed^ dOd fdadbZedMedc dOd fdddeZedMedc dOd fdfdgZedhedMedi dOd fdjdkZee	dhedMedi dOd fdldmZedMedi dOd fdndmZedodMedi dOd fdpdmZedhedMedi dOd fdqdrZee	dhedMedi dOd fdsdtZedMedi dOd fdudtZedvdMedi dOd fdwdtZededMedx dOd fdydzZee	dedMedx dOd fd{d|ZedMedx dOd fd}d|Zed~dMedx dOd fdd|ZededMedx dOd fddZee	dedMedx dOd fddZedMedx dOd fddZeddMedx dOd fddZedMed dOed  fddZedMed dOed  fddZededMed dOd fddZee	dedMed dOd fddZedMed dOd fddZeddMed dOd fddZededMed dOd fddZee	dedMed dOd fddZedMed dOd fddZeddMed dOd fddZededMed dOd fddZ ededMed dOd fddZ!ededMed dOd fddZ"ee	dedMed dOd fddZ#edMed dOd fddZ#eddMed dOd fddZ#ededMed dOd fddZ$ee	dedMed dOd fddZ%edMed dOd fddZ%eddMed dOd fddZ%ededMed dOd fddZ&ee	dedMed dOd fddZ'edMed dOd fddZ'eddMed dOd fddZ'ededMed dOd fddZ(ee	dedMed dOd fddZ)edMed dOd fddZ)eddMed dOd fddZ)ededMed dOd fddZ*ededMed dOd fddZ+ededMed dOd fdĐdńZ,ee	dedMed dOd fdƐdǄZ-edMed dOd fdȐdǄZ-edɃdMed dOd fdʐdǄZ-ededMed dOd fdːd̄Z.ee	dedMed dOd fd͐d΄Z/edMed dOd fdϐd΄Z/edЃdMed dOd fdѐd΄Z/edMed dOd fdӐdԄZ0edMed dOd fdՐdքZ1edMed dOed fdؐdلZ2edMed dOed fdڐdۄZ3ededMed dOd fdݐdބZ4ee	dedMed dOd fdߐdZ5edMed dOd fddZ5eddMed dOd fddZ5ededMed dOd fddZ6ee	dedMed dOd fddZ7edMed dOd fddZ7eddMed dOd fddZ7ededMed dOd fddZ8ee	dedMed dOd fddZ9edMed dOd fddZ9eddMed dOd fddZ9ededMed dOd fddZ:ee	dedMed dOd fddZ;edMed dOd fddZ;eddMed dOd fddZ;eded dOe<d  fddZ=eded dOe<d  fddZ>eded dOe?d  fd dZ@eded dOeAd  fddZBededMed dOed fddZCededMed dOed fddZDi de	de
dedededededed+ed3ed4ed5ed:ed=edDedFedHedIeiZEd	S (
  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                   @   sP   e Zd ZU G dd deZeed< 	 ee ed< 	 eed  ed< 	 deiZ	dS )zInvoice.AutomaticTaxc                   @   ,   e Zd ZU eed  ed< 	 ed ed< dS )zInvoice.AutomaticTax.Liabilityr   accountr4   selftypeN__name__
__module____qualname__r   r   __annotations__r    r=   r=   O/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_invoice.py	Liabilitye   
   
 r?   enabled	liability)completefailedrequires_location_inputsstatusN)
r9   r:   r;   r   r?   boolr<   r   r   _inner_class_typesr=   r=   r=   r>   AutomaticTaxd   s   
 
rI   c                   @       e Zd ZU eed< 	 eed< dS )zInvoice.CustomFieldnamevalueNr9   r:   r;   strr<   r=   r=   r=   r>   CustomField   
   
 rO   c                   @   `   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< dS )zInvoice.CustomerAddresscitycountryline1line2postal_codestateNr9   r:   r;   r   rN   r<   r=   r=   r=   r>   CustomerAddress      
 rY   c                   @   j   e Zd ZU G d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dS )	zInvoice.CustomerShippingc                   @   rQ   )z Invoice.CustomerShipping.AddressrR   rS   rT   rU   rV   rW   NrX   r=   r=   r=   r>   Address   rZ   r\   addresscarrierrK   phonetracking_numberN	r9   r:   r;   r   r\   r   r<   rN   rH   r=   r=   r=   r>   CustomerShipping      
 rb   c                   @   (   e Zd ZU ed ed< 	 ee ed< dS )zInvoice.CustomerTaxId)Kad_nrtae_trnar_cuitau_abnau_arnbg_uicbh_vatbo_tinbr_cnpjbr_cpfca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qst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hk_brhr_oibhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkr_brnkz_binli_uidmx_rfcmy_frpmy_itnmy_sstng_tinno_vatno_voecnz_gstom_vatpe_rucph_tinro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsv_nitth_vattr_tintw_vatua_vatunknownus_einuy_rucve_rifvn_tinza_vatr7   rL   N)r9   r:   r;   r   r<   r   rN   r=   r=   r=   r>   CustomerTaxId   s   
 Mr   c                   @   $   e Zd ZU eed< 	 ed ed< dS )zInvoice.FromInvoiceactionr0   r1   N)r9   r:   r;   rN   r<   r   r=   r=   r=   r>   FromInvoice'  
   
 r   c                   @   r3   )zInvoice.Issuerr   r4   r5   r7   Nr8   r=   r=   r=   r>   Issuer1  r@   r   c                   @   s   e Zd ZU ee ed< 	 eed  ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ed ed	< 	 ed
 ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 eed  ed< ed ed< dS )zInvoice.LastFinalizationErrorcharge)account_closedaccount_country_invalid_address6account_error_country_change_requires_additional_stepsaccount_information_mismatchaccount_invalidaccount_number_invalidacss_debit_session_incompletealipay_upgrade_requiredamount_too_largeamount_too_smallapi_key_expiredapplication_fees_not_allowedauthentication_requiredbalance_insufficientbalance_invalid_parameter bank_account_bad_routing_numbersbank_account_declinedbank_account_existsbank_account_restrictedbank_account_unusablebank_account_unverified bank_account_verification_failedbilling_invalid_mandatebitcoin_upgrade_required$capture_charge_authorization_expiredcapture_unauthorized_payment card_decline_rate_limit_exceededcard_declined cardholder_phone_number_requiredcharge_already_capturedcharge_already_refundedcharge_disputedcharge_exceeds_source_limit charge_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_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_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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_errorr7   N)r9   r:   r;   r   rN   r<   r   r   r=   r=   r=   r>   LastFinalizationError;  sF   
  1rt  c                   @   sX   e Zd ZU G dd deZee ed< 	 ee ed< 	 eee	d   ed< 	 deiZ
dS )zInvoice.PaymentSettingsc                   @   s   e Zd ZU G dd deZG dd deZG dd deZG dd deZG d	d
 d
eZG dd deZ	G d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dS )z,Invoice.PaymentSettings.PaymentMethodOptionsc                   @   D   e Zd ZU G dd deZee ed< eed  ed< 	 deiZdS )z6Invoice.PaymentSettings.PaymentMethodOptions.AcssDebitc                   @      e Zd ZU eed  ed< dS )zEInvoice.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptionsbusinesspersonaltransaction_typeNr9   r:   r;   r   r   r<   r=   r=   r=   r>   MandateOptionsI     
 r|  mandate_options	automaticinstantmicrodepositsverification_methodN)	r9   r:   r;   r   r|  r   r<   r   rH   r=   r=   r=   r>   	AcssDebitH     
 r  c                   @      e Zd ZU ed ed< dS )z7Invoice.PaymentSettings.PaymentMethodOptions.Bancontactdeenfrnlpreferred_languageNr9   r:   r;   r   r<   r=   r=   r=   r>   
BancontactX     
 r  c                   @   ru  )z1Invoice.PaymentSettings.PaymentMethodOptions.Cardc                   @   s   e Zd ZU ee ed< dS )z>Invoice.PaymentSettings.PaymentMethodOptions.Card.InstallmentsrA   N)r9   r:   r;   r   rG   r<   r=   r=   r=   r>   Installments_  r  r  installmentsanyr  	challengerequest_three_d_secureN)	r9   r:   r;   r   r  r   r<   r   rH   r=   r=   r=   r>   r    ^  r  r    c                   @   sD   e Zd ZU G dd deZee ed< eed  ed< 	 deiZdS )z<Invoice.PaymentSettings.PaymentMethodOptions.CustomerBalancec                   @   s@   e Zd ZU G dd deZee ed< ee ed< 	 deiZdS )zIInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransferc                   @   r  )zXInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer)BEDEESFRIENLrS   Nr  r=   r=   r=   r>   EuBankTransferp  r  r  eu_bank_transferr7   N)	r9   r:   r;   r   r  r   r<   rN   rH   r=   r=   r=   r>   BankTransfero  s   
 r  bank_transferfunding_typeN)	r9   r:   r;   r   r  r   r<   r   rH   r=   r=   r=   r>   CustomerBalancen  s   
 r  c                   @      e Zd ZdS )z4Invoice.PaymentSettings.PaymentMethodOptions.KonbiniNr9   r:   r;   r=   r=   r=   r>   Konbini      r  c                   @   r  )z6Invoice.PaymentSettings.PaymentMethodOptions.SepaDebitNr  r=   r=   r=   r>   	SepaDebit  r  r  c                   @   ru  )z:Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccountc                   @   s^   e Zd ZU G dd deZee ed< eeed   ed< 	 eeed   ed< 	 deiZ	dS )	zOInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnectionsc                   @   "   e Zd ZU eeed   ed< dS )zWInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filterscheckingsavingsaccount_subcategoriesN)r9   r:   r;   r   r   r   r<   r=   r=   r=   r>   Filters  s
   
 
r  filtersbalances	ownershipri  transactionspermissionsr  r  r  prefetchN)
r9   r:   r;   r   r  r   r<   r   r   rH   r=   r=   r=   r>   FinancialConnections  s    
 

r  financial_connectionsr  r  N)	r9   r:   r;   r   r  r   r<   r   rH   r=   r=   r=   r>   UsBankAccount  s   
 r  
acss_debit
bancontactcardcustomer_balancekonbini
sepa_debitus_bank_account)r  r  r  r  r  r  r  N)r9   r:   r;   r   r  r  r    r  r  r  r  r   r<   rH   r=   r=   r=   r>   PaymentMethodOptionsG  s<   
 +
r  default_mandatepayment_method_options)ach_credit_transfer	ach_debitr  
amazon_payau_becs_debit
bacs_debitr  boletor  cashappr  epsfpxgiropaygrabpayidealr  link
multibancop24paynowpaypal	promptpayrevolut_paysepa_credit_transferr  sofortswishr  
wechat_paypayment_method_typesN)r9   r:   r;   r   r  r   rN   r<   r   r   rH   r=   r=   r=   r>   PaymentSettingsF  s    
  $r  c                   @   s^   e Zd ZU G dd deZee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 deiZ	dS )zInvoice.Renderingc                   @   rv  )zInvoice.Rendering.Pdfa4autoletter	page_sizeNr{  r=   r=   r=   r>   Pdf  r}  r  amount_tax_displaypdftemplatetemplate_versionN)
r9   r:   r;   r   r  r   rN   r<   intrH   r=   r=   r=   r>   	Rendering  s   
 r  c                   @   sh   e Zd ZU G d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
d	S )
zInvoice.ShippingCostc                   @   s@   e Zd ZU eed< 	 ded< 	 eed  ed< 	 ee ed< dS )z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)r9   r:   r;   r  r<   r   r   r=   r=   r=   r>   Tax&  s   
 r  amount_subtotal
amount_taxamount_totalr)   shipping_ratetaxesN)r9   r:   r;   r   r  r  r<   r   r   r   rH   r=   r=   r=   r>   ShippingCost%  s   
 &r  c                   @   r[   )	zInvoice.ShippingDetailsc                   @   rQ   )zInvoice.ShippingDetails.AddressrR   rS   rT   rU   rV   rW   NrX   r=   r=   r=   r>   r\   c  rZ   r\   r]   r^   rK   r_   r`   Nra   r=   r=   r=   r>   ShippingDetailsb  rc   r  c                   @   D   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< dS )zInvoice.StatusTransitionsfinalized_atmarked_uncollectible_atpaid_at	voided_atN)r9   r:   r;   r   r  r<   r=   r=   r=   r>   StatusTransitions     
 r  c                   @   s"   e Zd ZU eeeef  ed< dS )zInvoice.SubscriptionDetailsmetadataN)r9   r:   r;   r   r   rN   r<   r=   r=   r=   r>   SubscriptionDetails  s   
 r  c                   @   sB   e Zd ZU G dd deZee ed< 	 ee ed< 	 deiZ	dS )zInvoice.ThresholdReasonc                   @   $   e Zd ZU ee ed< 	 eed< dS )z"Invoice.ThresholdReason.ItemReasonline_item_ids	usage_gteN)r9   r:   r;   r   rN   r<   r  r=   r=   r=   r>   
ItemReason  
   
 r  
amount_gteitem_reasonsN)
r9   r:   r;   r   r  r   r  r<   r   rH   r=   r=   r=   r>   ThresholdReason  s   
 
r  c                   @   r   )zInvoice.TotalDiscountAmountr  r#   discountN)r9   r:   r;   r  r<   r   r=   r=   r=   r>   TotalDiscountAmount  r   r  c                   @   sN   e Zd ZU eed< 	 eed< 	 ed ed< 	 eed  ed< 	 ee ed< dS )	zInvoice.TotalTaxAmountr  	inclusiver-   tax_rater  r  r  N)	r9   r:   r;   r  r<   rG   r   r   r   r=   r=   r=   r>   TotalTaxAmount  s   
 r  c                   @   (   e Zd ZU ee ed< 	 ed ed< dS )zInvoice.TransferDatar  r   destinationN)r9   r:   r;   r   r  r<   r   r=   r=   r=   r>   TransferData  
   
 r  c                   @   :   e Zd ZU eee  ed< 	 ed ed< 	 ed ed< dS )Invoice.AddLinesParamsexpandLiteral['']|Dict[str, str]invoice_metadataInvoice.AddLinesParamsLinelinesNr9   r:   r;   r   r   rN   r<   r=   r=   r=   r>   AddLinesParams     
 r%  c                   @   s   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e ed< 	 ed ed< 	 ee ed< 	 ed ed< 	 ed ed< dS )r"  r  descriptiondiscountablez4Literal['']|List[Invoice.AddLinesParamsLineDiscount]	discountsinvoice_itemr   r
   Invoice.AddLinesParamsLinePeriodperiodprice#Invoice.AddLinesParamsLinePriceData
price_dataquantityz5Literal['']|List[Invoice.AddLinesParamsLineTaxAmount]tax_amountsLiteral['']|List[str]	tax_ratesNr9   r:   r;   r   r  r<   rN   rG   r=   r=   r=   r>   AddLinesParamsLine  s:   
 r5  c                   @   6   e Zd ZU ee ed< 	 ee ed< 	 ee ed< dS )z"Invoice.AddLinesParamsLineDiscountcouponr  promotion_codeNr9   r:   r;   r   rN   r<   r=   r=   r=   r>   AddLinesParamsLineDiscount>     
 r:  c                   @   rJ   )r+  endstartNr9   r:   r;   r  r<   r=   r=   r=   r>   AddLinesParamsLinePeriodL  rP   r?  c                   @   `   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< d	S )
r.  currencyproduct.Invoice.AddLinesParamsLinePriceDataProductDataproduct_data	exclusiver  unspecifiedtax_behaviorunit_amountunit_amount_decimalNr9   r:   r;   rN   r<   r   r   r  r=   r=   r=   r>   AddLinesParamsLinePriceDataV  "   
 rL  c                   @   Z   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< dS )rC  r'  imagesr
  rK   tax_codeNr9   r:   r;   r   rN   r<   r   r   r=   r=   r=   r>   &AddLinesParamsLinePriceDataProductDatat     
 rR  c                   @   *   e Zd ZU eed< 	 ded< 	 eed< dS )z#Invoice.AddLinesParamsLineTaxAmountr  .Invoice.AddLinesParamsLineTaxAmountTaxRateDatatax_rate_datar  Nr>  r=   r=   r=   r>   AddLinesParamsLineTaxAmount     
 rW  c                   @   t   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e ed< 	 eed  ed	< d
S )rU  rS   r'  display_namer  jurisdiction
percentagerW   amusement_taxcommunications_taxgsthstigstjct	lease_taxpstqstrst	sales_taxvattax_typeN	r9   r:   r;   r   rN   r<   rG   floatr   r=   r=   r=   r>   &AddLinesParamsLineTaxAmountTaxRateData  *   
 rm  c                   @   s  e Zd ZU ed ed< 	 ee ed< 	 ee ed< 	 ed 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-< d.S )/Invoice.CreateParamsr2  account_tax_idsapplication_fee_amountauto_advance Invoice.CreateParamsAutomaticTaxautomatic_taxcharge_automaticallysend_invoicecollection_methodrA  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_descriptorsubscription Invoice.CreateParamsTransferDatatransfer_dataN
r9   r:   r;   r   r<   r  rG   r   rN   r   r=   r=   r=   r>   CreateParams  s   
 r  c                   @   r   )rs  rA   )Invoice.CreateParamsAutomaticTaxLiabilityrB   Nr9   r:   r;   rG   r<   r   r=   r=   r=   r>   CreateParamsAutomaticTaxQ  r   r  c                   @   r  )r  r4   r5   r7   Nr9   r:   r;   r   rN   r<   r   r=   r=   r=   r>   !CreateParamsAutomaticTaxLiability[  r  r  c                   @   rJ   )zInvoice.CreateParamsCustomFieldrK   rL   NrM   r=   r=   r=   r>   CreateParamsCustomFielde  rP   r  c                   @   r6  )zInvoice.CreateParamsDiscountr7  r  r8  Nr9  r=   r=   r=   r>   CreateParamsDiscounto  r;  r  c                   @   $   e Zd ZU ed ed< 	 eed< dS )r  revisionr   r1   Nr9   r:   r;   r   r<   rN   r=   r=   r=   r>   CreateParamsFromInvoice}  r  r  c                   @   r  )r  r4   r5   r7   Nr  r=   r=   r=   r>   CreateParamsIssuer  r  r  c                   @   6   e Zd ZU ed ed< 	 ed ed< 	 ed ed< dS )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', 'konbini', 'link', 'multibanco', 'p24', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]r  Nr9   r:   r;   r   r<   r=   r=   r=   r>   CreateParamsPaymentSettings     
 r  c                   @   n   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< dS )r  zLLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr  zMLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr  zGLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardr  zRLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  zJLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir  zLLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitr  zPLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  Nr  r=   r=   r=   r>   /CreateParamsPaymentSettingsPaymentMethodOptions  :   
 r  c                   @   ,   e Zd ZU ed ed< 	 eed  ed< dS )z@Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr~  r  r  Nr9   r:   r;   r   r<   r   r=   r=   r=   r>   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit     
 r  c                   @   rv  )r  rw  rz  Nr9   r:   r;   r   r   r<   r=   r=   r=   r>   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions     
 r  c                   @   rv  )zAInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr  r  Nr  r=   r=   r=   r>   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontact  r}  r  c                   @   r  )z;Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  r  r  Nr  r=   r=   r=   r>   3CreateParamsPaymentSettingsPaymentMethodOptionsCard     
 r  c                   @   (   e Zd ZU ee ed< 	 ed ed< dS )r  rA   zWLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanplanNr9   r:   r;   r   rG   r<   r=   r=   r=   r>   ?CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments     
 r  c                   @   :   e Zd ZU ee ed< 	 eed  ed< 	 ed ed< dS )zKInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlancountmonthintervalfixed_countr7   Nr9   r:   r;   r   r  r<   r   r=   r=   r=   r>   CCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan
     
 r  c                   @   (   e Zd ZU ed ed< 	 ee ed< dS )zFInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr  r  Nr9   r:   r;   r   r<   rN   r=   r=   r=   r>   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance     
 r  c                   @   r  )r  `Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr  r7   Nr  r=   r=   r=   r>   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer)  r  r  c                   @      e Zd ZU eed< dS )r  rS   NrM   r=   r=   r=   r>   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer7     
 r  c                   @   r  )z>Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr  r=   r=   r=   r>   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbini?  r  r  c                   @   r  )z@Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr  r=   r=   r=   r>   8CreateParamsPaymentSettingsPaymentMethodOptionsSepaDebitB  r  r  c                   @   r  )zDInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  r  r  Nr  r=   r=   r=   r>   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountE     
 r  c                   @   F   e Zd ZU ed ed< 	 eeed   ed< 	 eeed   ed< dS )r  _Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersr  r  r  r  r  Nr9   r:   r;   r   r<   r   r   r=   r=   r=   r>   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsU  "   
 
r  c                   @   r  )r  r  r  Nr9   r:   r;   r   r   r   r<   r=   r=   r=   r>   WCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilterso  
   
 
r  c                   @   D   e Zd ZU ed ed< 	 ed ed< 	 ee ed< 	 ed ed< dS )	r  ;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']r   Invoice.CreateParamsRenderingPdfr  r  Literal['']|intr  Nr  r=   r=   r=   r>   CreateParamsRenderingy     
 r  c                   @   rv  )r  r  r  Nr  r=   r=   r=   r>   CreateParamsRenderingPdf  r}  r  c                   @   r  )r  r  0Invoice.CreateParamsShippingCostShippingRateDatashipping_rate_dataNr9  r=   r=   r=   r>   CreateParamsShippingCost     
 r  c                   @   z   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
< dS )r  @Invoice.CreateParamsShippingCostShippingRateDataDeliveryEstimatedelivery_estimaterZ  ;Invoice.CreateParamsShippingCostShippingRateDataFixedAmountfixed_amountr
  rE  rH  rP  r7   Nr9   r:   r;   r   r<   rN   r   r   r=   r=   r=   r>   (CreateParamsShippingCostShippingRateData  *   
 r  c                   @   (   e Zd ZU ed ed< 	 ed ed< dS )r  GInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximummaximumGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimumminimumNr  r=   r=   r=   r>   8CreateParamsShippingCostShippingRateDataDeliveryEstimate     
 r  c                   @   r  )r  business_daydayhourr  weekunitrL   Nr9   r:   r;   r   r<   r  r=   r=   r=   r>   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum  
   
 r   c                   @   r  )r  r  r  rL   Nr  r=   r=   r=   r>   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum  r  r  c                   @   6   e Zd ZU eed< 	 eed< 	 eeedf  ed< dS )r  r  rA  JInvoice.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionscurrency_optionsNr9   r:   r;   r  r<   rN   r   r   r=   r=   r=   r>   3CreateParamsShippingCostShippingRateDataFixedAmount     
 r  c                   @   (   e Zd ZU eed< 	 eed  ed< dS )r  r  rE  rH  Nr9   r:   r;   r  r<   r   r   r=   r=   r=   r>   BCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions     
 r  c                   @   .   e Zd ZU ded< 	 eed< 	 ed ed< dS )r  *Invoice.CreateParamsShippingDetailsAddressr]   rK   r  r_   Nr9   r:   r;   r<   rN   r   r=   r=   r=   r>   CreateParamsShippingDetails     
 r  c                   @   rQ   )r  rR   rS   rT   rU   rV   rW   Nr9  r=   r=   r=   r>   "CreateParamsShippingDetailsAddress  rZ   r  c                   @   r  )r  r  r  Nr9   r:   r;   r   r  r<   rN   r=   r=   r=   r>   CreateParamsTransferData4  r  r  c                   @   s   e Zd ZU ed 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  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< dS )Invoice.CreatePreviewParams'Invoice.CreatePreviewParamsAutomaticTaxrt  r7  rA  rz  *Invoice.CreatePreviewParamsCustomerDetailscustomer_detailsz5Literal['']|List[Invoice.CreatePreviewParamsDiscount]r)  r  &Invoice.CreatePreviewParamsInvoiceIteminvoice_items!Invoice.CreatePreviewParamsIssuerr  r  r  next	recurringpreview_modeschedule*Invoice.CreatePreviewParamsScheduleDetailsschedule_detailsr  .Invoice.CreatePreviewParamsSubscriptionDetailssubscription_detailsN)r9   r:   r;   r   r<   rN   r   r   r=   r=   r=   r>   CreatePreviewParams>  sR   
 r%  c                   @   r   )r  rA   0Invoice.CreatePreviewParamsAutomaticTaxLiabilityrB   Nr  r=   r=   r=   r>   CreatePreviewParamsAutomaticTax     
 r'  c                   @   r  )r&  r4   r5   r7   Nr  r=   r=   r=   r>   (CreatePreviewParamsAutomaticTaxLiability  r  r)  c                   @   V   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
< dS )r  z=Literal['']|Invoice.CreatePreviewParamsCustomerDetailsAddressr]   z>Literal['']|Invoice.CreatePreviewParamsCustomerDetailsShippingshipping-Invoice.CreatePreviewParamsCustomerDetailsTaxtax0Literal['']|Literal['exempt', 'none', 'reverse']
tax_exempt/Invoice.CreatePreviewParamsCustomerDetailsTaxIdtax_idsNr9   r:   r;   r   r<   r   r=   r=   r=   r>   "CreatePreviewParamsCustomerDetails  &   
 r3  c                   @   rQ   )z1Invoice.CreatePreviewParamsCustomerDetailsAddressrR   rS   rT   rU   rV   rW   Nr9  r=   r=   r=   r>   )CreatePreviewParamsCustomerDetailsAddress  rZ   r5  c                   @   .   e Zd ZU ded< 	 eed< 	 ee ed< dS )z2Invoice.CreatePreviewParamsCustomerDetailsShipping9Invoice.CreatePreviewParamsCustomerDetailsShippingAddressr]   rK   r_   Nr  r=   r=   r=   r>   *CreatePreviewParamsCustomerDetailsShipping  r  r8  c                   @   rQ   )r7  rR   rS   rT   rU   rV   rW   Nr9  r=   r=   r=   r>   1CreatePreviewParamsCustomerDetailsShippingAddress  rZ   r9  c                   @   r  )r,  r  
ip_addressNr  r=   r=   r=   r>   %CreatePreviewParamsCustomerDetailsTax  r  r;  c                   @   r  )r0  Jre   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r7   rL   Nr  r=   r=   r=   r>   'CreatePreviewParamsCustomerDetailsTaxId     
 Lr=  c                   @   r6  )z#Invoice.CreatePreviewParamsDiscountr7  r  r8  Nr9  r=   r=   r=   r>   CreatePreviewParamsDiscountW  r;  r?  c                   @      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< dS )r  r  rA  r'  r(  z@Literal['']|List[Invoice.CreatePreviewParamsInvoiceItemDiscount]r)  invoiceitemr   r
  ,Invoice.CreatePreviewParamsInvoiceItemPeriodr,  r-  /Invoice.CreatePreviewParamsInvoiceItemPriceDatar/  r0  rE  rH  r  rP  r2  r3  rI  rJ  N	r9   r:   r;   r   r  r<   rN   rG   r   r=   r=   r=   r>   CreatePreviewParamsInvoiceIteme  N   
 rE  c                   @   r6  )z.Invoice.CreatePreviewParamsInvoiceItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   &CreatePreviewParamsInvoiceItemDiscount  r;  rG  c                   @   rJ   )rB  r<  r=  Nr>  r=   r=   r=   r>   $CreatePreviewParamsInvoiceItemPeriod  rP   rH  c                   @   N   e Zd ZU eed< 	 eed< 	 eed  ed< 	 ee ed< 	 ee ed< dS )rC  rA  rB  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   'CreatePreviewParamsInvoiceItemPriceData     
 rJ  c                   @   r  )r  r4   r5   r7   Nr  r=   r=   r=   r>   CreatePreviewParamsIssuer  r  rL  c                   @   B   e Zd ZU eed  ed< 	 eed  ed< 	 eed  ed< dS )r!  cancelreleaseend_behavior/Invoice.CreatePreviewParamsScheduleDetailsPhasephasesalways_invoicecreate_prorationsnoneproration_behaviorNr9   r:   r;   r   r   r<   r   r=   r=   r=   r>   "CreatePreviewParamsScheduleDetails     
 rZ  c                   @   f  e Zd ZU eed  ed< 	 ee ed< 	 ed ed< 	 eed  ed< 	 ed ed	< 	 eed
  ed< 	 ee ed< 	 ee ed< 	 e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$< d%S )&rR  =Invoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemadd_invoice_itemsapplication_fee_percent;Invoice.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxrt  r  phase_startbilling_cycle_anchorzLLiteral['']|Invoice.CreatePreviewParamsScheduleDetailsPhaseBillingThresholdsbilling_thresholdsru  rx  r7  rA  r|  r2  r~  r  r'  zILiteral['']|List[Invoice.CreatePreviewParamsScheduleDetailsPhaseDiscount]r)  int|Literal['now']end_date>Invoice.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsinvoice_settings3Invoice.CreatePreviewParamsScheduleDetailsPhaseItemitems
iterationsr
  r  rT  rX  
start_date;Invoice.CreatePreviewParamsScheduleDetailsPhaseTransferDatar  trial	trial_endNr9   r:   r;   r   r   r<   rl  r   rN   r  r   rG   r=   r=   r=   r>   'CreatePreviewParamsScheduleDetailsPhase     
 rq  c                   @   V   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< d	S )
r]  EInvoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscountr)  r-  FInvoice.CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceDatar/  r0  r2  r3  Nr9   r:   r;   r   r   r<   rN   r  r=   r=   r=   r>   5CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemi	  "   
 rw  c                   @   r6  )rt  r7  r  r8  Nr9  r=   r=   r=   r>   =CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemDiscount	     
 ry  c                   @   rI  )ru  rA  rB  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   >CreatePreviewParamsScheduleDetailsPhaseAddInvoiceItemPriceData	     
 r{  c                   @   r   )r`  rA   DInvoice.CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiabilityrB   Nr  r=   r=   r=   r>   3CreatePreviewParamsScheduleDetailsPhaseAutomaticTax	  r(  r~  c                   @   r  )r}  r4   r5   r7   Nr  r=   r=   r=   r>   <CreatePreviewParamsScheduleDetailsPhaseAutomaticTaxLiability	  
   
 r  c                   @   (   e Zd ZU ee ed< 	 ee ed< dS )z@Invoice.CreatePreviewParamsScheduleDetailsPhaseBillingThresholdsr  reset_billing_cycle_anchorNr9   r:   r;   r   r  r<   rG   r=   r=   r=   r>   8CreatePreviewParamsScheduleDetailsPhaseBillingThresholds	  r  r  c                   @   r6  )z7Invoice.CreatePreviewParamsScheduleDetailsPhaseDiscountr7  r  r8  Nr9  r=   r=   r=   r>   /CreatePreviewParamsScheduleDetailsPhaseDiscount	  r;  r  c                   @   6   e Zd ZU ed ed< 	 ee ed< 	 ed ed< dS )rg  r2  rp  r{  DInvoice.CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuerr  Nr9   r:   r;   r   r<   r  r=   r=   r=   r>   6CreatePreviewParamsScheduleDetailsPhaseInvoiceSettings	     
 r  c                   @   r  )r  r4   r5   r7   Nr  r=   r=   r=   r>   <CreatePreviewParamsScheduleDetailsPhaseInvoiceSettingsIssuer	  r  r  c                   @      e Zd ZU ed ed< 	 ed ed< 	 eeeef  ed< 	 ee ed< 	 ee ed< 	 ed ed	< 	 ee ed
< 	 ed ed< dS )ri  zPLiteral['']|Invoice.CreatePreviewParamsScheduleDetailsPhaseItemBillingThresholdsrd  zMLiteral['']|List[Invoice.CreatePreviewParamsScheduleDetailsPhaseItemDiscount]r)  r
  r  r-  <Invoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceDatar/  r0  r2  r3  Nr9   r:   r;   r   r<   r   rN   r  r=   r=   r=   r>   +CreatePreviewParamsScheduleDetailsPhaseItem	  .   
 r  c                   @   r  )zDInvoice.CreatePreviewParamsScheduleDetailsPhaseItemBillingThresholdsr  Nr>  r=   r=   r=   r>   <CreatePreviewParamsScheduleDetailsPhaseItemBillingThresholds#
  r  r  c                   @   r6  )z;Invoice.CreatePreviewParamsScheduleDetailsPhaseItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   3CreatePreviewParamsScheduleDetailsPhaseItemDiscount+
  r;  r  c                   @   X   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< d	S )
r  rA  rB  EInvoice.CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurringr  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   4CreatePreviewParamsScheduleDetailsPhaseItemPriceData9
     
 r  c                   @   rd   )r  r  r  r  yearr  interval_countNr9   r:   r;   r   r<   r   r  r=   r=   r=   r>   =CreatePreviewParamsScheduleDetailsPhaseItemPriceDataRecurringU
  r  r  c                   @   r  )rm  amount_percentr  Nr9   r:   r;   r   rl  r<   rN   r=   r=   r=   r>   3CreatePreviewParamsScheduleDetailsPhaseTransferDataa
  r  r  c                   @      e Zd ZU ed ed< 	 ed ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 eed	  ed
< 	 eed  ed< 	 ee ed< 	 eed  ed< 	 ee ed< 	 ed ed< dS )r#  Literal['now', 'unchanged']|intrc  r  	cancel_atcancel_at_period_end
cancel_nowr2  r~  2Invoice.CreatePreviewParamsSubscriptionDetailsItemrj  rT  rX  proration_datenow	resume_atrl  Literal['now']|intro  N	r9   r:   r;   r   r<   rG   r   r   r  r=   r=   r=   r>   &CreatePreviewParamsSubscriptionDetailsk
  6   
 r  c                   @      e Zd ZU ed ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 ee ed< 	 ed ed	< 	 ee ed
< 	 ee ed< 	 ed ed< 	 ee ed< 	 ed ed< dS )r  zOLiteral['']|Invoice.CreatePreviewParamsSubscriptionDetailsItemBillingThresholdsrd  clear_usagedeletedzLLiteral['']|List[Invoice.CreatePreviewParamsSubscriptionDetailsItemDiscount]r)  idr   r
  r  r-  ;Invoice.CreatePreviewParamsSubscriptionDetailsItemPriceDatar/  r0  r2  r3  Nr9   r:   r;   r   r<   rG   rN   r  r=   r=   r=   r>   *CreatePreviewParamsSubscriptionDetailsItem
  :   
 r  c                   @   r  )zCInvoice.CreatePreviewParamsSubscriptionDetailsItemBillingThresholdsr  Nr>  r=   r=   r=   r>   ;CreatePreviewParamsSubscriptionDetailsItemBillingThresholds
  r  r  c                   @   r6  )z:Invoice.CreatePreviewParamsSubscriptionDetailsItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   2CreatePreviewParamsSubscriptionDetailsItemDiscount
  r;  r  c                   @   r  )
r  rA  rB  DInvoice.CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurringr  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   3CreatePreviewParamsSubscriptionDetailsItemPriceData
  r  r  c                   @   rd   )r  r  r  r  Nr  r=   r=   r=   r>   <CreatePreviewParamsSubscriptionDetailsItemPriceDataRecurring  r  r  c                   @   r  )Invoice.DeleteParamsNr  r=   r=   r=   r>   DeleteParams  r  r  c                   @   s,   e Zd ZU ee ed< 	 eee  ed< dS )Invoice.FinalizeInvoiceParamsrr  r  N)r9   r:   r;   r   rG   r<   r   rN   r=   r=   r=   r>   FinalizeInvoiceParams  s
   
 r  c                   @   sH   e Zd ZU ee ed< 	 eee  ed< 	 ee ed< 	 ee ed< dS )Invoice.ListLinesParamsending_beforer  limitstarting_afterN)r9   r:   r;   r   rN   r<   r   r  r=   r=   r=   r>   ListLinesParams  s   
 r  c                   @   s   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< dS )Invoice.ListParamsru  rx  zInvoice.ListParamsCreated|intcreatedrz  zInvoice.ListParamsDueDate|intr  r  r  r  r  draftopenpaiduncollectiblevoidrF   r  N)	r9   r:   r;   r   r   r<   rN   r   r  r=   r=   r=   r>   
ListParams.  s0   
 r  c                   @   r  )zInvoice.ListParamsCreatedgtgteltlteNr9   r:   r;   r   r  r<   r=   r=   r=   r>   ListParamsCreatedY  r	  r  c                   @   r  )zInvoice.ListParamsDueDater  r  r  r  Nr  r=   r=   r=   r>   ListParamsDueDatek  r	  r  c                   @      e Zd ZU eee  ed< dS )Invoice.MarkUncollectibleParamsr  Nr$  r=   r=   r=   r>   MarkUncollectibleParams}  r}  r  c                   @   s  e Zd ZU 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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(< d)S )*Invoice.ModifyParamsr2  rp  rq  rr   Invoice.ModifyParamsAutomaticTaxrt  ru  rx  z1Literal['']|List[Invoice.ModifyParamsCustomField]ry  r{  r|  r  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  r=   r=   r=   r>   ModifyParams  s   
 r  c                   @   r   )r  rA   )Invoice.ModifyParamsAutomaticTaxLiabilityrB   Nr  r=   r=   r=   r>   ModifyParamsAutomaticTax  r   r  c                   @   r  )r  r4   r5   r7   Nr  r=   r=   r=   r>   !ModifyParamsAutomaticTaxLiability  r  r  c                   @   rJ   )zInvoice.ModifyParamsCustomFieldrK   rL   NrM   r=   r=   r=   r>   ModifyParamsCustomField  rP   r  c                   @   r6  )zInvoice.ModifyParamsDiscountr7  r  r8  Nr9  r=   r=   r=   r>   ModifyParamsDiscount  r;  r  c                   @   r  )r  r4   r5   r7   Nr  r=   r=   r=   r>   ModifyParamsIssuer%  r  r  c                   @   r  )r  r  r  7Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsr  r  r  Nr  r=   r=   r=   r>   ModifyParamsPaymentSettings/  r  r  c                   @   r  )r  zLLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr  zMLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  zGLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardr  zRLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer  zJLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir  zLLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitr  zPLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr  Nr  r=   r=   r=   r>   /ModifyParamsPaymentSettingsPaymentMethodOptionsA  r  r  c                   @   r  )z@Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr~  r  r  Nr  r=   r=   r=   r>   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitm  r  r  c                   @   rv  )r  rw  rz  Nr  r=   r=   r=   r>   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions{  r  r  c                   @   rv  )zAInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr  r  Nr  r=   r=   r=   r>   9ModifyParamsPaymentSettingsPaymentMethodOptionsBancontact  r}  r  c                   @   r  )z;Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr  r  r  Nr  r=   r=   r=   r>   3ModifyParamsPaymentSettingsPaymentMethodOptionsCard  r  r  c                   @   r  )r  rA   zWLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr  Nr  r=   r=   r=   r>   ?ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments  r  r  c                   @   r  )zKInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr  r  r  r  r7   Nr  r=   r=   r=   r>   CModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan  r  r  c                   @   r  )zFInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr  r  Nr  r=   r=   r=   r>   >ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance  r  r  c                   @   r  )r  `Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr  r7   Nr  r=   r=   r=   r>   JModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer  r  r  c                   @   r  )r  rS   NrM   r=   r=   r=   r>   XModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer  r  r  c                   @   r  )z>Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbiniNr  r=   r=   r=   r>   6ModifyParamsPaymentSettingsPaymentMethodOptionsKonbini  r  r  c                   @   r  )z@Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebitNr  r=   r=   r=   r>   8ModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit  r  r  c                   @   r  )zDInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr  r  r  Nr  r=   r=   r=   r>   <ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount  r  r  c                   @   r  )r  _Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFiltersr  r  r  r  r  Nr  r=   r=   r=   r>   PModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections  r  r  c                   @   r  )r  r  r  Nr  r=   r=   r=   r>   WModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters  r  r  c                   @   r  )	r  r  r   Invoice.ModifyParamsRenderingPdfr  r  r  r  Nr  r=   r=   r=   r>   ModifyParamsRendering  r  r  c                   @   rv  )r  r  r  Nr  r=   r=   r=   r>   ModifyParamsRenderingPdf+  r}  r  c                   @   r  )z Invoice.ModifyParamsShippingCostr  0Invoice.ModifyParamsShippingCostShippingRateDatar  Nr9  r=   r=   r=   r>   ModifyParamsShippingCost3  r  r  c                   @   r  )r  @Invoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimater  rZ  ;Invoice.ModifyParamsShippingCostShippingRateDataFixedAmountr  r
  rE  rH  rP  r7   Nr  r=   r=   r=   r>   (ModifyParamsShippingCostShippingRateData?  r  r  c                   @   r  )r  GInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximumr  GInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimumr  Nr  r=   r=   r=   r>   8ModifyParamsShippingCostShippingRateDataDeliveryEstimatec  r  r  c                   @   r  )r   r  r  rL   Nr  r=   r=   r=   r>   ?ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximumq  r  r  c                   @   r  )r  r  r  rL   Nr  r=   r=   r=   r>   ?ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum}  r  r  c                   @   r  )r  r  rA  JInvoice.ModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr  Nr  r=   r=   r=   r>   3ModifyParamsShippingCostShippingRateDataFixedAmount  r  r  c                   @   r	  )r  r  rE  rH  Nr
  r=   r=   r=   r>   BModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions  r  r  c                   @   r  )z#Invoice.ModifyParamsShippingDetails*Invoice.ModifyParamsShippingDetailsAddressr]   rK   r  r_   Nr  r=   r=   r=   r>   ModifyParamsShippingDetails  r  r	  c                   @   rQ   )r  rR   rS   rT   rU   rV   rW   Nr9  r=   r=   r=   r>   "ModifyParamsShippingDetailsAddress  rZ   r
  c                   @   r  )z Invoice.ModifyParamsTransferDatar  r  Nr  r=   r=   r=   r>   ModifyParamsTransferData  r  r  c                   @   sr   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< d	S )
Invoice.PayParamsr  forgiver  mandateoff_sessionpaid_out_of_bandri  ro  N)r9   r:   r;   r   r   rN   r<   rG   r=   r=   r=   r>   	PayParams  s   
 r  c                   @   r  )Invoice.RemoveLinesParamsr  r   r!  Invoice.RemoveLinesParamsLiner#  Nr$  r=   r=   r=   r>   RemoveLinesParams  r&  r  c                   @   r  )r  )deleteunassignbehaviorr  Nr  r=   r=   r=   r>   RemoveLinesParamsLine
  r  r  c                   @   r  )Invoice.RetrieveParamsr  Nr$  r=   r=   r=   r>   RetrieveParams  r}  r  c                   @   sD   e Zd ZU eee  ed< 	 ee ed< 	 ee ed< 	 eed< dS )Invoice.SearchParamsr  r  pagequeryN)r9   r:   r;   r   r   rN   r<   r  r=   r=   r=   r>   SearchParams  s   
 r  c                   @   r  )Invoice.SendInvoiceParamsr  Nr$  r=   r=   r=   r>   SendInvoiceParams,  r}  r   c                   @   s  e Zd ZU ed 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  ed< 	 eed  ed< 	 ed ed< 	 ee ed< 	 ed ed< 	 e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d ed< 	 ee	 ed< 	 ee	 ed< 	 ed  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-< 	 ee	 ed.< d/S )0Invoice.UpcomingLinesParams'Invoice.UpcomingLinesParamsAutomaticTaxrt  r7  rA  rz  *Invoice.UpcomingLinesParamsCustomerDetailsr  z5Literal['']|List[Invoice.UpcomingLinesParamsDiscount]r)  r  r  &Invoice.UpcomingLinesParamsInvoiceItemr  !Invoice.UpcomingLinesParamsIssuerr  r  r  r  r  r  r   *Invoice.UpcomingLinesParamsScheduleDetailsr"  r  r  r  !subscription_billing_cycle_anchorr  subscription_cancel_at!subscription_cancel_at_period_endsubscription_cancel_nowr2  subscription_default_tax_rates.Invoice.UpcomingLinesParamsSubscriptionDetailsr$  +Invoice.UpcomingLinesParamsSubscriptionItemsubscription_itemsrT  subscription_proration_behaviorsubscription_proration_dater  subscription_resume_atsubscription_start_dater  subscription_trial_endsubscription_trial_from_planN)
r9   r:   r;   r   r<   rN   r   r  r   rG   r=   r=   r=   r>   UpcomingLinesParams2  s   
 r5  c                   @   r   )r"  rA   0Invoice.UpcomingLinesParamsAutomaticTaxLiabilityrB   Nr  r=   r=   r=   r>   UpcomingLinesParamsAutomaticTax  r(  r7  c                   @   r  )r6  r4   r5   r7   Nr  r=   r=   r=   r>   (UpcomingLinesParamsAutomaticTaxLiability  r  r8  c                   @   r*  )r#  z=Literal['']|Invoice.UpcomingLinesParamsCustomerDetailsAddressr]   z>Literal['']|Invoice.UpcomingLinesParamsCustomerDetailsShippingr+  -Invoice.UpcomingLinesParamsCustomerDetailsTaxr-  r.  r/  /Invoice.UpcomingLinesParamsCustomerDetailsTaxIdr1  Nr2  r=   r=   r=   r>   "UpcomingLinesParamsCustomerDetails  r4  r;  c                   @   rQ   )z1Invoice.UpcomingLinesParamsCustomerDetailsAddressrR   rS   rT   rU   rV   rW   Nr9  r=   r=   r=   r>   )UpcomingLinesParamsCustomerDetailsAddress  rZ   r<  c                   @   r6  )z2Invoice.UpcomingLinesParamsCustomerDetailsShipping9Invoice.UpcomingLinesParamsCustomerDetailsShippingAddressr]   rK   r_   Nr  r=   r=   r=   r>   *UpcomingLinesParamsCustomerDetailsShipping
  r  r>  c                   @   rQ   )r=  rR   rS   rT   rU   rV   rW   Nr9  r=   r=   r=   r>   1UpcomingLinesParamsCustomerDetailsShippingAddress  rZ   r?  c                   @   r  )r9  r  r:  Nr  r=   r=   r=   r>   %UpcomingLinesParamsCustomerDetailsTax2  r  r@  c                   @   r  )r:  r<  r7   rL   Nr  r=   r=   r=   r>   'UpcomingLinesParamsCustomerDetailsTaxId8  r>  rA  c                   @   r6  )z#Invoice.UpcomingLinesParamsDiscountr7  r  r8  Nr9  r=   r=   r=   r>   UpcomingLinesParamsDiscount  r;  rB  c                   @   r@  )r$  r  rA  r'  r(  z@Literal['']|List[Invoice.UpcomingLinesParamsInvoiceItemDiscount]r)  rA  r   r
  ,Invoice.UpcomingLinesParamsInvoiceItemPeriodr,  r-  /Invoice.UpcomingLinesParamsInvoiceItemPriceDatar/  r0  rE  rH  r  rP  r2  r3  rI  rJ  NrD  r=   r=   r=   r>   UpcomingLinesParamsInvoiceItem  rF  rE  c                   @   r6  )z.Invoice.UpcomingLinesParamsInvoiceItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   &UpcomingLinesParamsInvoiceItemDiscount  r;  rF  c                   @   rJ   )rC  r<  r=  Nr>  r=   r=   r=   r>   $UpcomingLinesParamsInvoiceItemPeriod  rP   rG  c                   @   rI  )rD  rA  rB  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   'UpcomingLinesParamsInvoiceItemPriceData  rK  rH  c                   @   r  )r%  r4   r5   r7   Nr  r=   r=   r=   r>   UpcomingLinesParamsIssuer  r  rI  c                   @   rM  )r&  rN  rQ  /Invoice.UpcomingLinesParamsScheduleDetailsPhaserS  rT  rX  NrY  r=   r=   r=   r>   "UpcomingLinesParamsScheduleDetails  r[  rK  c                   @   r\  )&rJ  =Invoice.UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItemr^  r_  ;Invoice.UpcomingLinesParamsScheduleDetailsPhaseAutomaticTaxrt  ra  rc  zLLiteral['']|Invoice.UpcomingLinesParamsScheduleDetailsPhaseBillingThresholdsrd  ru  rx  r7  rA  r|  r2  r~  r  r'  zILiteral['']|List[Invoice.UpcomingLinesParamsScheduleDetailsPhaseDiscount]r)  re  rf  >Invoice.UpcomingLinesParamsScheduleDetailsPhaseInvoiceSettingsrh  3Invoice.UpcomingLinesParamsScheduleDetailsPhaseItemrj  rk  r
  r  rT  rX  rl  ;Invoice.UpcomingLinesParamsScheduleDetailsPhaseTransferDatar  rn  ro  Nrp  r=   r=   r=   r>   'UpcomingLinesParamsScheduleDetailsPhase/  rr  rQ  c                   @   rs  )
rL  EInvoice.UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItemDiscountr)  r-  FInvoice.UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItemPriceDatar/  r0  r2  r3  Nrv  r=   r=   r=   r>   5UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItem  rx  rT  c                   @   r6  )rR  r7  r  r8  Nr9  r=   r=   r=   r>   =UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItemDiscount  rz  rU  c                   @   rI  )rS  rA  rB  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   >UpcomingLinesParamsScheduleDetailsPhaseAddInvoiceItemPriceData  r|  rV  c                   @   r   )rM  rA   DInvoice.UpcomingLinesParamsScheduleDetailsPhaseAutomaticTaxLiabilityrB   Nr  r=   r=   r=   r>   3UpcomingLinesParamsScheduleDetailsPhaseAutomaticTax  r(  rX  c                   @   r  )rW  r4   r5   r7   Nr  r=   r=   r=   r>   <UpcomingLinesParamsScheduleDetailsPhaseAutomaticTaxLiability  r  rY  c                   @   r  )z@Invoice.UpcomingLinesParamsScheduleDetailsPhaseBillingThresholdsr  r  Nr  r=   r=   r=   r>   8UpcomingLinesParamsScheduleDetailsPhaseBillingThresholds  r  rZ  c                   @   r6  )z7Invoice.UpcomingLinesParamsScheduleDetailsPhaseDiscountr7  r  r8  Nr9  r=   r=   r=   r>   /UpcomingLinesParamsScheduleDetailsPhaseDiscount  r;  r[  c                   @   r  )rN  r2  rp  r{  DInvoice.UpcomingLinesParamsScheduleDetailsPhaseInvoiceSettingsIssuerr  Nr  r=   r=   r=   r>   6UpcomingLinesParamsScheduleDetailsPhaseInvoiceSettings  r  r]  c                   @   r  )r\  r4   r5   r7   Nr  r=   r=   r=   r>   <UpcomingLinesParamsScheduleDetailsPhaseInvoiceSettingsIssuer%  r  r^  c                   @   r  )rO  zPLiteral['']|Invoice.UpcomingLinesParamsScheduleDetailsPhaseItemBillingThresholdsrd  zMLiteral['']|List[Invoice.UpcomingLinesParamsScheduleDetailsPhaseItemDiscount]r)  r
  r  r-  <Invoice.UpcomingLinesParamsScheduleDetailsPhaseItemPriceDatar/  r0  r2  r3  Nr  r=   r=   r=   r>   +UpcomingLinesParamsScheduleDetailsPhaseItem1  r  r`  c                   @   r  )zDInvoice.UpcomingLinesParamsScheduleDetailsPhaseItemBillingThresholdsr  Nr>  r=   r=   r=   r>   <UpcomingLinesParamsScheduleDetailsPhaseItemBillingThresholdsY  r  ra  c                   @   r6  )z;Invoice.UpcomingLinesParamsScheduleDetailsPhaseItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   3UpcomingLinesParamsScheduleDetailsPhaseItemDiscounta  r;  rb  c                   @   r  )
r_  rA  rB  EInvoice.UpcomingLinesParamsScheduleDetailsPhaseItemPriceDataRecurringr  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   4UpcomingLinesParamsScheduleDetailsPhaseItemPriceDatao  r  rd  c                   @   rd   )rc  r  r  r  Nr  r=   r=   r=   r>   =UpcomingLinesParamsScheduleDetailsPhaseItemPriceDataRecurring  r  re  c                   @   r  )rP  r  r  Nr  r=   r=   r=   r>   3UpcomingLinesParamsScheduleDetailsPhaseTransferData  r  rf  c                   @   r  )r,  r  rc  r  r  r  r  r2  r~  2Invoice.UpcomingLinesParamsSubscriptionDetailsItemrj  rT  rX  r  r  r  rl  r  ro  Nr  r=   r=   r=   r>   &UpcomingLinesParamsSubscriptionDetails  r  rh  c                   @   r  )rg  zOLiteral['']|Invoice.UpcomingLinesParamsSubscriptionDetailsItemBillingThresholdsrd  r  r  zLLiteral['']|List[Invoice.UpcomingLinesParamsSubscriptionDetailsItemDiscount]r)  r  r   r
  r  r-  ;Invoice.UpcomingLinesParamsSubscriptionDetailsItemPriceDatar/  r0  r2  r3  Nr  r=   r=   r=   r>   *UpcomingLinesParamsSubscriptionDetailsItem  r  rj  c                   @   r  )zCInvoice.UpcomingLinesParamsSubscriptionDetailsItemBillingThresholdsr  Nr>  r=   r=   r=   r>   ;UpcomingLinesParamsSubscriptionDetailsItemBillingThresholds  r  rk  c                   @   r6  )z:Invoice.UpcomingLinesParamsSubscriptionDetailsItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   2UpcomingLinesParamsSubscriptionDetailsItemDiscount  r;  rl  c                   @   r  )
ri  rA  rB  DInvoice.UpcomingLinesParamsSubscriptionDetailsItemPriceDataRecurringr  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   3UpcomingLinesParamsSubscriptionDetailsItemPriceData  r  rn  c                   @   rd   )rm  r  r  r  Nr  r=   r=   r=   r>   <UpcomingLinesParamsSubscriptionDetailsItemPriceDataRecurring9  r  ro  c                   @   r  )r-  zHLiteral['']|Invoice.UpcomingLinesParamsSubscriptionItemBillingThresholdsrd  r  r  zELiteral['']|List[Invoice.UpcomingLinesParamsSubscriptionItemDiscount]r)  r  r   r
  r  r-  4Invoice.UpcomingLinesParamsSubscriptionItemPriceDatar/  r0  r2  r3  Nr  r=   r=   r=   r>   #UpcomingLinesParamsSubscriptionItemE  r  rq  c                   @   r  )z<Invoice.UpcomingLinesParamsSubscriptionItemBillingThresholdsr  Nr>  r=   r=   r=   r>   4UpcomingLinesParamsSubscriptionItemBillingThresholdsy     
 rr  c                   @   r6  )z3Invoice.UpcomingLinesParamsSubscriptionItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   +UpcomingLinesParamsSubscriptionItemDiscount  r;  rt  c                   @   r  )
rp  rA  rB  =Invoice.UpcomingLinesParamsSubscriptionItemPriceDataRecurringr  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   ,UpcomingLinesParamsSubscriptionItemPriceData      
 rv  c                   @   rd   )ru  r  r  r  Nr  r=   r=   r=   r>   5UpcomingLinesParamsSubscriptionItemPriceDataRecurring  r  rx  c                   @   s  e Zd ZU ed 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  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< 	 ed ed< 	 ee ed< 	 ee ed< 	 ed 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*< 	 ee ed+< d,S )-Invoice.UpcomingParams"Invoice.UpcomingParamsAutomaticTaxrt  r7  rA  rz  %Invoice.UpcomingParamsCustomerDetailsr  z0Literal['']|List[Invoice.UpcomingParamsDiscount]r)  r  !Invoice.UpcomingParamsInvoiceItemr  Invoice.UpcomingParamsIssuerr  r  r  r  r  r   %Invoice.UpcomingParamsScheduleDetailsr"  r  r  r'  r  r(  r)  r*  r2  r+  )Invoice.UpcomingParamsSubscriptionDetailsr$  &Invoice.UpcomingParamsSubscriptionItemr.  rT  r/  r0  r  r1  r2  r  r3  r4  N)
r9   r:   r;   r   r<   rN   r   r   rG   r  r=   r=   r=   r>   UpcomingParams  s   
 r  c                   @   r   )rz  rA   +Invoice.UpcomingParamsAutomaticTaxLiabilityrB   Nr  r=   r=   r=   r>   UpcomingParamsAutomaticTax-  r   r  c                   @   r  )r  r4   r5   r7   Nr  r=   r=   r=   r>   #UpcomingParamsAutomaticTaxLiability7  r  r  c                   @   r*  )r{  z8Literal['']|Invoice.UpcomingParamsCustomerDetailsAddressr]   z9Literal['']|Invoice.UpcomingParamsCustomerDetailsShippingr+  (Invoice.UpcomingParamsCustomerDetailsTaxr-  r.  r/  *Invoice.UpcomingParamsCustomerDetailsTaxIdr1  Nr2  r=   r=   r=   r>   UpcomingParamsCustomerDetailsA  r4  r  c                   @   rQ   )z,Invoice.UpcomingParamsCustomerDetailsAddressrR   rS   rT   rU   rV   rW   Nr9  r=   r=   r=   r>   $UpcomingParamsCustomerDetailsAddress_  rZ   r  c                   @   r6  )z-Invoice.UpcomingParamsCustomerDetailsShipping4Invoice.UpcomingParamsCustomerDetailsShippingAddressr]   rK   r_   Nr  r=   r=   r=   r>   %UpcomingParamsCustomerDetailsShippingy  r  r  c                   @   rQ   )r  rR   rS   rT   rU   rV   rW   Nr9  r=   r=   r=   r>   ,UpcomingParamsCustomerDetailsShippingAddress  rZ   r  c                   @   r  )r  r  r:  Nr  r=   r=   r=   r>    UpcomingParamsCustomerDetailsTax  r  r  c                   @   r  )r  r<  r7   rL   Nr  r=   r=   r=   r>   "UpcomingParamsCustomerDetailsTaxId  r>  r  c                   @   r6  )zInvoice.UpcomingParamsDiscountr7  r  r8  Nr9  r=   r=   r=   r>   UpcomingParamsDiscount  r;  r  c                   @   r@  )r|  r  rA  r'  r(  z;Literal['']|List[Invoice.UpcomingParamsInvoiceItemDiscount]r)  rA  r   r
  'Invoice.UpcomingParamsInvoiceItemPeriodr,  r-  *Invoice.UpcomingParamsInvoiceItemPriceDatar/  r0  rE  rH  r  rP  r2  r3  rI  rJ  NrD  r=   r=   r=   r>   UpcomingParamsInvoiceItem
  sJ   
 r  c                   @   r6  )z)Invoice.UpcomingParamsInvoiceItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   !UpcomingParamsInvoiceItemDiscountP  r;  r  c                   @   rJ   )r  r<  r=  Nr>  r=   r=   r=   r>   UpcomingParamsInvoiceItemPeriod^  rP   r  c                   @   rI  )r  rA  rB  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   "UpcomingParamsInvoiceItemPriceDatah  rK  r  c                   @   r  )r}  r4   r5   r7   Nr  r=   r=   r=   r>   UpcomingParamsIssuer  r  r  c                   @   rM  )r~  rN  rQ  *Invoice.UpcomingParamsScheduleDetailsPhaserS  rT  rX  NrY  r=   r=   r=   r>   UpcomingParamsScheduleDetails  s   
 r  c                   @   r\  )&r  8Invoice.UpcomingParamsScheduleDetailsPhaseAddInvoiceItemr^  r_  6Invoice.UpcomingParamsScheduleDetailsPhaseAutomaticTaxrt  ra  rc  zGLiteral['']|Invoice.UpcomingParamsScheduleDetailsPhaseBillingThresholdsrd  ru  rx  r7  rA  r|  r2  r~  r  r'  zDLiteral['']|List[Invoice.UpcomingParamsScheduleDetailsPhaseDiscount]r)  re  rf  9Invoice.UpcomingParamsScheduleDetailsPhaseInvoiceSettingsrh  .Invoice.UpcomingParamsScheduleDetailsPhaseItemrj  rk  r
  r  rT  rX  rl  6Invoice.UpcomingParamsScheduleDetailsPhaseTransferDatar  rn  ro  Nrp  r=   r=   r=   r>   "UpcomingParamsScheduleDetailsPhase  s~   
 r  c                   @   rs  )
r  @Invoice.UpcomingParamsScheduleDetailsPhaseAddInvoiceItemDiscountr)  r-  AInvoice.UpcomingParamsScheduleDetailsPhaseAddInvoiceItemPriceDatar/  r0  r2  r3  Nrv  r=   r=   r=   r>   0UpcomingParamsScheduleDetailsPhaseAddInvoiceItem  rx  r  c                   @   r6  )r  r7  r  r8  Nr9  r=   r=   r=   r>   8UpcomingParamsScheduleDetailsPhaseAddInvoiceItemDiscount$  r;  r  c                   @   rI  )r  rA  rB  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   9UpcomingParamsScheduleDetailsPhaseAddInvoiceItemPriceData2  rK  r  c                   @   r   )r  rA   ?Invoice.UpcomingParamsScheduleDetailsPhaseAutomaticTaxLiabilityrB   Nr  r=   r=   r=   r>   .UpcomingParamsScheduleDetailsPhaseAutomaticTaxJ  r(  r  c                   @   r  )r  r4   r5   r7   Nr  r=   r=   r=   r>   7UpcomingParamsScheduleDetailsPhaseAutomaticTaxLiabilityV  r  r  c                   @   r  )z;Invoice.UpcomingParamsScheduleDetailsPhaseBillingThresholdsr  r  Nr  r=   r=   r=   r>   3UpcomingParamsScheduleDetailsPhaseBillingThresholds`  r  r  c                   @   r6  )z2Invoice.UpcomingParamsScheduleDetailsPhaseDiscountr7  r  r8  Nr9  r=   r=   r=   r>   *UpcomingParamsScheduleDetailsPhaseDiscountj  r;  r  c                   @   r  )r  r2  rp  r{  ?Invoice.UpcomingParamsScheduleDetailsPhaseInvoiceSettingsIssuerr  Nr  r=   r=   r=   r>   1UpcomingParamsScheduleDetailsPhaseInvoiceSettingsx  r  r  c                   @   r  )r  r4   r5   r7   Nr  r=   r=   r=   r>   7UpcomingParamsScheduleDetailsPhaseInvoiceSettingsIssuer  r  r  c                   @   r  )r  zKLiteral['']|Invoice.UpcomingParamsScheduleDetailsPhaseItemBillingThresholdsrd  zHLiteral['']|List[Invoice.UpcomingParamsScheduleDetailsPhaseItemDiscount]r)  r
  r  r-  7Invoice.UpcomingParamsScheduleDetailsPhaseItemPriceDatar/  r0  r2  r3  Nr  r=   r=   r=   r>   &UpcomingParamsScheduleDetailsPhaseItem  r  r  c                   @   r  )z?Invoice.UpcomingParamsScheduleDetailsPhaseItemBillingThresholdsr  Nr>  r=   r=   r=   r>   7UpcomingParamsScheduleDetailsPhaseItemBillingThresholds  rs  r  c                   @   r6  )z6Invoice.UpcomingParamsScheduleDetailsPhaseItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   .UpcomingParamsScheduleDetailsPhaseItemDiscount  r;  r  c                   @   r  )
r  rA  rB  @Invoice.UpcomingParamsScheduleDetailsPhaseItemPriceDataRecurringr  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   /UpcomingParamsScheduleDetailsPhaseItemPriceData  rw  r  c                   @   rd   )r  r  r  r  Nr  r=   r=   r=   r>   8UpcomingParamsScheduleDetailsPhaseItemPriceDataRecurring  r  r  c                   @   r  )r  r  r  Nr  r=   r=   r=   r>   .UpcomingParamsScheduleDetailsPhaseTransferData  r  r  c                   @   r  )r  r  rc  r  r  r  r  r2  r~  -Invoice.UpcomingParamsSubscriptionDetailsItemrj  rT  rX  r  r  r  rl  r  ro  Nr  r=   r=   r=   r>   !UpcomingParamsSubscriptionDetails   r  r  c                   @   r  )r  zJLiteral['']|Invoice.UpcomingParamsSubscriptionDetailsItemBillingThresholdsrd  r  r  zGLiteral['']|List[Invoice.UpcomingParamsSubscriptionDetailsItemDiscount]r)  r  r   r
  r  r-  6Invoice.UpcomingParamsSubscriptionDetailsItemPriceDatar/  r0  r2  r3  Nr  r=   r=   r=   r>   %UpcomingParamsSubscriptionDetailsItem2  r  r  c                   @   r  )z>Invoice.UpcomingParamsSubscriptionDetailsItemBillingThresholdsr  Nr>  r=   r=   r=   r>   6UpcomingParamsSubscriptionDetailsItemBillingThresholdsf  rs  r  c                   @   r6  )z5Invoice.UpcomingParamsSubscriptionDetailsItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   -UpcomingParamsSubscriptionDetailsItemDiscountl  r;  r  c                   @   r  )
r  rA  rB  ?Invoice.UpcomingParamsSubscriptionDetailsItemPriceDataRecurringr  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   .UpcomingParamsSubscriptionDetailsItemPriceDataz  rw  r  c                   @   rd   )r  r  r  r  Nr  r=   r=   r=   r>   7UpcomingParamsSubscriptionDetailsItemPriceDataRecurring  r  r  c                   @   r  )r  zCLiteral['']|Invoice.UpcomingParamsSubscriptionItemBillingThresholdsrd  r  r  z@Literal['']|List[Invoice.UpcomingParamsSubscriptionItemDiscount]r)  r  r   r
  r  r-  /Invoice.UpcomingParamsSubscriptionItemPriceDatar/  r0  r2  r3  Nr  r=   r=   r=   r>   UpcomingParamsSubscriptionItem  r  r  c                   @   r  )z7Invoice.UpcomingParamsSubscriptionItemBillingThresholdsr  Nr>  r=   r=   r=   r>   /UpcomingParamsSubscriptionItemBillingThresholds  rs  r  c                   @   r6  )z.Invoice.UpcomingParamsSubscriptionItemDiscountr7  r  r8  Nr9  r=   r=   r=   r>   &UpcomingParamsSubscriptionItemDiscount  r;  r  c                   @   r  )
r  rA  rB  8Invoice.UpcomingParamsSubscriptionItemPriceDataRecurringr  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   'UpcomingParamsSubscriptionItemPriceData  r  r  c                   @   rd   )r  r  r  r  Nr  r=   r=   r=   r>   0UpcomingParamsSubscriptionItemPriceDataRecurring  r  r  c                   @   r  )Invoice.UpdateLinesParamsr  r   r!  Invoice.UpdateLinesParamsLiner#  Nr$  r=   r=   r=   r>   UpdateLinesParams  r&  r  c                   @   s   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e ed< 	 ed ed< 	 ee ed< 	 ed ed< 	 ed ed< dS )r  r  r'  r(  z7Literal['']|List[Invoice.UpdateLinesParamsLineDiscount]r)  r  r   r
  #Invoice.UpdateLinesParamsLinePeriodr,  r-  &Invoice.UpdateLinesParamsLinePriceDatar/  r0  z8Literal['']|List[Invoice.UpdateLinesParamsLineTaxAmount]r1  r2  r3  Nr4  r=   r=   r=   r>   UpdateLinesParamsLine  s:   
 r  c                   @   r6  )z%Invoice.UpdateLinesParamsLineDiscountr7  r  r8  Nr9  r=   r=   r=   r>   UpdateLinesParamsLineDiscountT  r;  r  c                   @   rJ   )r  r<  r=  Nr>  r=   r=   r=   r>   UpdateLinesParamsLinePeriodb  rP   r  c                   @   r@  )
r  rA  rB  1Invoice.UpdateLinesParamsLinePriceDataProductDatarD  rE  rH  rI  rJ  NrK  r=   r=   r=   r>   UpdateLinesParamsLinePriceDatal  rM  r  c                   @   rN  )r  r'  rO  r
  rK   rP  NrQ  r=   r=   r=   r>   )UpdateLinesParamsLinePriceDataProductData  rS  r  c                   @   rT  )z&Invoice.UpdateLinesParamsLineTaxAmountr  1Invoice.UpdateLinesParamsLineTaxAmountTaxRateDatarV  r  Nr>  r=   r=   r=   r>   UpdateLinesParamsLineTaxAmount  rX  r  c                   @   rY  )r  rS   r'  rZ  r  r[  r\  rW   r]  rj  Nrk  r=   r=   r=   r>   )UpdateLinesParamsLineTaxAmountTaxRateData  rn  r  c                   @   r  )Invoice.VoidInvoiceParamsr  Nr$  r=   r=   r=   r>   VoidInvoiceParams  r}  r  account_countryaccount_namer,   rp  
amount_dueamount_paidamount_remainingamount_shippingr   applicationrq  attempt_count	attemptedrr  rt  automatically_finalizes_at)	&automatic_pending_invoice_item_invoicemanualquote_acceptr  subscription_createsubscription_cyclesubscription_thresholdsubscription_updateupcomingbilling_reasonr!   r   ru  rx  r  rA  ry  r"   rz  customer_addresscustomer_emailcustomer_namecustomer_phonecustomer_shipping)exemptrW  reversecustomer_tax_exemptcustomer_tax_idsr&   r|  rm  r}  r-   r~  r'  r#   r  r)  r  r  ending_balancer  r  hosted_invoice_urlr  invoice_pdfr  last_finalization_errorlatest_revisionr$   r#  livemoder
  next_payment_attemptr  objectr   r  r  r  r%   rh  r  
period_endperiod_start post_payment_credit_notes_amountpre_payment_credit_notes_amountr'   quotereceipt_numberr  r  r  starting_balancer  r  rF   status_transitionsr+   r  r$  r0  subtotalsubtotal_excluding_taxr-  r.   
test_clockthreshold_reasontotaltotal_discount_amountstotal_excluding_taxtotal_tax_amountsr  webhooks_delivered_atTr  paramsr  returnc                 K   "   t d| jddjt|d|dS )q
        Adds multiple line items to an invoice. This is only possible when an invoice is still a draft.
        r0   post /v1/invoices/{invoice}/add_linesr1   r  r   _static_requestformatr   clsr1   r  r=   r=   r>   _cls_add_linesA     zInvoice._cls_add_linesc                 K      dS r  Nr=   r1   r  r=   r=   r>   	add_linesS     zInvoice.add_linesc                 K   r  r  r=   r6   r  r=   r=   r>   r  ]     r  c              	   K   (   t d| jddjt| dd|dS )r  r0   r  r  r  r  r  r   _requestr  r   getr  r=   r=   r>   r  f     c                    *   t d| jddjt|d|dI dH S )r  r0   r  r  r  r  Nr   _static_request_asyncr  r   r  r=   r=   r>   _cls_add_lines_asyncx     
zInvoice._cls_add_lines_asyncc                       dS r  r=   r  r=   r=   r>   add_lines_async     zInvoice.add_lines_asyncc                    r(  r  r=   r  r=   r=   r>   r)       r&  c              	      0   t d| jddjt| dd|dI dH S )r  r0   r  r  r  r  r  Nr   _request_asyncr  r   r!  r  r=   r=   r>   r)       
ro  c                 K   s   t d| jd|  |dS )   
        This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://stripe.com/docs/api#finalize_invoice) the invoice to your customers.
        r0   r  r  )r   r  	class_urlr  r  r=   r=   r>   create  s   zInvoice.createc                    s"   t d| jd|  |dI dH S )r0  r0   r  r  N)r   r%  r1  r2  r=   r=   r>   create_async  s   
zInvoice.create_asyncr  c                 K      t d| jd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)
        r0   r  /v1/invoices/create_previewr  r   r  r2  r=   r=   r>   create_preview  s   zInvoice.create_previewc                       t d| jdd|dI dH S )r6  r0   r  r7  r  Nr   r%  r2  r=   r=   r>   create_preview_async     
zInvoice.create_preview_asyncsidr  c                 K   *   d|   t|f }td| jd||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).
        %s/%sr0   r  r  r1  r   r   r  r  r>  r  urlr=   r=   r>   _cls_delete  s   zInvoice._cls_deletec                 K   r  r@  Nr=   r>  r  r=   r=   r>   r  
  r  zInvoice.deletec                 K   r  rF  r=   r  r=   r=   r>   r       rE  c                 K   s   | j d|  |dS )r@  r  r  )_request_and_refreshinstance_urlr  r=   r=   r>   r    s
   c                    2   d|   t|f }td| jd||dI dH S )r@  rA  r0   r  r  Nr1  r   r   r%  rC  r=   r=   r>   _cls_delete_async(  s   
zInvoice._cls_delete_asyncc                    r(  rF  r=   rG  r=   r=   r>   delete_async9  r*  zInvoice.delete_asyncc                    r(  rF  r=   r  r=   r=   r>   rN  C  r+  rM  c                    s   | j d|  |dI dH S )r@  r  r  N)_request_and_refresh_asyncrJ  r  r=   r=   r>   rN  L  s   r  c                 K   r
  )
        Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
        r0   r  /v1/invoices/{invoice}/finalizer  r  r  r  r=   r=   r>   _cls_finalize_invoiceY  r  zInvoice._cls_finalize_invoicec                 K   r  rP  Nr=   r  r=   r=   r>   finalize_invoicek  r  zInvoice.finalize_invoicec                 K   r  rS  r=   r  r=   r=   r>   rT  u  r  rR  c              	   K   r  )rP  r0   r  rQ  r  r  r  r  r  r=   r=   r>   rT  ~  r"  c                    r#  )rP  r0   r  rQ  r  r  Nr$  r  r=   r=   r>   _cls_finalize_invoice_async  r'  z#Invoice._cls_finalize_invoice_asyncc                    r(  rS  r=   r  r=   r=   r>   finalize_invoice_async  r*  zInvoice.finalize_invoice_asyncc                    r(  rS  r=   r  r=   r=   r>   rV    r+  rU  c              	      r,  )rP  r0   r  rQ  r  r  r  Nr-  r  r=   r=   r>   rV    r/  r  c                 K   s4   | j d|  |d}t|tstdt|j |S )
        You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.
        r!  r  %Expected list object from API, got %s)r  r1  
isinstancer   	TypeErrorr7   r9   r  r  resultr=   r=   r>   list  s   
zInvoice.listc                    s<   | j d|  |dI dH }t|tstdt|j |S )rW  r!  r  NrX  )r%  r1  rY  r   rZ  r7   r9   r[  r=   r=   r>   
list_async  s   
zInvoice.list_asyncr  c                 K   r
  )
        Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.
        r0   r  )/v1/invoices/{invoice}/mark_uncollectibler  r  r  r  r=   r=   r>   _cls_mark_uncollectible  r  zInvoice._cls_mark_uncollectiblec                 K   r  r_  Nr=   r  r=   r=   r>   mark_uncollectible  r  zInvoice.mark_uncollectiblec                 K   r  rb  r=   r  r=   r=   r>   rc    r  ra  c              	   K   r  )r_  r0   r  r`  r  r  r  r  r  r=   r=   r>   rc    r"  c                    r#  )r_  r0   r  r`  r  r  Nr$  r  r=   r=   r>   _cls_mark_uncollectible_async&  r'  z%Invoice._cls_mark_uncollectible_asyncc                    r(  rb  r=   r  r=   r=   r>   mark_uncollectible_async8  r*  z Invoice.mark_uncollectible_asyncc                    r(  rb  r=   r  r=   r=   r>   re  B  r+  rd  c              	      r,  )r_  r0   r  r`  r  r  r  Nr-  r  r=   r=   r>   re  K  r/  r  c                 K   r?  )  
        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.
        rA  r0   r  r  rB  r  r  r  rD  r=   r=   r>   modify]  s   zInvoice.modifyc                    rK  )rf  rA  r0   r  r  NrL  rg  r=   r=   r>   modify_asyncs  s   
zInvoice.modify_asyncr  c                 K   r
  )i  
        Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so.
        r0   r  /v1/invoices/{invoice}/payr  r  r  r  r=   r=   r>   _cls_pay  r  zInvoice._cls_payc                 K   r  rj  Nr=   r  r=   r=   r>   pay  s   zInvoice.payc                 K   r  rm  r=   r  r=   r=   r>   rn    rH  rl  c              	   K   r  )rj  r0   r  rk  r  r  r  r  r  r=   r=   r>   rn    r"  c                    r#  )rj  r0   r  rk  r  r  Nr$  r  r=   r=   r>   _cls_pay_async  r'  zInvoice._cls_pay_asyncc                    r(  rm  r=   r  r=   r=   r>   	pay_async  r*  zInvoice.pay_asyncc                    r(  rm  r=   r  r=   r=   r>   rp    r+  ro  c              	      r,  )rj  r0   r  rk  r  r  r  Nr-  r  r=   r=   r>   rp    r/  r  c                 K   r
  )v
        Removes multiple line items from an invoice. This is only possible when an invoice is still a draft.
        r0   r  #/v1/invoices/{invoice}/remove_linesr  r  r  r  r=   r=   r>   _cls_remove_lines  r  zInvoice._cls_remove_linesc                 K   r  rq  Nr=   r  r=   r=   r>   remove_lines  r  zInvoice.remove_linesc                 K   r  rt  r=   r  r=   r=   r>   ru    r  rs  c              	   K   r  )rq  r0   r  rr  r  r  r  r  r  r=   r=   r>   ru    r"  c                    r#  )rq  r0   r  rr  r  r  Nr$  r  r=   r=   r>   _cls_remove_lines_async*  r'  zInvoice._cls_remove_lines_asyncc                    r(  rt  r=   r  r=   r=   r>   remove_lines_async<  r*  zInvoice.remove_lines_asyncc                    r(  rt  r=   r  r=   r=   r>   rw  F  r+  rv  c              	      r,  )rq  r0   r  rr  r  r  r  Nr-  r  r=   r=   r>   rw  O  r/  r  c                 K   s   | |fi |}|   |S ):
        Retrieves the invoice with the given ID.
        )refreshr  r  r  instancer=   r=   r>   retrievea  s   zInvoice.retrievec                    s$   | |fi |}|  I dH  |S )rx  N)refresh_asyncrz  r=   r=   r>   retrieve_asyncl  s   zInvoice.retrieve_asyncr  c                 K   r
  )  
        Stripe will automatically send invoices to customers according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to manually send an invoice to your customer out of the normal schedule, you can do so. When sending invoices that have already been paid, there will be no reference to the payment in the email.

        Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event.
        r0   r  /v1/invoices/{invoice}/sendr  r  r  r  r=   r=   r>   _cls_send_invoicew     	zInvoice._cls_send_invoicec                 K   r  r  Nr=   r  r=   r=   r>   rw       
zInvoice.send_invoicec                 K   r  r  r=   r  r=   r=   r>   rw       	r  c              	   K   r  )r  r0   r  r  r  r  r  r  r  r=   r=   r>   rw       	c                    r#  )r  r0   r  r  r  r  Nr$  r  r=   r=   r>   _cls_send_invoice_async     	
zInvoice._cls_send_invoice_asyncc                    r(  r  r=   r  r=   r=   r>   send_invoice_async     
zInvoice.send_invoice_asyncc                    r(  r  r=   r  r=   r=   r>   r       	r  c              	      r,  )r  r0   r  r  r  r  r  Nr-  r  r=   r=   r>   r       	
ry  c                 K   r5  )r6  r0   r!  /v1/invoices/upcomingr  r8  r2  r=   r=   r>   r    s   zInvoice.upcomingc                    r:  )r6  r0   r!  r  r  Nr;  r2  r=   r=   r>   upcoming_async	  r=  zInvoice.upcoming_asyncr!  c                 K   s   t td | jdd|dS )
        When retrieving an upcoming invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        r$   r!  /v1/invoices/upcoming/linesr  )r   r   r  r2  r=   r=   r>   upcoming_lines  s   zInvoice.upcoming_linesc                    s"   t td | jdd|dI dH S )r  r$   r!  r  r  N)r   r   r%  r2  r=   r=   r>   upcoming_lines_async/  s   
zInvoice.upcoming_lines_asyncr  c                 K   r
  )t
        Updates multiple line items on an invoice. This is only possible when an invoice is still a draft.
        r0   r  #/v1/invoices/{invoice}/update_linesr  r  r  r  r=   r=   r>   _cls_update_lines?  r  zInvoice._cls_update_linesc                 K   r  r  Nr=   r  r=   r=   r>   update_linesQ  r  zInvoice.update_linesc                 K   r  r  r=   r  r=   r=   r>   r  [  r  r  c              	   K   r  )r  r0   r  r  r  r  r  r  r  r=   r=   r>   r  d  r"  c                    r#  )r  r0   r  r  r  r  Nr$  r  r=   r=   r>   _cls_update_lines_asyncv  r'  zInvoice._cls_update_lines_asyncc                    r(  r  r=   r  r=   r=   r>   update_lines_async  r*  zInvoice.update_lines_asyncc                    r(  r  r=   r  r=   r=   r>   r    r+  r  c              	      r,  )r  r0   r  r  r  r  r  Nr-  r  r=   r=   r>   r    r/  r  c                 K   r
  )  
        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.
        r0   r  /v1/invoices/{invoice}/voidr  r  r  r  r=   r=   r>   _cls_void_invoice  r  zInvoice._cls_void_invoicec                 K   r  r  Nr=   r  r=   r=   r>   void_invoice  r  zInvoice.void_invoicec                 K   r  r  r=   r  r=   r=   r>   r    r  r  c              	   K   r  )r  r0   r  r  r  r  r  r  r  r=   r=   r>   r    r  c                    r#  )r  r0   r  r  r  r  Nr$  r  r=   r=   r>   _cls_void_invoice_async  r  zInvoice._cls_void_invoice_asyncc                    r(  r  r=   r  r=   r=   r>   void_invoice_async   r  zInvoice.void_invoice_asyncc                    r(  r  r=   r  r=   r=   r>   r    r  r  c              	      r,  )r  r0   r  r  r  r  r  Nr-  r  r=   r=   r>   r    r  kwargsr  c                 O   s   | 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r  argsr  r=   r=   r>   search+  s   
zInvoice.searchc                    s   | j |ddi|I dH S )r  r  r  N)_search_asyncr  r=   r=   r>   search_async7  s   
zInvoice.search_asyncc                 O   s   | j |i | S N)r  auto_paging_iterr  r=   r=   r>   search_auto_paging_iterE  s   zInvoice.search_auto_paging_iterc                    s   | j |i |I d H  S r  )r  r  r  r=   r=   r>   search_auto_paging_iter_asyncK  s   z%Invoice.search_auto_paging_iter_asyncr  c                 K   s&   t td | jddjt|d|dS )
        When retrieving an invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        r$   r!  /v1/invoices/{invoice}/linesr  r  )r   r   r  r  r   r  r=   r=   r>   
list_linesQ  s   zInvoice.list_linesc                    s.   t td | jddjt|d|dI dH S )r  r$   r!  r  r  r  N)r   r   r%  r  r   r  r=   r=   r>   list_lines_asyncc  s   
zInvoice.list_lines_asyncN(F  r9   r:   r;   __doc__r2   r   r   r<   r   rI   rO   rY   rb   r   r   r   rt  r  r  r  r  r  r  r  r  r  r  r   r%  r   r5  r:  r?  rL  rR  rW  rm  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r%  r'  r)  r3  r5  r8  r9  r;  r=  r?  rE  rG  rH  rJ  rL  rZ  rq  rw  ry  r{  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	  r
  r  r  r  r  r  r  r   r5  r7  r8  r;  r<  r>  r?  r@  rA  rB  rE  rF  rG  rH  rI  rK  rQ  rT  rU  rV  rX  rY  rZ  r[  r]  r^  r`  ra  rb  rd  re  rf  rh  rj  rk  rl  rn  ro  rq  rr  rt  rv  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  r  r  r  r  r  r  r  r  r  r  r  r   rN   r   r   r  rG   r   r   r   classmethodr   r  r   staticmethodr  r   r&  r)  r3  r4  r9  r<  rE  r  rM  rN  rR  rT  rU  rV  r]  r^  ra  rc  rd  re  rh  ri  rl  rn  ro  rp  rs  ru  rv  rw  r|  r~  r  rw  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r	   r  r  r   r  r   r  r  r  rH   r=   r=   r=   r>   r0   7   s"	  
 #
.V

   G=.
(
6
1 




,









$



H
UH

p





(

2
4

+v



,







$
 
 
UH

p
(
244
x

UF

n


(

24
4
6
1

















&




&































,&


































&




































	
r0   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    rn  stripe._charger!   stripe._customerr"   stripe._discountr#   stripe._invoice_line_itemr$   stripe._payment_intentr%   stripe._payment_methodr&   stripe._quoter'   stripe._setup_intentr(   stripe._shipping_rater)   stripe._sourcer*   stripe._subscriptionr+   stripe._tax_idr,   stripe._tax_rater-   stripe.test_helpers._test_clockr.   r0   r=   r=   r=   r>   <module>   sR   ,

