a
    !fc                 	   @   s  d dl mZ d dlmZmZmZmZmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZ d dlmZ d dlmZ d d	lmZmZmZmZmZmZmZmZ d d
lmZmZm Z m!Z!m"Z" d dl#m$Z$ e"rd dl%m&Z& d dl'm(Z( d dl)m*Z* d dl+m,Z- d dl.m/Z/ d dl0m1Z1 d dl2m3Z3 d dl4m5Z5 d dl6m7Z7 d dl8m9Z9 d dl:m;Z; d dl<m=Z= d dl>m?Z? d dl@mAZA d dlBmCZC d dlDmEZE d dlFmGZG d dlHmIZI G dd ded ed ed ed ed ZJd S )!    )util)CreateableAPIResourceDeletableAPIResourceListableAPIResourceSearchableAPIResourceUpdateableAPIResource)ExpandableField)
ListObject)SearchResultObject)RequestOptions)StripeObject)class_method_variant)ClassVarDictIteratorListOptionalUnioncastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)
quote_plus)Account)Application)BankAccount)Card)Charge)Customer)Discount)InvoiceLineItem)PaymentIntent)PaymentMethod)Quote)SetupIntent)ShippingRate)Source)Subscription)TaxId)TaxRate)	TestClockc                   @   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Zee ed < ee ed< eeed   ed< eed< eed< eed< eed< eed  ed	< ee ed
< eed< eed< ee ed< e	ed< eed  ed< eed  ed< ed ed< eed< eed< eee
  ed< eed  ed< ee ed< ee ed< ee ed< ee ed< ee ed< eed  ed < eee  ed!< eed"  ed#< eeed$   ed%< ed& ed'< ee ed(< ed) ed*< eeed)   ed+< ee ed,< ee ed-< ee ed.< ee ed/< ee ed0< ee ed1< ee ed2< ee ed3< ee ed4< eed   ed5< ed6 ed7< eed8< eeeef  ed9< ee ed:< ee ed;< ed ed<< eed=  ed>< eed?< eed@< eedA  edB< eedC< eedD< eedE< eedF< eedG< eedH  edI< ee edJ< ee edK< ee edL< ee edM< ee edN< eedO< ee edP< eedQ  edR< eedS< eedT  edU< ee edV< ee edW< eedX< ee edY< ee edZ< eed[  ed\< ee ed]< eed^< eee  ed_< ee ed`< ee eda< ee edb< ee edc< eedd  ede< edee ee ee ee edg d dhdidjZeeedk d dldmdnZeeeedk d dldodpZeedk d dqdrdpZedsedk d dqdtdpZedeee ee ee edu d dvdwdxZeedeee ee ee edu d dvdydzZedee edu d d{d|dzZed}dee edu d d{d~dzZedee ee ee ed ed  dddZedeee ee ee ed d dvddZeedeee ee ee ed d dvddZedee ed d d{ddZeddee ed d d{ddZeeed d dddZedeee ee ee ed d dvddZeedeee ee ee ed d dvddZedee ed d d{ddZeddee ed d d{ddZeeed d dddZedeee ee ee ed d dvddZeedeee ee ee ed d dvddZedee ed d d{ddZeddee ed d d{ddZedee ee ee ed d dddZedee ee ee ed ed6 dddZedeee ee ee ed d dvddZeedeee ee ee ed d dvddZedee ed d d{ddZeddee ed d d{ddZeed ed  dddZeed ed  dddZe	e
eeeeeeeeeeeeeeeedZdfS (  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                   @   s&   e Zd ZU eed< eed  ed< dS )zInvoice.AutomaticTaxenabled)ZcompletefailedZrequires_location_inputsstatusN)__name__
__module____qualname__bool__annotations__r   r    r9   r9   ]/var/www/html/python-backend/venv/lib/python3.9/site-packages/stripe/api_resources/invoice.pyAutomaticTaxe   s
   
r;   c                   @   s   e Zd ZU eed< eed< dS )zInvoice.CustomFieldnamevalueNr4   r5   r6   strr8   r9   r9   r9   r:   CustomFieldq   s   
r@   c                   @   sV   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r4   r5   r6   r   r?   r8   r9   r9   r9   r:   CustomerAddress{   s   
rH   c                   @   sb   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                   @   sV   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.CustomerShipping.AddressrA   rB   rC   rD   rE   rF   NrG   r9   r9   r9   r:   Address   s   
rI   addresscarrierr<   phonetracking_numberN	r4   r5   r6   r   rI   r   r8   r?   _inner_class_typesr9   r9   r9   r:   CustomerShipping   s   
rP   c                   @   s&   e Zd ZU ed ed< ee ed< dS )zInvoice.CustomerTaxId)Cad_nrtae_trnar_cuitau_abnau_arnbg_uicbo_tinbr_cnpjbr_cpfca_bn
ca_gst_hst	ca_pst_bc	ca_pst_mb	ca_pst_skca_qstch_vatcl_tincn_tinco_nitcr_tindo_rcnec_ruceg_tines_cif
eu_oss_vateu_vatgb_vatge_vathk_brhu_tinid_npwpil_vatin_gstis_vatjp_cnjp_rnjp_trnke_pinkr_brnli_uidmx_rfcmy_frpmy_itnmy_sstno_vatnz_gstpe_rucph_tinro_tinrs_pibru_innru_kppsa_vatsg_gstsg_uensi_tinsv_nitth_vattr_tintw_vatua_vatunknownus_einuy_rucve_rifvn_tinza_vattyper=   N)r4   r5   r6   r   r8   r   r?   r9   r9   r9   r:   CustomerTaxId   s
   
