a
    !fl                    @   sN  d dl mZ d dl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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r*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l0m1Z1 d dl2m3Z3 d dl4m5Z5 G dd ded ed ed Z6dS )    )util)CreateableAPIResourceListableAPIResourceUpdateableAPIResource)ExpandableField)
ListObject)RequestOptions)StripeObject)class_method_variant)AnyClassVarDictListOptionalUnioncastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)
quote_plus)Account)Application)BankAccount)Card)Customer)Mandate)PaymentIntent)PaymentMethod)SetupAttempt)Sourcec                
   @   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Zeedp  edq< ee edr< ee	 eds< eedt  edu< ee edv< eedw< eedx  edy< ee edz< eeed{   ed|< eed}< ee
 ed~< eed  ed< eed< eed  ed< eeeef  ed< ee ed< ed ed< eed  ed< eed  ed< ee ed< ee ed< ee ed< eed  ed< ed ed< eed< eȐdeee ee ee eɐd d dddZee̐deee ee ee eɐd d dddZeːdee eɐd d dddZeΐddee eɐd d dddZeȐdeee ee ee eɐd d dddZee̐deee ee ee eɐd d dddZeːdee eɐd d dddZeΐddee eɐd d dddZeȐdee ee ee ee eɐd d dddZeȐdee ee ee eɐd ed  dddZeeeɐd d dddZeeeɐd d dddZeȐdeee ee ee eɐd d dddZee̐deee ee ee eɐd d dddZeːdee eɐd d dddZeΐddee eɐd d dddZe	e
eeedZؐdS (  SetupIntenta  
    A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
    For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
    Later, you can use [PaymentIntents](https://stripe.com/docs/api#payment_intents) to drive the payment flow.

    Create a SetupIntent when you're ready to collect your customer's payment credentials.
    Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
    The SetupIntent transitions through multiple [statuses](https://stripe.com/docs/payments/intents#intent-statuses) as it guides
    you through the setup process.

    Successful SetupIntents result in payment credentials that are optimized for future payments.
    For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
    [Strong Customer Authentication](https://stripe.com/docs/strong-customer-authentication) during payment method collection
    to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents).
    If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
    it automatically attaches the resulting payment method to that Customer after successful setup.
    We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
    PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.

    By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.

    Related guide: [Setup Intents API](https://stripe.com/docs/payments/setup-intents)
    setup_intentOBJECT_NAMEc                   @   s*   e Zd ZU eed  ed< ee ed< dS )z#SetupIntent.AutomaticPaymentMethods)alwaysneverallow_redirectsenabledN)__name__
__module____qualname__r   r   __annotations__bool r/   r/   b/var/www/html/python-backend/venv/lib/python3.9/site-packages/stripe/api_resources/setup_intent.pyAutomaticPaymentMethodsD   s   
r1   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SetupIntent.LastSetupErrorZ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   Zpayment_intentr    payment_methodZpayment_method_typeZrequest_log_urlr#   r$   )r   r   CardResourcer"   source)Z	api_errorZ
card_errorZidempotency_errorZinvalid_request_errortypeN)r*   r+   r,   r   strr-   r   r   r/   r/   r/   r0   LastSetupErrorP   s.   
 )r;   c                   @   s   e Zd ZU 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d	< ee
e	ef  ed
< ee ed< eeedZdS )zSetupIntent.NextActionc                   @   s>   e Zd ZU G dd deZeed< eed< eed< deiZdS )z;SetupIntent.NextAction.CashappHandleRedirectOrDisplayQrCodec                   @   s&   e Zd ZU eed< eed< eed< dS )zBSetupIntent.NextAction.CashappHandleRedirectOrDisplayQrCode.QrCodeZ
expires_atZimage_url_pngZimage_url_svgNr*   r+   r,   intr-   r:   r/   r/   r/   r0   QrCodeR  s   
r>   Zhosted_instructions_urlZmobile_auth_urlZqr_codeN)r*   r+   r,   r	   r>   r:   r-   _inner_class_typesr/   r/   r/   r0   $CashappHandleRedirectOrDisplayQrCodeQ  s
   
r@   c                   @   s&   e Zd ZU ee ed< ee ed< dS )z$SetupIntent.NextAction.RedirectToUrl
return_urlurlNr*   r+   r,   r   r:   r-   r/   r/   r/   r0   RedirectToUrlk  s   
rD   c                   @   s.   e Zd ZU eed< eed< eed  ed< dS )z.SetupIntent.NextAction.VerifyWithMicrodepositsZarrival_dateZhosted_verification_url)amountsdescriptor_codeZmicrodeposit_typeN)r*   r+   r,   r=   r-   r:   r   r   r/   r/   r/   r0   VerifyWithMicrodepositsu  s   
rG   *cashapp_handle_redirect_or_display_qr_coderedirect_to_urlr9   use_stripe_sdkverify_with_microdeposits)rH   rI   rK   N)r*   r+   r,   r	   r@   rD   rG   r   r-   r:   r   r   r?   r/   r/   r/   r0   
NextActionP  s   

