o
    i                     @   s  d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZmZ d dlmZmZmZmZmZmZmZ d d	lmZmZmZ erd d
lmZ d dlmZ d dlm Z  d dl!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 d dl6m7Z7 d dl8m9Z9 d dl:m;Z; d dl<m=Z= d dlm>Z> G dd ded ed ed Z?dS )    )CreateableAPIResource)ExpandableField)
ListObject)ListableAPIResource)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)ClassVarDictListOptionalUnioncastoverload)LiteralUnpackTYPE_CHECKING)Account)Application)BankAccount)Card)Customer)Mandate)PaymentIntent)PaymentMethod)SetupAttempt)Source)SetupIntentCancelParams)SetupIntentConfirmParams)SetupIntentCreateParams)SetupIntentListParams)SetupIntentModifyParams)SetupIntentRetrieveParams)$SetupIntentVerifyMicrodepositsParams)Anyc                   @   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eed  ed< 	 ee ed< 	 ee	 ed< 	 eed  ed< 	 ee ed< 	 eed< 	 eed  ed< 	 ee ed< 	 eeed   ed< 	 eeed   ed< 	 eed< 	 ee
 ed< 	 eed  ed < 	 eed!< 	 eed"  ed#< 	 eeeef  ed$< 	 ee ed%< 	 ed ed&< 	 eed'  ed(< 	 eed)  ed*< 	 ee ed+< 	 ee ed,< 	 ee ed-< 	 eed"  ed.< 	 ed/ ed0< 	 eed1< 	 ed2ed3ed4 d5d fd6d7Zeed2ed3ed4 d5d fd8d9Zed3ed4 d5d fd:d9Zed;d3ed4 d5d fd<d9Zed2ed3ed4 d5d fd=d>Zeed2ed3ed4 d5d fd?d@Zed3ed4 d5d fdAd@ZedBd3ed4 d5d fdCd@Zed2ed3edD d5d fdEdFZeed2ed3edD d5d fdGdHZed3edD d5d fdIdHZedJd3edD d5d fdKdHZed2ed3edD d5d fdLdMZ eed2ed3edD d5d fdNdOZ!ed3edD d5d fdPdOZ!edQd3edD d5d fdRdOZ!ed3edS d5d fdTdUZ"ed3edS d5d fdVdWZ#ed3edX d5e$d  fdYdZZ%ed3edX d5e$d  fd[d\Z&eded3ed] d5d fd^d_Z'eded3ed] d5d fd`daZ(eded3edb d5d fdcddZ)eded3edb d5d fdedfZ*ed2ed3edg d5d fdhdiZ+eed2ed3edg d5d fdjdkZ,ed3edg d5d fdldkZ,edmd3edg d5d fdndkZ,ed2ed3edg d5d fdodpZ-eed2ed3edg d5d fdqdrZ.ed3edg d5d fdsdrZ.edtd3edg d5d fdudrZ.e	e