Hr   c                   @   s"   e Zd ZU eed< ed ed< dS )zInvoice.FromInvoiceactionr.   r/   N)r4   r5   r6   r?   r8   r   r9   r9   r9   r:   FromInvoice  s   
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)Zaccount_closedZaccount_country_invalid_addressZ6account_error_country_change_requires_additional_stepsZaccount_information_mismatchZaccount_invalidZaccount_number_invalidZacss_debit_session_incompleteZalipay_upgrade_requiredZamount_too_largeZamount_too_smallZapi_key_expiredZapplication_fees_not_allowedZauthentication_requiredZbalance_insufficientZbalance_invalid_parameterZ bank_account_bad_routing_numbersZbank_account_declinedZbank_account_existsZbank_account_restrictedZbank_account_unusableZbank_account_unverifiedZ bank_account_verification_failedZbilling_invalid_mandateZbitcoin_upgrade_requiredZ$capture_charge_authorization_expiredZcapture_unauthorized_paymentZ card_decline_rate_limit_exceededZcard_declinedZ cardholder_phone_number_requiredZcharge_already_capturedZcharge_already_refundedZcharge_disputedZcharge_exceeds_source_limitZcharge_expired_for_captureZcharge_invalid_parameterZcharge_not_refundableZclearing_code_unsupportedZcountry_code_invalidZcountry_unsupportedZcoupon_expiredZcustomer_max_payment_methodsZcustomer_max_subscriptionsZdebit_not_authorizedZemail_invalidZexpired_cardZ&financial_connections_account_inactiveZidempotency_key_in_useZincorrect_addressZincorrect_cvcZincorrect_numberZincorrect_zipZinstant_payouts_config_disabledZ!instant_payouts_currency_disabledZinstant_payouts_limit_exceededZinstant_payouts_unsupportedZinsufficient_fundsZintent_invalid_stateZ"intent_verification_method_missingZinvalid_card_typeZinvalid_charactersZinvalid_charge_amountZinvalid_cvcZinvalid_expiry_monthZinvalid_expiry_yearZinvalid_numberZinvalid_source_usageZinvalid_tax_locationZinvoice_no_customer_line_itemsZinvoice_no_payment_method_typesZ"invoice_no_subscription_line_itemsZinvoice_not_editableZ!invoice_on_behalf_of_not_editableZ&invoice_payment_intent_requires_actionZinvoice_upcoming_noneZlivemode_mismatchZlock_timeoutmissingZ
no_accountZnot_allowed_on_standard_accountZout_of_inventoryZ!ownership_declaration_not_allowedZparameter_invalid_emptyZparameter_invalid_integerZparameter_invalid_string_blankZparameter_invalid_string_emptyZparameter_missingZparameter_unknownZparameters_exclusiveZpayment_intent_action_requiredZ%payment_intent_authentication_failureZ*payment_intent_incompatible_payment_methodZ payment_intent_invalid_parameterZ3payment_intent_konbini_rejected_confirmation_numberZpayment_intent_mandate_invalidZ&payment_intent_payment_attempt_expiredZ%payment_intent_payment_attempt_failedZpayment_intent_unexpected_stateZ,payment_method_bank_account_already_verifiedZ#payment_method_bank_account_blockedZ.payment_method_billing_details_address_missingZ%payment_method_configuration_failuresZ payment_method_currency_mismatchZpayment_method_customer_declineZ payment_method_invalid_parameterZ)payment_method_invalid_parameter_testmodeZ"payment_method_microdeposit_failedZ8payment_method_microdeposit_verification_amounts_invalidZ9payment_method_microdeposit_verification_amounts_mismatchZ:payment_method_microdeposit_verification_attempts_exceededZApayment_method_microdeposit_verification_descriptor_code_mismatchZ0payment_method_microdeposit_verification_timeoutZpayment_method_not_availableZpayment_method_provider_declineZpayment_method_provider_timeoutZpayment_method_unactivatedZpayment_method_unexpected_stateZpayment_method_unsupported_typeZpayout_reconciliation_not_readyZpayouts_limit_exceededZpayouts_not_allowedZplatform_account_requiredZplatform_api_key_expiredZpostal_code_invalidZprocessing_errorZproduct_inactiveZ%progressive_onboarding_limit_exceededZ
rate_limitZrefer_to_customerZrefund_disputed_paymentZresource_already_existsZresource_missingZreturn_intent_already_processedZrouting_number_invalidZsecret_key_requiredZsepa_unsupported_accountZsetup_attempt_failedZ#setup_intent_authentication_failureZsetup_intent_invalid_parameterZsetup_intent_mandate_invalidZ"setup_intent_setup_attempt_expiredZsetup_intent_unexpected_stateZshipping_calculation_failedZsku_inactiveZstate_unsupportedZstatus_transition_invalidZstripe_tax_inactiveZtax_id_invalidZtaxes_calculation_failedZ%terminal_location_country_unsupportedZterminal_reader_busyZterminal_reader_hardware_faultZterminal_reader_offlineZterminal_reader_timeoutZtestmode_charges_onlyZtls_version_unsupportedZtoken_already_usedZtoken_card_network_invalidZtoken_in_useZ+transfer_source_balance_parameters_mismatchZtransfers_not_allowedZurl_invalidcodeZdecline_codeZdoc_urlmessageparamr$   payment_intentr%   payment_methodZpayment_method_typeZrequest_log_urlr'   Zsetup_intentr   r   CardResourcer)   source)Z	api_errorZ
card_errorZidempotency_errorZinvalid_request_errorr   N)r4   r5   r6   r   r?   r8   r   r   r9   r9   r9   r:   LastFinalizationError  s.   
 )r   c                   @   sR   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	e
e ed< e
e ed< e
e ed< e
e ed< e
e ed< e
e	 ed< eeeeee	dZdS )z,Invoice.PaymentSettings.PaymentMethodOptionsc                   @   sB   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                   @   s   e Zd ZU eed  ed< dS )zEInvoice.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions)ZbusinessZpersonaltransaction_typeNr4   r5   r6   r   r   r8   r9   r9   r9   r:   MandateOptions  s   
r   mandate_options	automaticZinstantZmicrodepositsverification_methodN)	r4   r5   r6   r   r   r   r8   r   rO   r9   r9   r9   r:   	AcssDebit  s   
r   c                   @   s   e Zd ZU ed ed< dS )z7Invoice.PaymentSettings.PaymentMethodOptions.Bancontact)deenfrnlpreferred_languageNr4   r5   r6   r   r8   r9   r9   r9   r:   
Bancontact-  s   
r   c                   @   sB   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 )z1Invoice.PaymentSettings.PaymentMethodOptions.Cardc                   @   s   e Zd ZU ee ed< dS )z>Invoice.PaymentSettings.PaymentMethodOptions.Card.Installmentsr1   N)r4   r5   r6   r   r7   r8   r9   r9   r9   r:   Installments4  s   
r   installments)anyr   request_three_d_secureN)	r4   r5   r6   r   r   r   r8   r   rO   r9   r9   r9   r:   r   3  s   
r   c                   @   sB   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                   @   s   e Zd ZU ed ed< dS )zXInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer)ZBEZDEESZFRZIENLrB   Nr   r9   r9   r9   r:   EuBankTransferC  s   
r   eu_bank_transferr   N)	r4   r5   r6   r   r   r   r8   r?   rO   r9   r9   r9   r:   BankTransferB  s   
r   bank_transferfunding_typeN)	r4   r5   r6   r   r   r   r8   r   rO   r9   r9   r9   r:   CustomerBalanceA  s   
r   c                   @   s   e Zd ZdS )z4Invoice.PaymentSettings.PaymentMethodOptions.KonbiniNr4   r5   r6   r9   r9   r9   r:   KonbiniW  s   r   c                   @   sB   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.UsBankAccountc                   @   s6   e Zd ZU eeed   ed< eeed   ed< dS )zOInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections)balancesr   Ztransactionspermissionsr   prefetchN)r4   r5   r6   r   r   r   r8   r9   r9   r9   r:   FinancialConnections[  s   

r   financial_connectionsr   r   N)	r4   r5   r6   r   r   r   r8   r   rO   r9   r9   r9   r:   UsBankAccountZ  s   
r   
acss_debit
bancontactcardcustomer_balancekonbinius_bank_account)r   r   r   r   r   r   N)r4   r5   r6   r   r   r   r   r   r   r   r   r8   rO   r9   r9   r9   r:   PaymentMethodOptions  s&   
r   default_mandatepayment_method_options)Zach_credit_transferZ	ach_debitr   Zau_becs_debitZ
bacs_debitr   Zboletor   Zcashappr   ZfpxZgiropayZgrabpayZidealr   linkZpaynowZpaypalZ	promptpayZsepa_credit_transferZ
sepa_debitZsofortr   Z
wechat_paypayment_method_typesN)r4   r5   r6   r   r   r   r?   r8   r   r   rO   r9   r9   r9   r:   PaymentSettings  s   
{!r   c                   @   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 )zInvoice.Renderingc                   @   s   e Zd ZU eed  ed< dS )zInvoice.Rendering.Pdf)Za4autoletter	page_sizeNr   r9   r9   r9   r:   Pdf  s   
r   amount_tax_displaypdfN)	r4   r5   r6   r   r   r   r?   r8   rO   r9   r9   r9   r:   	Rendering  s   
r   c                   @   s   e Zd ZU ee ed< dS )zInvoice.RenderingOptionsr   NrG   r9   r9   r9   r:   RenderingOptions  s   
r   c                   @   s^   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,   ZrateZcustomer_exemptZnot_collectingZnot_subject_to_taxZnot_supportedZportion_product_exemptZportion_reduced_ratedZportion_standard_ratedZproduct_exemptZproduct_exempt_holidayZproportionally_ratedZreduced_ratedZreverse_chargeZstandard_ratedZtaxable_basis_reducedZ
zero_ratedtaxability_reasontaxable_amountN)r4   r5   r6   intr8   r   r   r9   r9   r9   r:   Tax  s   
r   Zamount_subtotalZ
amount_taxZamount_totalr(   shipping_rateZtaxesN)r4   r5   r6   r   r   r   r8   r   r   r   rO   r9   r9   r9   r:   ShippingCost  s   
&r   c                   @   sb   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.ShippingDetailsc                   @   sV   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.ShippingDetails.AddressrA   rB   rC   rD   rE   rF   NrG   r9   r9   r9   r:   rI     s   
rI   rJ   rK   r<   rL   rM   NrN   r9   r9   r9   r:   ShippingDetails  s   
r   c                   @   s>   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.StatusTransitionsZfinalized_atZmarked_uncollectible_atZpaid_atZ	voided_atN)r4   r5   r6   r   r   r8   r9   r9   r9   r:   StatusTransitionsD  s
   