rL   c                   @   s"   e Zd ZU eed< ee ed< dS )z-SetupIntent.PaymentMethodConfigurationDetailsidparentN)r*   r+   r,   r:   r-   r   r/   r/   r/   r0   !PaymentMethodConfigurationDetails  s   
rO   c                   @   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 SetupIntent.PaymentMethodOptionsc                   @   sR   e Zd ZU G dd deZeed  ed< ee ed< eed  ed< deiZdS )	z*SetupIntent.PaymentMethodOptions.AcssDebitc                   @   sZ   e Zd ZU ee ed< eeed   ed< ee ed< eed  ed< eed  ed< d	S )
z9SetupIntent.PaymentMethodOptions.AcssDebit.MandateOptionscustom_mandate_url)ZinvoiceZsubscriptiondefault_forinterval_description)combinedintervalsporadicpayment_schedule)ZbusinessZpersonaltransaction_typeN)r*   r+   r,   r   r:   r-   r   r   r/   r/   r/   r0   MandateOptions  s   
rX   )Zcadusdcurrencymandate_options	automaticZinstantZmicrodepositsverification_methodN)	r*   r+   r,   r	   rX   r   r   r-   r?   r/   r/   r/   r0   	AcssDebit  s   
r_   c                   @   sR   e Zd ZU G dd deZee ed< eed  ed< eed  ed< deiZdS )	z%SetupIntent.PaymentMethodOptions.Cardc                   @   s~   e Zd ZU eed< ed ed< eed< ee ed< ee ed< ed ed< ee ed	< eed
< eed< eeed   ed< dS )z4SetupIntent.PaymentMethodOptions.Card.MandateOptionsamountfixedmaximumamount_typerZ   descriptionend_datedaymonthrU   weekyearrT   interval_count	reference
start_dateindiasupported_typesN)	r*   r+   r,   r=   r-   r   r:   r   r   r/   r/   r/   r0   rX     s   
rX   r[   )Zamexcartes_bancairesZdinersZdiscoverZ	eftpos_auZinteracZjcbZ
mastercardZunionpayunknownZvisanetwork)anyr]   	challengeZchallenge_onlyrequest_three_d_secureN)	r*   r+   r,   r	   rX   r   r-   r   r?   r/   r/   r/   r0   r     s   
*r   c                   @   s   e Zd ZU ee ed< dS )z%SetupIntent.PaymentMethodOptions.Linkpersistent_tokenNrC   r/   r/   r/   r0   Link  s   
rx   c                   @   s   e Zd ZU ee ed< dS )z'SetupIntent.PaymentMethodOptions.Paypalbilling_agreement_idNrC   r/   r/   r/   r0   Paypal  s   
rz   c                   @   s2   e Zd ZU G dd deZee ed< deiZdS )z*SetupIntent.PaymentMethodOptions.SepaDebitc                   @   s   e Zd ZdS )z9SetupIntent.PaymentMethodOptions.SepaDebit.MandateOptionsNr*   r+   r,   r/   r/   r/   r0   rX     s   rX   r[   N)r*   r+   r,   r	   rX   r   r-   r?   r/   r/   r/   r0   	SepaDebit  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.SetupIntent.PaymentMethodOptions.UsBankAccountc                   @   sB   e Zd ZU eeed   ed< eeed   ed< ee ed< dS )zCSetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections)balancesZ	ownershipr6   Ztransactionspermissionsr}   prefetchrA   N)r*   r+   r,   r   r   r   r-   r:   r/   r/   r/   r0   FinancialConnections$  s   
r   financial_connectionsr\   r^   N)	r*   r+   r,   r	   r   r   r-   r   r?   r/   r/   r/   r0   UsBankAccount#  s   
r   
acss_debitcardlinkpaypal
sepa_debitus_bank_account)r   r   r   r   r   r   N)r*   r+   r,   r	   r_   r   rx   rz   r|   r   r   r-   r?   r/   r/   r/   r0   PaymentMethodOptions  s&   
&I#r   c                   @   s&   e Zd ZU ed ed< ed ed< dS )SetupIntent.CancelParamsz:Literal['abandoned', 'duplicate', 'requested_by_customer']cancellation_reason	List[str]expandNr*   r+   r,   r   r-   r/   r/   r/   r0   CancelParamsU  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 )SetupIntent.ConfirmParamsr   r   zVLiteral['']|SetupIntent.ConfirmParamsMandateData|SetupIntent.ConfirmParamsMandateData2mandate_datar:   r6   *SetupIntent.ConfirmParamsPaymentMethodDatapayment_method_data-SetupIntent.ConfirmParamsPaymentMethodOptionspayment_method_optionsrA   r.   rJ   Nr   r/   r/   r/   r0   ConfirmParamsa  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   6SetupIntent.ConfirmParamsPaymentMethodOptionsAcssDebitr   1SetupIntent.ConfirmParamsPaymentMethodOptionsCardr   1SetupIntent.ConfirmParamsPaymentMethodOptionsLinkr   3SetupIntent.ConfirmParamsPaymentMethodOptionsPaypalr   6SetupIntent.ConfirmParamsPaymentMethodOptionsSepaDebitr   :SetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountr   Nr   r/   r/   r/   r0   !ConfirmParamsPaymentMethodOptions  s   
r   c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r   NSetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   BSetupIntent.ConfirmParamsPaymentMethodOptionsUsBankAccountNetworksnetworks0Literal['automatic', 'instant', 'microdeposits']r^   Nr   r/   r/   r/   r0   .ConfirmParamsPaymentMethodOptionsUsBankAccount  s   
r   c                   @   s   e Zd ZU ed ed< dS )r   (List[Literal['ach', 'us_domestic_wire']]	requestedNr   r/   r/   r/   r0   6ConfirmParamsPaymentMethodOptionsUsBankAccountNetworks  s   
r   c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r   HList[Literal['balances', 'ownership', 'payment_method', 'transactions']]r~   List[Literal['balances']]r   r:   rA   Nr   r/   r/   r/   r0   BConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnections  s   
r   c                   @   s   e Zd ZU ed ed< dS )r   DSetupIntent.ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptionsr[   Nr   r/   r/   r/   r0   *ConfirmParamsPaymentMethodOptionsSepaDebit  s   
r   c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   8ConfirmParamsPaymentMethodOptionsSepaDebitMandateOptions  s   r   c                   @   s   e Zd ZU ed ed< dS )r   r:   ry   Nr   r/   r/   r/   r0   'ConfirmParamsPaymentMethodOptionsPaypal  s   
r   c                   @   s   e Zd ZU ed ed< dS )r   r:   rw   Nr   r/   r/   r/   r0   %ConfirmParamsPaymentMethodOptionsLink  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   ?SetupIntent.ConfirmParamsPaymentMethodOptionsCardMandateOptionsr[   r.   motoLiteral['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'interac', 'jcb', 'mastercard', 'unionpay', 'unknown', 'visa']rs   Literal['any', 'automatic']rv   =SetupIntent.ConfirmParamsPaymentMethodOptionsCardThreeDSecurethree_d_secureNr   r/   r/   r/   r0   %ConfirmParamsPaymentMethodOptionsCard  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 )r   *Literal['A', 'C', 'I', 'N', 'R', 'U', 'Y']ares_trans_statusr:   
cryptogram%Literal['01', '02', '05', '06', '07']electronic_commerce_indicatorKSetupIntent.ConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsnetwork_optionsrequestor_challenge_indicatortransaction_id"Literal['1.0.2', '2.1.0', '2.2.0']versionNr   r/   r/   r/   r0   1ConfirmParamsPaymentMethodOptionsCardThreeDSecure	  s   
r   c                   @   s   e Zd ZU ed ed< dS )r   ZSetupIntent.ConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesrq   Nr   r/   r/   r/   r0   ?ConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions5  s   
r   c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r   01234A	cb_avalgor:   cb_exemptionr=   cb_scoreNr*   r+   r,   r   r-   r   r/   r/   r/   r0   NConfirmParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires?  s   
r   c                   @   sv   e Zd ZU eed< ed ed< eed< ed ed< ed ed< ed	 ed
< ed ed< eed< eed< ed ed< dS )r   r`   ra   rd   rZ   r:   re   r=   rf   rg   rT   rl   rm   rn   List[Literal['india']]rp   Nr*   r+   r,   r=   r-   r   r:   r   r/   r/   r/   r0   3ConfirmParamsPaymentMethodOptionsCardMandateOptionsU  s   
r   c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r   Literal['cad', 'usd']rZ   DSetupIntent.ConfirmParamsPaymentMethodOptionsAcssDebitMandateOptionsr[   r   r^   Nr   r/   r/   r/   r0   *ConfirmParamsPaymentMethodOptionsAcssDebit  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   Literal['']|strrP   (List[Literal['invoice', 'subscription']]rQ   r:   rR   +Literal['combined', 'interval', 'sporadic']rV   Literal['business', 'personal']rW   Nr   r/   r/   r/   r0   8ConfirmParamsPaymentMethodOptionsAcssDebitMandateOptions  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d0< ed1 ed2< ed3 ed4< ed5 ed6< ed7 ed8< ed9 ed:< ed; ed<< ed= ed>< ed? ed@< edA edB< edC edD< edE edF< edG edH< dIS )Jr   3SetupIntent.ConfirmParamsPaymentMethodDataAcssDebitr   0SetupIntent.ConfirmParamsPaymentMethodDataAffirmaffirm:SetupIntent.ConfirmParamsPaymentMethodDataAfterpayClearpayafterpay_clearpay0SetupIntent.ConfirmParamsPaymentMethodDataAlipayalipay5SetupIntent.ConfirmParamsPaymentMethodDataAuBecsDebitau_becs_debit3SetupIntent.ConfirmParamsPaymentMethodDataBacsDebit
bacs_debit4SetupIntent.ConfirmParamsPaymentMethodDataBancontact
bancontact8SetupIntent.ConfirmParamsPaymentMethodDataBillingDetailsbilling_details.SetupIntent.ConfirmParamsPaymentMethodDataBlikblik0SetupIntent.ConfirmParamsPaymentMethodDataBoletoboleto1SetupIntent.ConfirmParamsPaymentMethodDataCashappcashapp9SetupIntent.ConfirmParamsPaymentMethodDataCustomerBalancecustomer_balance-SetupIntent.ConfirmParamsPaymentMethodDataEpseps-SetupIntent.ConfirmParamsPaymentMethodDataFpxfpx1SetupIntent.ConfirmParamsPaymentMethodDataGiropaygiropay1SetupIntent.ConfirmParamsPaymentMethodDataGrabpaygrabpay/SetupIntent.ConfirmParamsPaymentMethodDataIdealideal8SetupIntent.ConfirmParamsPaymentMethodDataInteracPresentinterac_present0SetupIntent.ConfirmParamsPaymentMethodDataKlarnaklarna1SetupIntent.ConfirmParamsPaymentMethodDataKonbinikonbini.SetupIntent.ConfirmParamsPaymentMethodDataLinkr   Dict[str, str]metadata.SetupIntent.ConfirmParamsPaymentMethodDataOxxooxxo-SetupIntent.ConfirmParamsPaymentMethodDataP24p240SetupIntent.ConfirmParamsPaymentMethodDataPaynowpaynow0SetupIntent.ConfirmParamsPaymentMethodDataPaypalr   -SetupIntent.ConfirmParamsPaymentMethodDataPixpix3SetupIntent.ConfirmParamsPaymentMethodDataPromptpay	promptpay6SetupIntent.ConfirmParamsPaymentMethodDataRadarOptionsradar_options4SetupIntent.ConfirmParamsPaymentMethodDataRevolutPayrevolut_pay3SetupIntent.ConfirmParamsPaymentMethodDataSepaDebitr   0SetupIntent.ConfirmParamsPaymentMethodDataSofortsofortr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r	  r   r  r  r  r   r  r   
wechat_payzipr9   7SetupIntent.ConfirmParamsPaymentMethodDataUsBankAccountr   3SetupIntent.ConfirmParamsPaymentMethodDataWechatPayr  -SetupIntent.ConfirmParamsPaymentMethodDataZipr  Nr*   r+   r,   r   r-   r   r/   r/   r/   r0   ConfirmParamsPaymentMethodData  s   
$r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   !ConfirmParamsPaymentMethodDataZip  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   'ConfirmParamsPaymentMethodDataWechatPay  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   Literal['company', 'individual']account_holder_typer:   account_numberLiteral['checking', 'savings']account_typefinancial_connections_accountrouting_numberNr   r/   r/   r/   r0   +ConfirmParamsPaymentMethodDataUsBankAccount  s   
r'  c                   @   s   e Zd ZU ed ed< dS )r  ATZBEZDEESZITNLcountryNr*   r+   r,   r   r-   r/   r/   r/   r0   $ConfirmParamsPaymentMethodDataSofort  s   
r.  c                   @   s   e Zd ZU eed< dS )r  ibanNr*   r+   r,   r:   r-   r/   r/   r/   r0   'ConfirmParamsPaymentMethodDataSepaDebit  s   
r1  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   (ConfirmParamsPaymentMethodDataRevolutPay  s   r2  c                   @   s   e Zd ZU ed ed< dS )r  r:   sessionNr   r/   r/   r/   r0   *ConfirmParamsPaymentMethodDataRadarOptions  s   
r4  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   'ConfirmParamsPaymentMethodDataPromptpay  s   r5  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   !ConfirmParamsPaymentMethodDataPix  s   r6  c                   @   s   e Zd ZdS )r
  Nr{   r/   r/   r/   r0   $ConfirmParamsPaymentMethodDataPaypal  s   r7  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   $ConfirmParamsPaymentMethodDataPaynow  s   r8  c                   @   s   e Zd ZU ed ed< dS )r    Literal['alior_bank', 'bank_millennium', 'bank_nowy_bfg_sa', 'bank_pekao_sa', 'banki_spbdzielcze', 'blik', 'bnp_paribas', 'boz', 'citi_handlowy', 'credit_agricole', 'envelobank', 'etransfer_pocztowy24', 'getin_bank', 'ideabank', 'ing', 'inteligo', 'mbank_mtransfer', 'nest_przelew', 'noble_pay', 'pbac_z_ipko', 'plus_bank', 'santander_przelew24', 'tmobile_usbugi_bankowe', 'toyota_bank', 'volkswagen_bank']bankNr   r/   r/   r/   r0   !ConfirmParamsPaymentMethodDataP24  s   
r;  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   "ConfirmParamsPaymentMethodDataOxxo  s   r<  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   "ConfirmParamsPaymentMethodDataLink  s   r=  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   %ConfirmParamsPaymentMethodDataKonbini  s   r>  c                   @   s   e Zd ZU ed ed< dS )r   3SetupIntent.ConfirmParamsPaymentMethodDataKlarnaDobdobNr   r/   r/   r/   r0   $ConfirmParamsPaymentMethodDataKlarna  s   
rA  c                   @   s&   e Zd ZU eed< eed< eed< dS )r?  rh   ri   rk   Nr*   r+   r,   r=   r-   r/   r/   r/   r0   'ConfirmParamsPaymentMethodDataKlarnaDob  s   
rC  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   ,ConfirmParamsPaymentMethodDataInteracPresent  s   rD  c                   @   s   e Zd ZU ed ed< dS )r   Literal['abn_amro', 'asn_bank', 'bunq', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']r:  Nr   r/   r/   r/   r0   #ConfirmParamsPaymentMethodDataIdeal  s   
rF  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   %ConfirmParamsPaymentMethodDataGrabpay  s   rG  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   %ConfirmParamsPaymentMethodDataGiropay  s   rH  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r   r   r!  Z
affin_bankZagrobankZalliance_bankZambankZ
bank_islamZbank_muamalatZbank_of_chinaZbank_rakyatZbsnZcimbZdeutsche_bankZhong_leong_bankZhsbcZkfhZ	maybank2eZ	maybank2uZocbcZpb_enterpriseZpublic_bankZrhbZstandard_charteredZuobr:  Nr  r/   r/   r/   r0   !ConfirmParamsPaymentMethodDataFpx  s
   
rJ  c                   @   s   e Zd ZU ed ed< dS )r     Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']r:  Nr   r/   r/   r/   r0   !ConfirmParamsPaymentMethodDataEps  s   
rL  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   -ConfirmParamsPaymentMethodDataCustomerBalance  s   rM  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   %ConfirmParamsPaymentMethodDataCashapp   s   rN  c                   @   s   e Zd ZU eed< dS )r   tax_idNr0  r/   r/   r/   r0   $ConfirmParamsPaymentMethodDataBoleto#  s   
rP  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   "ConfirmParamsPaymentMethodDataBlik)  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< dS )r   zKLiteral['']|SetupIntent.ConfirmParamsPaymentMethodDataBillingDetailsAddressaddressr   emailnamephoneNr   r/   r/   r/   r0   ,ConfirmParamsPaymentMethodDataBillingDetails,  s   
rV  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?SetupIntent.ConfirmParamsPaymentMethodDataBillingDetailsAddressr:   cityr,  line1line2postal_codestateNr   r/   r/   r/   r0   3ConfirmParamsPaymentMethodDataBillingDetailsAddress@  s   
r\  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   (ConfirmParamsPaymentMethodDataBancontactZ  s   r]  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r   r:   r"  	sort_codeNr   r/   r/   r/   r0   'ConfirmParamsPaymentMethodDataBacsDebit]  s   
r_  c                   @   s   e Zd ZU eed< eed< dS )r   r"  
bsb_numberNr0  r/   r/   r/   r0   )ConfirmParamsPaymentMethodDataAuBecsDebitg  s   
ra  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   $ConfirmParamsPaymentMethodDataAlipayq  s   rb  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   .ConfirmParamsPaymentMethodDataAfterpayClearpayt  s   rc  c                   @   s   e Zd ZdS )r   Nr{   r/   r/   r/   r0   $ConfirmParamsPaymentMethodDataAffirmw  s   rd  c                   @   s&   e Zd ZU eed< eed< eed< dS )r   r"  institution_numbertransit_numberNr0  r/   r/   r/   r0   'ConfirmParamsPaymentMethodDataAcssDebitz  s   
rg  c                   @   s   e Zd ZU ded< dS )z%SetupIntent.ConfirmParamsMandateData27SetupIntent.ConfirmParamsMandateDataCustomerAcceptance2customer_acceptanceNr*   r+   r,   r-   r/   r/   r/   r0   ConfirmParamsMandateData2  s   
rk  c                   @   s"   e Zd ZU ded< ed ed< dS )rh  =SetupIntent.ConfirmParamsMandateDataCustomerAcceptanceOnline2onliner9   N)r*   r+   r,   r-   r   r/   r/   r/   r0   +ConfirmParamsMandateDataCustomerAcceptance2  s   
rn  c                   @   s&   e Zd ZU ed ed< ed ed< dS )rl  r:   
ip_address
user_agentNr   r/   r/   r/   r0   1ConfirmParamsMandateDataCustomerAcceptanceOnline2  s   
rq  c                   @   s   e Zd ZU ded< dS )z$SetupIntent.ConfirmParamsMandateData6SetupIntent.ConfirmParamsMandateDataCustomerAcceptanceri  Nrj  r/   r/   r/   r0   ConfirmParamsMandateData  s   
rs  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 )
rr  r=   accepted_at=SetupIntent.ConfirmParamsMandateDataCustomerAcceptanceOfflineoffline<SetupIntent.ConfirmParamsMandateDataCustomerAcceptanceOnlinerm  rv  rm  r9   Nr  r/   r/   r/   r0   *ConfirmParamsMandateDataCustomerAcceptance  s   
ry  c                   @   s   e Zd ZU eed< eed< dS )rw  ro  rp  Nr0  r/   r/   r/   r0   0ConfirmParamsMandateDataCustomerAcceptanceOnline  s   
rz  c                   @   s   e Zd ZdS )ru  Nr{   r/   r/   r/   r0   1ConfirmParamsMandateDataCustomerAcceptanceOffline  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< dS ) SetupIntent.CreateParamsr.   attach_to_self/SetupIntent.CreateParamsAutomaticPaymentMethodsautomatic_payment_methodsconfirmr:   customerre   r   r   $List[Literal['inbound', 'outbound']]flow_directionsz/Literal['']|SetupIntent.CreateParamsMandateDatar   r  r  on_behalf_ofr6   payment_method_configuration)SetupIntent.CreateParamsPaymentMethodDatar   ,SetupIntent.CreateParamsPaymentMethodOptionsr   payment_method_typesrA   !SetupIntent.CreateParamsSingleUseZ
single_usez$Literal['off_session', 'on_session']usagerJ   Nr   r/   r/   r/   r0   CreateParams  s8   
r  c                   @   s   e Zd ZU eed< eed< dS )r  r`   rZ   Nr<   r/   r/   r/   r0   CreateParamsSingleUse(  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  5SetupIntent.CreateParamsPaymentMethodOptionsAcssDebitr   0SetupIntent.CreateParamsPaymentMethodOptionsCardr   0SetupIntent.CreateParamsPaymentMethodOptionsLinkr   2SetupIntent.CreateParamsPaymentMethodOptionsPaypalr   5SetupIntent.CreateParamsPaymentMethodOptionsSepaDebitr   9SetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountr   Nr   r/   r/   r/   r0    CreateParamsPaymentMethodOptions2  s   
r  c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r  MSetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   ASetupIntent.CreateParamsPaymentMethodOptionsUsBankAccountNetworksr   r   r^   Nr   r/   r/   r/   r0   -CreateParamsPaymentMethodOptionsUsBankAccountT  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  r   r   Nr   r/   r/   r/   r0   5CreateParamsPaymentMethodOptionsUsBankAccountNetworksh  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~   r   r   r:   rA   Nr   r/   r/   r/   r0   ACreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsn  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  CSetupIntent.CreateParamsPaymentMethodOptionsSepaDebitMandateOptionsr[   Nr   r/   r/   r/   r0   )CreateParamsPaymentMethodOptionsSepaDebit  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   7CreateParamsPaymentMethodOptionsSepaDebitMandateOptions  s   r  c                   @   s   e Zd ZU ed ed< dS )r  r:   ry   Nr   r/   r/   r/   r0   &CreateParamsPaymentMethodOptionsPaypal  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  r:   rw   Nr   r/   r/   r/   r0   $CreateParamsPaymentMethodOptionsLink  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  >SetupIntent.CreateParamsPaymentMethodOptionsCardMandateOptionsr[   r.   r   r   rs   r   rv   <SetupIntent.CreateParamsPaymentMethodOptionsCardThreeDSecurer   Nr   r/   r/   r/   r0   $CreateParamsPaymentMethodOptionsCard  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 )r  r   r   r:   r   r   r   JSetupIntent.CreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsr   r   r   r   r   Nr   r/   r/   r/   r0   0CreateParamsPaymentMethodOptionsCardThreeDSecure  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  YSetupIntent.CreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesrq   Nr   r/   r/   r/   r0   >CreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions  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   r:   r   r=   r   Nr   r/   r/   r/   r0   MCreateParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires  s   
r  c                   @   sv   e Zd ZU eed< ed ed< eed< ed ed< ed ed< ed	 ed
< ed ed< eed< eed< ed ed< dS )r  r`   ra   rd   rZ   r:   re   r=   rf   rg   rT   rl   rm   rn   r   rp   Nr   r/   r/   r/   r0   2CreateParamsPaymentMethodOptionsCardMandateOptions  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   rZ   CSetupIntent.CreateParamsPaymentMethodOptionsAcssDebitMandateOptionsr[   r   r^   Nr   r/   r/   r/   r0   )CreateParamsPaymentMethodOptionsAcssDebit,  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  r   rP   r   rQ   r:   rR   r   rV   r   rW   Nr   r/   r/   r/   r0   7CreateParamsPaymentMethodOptionsAcssDebitMandateOptions>  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d0< ed1 ed2< ed3 ed4< ed5 ed6< ed7 ed8< ed9 ed:< ed; ed<< ed= ed>< ed? ed@< edA edB< edC edD< edE edF< edG edH< dIS )Jr  2SetupIntent.CreateParamsPaymentMethodDataAcssDebitr   /SetupIntent.CreateParamsPaymentMethodDataAffirmr   9SetupIntent.CreateParamsPaymentMethodDataAfterpayClearpayr   /SetupIntent.CreateParamsPaymentMethodDataAlipayr   4SetupIntent.CreateParamsPaymentMethodDataAuBecsDebitr   2SetupIntent.CreateParamsPaymentMethodDataBacsDebitr   3SetupIntent.CreateParamsPaymentMethodDataBancontactr   7SetupIntent.CreateParamsPaymentMethodDataBillingDetailsr   -SetupIntent.CreateParamsPaymentMethodDataBlikr   /SetupIntent.CreateParamsPaymentMethodDataBoletor   0SetupIntent.CreateParamsPaymentMethodDataCashappr   8SetupIntent.CreateParamsPaymentMethodDataCustomerBalancer   ,SetupIntent.CreateParamsPaymentMethodDataEpsr   ,SetupIntent.CreateParamsPaymentMethodDataFpxr   0SetupIntent.CreateParamsPaymentMethodDataGiropayr   0SetupIntent.CreateParamsPaymentMethodDataGrabpayr   .SetupIntent.CreateParamsPaymentMethodDataIdealr   7SetupIntent.CreateParamsPaymentMethodDataInteracPresentr   /SetupIntent.CreateParamsPaymentMethodDataKlarnar   0SetupIntent.CreateParamsPaymentMethodDataKonbinir   -SetupIntent.CreateParamsPaymentMethodDataLinkr   r  r  -SetupIntent.CreateParamsPaymentMethodDataOxxor  ,SetupIntent.CreateParamsPaymentMethodDataP24r  /SetupIntent.CreateParamsPaymentMethodDataPaynowr	  /SetupIntent.CreateParamsPaymentMethodDataPaypalr   ,SetupIntent.CreateParamsPaymentMethodDataPixr  2SetupIntent.CreateParamsPaymentMethodDataPromptpayr  5SetupIntent.CreateParamsPaymentMethodDataRadarOptionsr  3SetupIntent.CreateParamsPaymentMethodDataRevolutPayr  2SetupIntent.CreateParamsPaymentMethodDataSepaDebitr   /SetupIntent.CreateParamsPaymentMethodDataSofortr  r  r9   6SetupIntent.CreateParamsPaymentMethodDataUsBankAccountr   2SetupIntent.CreateParamsPaymentMethodDataWechatPayr  ,SetupIntent.CreateParamsPaymentMethodDataZipr  Nr  r/   r/   r/   r0   CreateParamsPaymentMethodDataX  s   
$r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0    CreateParamsPaymentMethodDataZip.  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   &CreateParamsPaymentMethodDataWechatPay1  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  r   r!  r:   r"  r#  r$  r%  r&  Nr   r/   r/   r/   r0   *CreateParamsPaymentMethodDataUsBankAccount4  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  r(  r,  Nr-  r/   r/   r/   r0   #CreateParamsPaymentMethodDataSofortJ  s   
r  c                   @   s   e Zd ZU eed< dS )r  r/  Nr0  r/   r/   r/   r0   &CreateParamsPaymentMethodDataSepaDebitP  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   'CreateParamsPaymentMethodDataRevolutPayV  s   r  c                   @   s   e Zd ZU ed ed< dS )r  r:   r3  Nr   r/   r/   r/   r0   )CreateParamsPaymentMethodDataRadarOptionsY  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   &CreateParamsPaymentMethodDataPromptpay_  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0    CreateParamsPaymentMethodDataPixb  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   #CreateParamsPaymentMethodDataPaypale  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   #CreateParamsPaymentMethodDataPaynowh  s   r  c                   @   s   e Zd ZU ed ed< dS )r  r9  r:  Nr   r/   r/   r/   r0    CreateParamsPaymentMethodDataP24k  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   !CreateParamsPaymentMethodDataOxxos  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   !CreateParamsPaymentMethodDataLinkv  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   $CreateParamsPaymentMethodDataKonbiniy  s   r  c                   @   s   e Zd ZU ed ed< dS )r  2SetupIntent.CreateParamsPaymentMethodDataKlarnaDobr@  Nr   r/   r/   r/   r0   #CreateParamsPaymentMethodDataKlarna|  s   
r  c                   @   s&   e Zd ZU eed< eed< eed< dS )r  rh   ri   rk   NrB  r/   r/   r/   r0   &CreateParamsPaymentMethodDataKlarnaDob  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   +CreateParamsPaymentMethodDataInteracPresent  s   r  c                   @   s   e Zd ZU ed ed< dS )r  rE  r:  Nr   r/   r/   r/   r0   "CreateParamsPaymentMethodDataIdeal  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   $CreateParamsPaymentMethodDataGrabpay  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   $CreateParamsPaymentMethodDataGiropay  s   r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  r   r!  rI  r:  Nr  r/   r/   r/   r0    CreateParamsPaymentMethodDataFpx  s
   
r  c                   @   s   e Zd ZU ed ed< dS )r  rK  r:  Nr   r/   r/   r/   r0    CreateParamsPaymentMethodDataEps  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   ,CreateParamsPaymentMethodDataCustomerBalance  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   $CreateParamsPaymentMethodDataCashapp  s   r  c                   @   s   e Zd ZU eed< dS )r  rO  Nr0  r/   r/   r/   r0   #CreateParamsPaymentMethodDataBoleto  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   !CreateParamsPaymentMethodDataBlik  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 )r  zJLiteral['']|SetupIntent.CreateParamsPaymentMethodDataBillingDetailsAddressrR  r   rS  rT  rU  Nr   r/   r/   r/   r0   +CreateParamsPaymentMethodDataBillingDetails  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>SetupIntent.CreateParamsPaymentMethodDataBillingDetailsAddressr:   rW  r,  rX  rY  rZ  r[  Nr   r/   r/   r/   r0   2CreateParamsPaymentMethodDataBillingDetailsAddress  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   'CreateParamsPaymentMethodDataBancontact	  s   r  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r  r:   r"  r^  Nr   r/   r/   r/   r0   &CreateParamsPaymentMethodDataBacsDebit
	  s   
r  c                   @   s   e Zd ZU eed< eed< dS )r  r"  r`  Nr0  r/   r/   r/   r0   (CreateParamsPaymentMethodDataAuBecsDebit	  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   #CreateParamsPaymentMethodDataAlipay	  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   -CreateParamsPaymentMethodDataAfterpayClearpay!	  s   r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   #CreateParamsPaymentMethodDataAffirm$	  s   r  c                   @   s&   e Zd ZU eed< eed< eed< dS )r  r"  re  rf  Nr0  r/   r/   r/   r0   &CreateParamsPaymentMethodDataAcssDebit'	  s   
r  c                   @   s   e Zd ZU ded< dS )z#SetupIntent.CreateParamsMandateData5SetupIntent.CreateParamsMandateDataCustomerAcceptanceri  Nrj  r/   r/   r/   r0   CreateParamsMandateData5	  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 )
r  r=   rt  <SetupIntent.CreateParamsMandateDataCustomerAcceptanceOfflinerv  ;SetupIntent.CreateParamsMandateDataCustomerAcceptanceOnlinerm  rx  r9   Nr  r/   r/   r/   r0   )CreateParamsMandateDataCustomerAcceptance;	  s   
r  c                   @   s   e Zd ZU eed< eed< dS )r  ro  rp  Nr0  r/   r/   r/   r0   /CreateParamsMandateDataCustomerAcceptanceOnlineQ	  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   0CreateParamsMandateDataCustomerAcceptanceOffline[	  s   r  c                   @   s"   e Zd ZU ed ed< eed< dS )r~  zLiteral['always', 'never']r(   r)   N)r*   r+   r,   r   r-   r.   r/   r/   r/   r0   #CreateParamsAutomaticPaymentMethods^	  s   
r  c                   @   sn   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< dS )SetupIntent.ListParamsr.   r}  z!SetupIntent.ListParamsCreated|intcreatedr:   r  Zending_beforer   r   r=   limitr6   Zstarting_afterNr   r/   r/   r/   r0   
ListParamsj	  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SetupIntent.ListParamsCreatedr=   gtZgteltZlteNr   r/   r/   r/   r0   ListParamsCreated	  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< dS )SetupIntent.ModifyParamsr.   r}  r:   r  re   r   r   r  r  zLiteral['']|Dict[str, str]r  r6   r  )SetupIntent.ModifyParamsPaymentMethodDatar   ,SetupIntent.ModifyParamsPaymentMethodOptionsr   r  Nr   r/   r/   r/   r0   ModifyParams	  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  5SetupIntent.ModifyParamsPaymentMethodOptionsAcssDebitr   0SetupIntent.ModifyParamsPaymentMethodOptionsCardr   0SetupIntent.ModifyParamsPaymentMethodOptionsLinkr   2SetupIntent.ModifyParamsPaymentMethodOptionsPaypalr   5SetupIntent.ModifyParamsPaymentMethodOptionsSepaDebitr   9SetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountr   Nr   r/   r/   r/   r0    ModifyParamsPaymentMethodOptions	  s   
r  c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r
  MSetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsr   ASetupIntent.ModifyParamsPaymentMethodOptionsUsBankAccountNetworksr   r   r^   Nr   r/   r/   r/   r0   -ModifyParamsPaymentMethodOptionsUsBankAccount	  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  r   r   Nr   r/   r/   r/   r0   5ModifyParamsPaymentMethodOptionsUsBankAccountNetworks
  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~   r   r   r:   rA   Nr   r/   r/   r/   r0   AModifyParamsPaymentMethodOptionsUsBankAccountFinancialConnections
  s   