eeedvZ/dwS )x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://docs.stripe.com/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://docs.stripe.com/strong-customer-authentication) during payment method collection
    to streamline later [off-session payments](https://docs.stripe.com/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://docs.stripe.com/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 r2   r2   t/var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/_setup_intent.pyAutomaticPaymentMethodsM   s
   
 r4   c                   @   s   e Zd ZU ee ed< 	 ee ed< 	 eed  ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed< 	 ee ed	< 	 ee ed
< 	 ed ed< 	 ed ed< 	 ee ed< 	 ee ed< 	 ed ed< 	 eed  ed< ed ed< dS )zSetupIntent.LastSetupErroradvice_codecharge)account_closedaccount_country_invalid_address6account_error_country_change_requires_additional_stepsaccount_information_mismatchaccount_invalidaccount_number_invalidacss_debit_session_incompletealipay_upgrade_requiredamount_too_largeamount_too_smallapi_key_expiredapplication_fees_not_allowedauthentication_requiredbalance_insufficientbalance_invalid_parameter bank_account_bad_routing_numbersbank_account_declinedbank_account_existsbank_account_restrictedbank_account_unusablebank_account_unverified bank_account_verification_failedbilling_invalid_mandatebitcoin_upgrade_required$capture_charge_authorization_expiredcapture_unauthorized_payment card_decline_rate_limit_exceededcard_declined cardholder_phone_number_requiredcharge_already_capturedcharge_already_refundedcharge_disputedcharge_exceeds_source_limit charge_exceeds_transaction_limitcharge_expired_for_capturecharge_invalid_parametercharge_not_refundableclearing_code_unsupportedcountry_code_invalidcountry_unsupportedcoupon_expiredcustomer_max_payment_methodscustomer_max_subscriptionscustomer_session_expiredcustomer_tax_location_invaliddebit_not_authorizedemail_invalidexpired_card&financial_connections_account_inactive5financial_connections_account_pending_account_numbers9financial_connections_account_unavailable_account_numbers7financial_connections_no_successful_transaction_refreshforwarding_api_inactive forwarding_api_invalid_parameter'forwarding_api_retryable_upstream_error(forwarding_api_upstream_connection_error*forwarding_api_upstream_connection_timeoutforwarding_api_upstream_erroridempotency_key_in_useincorrect_addressincorrect_cvcincorrect_numberincorrect_zip(india_recurring_payment_mandate_canceledinstant_payouts_config_disabled!instant_payouts_currency_disabledinstant_payouts_limit_exceededinstant_payouts_unsupportedinsufficient_fundsintent_invalid_state"intent_verification_method_missinginvalid_card_typeinvalid_charactersinvalid_charge_amountinvalid_cvcinvalid_expiry_monthinvalid_expiry_year'invalid_mandate_reference_prefix_formatinvalid_numberinvalid_source_usageinvalid_tax_locationinvoice_no_customer_line_itemsinvoice_no_payment_method_types"invoice_no_subscription_line_itemsinvoice_not_editable!invoice_on_behalf_of_not_editable&invoice_payment_intent_requires_actioninvoice_upcoming_nonelivemode_mismatchlock_timeoutmissing
no_accountnot_allowed_on_standard_accountout_of_inventory!ownership_declaration_not_allowedparameter_invalid_emptyparameter_invalid_integerparameter_invalid_string_blankparameter_invalid_string_emptyparameter_missingparameter_unknownparameters_exclusivepayment_intent_action_required%payment_intent_authentication_failure*payment_intent_incompatible_payment_method payment_intent_invalid_parameter3payment_intent_konbini_rejected_confirmation_numberpayment_intent_mandate_invalid&payment_intent_payment_attempt_expired%payment_intent_payment_attempt_failed"payment_intent_rate_limit_exceededpayment_intent_unexpected_state,payment_method_bank_account_already_verified#payment_method_bank_account_blocked.payment_method_billing_details_address_missing%payment_method_configuration_failures payment_method_currency_mismatchpayment_method_customer_decline payment_method_invalid_parameter)payment_method_invalid_parameter_testmode"payment_method_microdeposit_failed8payment_method_microdeposit_verification_amounts_invalid9payment_method_microdeposit_verification_amounts_mismatch:payment_method_microdeposit_verification_attempts_exceededApayment_method_microdeposit_verification_descriptor_code_mismatch0payment_method_microdeposit_verification_timeoutpayment_method_not_availablepayment_method_provider_declinepayment_method_provider_timeoutpayment_method_unactivatedpayment_method_unexpected_statepayment_method_unsupported_typepayout_reconciliation_not_readypayouts_limit_exceededpayouts_not_allowedplatform_account_requiredplatform_api_key_expiredpostal_code_invalidprocessing_errorproduct_inactive%progressive_onboarding_limit_exceeded
rate_limitrefer_to_customerrefund_disputed_paymentresource_already_existsresource_missingreturn_intent_already_processedrouting_number_invalidsecret_key_requiredsepa_unsupported_accountsetup_attempt_failed#setup_intent_authentication_failuresetup_intent_invalid_parametersetup_intent_mandate_invalid&setup_intent_mobile_wallet_unsupported"setup_intent_setup_attempt_expiredsetup_intent_unexpected_stateshipping_address_invalidshipping_calculation_failedsku_inactivestate_unsupportedstatus_transition_invalidstripe_tax_inactivetax_id_invalidtax_id_prohibitedtaxes_calculation_failed%terminal_location_country_unsupportedterminal_reader_busyterminal_reader_hardware_fault/terminal_reader_invalid_location_for_activation,terminal_reader_invalid_location_for_paymentterminal_reader_offlineterminal_reader_timeouttestmode_charges_onlytls_version_unsupportedtoken_already_usedtoken_card_network_invalidtoken_in_use+transfer_source_balance_parameters_mismatchtransfers_not_allowedurl_invalidcodedecline_codedoc_urlmessagenetwork_advice_codenetwork_decline_codeparamr   payment_intentr   payment_methodpayment_method_typerequest_log_urlr&   r'   )r   r   CardResourcer   source)	api_error
card_erroridempotency_errorinvalid_request_errortypeN)r-   r.   r/   r   strr0   r   r   r2   r2   r2   r3   LastSetupErrorY   sR   
  :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	d