r   c                   @   s"   e Zd ZU eeeef  ed< dS )zInvoice.SubscriptionDetailsmetadataN)r4   r5   r6   r   r   r?   r8   r9   r9   r9   r:   SubscriptionDetailsV  s   
r   c                   @   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 )zInvoice.ThresholdReasonc                   @   s"   e Zd ZU ee ed< eed< dS )z"Invoice.ThresholdReason.ItemReasonZline_item_ids	usage_gteN)r4   r5   r6   r   r?   r8   r   r9   r9   r9   r:   
ItemReason]  s   
r   Z
amount_gteZitem_reasonsN)
r4   r5   r6   r   r   r   r   r8   r   rO   r9   r9   r9   r:   ThresholdReason\  s   

r   c                   @   s"   e Zd ZU eed< ed ed< dS )zInvoice.TotalDiscountAmountr   r"   discountN)r4   r5   r6   r   r8   r   r9   r9   r9   r:   TotalDiscountAmountq  s   
r   c                   @   sF   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   Z	inclusiver,   Ztax_rater   r   r   N)	r4   r5   r6   r   r8   r7   r   r   r   r9   r9   r9   r:   TotalTaxAmount{  s   
r   c                   @   s&   e Zd ZU ee ed< ed ed< dS )zInvoice.TransferDatar   r   destinationN)r4   r5   r6   r   r   r8   r   r9   r9   r9   r:   TransferData  s   
r   c                   @   sv  e Zd ZU ed ed< ed ed< ed ed< ed ed< ed	 ed
< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed < ed! ed"< ed# ed$< ed% ed&< ed' ed(< ed) ed*< ed+ ed,< ed ed-< ed ed.< ed/ ed0< d1S )2Invoice.CreateParamsLiteral['']|List[str]account_tax_idsr   application_fee_amountr7   auto_advance Invoice.CreateParamsAutomaticTaxautomatic_tax/Literal['charge_automatically', 'send_invoice']collection_methodr?   currencyz1Literal['']|List[Invoice.CreateParamsCustomField]custom_fieldscustomerdays_until_duedefault_payment_methoddefault_source	List[str]default_tax_ratesdescriptionz.Literal['']|List[Invoice.CreateParamsDiscount]	discountsdue_dateeffective_atexpandfooterInvoice.CreateParamsFromInvoicefrom_invoiceLiteral['']|Dict[str, str]r   on_behalf_of#Invoice.CreateParamsPaymentSettingspayment_settingsz4Literal['exclude', 'include', 'include_and_require']Zpending_invoice_items_behaviorInvoice.CreateParamsRendering	renderingz0Literal['']|Invoice.CreateParamsRenderingOptionsrendering_options Invoice.CreateParamsShippingCostshipping_cost#Invoice.CreateParamsShippingDetailsshipping_detailsstatement_descriptorsubscription Invoice.CreateParamsTransferDatatransfer_dataNr4   r5   r6   r   r8   r9   r9   r9   r:   CreateParams  sR   
r  c                   @   s"   e Zd ZU ed ed< eed< dS )r  r   r   r   Nr4   r5   r6   r   r8   r?   r9   r9   r9   r:   CreateParamsTransferData1  s   
r  c                   @   s*   e Zd ZU ded< eed< ed ed< dS )r  *Invoice.CreateParamsShippingDetailsAddressrJ   r<   Literal['']|strrL   Nr4   r5   r6   r8   r?   r   r9   r9   r9   r:   CreateParamsShippingDetails;  s   
r  c                   @   sV   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< dS )	r  r?   rA   rB   rC   rD   rE   rF   Nr  r9   r9   r9   r:   "CreateParamsShippingDetailsAddressI  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  r?   r   0Invoice.CreateParamsShippingCostShippingRateDatashipping_rate_dataNr  r9   r9   r9   r:   CreateParamsShippingCostc  s
   
r!  c                   @   s^   e Zd ZU ed ed< eed< ed ed< ed ed< ed ed	< ed
 ed< ed ed< dS )r  @Invoice.CreateParamsShippingCostShippingRateDataDeliveryEstimatedelivery_estimatedisplay_name;Invoice.CreateParamsShippingCostShippingRateDataFixedAmountfixed_amountDict[str, str]r   0Literal['exclusive', 'inclusive', 'unspecified']tax_behaviorr?   tax_codeLiteral['fixed_amount']r   Nr  r9   r9   r9   r:   (CreateParamsShippingCostShippingRateDatao  s   
r,  c                   @   s*   e Zd ZU eed< eed< ed ed< dS )r%  r   r   zUDict[str, Invoice.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions]currency_optionsNr4   r5   r6   r   r8   r?   r   r9   r9   r9   r:   3CreateParamsShippingCostShippingRateDataFixedAmount  s   
r/  c                   @   s"   e Zd ZU eed< ed ed< dS )zJInvoice.CreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr   r(  r)  Nr4   r5   r6   r   r8   r   r9   r9   r9   r:   BCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions  s
   