r  c                   @   s   e Zd ZU ed ed< dS )r	  CSetupIntent.ModifyParamsPaymentMethodOptionsSepaDebitMandateOptionsr[   Nr   r/   r/   r/   r0   )ModifyParamsPaymentMethodOptionsSepaDebit'
  s   
r  c                   @   s   e Zd ZdS )r  Nr{   r/   r/   r/   r0   7ModifyParamsPaymentMethodOptionsSepaDebitMandateOptions/
  s   r  c                   @   s   e Zd ZU ed ed< dS )r  r:   ry   Nr   r/   r/   r/   r0   &ModifyParamsPaymentMethodOptionsPaypal2
  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  r:   rw   Nr   r/   r/   r/   r0   $ModifyParamsPaymentMethodOptionsLink8
  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  >SetupIntent.ModifyParamsPaymentMethodOptionsCardMandateOptionsr[   r.   r   r   rs   r   rv   <SetupIntent.ModifyParamsPaymentMethodOptionsCardThreeDSecurer   Nr   r/   r/   r/   r0   $ModifyParamsPaymentMethodOptionsCard>
  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 )r  r   r   r:   r   r   r   JSetupIntent.ModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsr   r   r   r   r   Nr   r/   r/   r/   r0   0ModifyParamsPaymentMethodOptionsCardThreeDSecure]
  s   