f  ed< 	 ee ed< eeedZdS )zSetupIntent.NextActionc                   @   sB   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.QrCode
expires_atimage_url_pngimage_url_svgN)r-   r.   r/   intr0   r   r2   r2   r2   r3   QrCode{  s   
 r  hosted_instructions_urlmobile_auth_urlqr_codeN)r-   r.   r/   r   r  r   r0   _inner_class_typesr2   r2   r2   r3   $CashappHandleRedirectOrDisplayQrCodez  s   
 r	  c                   @   (   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   r0   r2   r2   r2   r3   RedirectToUrl  
   
 r  c                   @   s2   e Zd ZU eed< 	 eed< 	 eed  ed< dS )z.SetupIntent.NextAction.VerifyWithMicrodepositsarrival_datehosted_verification_url)amountsdescriptor_codemicrodeposit_typeN)r-   r.   r/   r  r0   r   r   r   r2   r2   r2   r3   VerifyWithMicrodeposits  s   
 r  *cashapp_handle_redirect_or_display_qr_coderedirect_to_urlr   r%   use_stripe_sdkverify_with_microdeposits)r  r  r  N)r-   r.   r/   r   r	  r  r  r   r0   r   r   r  r2   r2   r2   r3   
NextActiony  s"   
 

r  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   r0   r   r2   r2   r2   r3   !PaymentMethodConfigurationDetails  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G dd deZG d	d
 d
eZG dd deZ	G dd deZ
G dd deZG dd deZG dd deZee ed< ee ed< ee ed< ee ed< ee ed< ee	 ed< ee
 ed< ee ed< ee ed< ee ed< eeeeee	e
eeed
Zd S )!z SetupIntent.PaymentMethodOptionsc                   @   sV   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                   @   sb   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)invoicesubscriptiondefault_forinterval_description)combinedintervalsporadicpayment_schedule)businesspersonaltransaction_typeN)r-   r.   r/   r   r   r0   r   r   r2   r2   r2   r3   MandateOptions  s   
 r*  )cadusdcurrencymandate_options	automaticinstantmicrodepositsverification_methodN)	r-   r.   r/   r   r*  r   r   r0   r  r2   r2   r2   r3   	AcssDebit  s   
 r4  c                   @      e Zd ZdS )z*SetupIntent.PaymentMethodOptions.AmazonPayNr-   r.   r/   r2   r2   r2   r3   	AmazonPay      r7  c                   @   2   e Zd ZU G dd deZee ed< deiZdS )z*SetupIntent.PaymentMethodOptions.BacsDebitc                   @      e Zd ZU ee ed< dS )z9SetupIntent.PaymentMethodOptions.BacsDebit.MandateOptionsreference_prefixNr  r2   r2   r2   r3   r*       
 r*  r.  Nr-   r.   r/   r   r*  r   r0   r  r2   r2   r2   r3   	BacsDebit     
 r>  c                   @   sX   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_typer-  descriptionend_date)daymonthr%  weekyearr$  interval_count	reference
start_dateindiasupported_typesN)	r-   r.   r/   r  r0   r   r   r   r   r2   r2   r2   r3   r*    s*   
 r*  r.  )amexcartes_bancairesdinersdiscover	eftpos_augirocardinteracjcblink