r1  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r"  GInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximummaximumGInvoice.CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimumminimumNr  r9   r9   r9   r:   8CreateParamsShippingCostShippingRateDataDeliveryEstimate  s   
r6  c                   @   s"   e Zd ZU ed ed< eed< dS )r4  Zbusiness_daydayhourmonthweekunitr=   Nr4   r5   r6   r   r8   r   r9   r9   r9   r:   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum  s   
r>  c                   @   s"   e Zd ZU ed ed< eed< dS )r2  r7  r<  r=   Nr=  r9   r9   r9   r:   ?CreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum  s   
r?  c                   @   s   e Zd ZU ed ed< dS )z$Invoice.CreateParamsRenderingOptions;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']r   Nr  r9   r9   r9   r:   CreateParamsRenderingOptions  s   
rA  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  r@  r    Invoice.CreateParamsRenderingPdfr   Nr  r9   r9   r9   r:   CreateParamsRendering  s
   
rC  c                   @   s   e Zd ZU ed ed< dS )rB  Literal['a4', 'auto', 'letter']r   Nr  r9   r9   r9   r:   CreateParamsRenderingPdf  s   
rE  c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r	  r  r   7Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsr   T  Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'customer_balance', 'fpx', 'giropay', 'grabpay', 'ideal', 'konbini', 'link', 'paynow', 'paypal', 'promptpay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay']]r   Nr  r9   r9   r9   r:   CreateParamsPaymentSettings  s   
rH  c                   @   sV   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< dS )rF  zLLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zMLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactr   zGLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardr   zRLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zJLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbinir   zPLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr  r9   r9   r9   r:   /CreateParamsPaymentSettingsPaymentMethodOptions  s&   
rI  c                   @   s&   e Zd ZU ed ed< ed ed< dS )zDInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   0Literal['automatic', 'instant', 'microdeposits']r   Nr  r9   r9   r9   r:   <CreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount+  s   
rL  c                   @   s&   e Zd ZU ed ed< ed ed< dS )rJ  HList[Literal['balances', 'ownership', 'payment_method', 'transactions']]r   List[Literal['balances']]r   Nr  r9   r9   r9   r:   PCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections;  s
   
rO  c                   @   s   e Zd ZdS )z>Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r9   r9   r9   r:   6CreateParamsPaymentSettingsPaymentMethodOptionsKonbiniI  s   rP  c                   @   s&   e Zd ZU ed ed< ed ed< dS )zFInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr   r?   r   Nr  r9   r9   r9   r:   >CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceL  s
   
rR  c                   @   s&   e Zd ZU ed ed< ed ed< dS )rQ  `Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr   r?   r   Nr  r9   r9   r9   r:   JCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferZ  s
   
rT  c                   @   s   e Zd ZU eed< dS )rS  rB   Nr>   r9   r9   r9   r:   XCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferh  s   
rU  c                   @   s&   e Zd ZU ed ed< ed ed< dS )z;Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr   Literal['any', 'automatic']r   Nr  r9   r9   r9   r:   3CreateParamsPaymentSettingsPaymentMethodOptionsCardp  s
   
rX  c                   @   s&   e Zd ZU ed ed< ed ed< dS )rV  r7   r1   zWLiteral['']|Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanplanNr  r9   r9   r9   r:   ?CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments~  s
   
rZ  c                   @   s.   e Zd ZU eed< ed ed< ed ed< dS )zKInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlancountr:  intervalfixed_countr   Nr4   r5   r6   r   r8   r   r9   r9   r9   r:   CCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan  s   
r_  c                   @   s   e Zd ZU ed ed< dS )zAInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsBancontactLiteral['de', 'en', 'fr', 'nl']r   Nr  r9   r9   r9   r:   9CreateParamsPaymentSettingsPaymentMethodOptionsBancontact  s   
ra  c                   @   s&   e Zd ZU ed ed< ed ed< dS )z@Invoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr   rK  r   Nr  r9   r9   r9   r:   8CreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit  s   
rc  c                   @   s   e Zd ZU ed ed< dS )rb  Literal['business', 'personal']r   Nr  r9   r9   r9   r:   FCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions  s   
re  c                   @   s"   e Zd ZU ed ed< eed< dS )r  revisionr   r/   Nr4   r5   r6   r   r8   r?   r9   r9   r9   r:   CreateParamsFromInvoice  s   
rh  c                   @   s&   e Zd ZU ed ed< ed ed< dS )zInvoice.CreateParamsDiscountr?   couponr   Nr  r9   r9   r9   r:   CreateParamsDiscount  s   
rj  c                   @   s   e Zd ZU eed< eed< dS )zInvoice.CreateParamsCustomFieldr<   r=   Nr>   r9   r9   r9   r:   CreateParamsCustomField  s   
rk  c                   @   s   e Zd ZU eed< dS )r   r1   Nr4   r5   r6   r7   r8   r9   r9   r9   r:   CreateParamsAutomaticTax  s   
rm  c                   @   s   e Zd ZdS )Invoice.DeleteParamsNr   r9   r9   r9   r:   DeleteParams  s   ro  c                   @   s&   e Zd ZU ed ed< ed ed< dS )Invoice.FinalizeInvoiceParamsr7   r   r   r  Nr  r9   r9   r9   r:   FinalizeInvoiceParams  s   
rq  c                   @   s   e Zd ZU ed ed< ed ed< ed ed< ed ed< ed ed	< ed
 ed< ed ed< ed ed< ed ed< ed ed< dS )Invoice.ListParamsr   r   zInvoice.ListParamsCreated|intcreatedr?   r   zInvoice.ListParamsDueDate|intr  ending_beforer   r  r   limitstarting_afterz9Literal['draft', 'open', 'paid', 'uncollectible', 'void']r3   r  Nr  r9   r9   r9   r:   
ListParams  s   
rw  c                   @   s>   e Zd ZU ed ed< ed ed< ed ed< ed ed< dS )zInvoice.ListParamsDueDater   gtgteltlteNr  r9   r9   r9   r:   ListParamsDueDate  s
   
r|  c                   @   s>   e Zd ZU ed ed< ed ed< ed ed< ed ed< dS )zInvoice.ListParamsCreatedr   rx  ry  rz  r{  Nr  r9   r9   r9   r:   ListParamsCreated%  s
   
r}  c                   @   s   e Zd ZU ed ed< dS )Invoice.MarkUncollectibleParamsr   r  Nr  r9   r9   r9   r:   MarkUncollectibleParams7  s   
r  c                   @   s:  e Zd ZU ed ed< ed ed< ed ed< ed ed< ed	 ed
< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed < ed! ed"< ed# ed$< ed% ed&< ed' ed(< ed ed)< ed* ed+< d,S )-Invoice.ModifyParamsr   r   r   r   r7   r    Invoice.ModifyParamsAutomaticTaxr   r   r   z1Literal['']|List[Invoice.ModifyParamsCustomField]r   r   r?   r   r  r   r   r   z.Literal['']|List[Invoice.ModifyParamsDiscount]r   r  Literal['']|intr  r   r  r  r  r   r  #Invoice.ModifyParamsPaymentSettingsr
  Invoice.ModifyParamsRenderingr  z0Literal['']|Invoice.ModifyParamsRenderingOptionsr  z,Literal['']|Invoice.ModifyParamsShippingCostr  z/Literal['']|Invoice.ModifyParamsShippingDetailsr  r  z,Literal['']|Invoice.ModifyParamsTransferDatar  Nr  r9   r9   r9   r:   ModifyParams=  sP   
r  c                   @   s"   e Zd ZU ed ed< eed< dS )z Invoice.ModifyParamsTransferDatar   r   r   Nr  r9   r9   r9   r:   ModifyParamsTransferData  s   
r  c                   @   s*   e Zd ZU ded< eed< ed ed< dS )z#Invoice.ModifyParamsShippingDetails*Invoice.ModifyParamsShippingDetailsAddressrJ   r<   r  rL   Nr  r9   r9   r9   r:   ModifyParamsShippingDetails  s   
r  c                   @   sV   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< dS )	r  r?   rA   rB   rC   rD   rE   rF   Nr  r9   r9   r9   r:   "ModifyParamsShippingDetailsAddress  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )z Invoice.ModifyParamsShippingCostr?   r   0Invoice.ModifyParamsShippingCostShippingRateDatar   Nr  r9   r9   r9   r:   ModifyParamsShippingCost  s
   
r  c                   @   s^   e Zd ZU ed ed< eed< ed ed< ed ed< ed ed	< ed
 ed< ed ed< dS )r  @Invoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimater#  r$  ;Invoice.ModifyParamsShippingCostShippingRateDataFixedAmountr&  r'  r   r(  r)  r?   r*  r+  r   Nr  r9   r9   r9   r:   (ModifyParamsShippingCostShippingRateData  s   
r  c                   @   s*   e Zd ZU eed< eed< ed ed< dS )r  r   r   zUDict[str, Invoice.ModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions]r-  Nr.  r9   r9   r9   r:   3ModifyParamsShippingCostShippingRateDataFixedAmount  s   
r  c                   @   s"   e Zd ZU eed< ed ed< dS )zJInvoice.ModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptionsr   r(  r)  Nr0  r9   r9   r9   r:   BModifyParamsShippingCostShippingRateDataFixedAmountCurrencyOptions#  s
   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  GInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximumr3  GInvoice.ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimumr5  Nr  r9   r9   r9   r:   8ModifyParamsShippingCostShippingRateDataDeliveryEstimate1  s   
r  c                   @   s"   e Zd ZU ed ed< eed< dS )r  r7  r<  r=   Nr=  r9   r9   r9   r:   ?ModifyParamsShippingCostShippingRateDataDeliveryEstimateMinimum?  s   
r  c                   @   s"   e Zd ZU ed ed< eed< dS )r  r7  r<  r=   Nr=  r9   r9   r9   r:   ?ModifyParamsShippingCostShippingRateDataDeliveryEstimateMaximumK  s   
r  c                   @   s   e Zd ZU ed ed< dS )z$Invoice.ModifyParamsRenderingOptionsr@  r   Nr  r9   r9   r9   r:   ModifyParamsRenderingOptionsW  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  r@  r    Invoice.ModifyParamsRenderingPdfr   Nr  r9   r9   r9   r:   ModifyParamsRendering_  s
   
r  c                   @   s   e Zd ZU ed ed< dS )r  rD  r   Nr  r9   r9   r9   r:   ModifyParamsRenderingPdfk  s   
r  c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r  r  r   7Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsr   rG  r   Nr  r9   r9   r9   r:   ModifyParamsPaymentSettingss  s   
r  c                   @   sV   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< dS )r  zLLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitr   zMLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr   zGLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardr   zRLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalancer   zJLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbinir   zPLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountr   Nr  r9   r9   r9   r:   /ModifyParamsPaymentSettingsPaymentMethodOptions  s&   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )zDInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountXInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   rK  r   Nr  r9   r9   r9   r:   <ModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccount  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  rM  r   rN  r   Nr  r9   r9   r9   r:   PModifyParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections  s
   
r  c                   @   s   e Zd ZdS )z>Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsKonbiniNr   r9   r9   r9   r:   6ModifyParamsPaymentSettingsPaymentMethodOptionsKonbini  s   r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )zFInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceRInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferr   r?   r   Nr  r9   r9   r9   r:   >ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalance  s
   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  `Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferr   r?   r   Nr  r9   r9   r9   r:   JModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer  s
   