r  c                   @   s   e Zd ZU ed ed< dS )r  YSetupIntent.ModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancairesrq   Nr   r/   r/   r/   r0   >ModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptions
  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   r:   r   r=   r   Nr   r/   r/   r/   r0   MModifyParamsPaymentMethodOptionsCardThreeDSecureNetworkOptionsCartesBancaires
  s   
r  c                   @   sv   e Zd ZU eed< ed ed< eed< ed ed< ed ed< ed	 ed
< ed ed< eed< eed< ed ed< dS )r  r`   ra   rd   rZ   r:   re   r=   rf   rg   rT   rl   rm   rn   r   rp   Nr   r/   r/   r/   r0   2ModifyParamsPaymentMethodOptionsCardMandateOptions
  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   rZ   CSetupIntent.ModifyParamsPaymentMethodOptionsAcssDebitMandateOptionsr[   r   r^   Nr   r/   r/   r/   r0   )ModifyParamsPaymentMethodOptionsAcssDebit
  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  r   rP   r   rQ   r:   rR   r   rV   r   rW   Nr   r/   r/   r/   r0   7ModifyParamsPaymentMethodOptionsAcssDebitMandateOptions
  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d0< ed1 ed2< ed3 ed4< ed5 ed6< ed7 ed8< ed9 ed:< ed; ed<< ed= ed>< ed? ed@< edA edB< edC edD< edE edF< edG edH< dIS )Jr  2SetupIntent.ModifyParamsPaymentMethodDataAcssDebitr   /SetupIntent.ModifyParamsPaymentMethodDataAffirmr   9SetupIntent.ModifyParamsPaymentMethodDataAfterpayClearpayr   /SetupIntent.ModifyParamsPaymentMethodDataAlipayr   4SetupIntent.ModifyParamsPaymentMethodDataAuBecsDebitr   2SetupIntent.ModifyParamsPaymentMethodDataBacsDebitr   3SetupIntent.ModifyParamsPaymentMethodDataBancontactr   7SetupIntent.ModifyParamsPaymentMethodDataBillingDetailsr   -SetupIntent.ModifyParamsPaymentMethodDataBlikr   /SetupIntent.ModifyParamsPaymentMethodDataBoletor   0SetupIntent.ModifyParamsPaymentMethodDataCashappr   8SetupIntent.ModifyParamsPaymentMethodDataCustomerBalancer   ,SetupIntent.ModifyParamsPaymentMethodDataEpsr   ,SetupIntent.ModifyParamsPaymentMethodDataFpxr   0SetupIntent.ModifyParamsPaymentMethodDataGiropayr   0SetupIntent.ModifyParamsPaymentMethodDataGrabpayr   .SetupIntent.ModifyParamsPaymentMethodDataIdealr   7SetupIntent.ModifyParamsPaymentMethodDataInteracPresentr   /SetupIntent.ModifyParamsPaymentMethodDataKlarnar   0SetupIntent.ModifyParamsPaymentMethodDataKonbinir   -SetupIntent.ModifyParamsPaymentMethodDataLinkr   r  r  -SetupIntent.ModifyParamsPaymentMethodDataOxxor  ,SetupIntent.ModifyParamsPaymentMethodDataP24r  /SetupIntent.ModifyParamsPaymentMethodDataPaynowr	  /SetupIntent.ModifyParamsPaymentMethodDataPaypalr   ,SetupIntent.ModifyParamsPaymentMethodDataPixr  2SetupIntent.ModifyParamsPaymentMethodDataPromptpayr  5SetupIntent.ModifyParamsPaymentMethodDataRadarOptionsr  3SetupIntent.ModifyParamsPaymentMethodDataRevolutPayr  2SetupIntent.ModifyParamsPaymentMethodDataSepaDebitr   /SetupIntent.ModifyParamsPaymentMethodDataSofortr  r  r9   6SetupIntent.ModifyParamsPaymentMethodDataUsBankAccountr   2SetupIntent.ModifyParamsPaymentMethodDataWechatPayr  ,SetupIntent.ModifyParamsPaymentMethodDataZipr  Nr  r/   r/   r/   r0   ModifyParamsPaymentMethodData
  s   
$rD  c                   @   s   e Zd ZdS )rC  Nr{   r/   r/   r/   r0    ModifyParamsPaymentMethodDataZip  s   rE  c                   @   s   e Zd ZdS )rB  Nr{   r/   r/   r/   r0   &ModifyParamsPaymentMethodDataWechatPay  s   rF  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 )
rA  r   r!  r:   r"  r#  r$  r%  r&  Nr   r/   r/   r/   r0   *ModifyParamsPaymentMethodDataUsBankAccount  s   
rG  c                   @   s   e Zd ZU ed ed< dS )r@  r(  r,  Nr-  r/   r/   r/   r0   #ModifyParamsPaymentMethodDataSofort  s   
rH  c                   @   s   e Zd ZU eed< dS )r?  r/  Nr0  r/   r/   r/   r0   &ModifyParamsPaymentMethodDataSepaDebit  s   
rI  c                   @   s   e Zd ZdS )r>  Nr{   r/   r/   r/   r0   'ModifyParamsPaymentMethodDataRevolutPay  s   rJ  c                   @   s   e Zd ZU ed ed< dS )r=  r:   r3  Nr   r/   r/   r/   r0   )ModifyParamsPaymentMethodDataRadarOptions   s   
rK  c                   @   s   e Zd ZdS )r<  Nr{   r/   r/   r/   r0   &ModifyParamsPaymentMethodDataPromptpay  s   rL  c                   @   s   e Zd ZdS )r;  Nr{   r/   r/   r/   r0    ModifyParamsPaymentMethodDataPix	  s   rM  c                   @   s   e Zd ZdS )r:  Nr{   r/   r/   r/   r0   #ModifyParamsPaymentMethodDataPaypal  s   rN  c                   @   s   e Zd ZdS )r9  Nr{   r/   r/   r/   r0   #ModifyParamsPaymentMethodDataPaynow  s   rO  c                   @   s   e Zd ZU ed ed< dS )r8  r9  r:  Nr   r/   r/   r/   r0    ModifyParamsPaymentMethodDataP24  s   
rP  c                   @   s   e Zd ZdS )r7  Nr{   r/   r/   r/   r0   !ModifyParamsPaymentMethodDataOxxo  s   rQ  c                   @   s   e Zd ZdS )r6  Nr{   r/   r/   r/   r0   !ModifyParamsPaymentMethodDataLink  s   rR  c                   @   s   e Zd ZdS )r5  Nr{   r/   r/   r/   r0   $ModifyParamsPaymentMethodDataKonbini   s   rS  c                   @   s   e Zd ZU ed ed< dS )r4  2SetupIntent.ModifyParamsPaymentMethodDataKlarnaDobr@  Nr   r/   r/   r/   r0   #ModifyParamsPaymentMethodDataKlarna#  s   
rU  c                   @   s&   e Zd ZU eed< eed< eed< dS )rT  rh   ri   rk   NrB  r/   r/   r/   r0   &ModifyParamsPaymentMethodDataKlarnaDob)  s   
rV  c                   @   s   e Zd ZdS )r3  Nr{   r/   r/   r/   r0   +ModifyParamsPaymentMethodDataInteracPresent7  s   rW  c                   @   s   e Zd ZU ed ed< dS )r2  rE  r:  Nr   r/   r/   r/   r0   "ModifyParamsPaymentMethodDataIdeal:  s   
rX  c                   @   s   e Zd ZdS )r1  Nr{   r/   r/   r/   r0   $ModifyParamsPaymentMethodDataGrabpayB  s   rY  c                   @   s   e Zd ZdS )r0  Nr{   r/   r/   r/   r0   $ModifyParamsPaymentMethodDataGiropayE  s   rZ  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r/  r   r!  rI  r:  Nr  r/   r/   r/   r0    ModifyParamsPaymentMethodDataFpxH  s
   
r[  c                   @   s   e Zd ZU ed ed< dS )r.  rK  r:  Nr   r/   r/   r/   r0    ModifyParamsPaymentMethodDataEpsi  s   
r\  c                   @   s   e Zd ZdS )r-  Nr{   r/   r/   r/   r0   ,ModifyParamsPaymentMethodDataCustomerBalanceq  s   r]  c                   @   s   e Zd ZdS )r,  Nr{   r/   r/   r/   r0   $ModifyParamsPaymentMethodDataCashappt  s   r^  c                   @   s   e Zd ZU eed< dS )r+  rO  Nr0  r/   r/   r/   r0   #ModifyParamsPaymentMethodDataBoletow  s   
r_  c                   @   s   e Zd ZdS )r*  Nr{   r/   r/   r/   r0   !ModifyParamsPaymentMethodDataBlik}  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 )r)  zJLiteral['']|SetupIntent.ModifyParamsPaymentMethodDataBillingDetailsAddressrR  r   rS  rT  rU  Nr   r/   r/   r/   r0   +ModifyParamsPaymentMethodDataBillingDetails  s   
ra  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>SetupIntent.ModifyParamsPaymentMethodDataBillingDetailsAddressr:   rW  r,  rX  rY  rZ  r[  Nr   r/   r/   r/   r0   2ModifyParamsPaymentMethodDataBillingDetailsAddress  s   
rb  c                   @   s   e Zd ZdS )r(  Nr{   r/   r/   r/   r0   'ModifyParamsPaymentMethodDataBancontact  s   rc  c                   @   s&   e Zd ZU ed ed< ed ed< dS )r'  r:   r"  r^  Nr   r/   r/   r/   r0   &ModifyParamsPaymentMethodDataBacsDebit  s   
rd  c                   @   s   e Zd ZU eed< eed< dS )r&  r"  r`  Nr0  r/   r/   r/   r0   (ModifyParamsPaymentMethodDataAuBecsDebit  s   
re  c                   @   s   e Zd ZdS )r%  Nr{   r/   r/   r/   r0   #ModifyParamsPaymentMethodDataAlipay  s   rf  c                   @   s   e Zd ZdS )r$  Nr{   r/   r/   r/   r0   -ModifyParamsPaymentMethodDataAfterpayClearpay  s   rg  c                   @   s   e Zd ZdS )r#  Nr{   r/   r/   r/   r0   #ModifyParamsPaymentMethodDataAffirm  s   rh  c                   @   s&   e Zd ZU eed< eed< eed< dS )r"  r"  re  rf  Nr0  r/   r/   r/   r0   &ModifyParamsPaymentMethodDataAcssDebit  s   
ri  c                   @   s&   e Zd ZU ed ed< ed ed< dS )SetupIntent.RetrieveParamsr:   client_secretr   r   Nr   r/   r/   r/   r0   RetrieveParams  s   
rl  c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )%SetupIntent.VerifyMicrodepositsParamsz	List[int]rE   r:   rF   r   r   Nr   r/   r/   r/   r0   VerifyMicrodepositsParams  s   
rn  r   Zapplicationr}  r  )Z	abandonedZ	duplicateZrequested_by_customerr   rk  r  r   r  re   )ZinboundZoutboundr  rM   last_setup_errorr!   Zlatest_attemptZlivemoder   Zmandater  next_actionobjectr   r  r    r6   $payment_method_configuration_detailsr   r  Zsingle_use_mandate)canceled
processingZrequires_actionZrequires_confirmationZrequires_payment_methodZ	succeededstatusr  Nr   )intentapi_keystripe_versionstripe_accountparamsreturnc              
   K   s*   t d| jddjt|d||||dS )  
        You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.

        After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error.
        r#   post!/v1/setup_intents/{intent}/cancelrv  rw  rx  ry  rz  r   _static_requestformatr   sanitize_idclsrv  rw  rx  ry  rz  r/   r/   r0   _cls_canceln  s    zSetupIntent._cls_cancelc                 K   s   dS r|  Nr/   rv  rw  rx  ry  rz  r/   r/   r0   cancel  s    zSetupIntent.cancel)idempotency_keyrz  r{  c                 K   s   dS r  r/   selfr  rz  r/   r/   r0   r    s    r  c              
   K   s,   t d| jddjt| dd||dS )r|  r#   r}  r~  rM   r  r  rz  r   _requestr  r   r  getr  r/   r/   r0   r    s    r   c              
   K   s*   t d| jddjt|d||||dS )  
        Confirm that your customer intends to set up the current or
        provided payment method. For example, you would confirm a SetupIntent
        when a customer hits the “Save” button on a payment method management
        page on your website.

        If the selected payment method does not require any additional
        steps from the customer, the SetupIntent will transition to the
        succeeded status.

        Otherwise, it will transition to the requires_action status and
        suggest additional actions via next_action. If setup fails,
        the SetupIntent will transition to the
        requires_payment_method status or the canceled status if the
        confirmation limit is reached.
        r#   r}  "/v1/setup_intents/{intent}/confirmr  r  r  r  r/   r/   r0   _cls_confirm  s    zSetupIntent._cls_confirmc                 K   s   dS r  Nr/   r  r/   r/   r0   r    s    zSetupIntent.confirmc                 K   s   dS r  r/   r  r/   r/   r0   r    s    r  c              
   K   s,   t d| jddjt| dd||dS )r  r#   r}  r  rM   r  r  r  r  r/   r/   r0   r  &  s    r|  )rw  r  rx  ry  rz  r{  c                 K   s    t d| d|  |||||S )a  
        Creates a SetupIntent object.

        After you create the SetupIntent, attach a payment method and [confirm](https://stripe.com/docs/api/setup_intents/confirm)
        it to collect any required permissions to charge the payment method later.
        r#   r}  )r   r  	class_url)r  rw  r  rx  ry  rz  r/   r/   r0   createJ  s    zSetupIntent.creater  )rw  rx  ry  rz  r{  c                 K   s:   | j d|  ||||d}t|ts6tdt|j |S )z1
        Returns a list of SetupIntents.
        r  r  z%Expected list object from API, got %s)r  r  