mastercardunionpayunknownvisanetwork)anyr0  	challengerequest_three_d_secureN)	r-   r.   r/   r   r*  r   r0   r   r  r2   r2   r2   r3   r     s   
 *r   c                   @   r5  )z,SetupIntent.PaymentMethodOptions.CardPresentNr6  r2   r2   r2   r3   CardPresentH  r8  r`  c                   @   r
  )z'SetupIntent.PaymentMethodOptions.Klarnar-  preferred_localeNr  r2   r2   r2   r3   KlarnaK  r  rb  c                   @   r:  )z%SetupIntent.PaymentMethodOptions.Linkpersistent_tokenNr  r2   r2   r2   r3   LinkU  r<  rd  c                   @   r:  )z'SetupIntent.PaymentMethodOptions.Paypalbilling_agreement_idNr  r2   r2   r2   r3   Paypal[  r<  rf  c                   @   r9  )z*SetupIntent.PaymentMethodOptions.SepaDebitc                   @   r:  )z9SetupIntent.PaymentMethodOptions.SepaDebit.MandateOptionsr;  Nr  r2   r2   r2   r3   r*  b  r<  r*  r.  Nr=  r2   r2   r2   r3   	SepaDebita  r?  rg  c                   @   sb   e Zd ZU G dd deZG dd deZee ed< ee ed< eed  ed< 	 eed	Z	d
S )z.SetupIntent.PaymentMethodOptions.UsBankAccountc                   @   sl   e Zd ZU G dd deZee ed< eeed   ed< 	 eeed   ed< 	 ee	 ed< 	 deiZ
d	S )
zCSetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnectionsc                   @   s"   e Zd ZU eeed   ed< dS )zKSetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters)checkingsavingsaccount_subcategoriesN)r-   r.   r/   r   r   r   r0   r2   r2   r2   r3   Filtersm  s
   
 
rk  filters)balances	ownershipr   transactionspermissions)rm  rn  ro  prefetchr  N)r-   r.   r/   r   rk  r   r0   r   r   r   r  r2   r2   r2   r3   FinancialConnectionsl  s$   
 

rr  c                   @   s   e Zd ZU eed  ed< dS )z=SetupIntent.PaymentMethodOptions.UsBankAccount.MandateOptionspapercollection_methodN)r-   r.   r/   r   r   r0   r2   r2   r2   r3   r*    s   
 r*  financial_connectionsr.  r/  r3  )ru  r.  N)
r-   r.   r/   r   rr  r*  r   r0   r   r  r2   r2   r2   r3   UsBankAccountk  s   
 #
rv  
acss_debit
amazon_pay
bacs_debitcardcard_presentklarnarW  paypal
sepa_debitus_bank_account)
rw  rx  ry  rz  r{  r|  rW  r}  r~  r  N)r-   r.   r/   r   r4  r7  r>  r   r`  rb  rd  rf  rg  rv  r   r0   r  r2   r2   r2   r3   PaymentMethodOptions  s@   
 &
K

7
r  r   applicationattach_to_selfautomatic_payment_methods)	abandoned	duplicaterequested_by_customercancellation_reasonclient_secretcreatedr   customerrD  )0rw  affirmafterpay_clearpayalipayalmarx  au_becs_debitry  
bancontactbillieblikboletorz  cashappcryptocustomer_balanceepsfpxgiropaygrabpayideal	kakao_payr|  konbinikr_cardmb_way	mobilepay
multibanco	naver_paynz_bank_accountoxxop24pay_by_bankpaycopaynowr}  pix	promptpayrevolut_paysamsung_paysatispayr~  sofortswishtwintr  
wechat_payzipexcluded_payment_method_types)inboundoutboundflow_directionsr  last_setup_errorr   latest_attemptlivemoder   mandatemetadatanext_actionobjectr   on_behalf_ofr   r   $payment_method_configuration_detailspayment_method_optionspayment_method_typessingle_use_mandate)canceled
processingrequires_actionrequires_confirmationrequires_payment_method	succeededstatususageintentparamsr   returnc                 K   "   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. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
        r&   post!/v1/setup_intents/{intent}/cancelr  r  r   _static_requestformatr	   clsr  r  r2   r2   r3   _cls_cancell     	zSetupIntent._cls_cancelc                 K      dS r  Nr2   r  r  r2   r2   r3   cancel  s   
zSetupIntent.cancelc                 K   r  r  r2   selfr  r2   r2   r3   r    s   	r  c              	   K   (   t d| jddjt| dd|dS )r  r&   r  r  r  r  r  r   _requestr  r	   getr  r2   r2   r3   r    s   	c                    *   t d| jddjt|d|dI dH S )r  r&   r  r  r  r  Nr   _static_request_asyncr  r	   r  r2   r2   r3   _cls_cancel_async     	
zSetupIntent._cls_cancel_asyncc                       dS r  r2   r  r2   r2   r3   cancel_async  s   
zSetupIntent.cancel_asyncc                    r  r  r2   r  r2   r2   r3   r    s   	r  c              	      0   t d| jddjt| dd|dI dH S )r  r&   r  r  r  r  r  Nr   _request_asyncr  r	   r  r  r2   r2   r3   r    s   	
r   c                 K   r  )  
        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  r2   r2   r3   _cls_confirm  s   zSetupIntent._cls_confirmc                 K   r  r  Nr2   r  r2   r2   r3   confirm	  s   zSetupIntent.confirmc                 K   r  r  r2   r  r2   r2   r3   r     s   r  c              	   K   r  )r  r&   r  r  r  r  r  r  r  r2   r2   r3   r  6  s   c                    r  )r  r&   r  r  r  r  Nr  r  r2   r2   r3   _cls_confirm_asyncU  s   