r  c                   @   s   e Zd ZU eed< dS )r  rB   Nr>   r9   r9   r9   r:   XModifyParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )z;Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardGInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsr   rW  r   Nr  r9   r9   r9   r:   3ModifyParamsPaymentSettingsPaymentMethodOptionsCard  s
   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  r7   r1   zWLiteral['']|Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanrY  Nr  r9   r9   r9   r:   ?ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallments  s
   
r  c                   @   s.   e Zd ZU eed< ed ed< ed ed< dS )zKInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlanr[  r:  r\  r]  r   Nr^  r9   r9   r9   r:   CModifyParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan  s   
r  c                   @   s   e Zd ZU ed ed< dS )zAInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsBancontactr`  r   Nr  r9   r9   r9   r:   9ModifyParamsPaymentSettingsPaymentMethodOptionsBancontact  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )z@Invoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitNInvoice.ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptionsr   rK  r   Nr  r9   r9   r9   r:   8ModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebit$  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  rd  r   Nr  r9   r9   r9   r:   FModifyParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions2  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )zInvoice.ModifyParamsDiscountr?   ri  r   Nr  r9   r9   r9   r:   ModifyParamsDiscount:  s   
r  c                   @   s   e Zd ZU eed< eed< dS )zInvoice.ModifyParamsCustomFieldr<   r=   Nr>   r9   r9   r9   r:   ModifyParamsCustomFieldD  s   
r  c                   @   s   e Zd ZU eed< dS )r  r1   Nrl  r9   r9   r9   r:   ModifyParamsAutomaticTaxN  s   
r  c                   @   sb   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 )Invoice.PayParamsr   r  r7   Zforgiver  ZmandateZoff_sessionpaid_out_of_bandr?   r   r   Nr  r9   r9   r9   r:   	PayParamsT  s   
r  c                   @   s   e Zd ZU ed ed< dS )Invoice.RetrieveParamsr   r  Nr  r9   r9   r9   r:   RetrieveParamst  s   
r  c                   @   s   e Zd ZU ed ed< dS )Invoice.SendInvoiceParamsr   r  Nr  r9   r9   r9   r:   SendInvoiceParamsz  s   
r  c                   @   s  e Zd ZU ed ed< ed ed< ed ed< ed ed< ed ed< ed	 ed
< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed  ed!< ed ed"< ed# ed$< ed ed%< d&S )'Invoice.UpcomingParams"Invoice.UpcomingParamsAutomaticTaxr   r?   ri  r   r   %Invoice.UpcomingParamsCustomerDetailscustomer_detailsz0Literal['']|List[Invoice.UpcomingParamsDiscount]r   r   r  z'List[Invoice.UpcomingParamsInvoiceItem]invoice_itemsscheduler  Literal['now', 'unchanged']|int!subscription_billing_cycle_anchorr  subscription_cancel_atr7   !subscription_cancel_at_period_endsubscription_cancel_nowr   subscription_default_tax_ratesz,List[Invoice.UpcomingParamsSubscriptionItem]subscription_items6Literal['always_invoice', 'create_prorations', 'none']subscription_proration_behaviorr   subscription_proration_dateLiteral['now']subscription_resume_atsubscription_start_dateLiteral['now']|intsubscription_trial_endsubscription_trial_from_planNr  r9   r9   r9   r:   UpcomingParams  s>   
r  c                   @   s   e Zd ZU ed ed< ed ed< ed ed< ed ed< ed ed	< ed ed
< ed ed< ed ed< ed ed< ed ed< dS )z&Invoice.UpcomingParamsSubscriptionItemzCLiteral['']|Invoice.UpcomingParamsSubscriptionItemBillingThresholdsbilling_thresholdsr7   clear_usagedeletedr?   idr  r   rY  price/Invoice.UpcomingParamsSubscriptionItemPriceData
price_datar   quantityr   	tax_ratesNr  r9   r9   r9   r:   UpcomingParamsSubscriptionItem  s   
r  c                   @   sJ   e Zd ZU eed< eed< ded< ed ed< ed ed< ed	 ed
< dS )r  r   product8Invoice.UpcomingParamsSubscriptionItemPriceDataRecurring	recurringr(  r)  r   unit_amountr?   unit_amount_decimalNr4   r5   r6   r?   r8   r   r9   r9   r9   r:   'UpcomingParamsSubscriptionItemPriceData	  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  r8  r:  r;  yearr\  r   interval_countNr4   r5   r6   r   r8   r   r9   r9   r9   r:   0UpcomingParamsSubscriptionItemPriceDataRecurring,	  s   
r  c                   @   s   e Zd ZU eed< dS )z7Invoice.UpcomingParamsSubscriptionItemBillingThresholdsr   Nr4   r5   r6   r   r8   r9   r9   r9   r:   /UpcomingParamsSubscriptionItemBillingThresholds6	  s   
r  c                   @   s   e Zd ZU ed ed< ed ed< ed ed< ed ed< ed ed	< ed ed
< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< dS )z!Invoice.UpcomingParamsInvoiceItemr   r   r?   r   r   r7   discountablez;Literal['']|List[Invoice.UpcomingParamsInvoiceItemDiscount]r   invoiceitemr  r   'Invoice.UpcomingParamsInvoiceItemPeriodperiodr  *Invoice.UpcomingParamsInvoiceItemPriceDatar  r  r(  r)  r  r*  r   r  r  r  Nr  r9   r9   r9   r:   UpcomingParamsInvoiceItem<	  s*   
r  c                   @   sB   e Zd ZU eed< eed< ed ed< ed ed< ed ed< d	S )
r  r   r  r(  r)  r   r  r?   r  Nr  r9   r9   r9   r:   "UpcomingParamsInvoiceItemPriceData	  s   
r  c                   @   s   e Zd ZU eed< eed< dS )r  endstartNr  r9   r9   r9   r:   UpcomingParamsInvoiceItemPeriod	  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )z)Invoice.UpcomingParamsInvoiceItemDiscountr?   ri  r   Nr  r9   r9   r9   r:   !UpcomingParamsInvoiceItemDiscount	  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )zInvoice.UpcomingParamsDiscountr?   ri  r   Nr  r9   r9   r9   r:   UpcomingParamsDiscount	  s   
r  c                   @   sJ   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
< dS )r  z8Literal['']|Invoice.UpcomingParamsCustomerDetailsAddressrJ   z9Literal['']|Invoice.UpcomingParamsCustomerDetailsShippingshipping(Invoice.UpcomingParamsCustomerDetailsTaxtax0Literal['']|Literal['exempt', 'none', 'reverse']
tax_exemptz0List[Invoice.UpcomingParamsCustomerDetailsTaxId]tax_idsNr  r9   r9   r9   r:   UpcomingParamsCustomerDetails	  s   
r  c                   @   s"   e Zd ZU ed ed< eed< dS )z*Invoice.UpcomingParamsCustomerDetailsTaxIdBrQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r=   Nrg  r9   r9   r9   r:   "UpcomingParamsCustomerDetailsTaxId	  s
   
Gr  c                   @   s   e Zd ZU ed ed< dS )r  r  
ip_addressNr  r9   r9   r9   r:    UpcomingParamsCustomerDetailsTax#
  s   
r  c                   @   s*   e Zd ZU ded< eed< ed ed< dS )z-Invoice.UpcomingParamsCustomerDetailsShipping4Invoice.UpcomingParamsCustomerDetailsShippingAddressrJ   r<   r?   rL   Nr  r9   r9   r9   r:   %UpcomingParamsCustomerDetailsShipping)
  s   
r  c                   @   sV   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< dS )	r  r?   rA   rB   rC   rD   rE   rF   Nr  r9   r9   r9   r:   ,UpcomingParamsCustomerDetailsShippingAddress7
  s   
r   c                   @   sV   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< dS )	z,Invoice.UpcomingParamsCustomerDetailsAddressr?   rA   rB   rC   rD   rE   rF   Nr  r9   r9   r9   r:   $UpcomingParamsCustomerDetailsAddressQ
  s   
r  c                   @   s   e Zd ZU eed< dS )r  r1   Nrl  r9   r9   r9   r:   UpcomingParamsAutomaticTaxk
  s   
r  c                   @   s:  e Zd ZU ed ed< ed ed< ed ed< ed ed< ed ed< ed	 ed
< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed  ed!< ed ed"< ed# ed$< ed ed%< ed& ed'< ed ed(< d)S )*Invoice.UpcomingLinesParams'Invoice.UpcomingLinesParamsAutomaticTaxr   r?   ri  r   r   *Invoice.UpcomingLinesParamsCustomerDetailsr  z5Literal['']|List[Invoice.UpcomingLinesParamsDiscount]r   rt  r   r  z,List[Invoice.UpcomingLinesParamsInvoiceItem]r  r   ru  r  rv  r  r  r  r  r  r7   r  r  r   r  z1List[Invoice.UpcomingLinesParamsSubscriptionItem]r  r  r  r  r  r  r  r  r  r  Nr  r9   r9   r9   r:   UpcomingLinesParamsq
  sL   
r  c                   @   s   e Zd ZU ed ed< ed ed< ed ed< ed ed< ed ed	< ed ed
< ed ed< ed ed< ed ed< ed ed< dS )z+Invoice.UpcomingLinesParamsSubscriptionItemzHLiteral['']|Invoice.UpcomingLinesParamsSubscriptionItemBillingThresholdsr  r7   r  r  r?   r  r  r   rY  r  4Invoice.UpcomingLinesParamsSubscriptionItemPriceDatar  r   r  r   r  Nr  r9   r9   r9   r:   #UpcomingLinesParamsSubscriptionItem
  s   
r  c                   @   sJ   e Zd ZU eed< eed< ded< ed ed< ed ed< ed	 ed
< dS )r  r   r  =Invoice.UpcomingLinesParamsSubscriptionItemPriceDataRecurringr  r(  r)  r   r  r?   r  Nr  r9   r9   r9   r:   ,UpcomingLinesParamsSubscriptionItemPriceData  s   
r
  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r	  r  r\  r   r  Nr  r9   r9   r9   r:   5UpcomingLinesParamsSubscriptionItemPriceDataRecurring-  s   
r  c                   @   s   e Zd ZU eed< dS )z<Invoice.UpcomingLinesParamsSubscriptionItemBillingThresholdsr   Nr  r9   r9   r9   r:   4UpcomingLinesParamsSubscriptionItemBillingThresholds7  s   
r  c                   @   s   e Zd ZU ed ed< ed ed< ed ed< ed ed< ed ed	< ed ed
< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< ed ed< dS )z&Invoice.UpcomingLinesParamsInvoiceItemr   r   r?   r   r   r7   r  z@Literal['']|List[Invoice.UpcomingLinesParamsInvoiceItemDiscount]r   r  r  r   ,Invoice.UpcomingLinesParamsInvoiceItemPeriodr  r  /Invoice.UpcomingLinesParamsInvoiceItemPriceDatar  r  r(  r)  r  r*  r   r  r  r  Nr  r9   r9   r9   r:   UpcomingLinesParamsInvoiceItem=  s.   
r  c                   @   sB   e Zd ZU eed< eed< ed ed< ed ed< ed ed< d	S )
r  r   r  r(  r)  r   r  r?   r  Nr  r9   r9   r9   r:   'UpcomingLinesParamsInvoiceItemPriceData  s   
r  c                   @   s   e Zd ZU eed< eed< dS )r  r  r  Nr  r9   r9   r9   r:   $UpcomingLinesParamsInvoiceItemPeriod  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )z.Invoice.UpcomingLinesParamsInvoiceItemDiscountr?   ri  r   Nr  r9   r9   r9   r:   &UpcomingLinesParamsInvoiceItemDiscount  s   
r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )z#Invoice.UpcomingLinesParamsDiscountr?   ri  r   Nr  r9   r9   r9   r:   UpcomingLinesParamsDiscount  s   
r  c                   @   sJ   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
< dS )r  z=Literal['']|Invoice.UpcomingLinesParamsCustomerDetailsAddressrJ   z>Literal['']|Invoice.UpcomingLinesParamsCustomerDetailsShippingr  -Invoice.UpcomingLinesParamsCustomerDetailsTaxr  r  r  z5List[Invoice.UpcomingLinesParamsCustomerDetailsTaxId]r  Nr  r9   r9   r9   r:   "UpcomingLinesParamsCustomerDetails  s   
r  c                   @   s"   e Zd ZU ed ed< eed< dS )z/Invoice.UpcomingLinesParamsCustomerDetailsTaxIdr  r   r=   Nrg  r9   r9   r9   r:   'UpcomingLinesParamsCustomerDetailsTaxId  s
   
Gr  c                   @   s   e Zd ZU ed ed< dS )r  r  r  Nr  r9   r9   r9   r:   %UpcomingLinesParamsCustomerDetailsTax&  s   
r  c                   @   s*   e Zd ZU ded< eed< ed ed< dS )z2Invoice.UpcomingLinesParamsCustomerDetailsShipping9Invoice.UpcomingLinesParamsCustomerDetailsShippingAddressrJ   r<   r?   rL   Nr  r9   r9   r9   r:   *UpcomingLinesParamsCustomerDetailsShipping,  s   
r  c                   @   sV   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< dS )	r  r?   rA   rB   rC   rD   rE   rF   Nr  r9   r9   r9   r:   1UpcomingLinesParamsCustomerDetailsShippingAddress:  s   
r  c                   @   sV   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< dS )	z1Invoice.UpcomingLinesParamsCustomerDetailsAddressr?   rA   rB   rC   rD   rE   rF   Nr  r9   r9   r9   r:   )UpcomingLinesParamsCustomerDetailsAddressT  s   
r  c                   @   s   e Zd ZU eed< dS )r  r1   Nrl  r9   r9   r9   r:   UpcomingLinesParamsAutomaticTaxn  s   
r  c                   @   s   e Zd ZU ed ed< dS )Invoice.VoidInvoiceParamsr   r  Nr  r9   r9   r9   r:   VoidInvoiceParamst  s   
r  c                   @   s:   e Zd ZU ed ed< ed ed< ed ed< eed< dS )	Invoice.SearchParamsr   r  r   ru  r?   pagequeryNr  r9   r9   r9   r:   SearchParamsz  s
   
r"  Zaccount_countryZaccount_namer+   r   Z
amount_dueZamount_paidZamount_remainingZamount_shippingr   Zapplicationr   Zattempt_countZ	attemptedr   r   )	Z&automatic_pending_invoice_item_invoiceZmanualZquote_acceptr  Zsubscription_createZsubscription_cycleZsubscription_thresholdZsubscription_updateupcomingZbilling_reasonr    r   )Zcharge_automaticallysend_invoicer   rs  r   r   r!   r   customer_addressZcustomer_emailZcustomer_nameZcustomer_phonecustomer_shipping)ZexemptnonereverseZcustomer_tax_exemptcustomer_tax_idsr%   r   r   r   r,   r   r   r"   r   r   r  r  Zending_balancer  r  Zhosted_invoice_urlr  Zinvoice_pdflast_finalization_errorZlatest_revisionr#   linesZlivemoder   Znext_payment_attemptnumberobjectr   r  paidr  r$   r   r
  Z
period_endZperiod_startZ post_payment_credit_notes_amountZpre_payment_credit_notes_amountr&   quoteZreceipt_numberr  r  r  r  Zstarting_balancer  )Zdraftopenr.  Zuncollectiblevoidr3   status_transitionsr*   r  subscription_detailsr  ZsubtotalZsubtotal_excluding_taxr  r-   Z
test_clockthreshold_reasontotaltotal_discount_amountsZtotal_excluding_taxtotal_tax_amountsr  Zwebhooks_delivered_atTr  Nr   )api_keyidempotency_keystripe_versionstripe_accountparamsreturnc                 K   s    t d| d|  |||||S )a   
        This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://stripe.com/docs/api#finalize_invoice) the invoice to your customers.
        r.   post)r   _static_request	class_url)clsr8  r9  r:  r;  r<  r9   r9   r:   create  s    zInvoice.creatern  )sidr<  r=  c                 K   s*   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/%sr.   deleter<  r@  r   r   r?  )rA  rC  r<  urlr9   r9   r:   _cls_delete   s
    zInvoice._cls_deletec                 K   s   dS rD  Nr9   )rC  r<  r9   r9   r:   rF    s    zInvoice.delete)r<  r=  c                 K   s   dS rK  r9   selfr<  r9   r9   r:   rF    s    rJ  c                 K   s   | j d|  |dS )rD  rF  rG  )Z_request_and_refreshZinstance_urlrL  r9   r9   r:   rF    s
    rp  )r/   r8  r:  r;  r<  r=  c              
   K   s*   t d| jddjt|d||||dS )
        Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
        r.   r>  /v1/invoices/{invoice}/finalizer/   r8  r:  r;  r<  r   r?  formatr   sanitize_idrA  r/   r8  r:  r;  r<  r9   r9   r:   _cls_finalize_invoice+  s    zInvoice._cls_finalize_invoicec                 K   s   dS rN  Nr9   r/   r8  r:  r;  r<  r9   r9   r:   finalize_invoiceG  s    zInvoice.finalize_invoice)r9  r<  r=  c                 K   s   dS rW  r9   rM  r9  r<  r9   r9   r:   rY  W  s    rV  c              
   K   s,   t d| jddjt| dd||dS )rN  r.   r>  rO  r  rP  r9  r<  r   _requestrS  r   rT  getrZ  r9   r9   r:   rY  d  s    rr  )r8  r:  r;  r<  r=  c                 K   s:   | j d|  ||||d}t|ts6tdt|j |S )z
        You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.
        r^  rQ  z%Expected list object from API, got %s)r?  r@  
isinstancer	   	TypeErrorr   r4   )rA  r8  r:  r;  r<  resultr9   r9   r:   list{  s    
zInvoice.listr~  c              
   K   s*   t d| jddjt|d||||dS )
        Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.
        r.   r>  )/v1/invoices/{invoice}/mark_uncollectiblerP  rQ  rR  rU  r9   r9   r:   _cls_mark_uncollectible  s    zInvoice._cls_mark_uncollectiblec                 K   s   dS rc  Nr9   rX  r9   r9   r:   mark_uncollectible  s    zInvoice.mark_uncollectiblec                 K   s   dS rf  r9   rZ  r9   r9   r:   rg    s    re  c              
   K   s,   t d| jddjt| dd||dS )rc  r.   r>  rd  r  rP  r[  r\  rZ  r9   r9   r:   rg    s    r  )r  r<  r=  c                 K   s*   d|   t|f }td| jd||dS )a  
        Draft invoices are fully editable. Once an invoice is [finalized](https://stripe.com/docs/billing/invoices/workflow#finalized),
        monetary values, as well as collection_method, become uneditable.

        If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
        sending reminders for, or [automatically reconciling](https://stripe.com/docs/billing/invoices/reconciliation) invoices, pass
        auto_advance=false.
        rE  r.   r>  rG  rH  )rA  r  r<  rI  r9   r9   r:   modify  s
    zInvoice.modifyr  c              
   K   s*   t d| jddjt|d||||dS )i  
        Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so.
        r.   r>  /v1/invoices/{invoice}/payrP  rQ  rR  rU  r9   r9   r:   _cls_pay  s    zInvoice._cls_payc                 K   s   dS ri  Nr9   rX  r9   r9   r:   pay  s    zInvoice.payc                 K   s   dS rl  r9   rZ  r9   r9   r:   rm  '  s    rk  c              
   K   s,   t d| jddjt| dd||dS )ri  r.   r>  rj  r  rP  r[  r\  rZ  r9   r9   r:   rm  4  s    r  c                 K   s   | |fi |}|   |S )z:
        Retrieves the invoice with the given ID.
        )refresh)rA  r  r<  instancer9   r9   r:   retrieveK  s    zInvoice.retriever  c              
   K   s*   t d| jddjt|d||||dS )  
        Stripe will automatically send invoices to customers according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to manually send an invoice to your customer out of the normal schedule, you can do so. When sending invoices that have already been paid, there will be no reference to the payment in the email.

        Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event.
        r.   r>  /v1/invoices/{invoice}/sendrP  rQ  rR  rU  r9   r9   r:   _cls_send_invoiceV  s    zInvoice._cls_send_invoicec                 K   s   dS rq  Nr9   rX  r9   r9   r:   r$  t  s    zInvoice.send_invoicec                 K   s   dS rt  r9   rZ  r9   r9   r:   r$    s    rs  c              
   K   s,   t d| jddjt| dd||dS )rq  r.   r>  rr  r  rP  r[  r\  rZ  r9   r9   r:   r$    s    r  c              
   K   s   t d| jdd||||dS )u$  
        At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.

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

        You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass a proration_date parameter when doing the actual subscription update. The value passed in should be the same as the subscription_proration_date returned on the upcoming invoice resource. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_proration_date on the upcoming invoice resource.
        r.   r^  z/v1/invoices/upcomingrQ  )r   r?  rA  r8  r:  r;  r<  r9   r9   r:   r#    s    zInvoice.upcomingr  c              
   K   s    t td | jdd||||dS )z
        When retrieving an upcoming invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        r#   r^  z/v1/invoices/upcoming/linesrQ  )r   r	   r?  ru  r9   r9   r:   upcoming_lines  s    zInvoice.upcoming_linesr  c              
   K   s*   t d| jddjt|d||||dS )  
        Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://stripe.com/docs/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
        r.   r>  /v1/invoices/{invoice}/voidrP  rQ  rR  rU  r9   r9   r:   _cls_void_invoice  s    zInvoice._cls_void_invoicec                 K   s   dS rw  Nr9   rX  r9   r9   r:   void_invoice   s    zInvoice.void_invoicec                 K   s   dS rz  r9   rZ  r9   r9   r:   r{    s    ry  c              
   K   s,   t d| jddjt| dd||dS )rw  r.   r>  rx  r  rP  r[  r\  rZ  r9   r9   r:   r{    s    r  )kwargsr=  c                 O   s   | j |ddi|S )a  
        Search for invoices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
        Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
        conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
        to an hour behind during outages. Search functionality is not available to merchants in India.
        Z
search_urlz/v1/invoices/search)Z_searchrA  argsr|  r9   r9   r:   search4  s    
zInvoice.searchc                 O   s   | j |i | S )N)r  Zauto_paging_iterr}  r9   r9   r:   search_auto_paging_iter@  s    zInvoice.search_auto_paging_iter)r   r   r%  r&  r)  r  r*  r
  r  r  r  r  r2  r3  r4  r6  r7  r  )NNNN)NNN)NNN)N)N)NNN)NNN)NNN)N)N)NNN)NNN)N)N)NNN)NNN)N)N)NNN)NNN)NNN)NNN)N)N)r4   r5   r6   __doc__r0   r   r   r8   r   r;   r@   rH   rP   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   r  r  r  r!  r,  r/  r1  r6  r>  r?  rA  rC  rE  rH  rI  rL  rO  rP  rR  rT  rU  rX  rZ  r_  ra  rc  re  rh  rj  rk  rm  ro  rq  rw  r|  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  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   r   r	   r   classmethodr   rB  rJ  r   staticmethodrF  r   rV  rY  rb  re  rg  rh  rk  rm  rp  rs  r$  r#  rv  ry  r{  r
   r  r   r  rO   r9   r9   r9   r:   r.   9   s  
#
.N
   (=.
(
 
$


&











(t
$


&









 b.
F


Mr.
H


M






















   

          
    

            r.   N)KZstriper   Zstripe.api_resources.abstractr   r   r   r   r   Z%stripe.api_resources.expandable_fieldr   Z stripe.api_resources.list_objectr	   Z)stripe.api_resources.search_result_objectr
   Zstripe.request_optionsr   Zstripe.stripe_objectr   Zstripe.utilr   typingr   r   r   r   r   r   r   r   Ztyping_extensionsr   r   r   r   r   urllib.parser   Zstripe.api_resources.accountr   Z stripe.api_resources.applicationr   Z!stripe.api_resources.bank_accountr   Zstripe.api_resources.cardr   r   Zstripe.api_resources.charger    Zstripe.api_resources.customerr!   Zstripe.api_resources.discountr"   Z&stripe.api_resources.invoice_line_itemr#   Z#stripe.api_resources.payment_intentr$   Z#stripe.api_resources.payment_methodr%   Zstripe.api_resources.quoter&   Z!stripe.api_resources.setup_intentr'   Z"stripe.api_resources.shipping_rater(   Zstripe.api_resources.sourcer)   Z!stripe.api_resources.subscriptionr*   Zstripe.api_resources.tax_idr+   Zstripe.api_resources.tax_rater,   Z,stripe.api_resources.test_helpers.test_clockr-   r.   r9   r9   r9   r:   <module>   sH   (