isinstancer   	TypeErrorr9   r*   )r  rw  rx  ry  rz  resultr/   r/   r0   listh  s    
zSetupIntent.listr  )rM   rz  r{  c                 K   s*   d|   t|f }td| jd||dS )z/
        Updates a SetupIntent object.
        z%s/%sr#   r}  )rz  )r  r   r   r  )r  rM   rz  rB   r/   r/   r0   modify  s
    zSetupIntent.modifyrj  c                 K   s   | |fi |}|   |S )a  
        Retrieves the details of a SetupIntent that has previously been created.

        Client-side retrieval using a publishable key is allowed when the client_secret is provided in the query string.

        When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the [SetupIntent](https://stripe.com/docs/api#setup_intent_object) object reference for more details.
        )refresh)r  rM   rz  instancer/   r/   r0   retrieve  s    zSetupIntent.retrieverm  c              
   K   s*   t d| jddjt|d||||dS )A
        Verifies microdeposits on a SetupIntent object.
        r#   r}  //v1/setup_intents/{intent}/verify_microdepositsr  r  r  r  r/   r/   r0   _cls_verify_microdeposits  s    z%SetupIntent._cls_verify_microdepositsc                 K   s   dS r  Nr/   r  r/   r/   r0   verify_microdeposits  s    z SetupIntent.verify_microdepositsc                 K   s   dS r  r/   r  r/   r/   r0   r    s    r  c              
   K   s,   t d| jddjt| dd||dS )r  r#   r}  r  rM   r  r  r  r  r/   r/   r0   r    s    )r  ro  rp  rr  r   )NNN)NNN)N)N)NNN)NNN)N)N)NNNN)NNN)NNN)NNN)N)N)r*   r+   r,   __doc__r%   r   r   r-   r	   r1   r;   rL   rO   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r'  r.  r1  r2  r4  r5  r6  r7  r8  r;  r<  r=  r>  rA  rC  rD  rF  rG  rH  rJ  rL  rM  rN  rP  rQ  rV  r\  r]  r_  ra  rb  rc  rd  rg  rk  rn  rq  rs  ry  rz  r{  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r!  rD  rE  rF  rG  rH  rI  rJ  rK  rL  rM  rN  rO  rP  rQ  rR  rS  rU  rV  rW  rX  rY  rZ  r[  r\  r]  r^  r_  r`  ra  rb  rc  rd  re  rf  rg  rh  ri  rl  rn  r   r   r.   r:   r=   r   r   classmethodr   r  r   staticmethodr  r
   r  r  r  r   r  r  r  r  r  r?   r/   r/   r/   r0   r#   %   sL  
  F
 6$"
,


* W!




]
"
,


* W!


$9",
* W!









      (  #     

    r#   N)7Zstriper   Zstripe.api_resources.abstractr   r   r   Z%stripe.api_resources.expandable_fieldr   Z stripe.api_resources.list_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   r7   Zstripe.api_resources.customerr   Zstripe.api_resources.mandater   Z#stripe.api_resources.payment_intentr   Z#stripe.api_resources.payment_methodr    Z"stripe.api_resources.setup_attemptr!   Zstripe.api_resources.sourcer"   r#   r/   r/   r/   r0   <module>   s2   (
