From 780f3fbf746bce9221e0a9f19855e6d3a2f44c58 Mon Sep 17 00:00:00 2001 From: Peter Wang <54011163+pwang-stripe@users.noreply.github.com> Date: Wed, 7 Jun 2023 08:15:30 -0700 Subject: [PATCH] Update update sfu docs (#456) * update update sfu docs * update create too --- types/stripe-js/elements-group.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/stripe-js/elements-group.d.ts b/types/stripe-js/elements-group.d.ts index de378741..d5850c6b 100644 --- a/types/stripe-js/elements-group.d.ts +++ b/types/stripe-js/elements-group.d.ts @@ -700,14 +700,14 @@ export interface StripeElementsOptionsMode extends BaseStripeElementsOptions { * * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage */ - setupFutureUsage?: 'off_session' | 'on_session'; + setupFutureUsage?: 'off_session' | 'on_session' | null; /** * Indicates that you intend to make future payments with this PaymentIntent’s payment method. * * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage */ - setup_future_usage?: 'off_session' | 'on_session'; + setup_future_usage?: 'off_session' | 'on_session' | null; /** * Controls when the funds will be captured from the customer’s account. @@ -794,16 +794,16 @@ export interface StripeElementsUpdateOptions { /** * Indicates that you intend to make future payments with this PaymentIntent’s payment method. * - * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage + * @docs https://stripe.com/docs/api/payment_intents/update#update_payment_intent-setup_future_usage */ - setupFutureUsage?: 'off_session' | 'on_session'; + setupFutureUsage?: 'off_session' | 'on_session' | null; /** * Indicates that you intend to make future payments with this PaymentIntent’s payment method. * - * @docs https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage + * @docs https://stripe.com/docs/api/payment_intents/update#update_payment_intent-setup_future_usage */ - setup_future_usage?: 'off_session' | 'on_session'; + setup_future_usage?: 'off_session' | 'on_session' | null; /** * Controls when the funds will be captured from the customer’s account.