zSetupIntent._cls_confirm_asyncc                    r  r  r2   r  r2   r2   r3   confirm_asynct  s   zSetupIntent.confirm_asyncc                    r  r  r2   r  r2   r2   r3   r    s   r  c              	      r  )r  r&   r  r  r  r  r  Nr  r  r2   r2   r3   r    s   
r    c                 K   s   t d| jd|  |dS )  
        Creates a SetupIntent object.

        After you create the SetupIntent, attach a payment method and [confirm](https://docs.stripe.com/docs/api/setup_intents/confirm)
        it to collect any required permissions to charge the payment method later.
        r&   r  r  )r   r  	class_urlr  r  r2   r2   r3   create  s   
zSetupIntent.createc                    s"   t d| jd|  |dI dH S )r  r&   r  r  N)r   r  r  r  r2   r2   r3   create_async  s   

zSetupIntent.create_asyncr!   c                 K   s4   | j d|  |d}t|tstdt|j |S )1
        Returns a list of SetupIntents.
        r  r  %Expected list object from API, got %s)r  r  
isinstancer   	TypeErrorr   r-   r  r  resultr2   r2   r3   list  s   
zSetupIntent.listc                    s<   | j d|  |dI dH }t|tstdt|j |S )r  r  r  Nr  )r  r  r  r   r  r   r-   r  r2   r2   r3   
list_async  s   
zSetupIntent.list_asyncr"   c                 K   s*   d|   t|f }td| jd||dS )/
        Updates a SetupIntent object.
        %s/%sr&   r  r  )r  r	   r   r  r  r  r  r  r2   r2   r3   modify  s   zSetupIntent.modifyc                    s2   d|   t|f }td| jd||dI dH S )r  r  r&   r  r  N)r  r	   r   r  r  r2   r2   r3   modify_async  s   
zSetupIntent.modify_asyncr#   c                 K   s   | |fi |}|   |S )  
        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://docs.stripe.com/api#setup_intent_object) object reference for more details.
        )refreshr  r  r  instancer2   r2   r3   retrieve0  s   zSetupIntent.retrievec                    s$   | |fi |}|  I dH  |S )r  N)refresh_asyncr
  r2   r2   r3   retrieve_async?  s   zSetupIntent.retrieve_asyncr$   c                 K   r  )A
        Verifies microdeposits on a SetupIntent object.
        r&   r  //v1/setup_intents/{intent}/verify_microdepositsr  r  r  r  r2   r2   r3   _cls_verify_microdepositsN  r  z%SetupIntent._cls_verify_microdepositsc                 K   r  r  Nr2   r  r2   r2   r3   verify_microdepositsb  s   z SetupIntent.verify_microdepositsc                 K   r  r  r2   r  r2   r2   r3   r  l  s   r  c              	   K   r  )r  r&   r  r  r  r  r  r  r  r2   r2   r3   r  u  s   c                    r  )r  r&   r  r  r  r  Nr  r  r2   r2   r3   _cls_verify_microdeposits_async  r  z+SetupIntent._cls_verify_microdeposits_asyncc                    r  r  r2   r  r2   r2   r3   verify_microdeposits_async  s   z&SetupIntent.verify_microdeposits_asyncc                    r  r  r2   r  r2   r2   r3   r    s   r  c              	      r  )r  r&   r  r  r  r  r  Nr  r  r2   r2   r3   r    s   
)r  r  r  r  r  N)0r-   r.   r/   __doc__r(   r
   r   r0   r   r4   r   r  r  r  r   r   r1   r   r  r   r   classmethodr   r  r   staticmethodr  r   r  r  r  r  r  r  r  r  r   r  r  r  r  r  r  r  r  r  r  r  r2   r2   r2   r3   r&   .   sn  
   "F
 q6




r&   N)@stripe._createable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._stripe_objectr   stripe._updateable_api_resourcer   stripe._utilr   r	   typingr
   r   r   r   r   r   r   typing_extensionsr   r   r   stripe._accountr   stripe._applicationr   stripe._bank_accountr   stripe._cardr   r   stripe._customerr   stripe._mandater   stripe._payment_intentr   stripe._payment_methodr   stripe._setup_attemptr   stripe._sourcer   )stripe.params._setup_intent_cancel_paramsr   *stripe.params._setup_intent_confirm_paramsr   )stripe.params._setup_intent_create_paramsr    'stripe.params._setup_intent_list_paramsr!   )stripe.params._setup_intent_modify_paramsr"   +stripe.params._setup_intent_retrieve_paramsr#   7stripe.params._setup_intent_verify_microdeposits_paramsr$   r%   r&   r2   r2   r2   r3   <module>   sB   $
