From 8a9bb6aab0efd310b966536cd3c301c07883ffe0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 12 Apr 2024 21:13:22 +0000 Subject: [PATCH 01/22] Update generated code for v952 --- OPENAPI_VERSION | 2 +- types/AccountSessionsResource.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b0d6e12ba5..4a07136557 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v951 \ No newline at end of file +v952 \ No newline at end of file diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 8a34d14a03..2f05d12ea4 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -165,6 +165,11 @@ declare module 'stripe' { namespace FinancialAccount { interface Features { + /** + * Whether to allow external accounts to be linked for money transfer. + */ + external_account_collection?: boolean; + /** * Whether to allow money movement features. */ From 66d45d500fa8e874bc69c302d0e6d181e4be0023 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 12 Apr 2024 23:29:59 +0000 Subject: [PATCH 02/22] Update generated code for v953 --- OPENAPI_VERSION | 2 +- types/AccountSessionsResource.d.ts | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4a07136557..2a41ec58b7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v952 \ No newline at end of file +v953 \ No newline at end of file diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 2f05d12ea4..8a34d14a03 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -165,11 +165,6 @@ declare module 'stripe' { namespace FinancialAccount { interface Features { - /** - * Whether to allow external accounts to be linked for money transfer. - */ - external_account_collection?: boolean; - /** * Whether to allow money movement features. */ From 7ac643f446a731a2c99311c5d725dabd1667f2ab Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 13 Apr 2024 01:42:15 +0000 Subject: [PATCH 03/22] Update generated code for v955 --- OPENAPI_VERSION | 2 +- types/Billing/MeterEventsResource.d.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2a41ec58b7..fb800ca42b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v953 \ No newline at end of file +v955 \ No newline at end of file diff --git a/types/Billing/MeterEventsResource.d.ts b/types/Billing/MeterEventsResource.d.ts index 4ecc71e281..29f53b9ad1 100644 --- a/types/Billing/MeterEventsResource.d.ts +++ b/types/Billing/MeterEventsResource.d.ts @@ -16,11 +16,6 @@ declare module 'stripe' { [key: string]: string; }; - /** - * The time of the event. Measured in seconds since the Unix epoch. - */ - timestamp: number; - /** * Specifies which fields in the response should be expanded. */ @@ -30,6 +25,11 @@ declare module 'stripe' { * A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. */ identifier?: string; + + /** + * The time of the event. Measured in seconds since the Unix epoch. Defaults to current timestamp if not specified. + */ + timestamp?: number; } class MeterEventsResource { From 2af3096daba1978a3d2577f7d112ca0f82417591 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 07:29:27 +0000 Subject: [PATCH 04/22] Update generated code for v956 --- OPENAPI_VERSION | 2 +- types/Disputes.d.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index fb800ca42b..096668661a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v955 \ No newline at end of file +v956 \ No newline at end of file diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index 1184222007..0c09c78fa4 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -415,10 +415,7 @@ declare module 'stripe' { } interface PaymentMethodDetails { - /** - * Card specific dispute details. - */ - card: PaymentMethodDetails.Card | null; + card?: PaymentMethodDetails.Card; /** * Payment method type. From a77ba5df1d72640120d262219744469ebef5b575 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 18:05:02 +0000 Subject: [PATCH 05/22] Update generated code for v957 --- OPENAPI_VERSION | 2 +- types/Invoices.d.ts | 8 ++++---- types/PaymentIntents.d.ts | 8 ++++---- types/QuotePreviewInvoices.d.ts | 8 ++++---- types/SetupAttempts.d.ts | 8 ++++---- types/SetupIntents.d.ts | 16 ++++++++-------- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 096668661a..2a16a7ad21 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v956 \ No newline at end of file +v957 \ No newline at end of file diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 8c8d715682..ce8ecd33bb 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -815,13 +815,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -829,7 +829,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 41c7db3183..35dc89bceb 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -354,13 +354,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -368,7 +368,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; diff --git a/types/QuotePreviewInvoices.d.ts b/types/QuotePreviewInvoices.d.ts index 8780315639..ca6ebd24be 100644 --- a/types/QuotePreviewInvoices.d.ts +++ b/types/QuotePreviewInvoices.d.ts @@ -792,13 +792,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -806,7 +806,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index d1be9fcfce..7dab4136e9 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -586,13 +586,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -600,7 +600,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index 0042667508..32f323b4f5 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -9,13 +9,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -23,7 +23,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ interface SetupIntent { /** @@ -260,13 +260,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -274,7 +274,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; From 55f921a129c900ead3f944f32f59b9ab5b195c26 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:13:02 +0000 Subject: [PATCH 06/22] Update generated code for v958 --- OPENAPI_VERSION | 2 +- types/PaymentMethodConfigurations.d.ts | 36 +++++++++++++ .../PaymentMethodConfigurationsResource.d.ts | 50 +++++++++++++++++++ 3 files changed, 87 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2a16a7ad21..757c49807b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v957 \ No newline at end of file +v958 \ No newline at end of file diff --git a/types/PaymentMethodConfigurations.d.ts b/types/PaymentMethodConfigurations.d.ts index 481bcf839a..d9238f1194 100644 --- a/types/PaymentMethodConfigurations.d.ts +++ b/types/PaymentMethodConfigurations.d.ts @@ -127,6 +127,8 @@ declare module 'stripe' { sofort?: PaymentMethodConfiguration.Sofort; + swish?: PaymentMethodConfiguration.Swish; + us_bank_account?: PaymentMethodConfiguration.UsBankAccount; wechat_pay?: PaymentMethodConfiguration.WechatPay; @@ -1291,6 +1293,40 @@ declare module 'stripe' { } } + interface Swish { + /** + * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + */ + available: boolean; + + display_preference: Swish.DisplayPreference; + } + + namespace Swish { + interface DisplayPreference { + /** + * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + */ + overridable: boolean | null; + + /** + * The account's display preference. + */ + preference: DisplayPreference.Preference; + + /** + * The effective display preference value. + */ + value: DisplayPreference.Value; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + + type Value = 'off' | 'on'; + } + } + interface UsBankAccount { /** * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. diff --git a/types/PaymentMethodConfigurationsResource.d.ts b/types/PaymentMethodConfigurationsResource.d.ts index 3b18946797..f03627b98e 100644 --- a/types/PaymentMethodConfigurationsResource.d.ts +++ b/types/PaymentMethodConfigurationsResource.d.ts @@ -193,6 +193,11 @@ declare module 'stripe' { */ sofort?: PaymentMethodConfigurationCreateParams.Sofort; + /** + * Swish is a [real-time](https://stripe.com/docs/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://stripe.com/docs/payments/swish) for more details. + */ + swish?: PaymentMethodConfigurationCreateParams.Swish; + /** * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. */ @@ -910,6 +915,26 @@ declare module 'stripe' { } } + interface Swish { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: Swish.DisplayPreference; + } + + namespace Swish { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface UsBankAccount { /** * Whether or not the payment method should be displayed. @@ -1169,6 +1194,11 @@ declare module 'stripe' { */ sofort?: PaymentMethodConfigurationUpdateParams.Sofort; + /** + * Swish is a [real-time](https://stripe.com/docs/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://stripe.com/docs/payments/swish) for more details. + */ + swish?: PaymentMethodConfigurationUpdateParams.Swish; + /** * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. */ @@ -1886,6 +1916,26 @@ declare module 'stripe' { } } + interface Swish { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: Swish.DisplayPreference; + } + + namespace Swish { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface UsBankAccount { /** * Whether or not the payment method should be displayed. From 076d6feb06270795bbbc76f8f8c0df2d32758fbf Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:01:33 +0000 Subject: [PATCH 07/22] Update generated code for v959 --- OPENAPI_VERSION | 2 +- types/AccountSessionsResource.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 757c49807b..f5e3b5373f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v958 \ No newline at end of file +v959 \ No newline at end of file diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 8a34d14a03..2f05d12ea4 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -165,6 +165,11 @@ declare module 'stripe' { namespace FinancialAccount { interface Features { + /** + * Whether to allow external accounts to be linked for money transfer. + */ + external_account_collection?: boolean; + /** * Whether to allow money movement features. */ From 91586d2ca46748adec47b217aa6650375df4fdcc Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 21:51:05 +0000 Subject: [PATCH 08/22] Update generated code for v960 --- OPENAPI_VERSION | 2 +- types/AccountSessions.d.ts | 49 +++++++++++++++++++++++-- types/AccountSessionsResource.d.ts | 57 ++++++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f5e3b5373f..afdd994664 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v959 \ No newline at end of file +v960 \ No newline at end of file diff --git a/types/AccountSessions.d.ts b/types/AccountSessions.d.ts index 8a31c12e0c..269a1578ce 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -50,6 +50,8 @@ declare module 'stripe' { account_onboarding: Components.AccountOnboarding; + balances: Components.Balances; + capital_financing_promotion?: Components.CapitalFinancingPromotion | null; documents: Components.Documents; @@ -61,6 +63,8 @@ declare module 'stripe' { payments: Components.Payments; payouts: Components.Payouts; + + payouts_list: Components.PayoutsList; } namespace Components { @@ -100,6 +104,34 @@ declare module 'stripe' { } } + interface Balances { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + features: Balances.Features; + } + + namespace Balances { + interface Features { + /** + * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + edit_payout_schedule: boolean; + + /** + * Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + instant_payouts: boolean; + + /** + * Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + standard_payouts: boolean; + } + } + interface CapitalFinancingPromotion { /** * Whether the embedded component is enabled. @@ -163,7 +195,7 @@ declare module 'stripe' { /** * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default. */ - destination_on_behalf_of_charge_management?: boolean; + destination_on_behalf_of_charge_management: boolean; /** * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default. @@ -196,7 +228,7 @@ declare module 'stripe' { /** * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default. */ - destination_on_behalf_of_charge_management?: boolean; + destination_on_behalf_of_charge_management: boolean; /** * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default. @@ -237,6 +269,19 @@ declare module 'stripe' { standard_payouts: boolean; } } + + interface PayoutsList { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + features: PayoutsList.Features; + } + + namespace PayoutsList { + interface Features {} + } } } } diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 2f05d12ea4..8757fe58d2 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -31,6 +31,11 @@ declare module 'stripe' { */ account_onboarding?: Components.AccountOnboarding; + /** + * Configuration for the balances embedded component. + */ + balances?: Components.Balances; + capital_financing_promotion?: Components.CapitalFinancingPromotion; /** @@ -77,6 +82,11 @@ declare module 'stripe' { * Configuration for the payouts embedded component. */ payouts?: Components.Payouts; + + /** + * Configuration for the payouts list embedded component. + */ + payouts_list?: Components.PayoutsList; } namespace Components { @@ -122,6 +132,37 @@ declare module 'stripe' { } } + interface Balances { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + /** + * The list of features enabled in the embedded component. + */ + features?: Balances.Features; + } + + namespace Balances { + interface Features { + /** + * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + edit_payout_schedule?: boolean; + + /** + * Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + instant_payouts?: boolean; + + /** + * Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + standard_payouts?: boolean; + } + } + interface CapitalFinancingPromotion { /** * Whether the embedded component is enabled. @@ -360,6 +401,22 @@ declare module 'stripe' { standard_payouts?: boolean; } } + + interface PayoutsList { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + /** + * The list of features enabled in the embedded component. + */ + features?: PayoutsList.Features; + } + + namespace PayoutsList { + interface Features {} + } } } From 2b0c3a8bf8468195b97173512e2046700ab8ca63 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 22:15:08 +0000 Subject: [PATCH 09/22] Update generated code for v961 --- OPENAPI_VERSION | 2 +- types/Forwarding/Requests.d.ts | 11 +++-------- types/Forwarding/RequestsResource.d.ts | 5 ----- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index afdd994664..ea2fb0ba15 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v960 \ No newline at end of file +v961 \ No newline at end of file diff --git a/types/Forwarding/Requests.d.ts b/types/Forwarding/Requests.d.ts index 2bccf50d3b..278f206228 100644 --- a/types/Forwarding/Requests.d.ts +++ b/types/Forwarding/Requests.d.ts @@ -4,9 +4,9 @@ declare module 'stripe' { namespace Stripe { namespace Forwarding { /** - * Instructs Stripe to make a request on your behalf using the destination URL and HTTP method in the config. - * A config is set up for each destination URL by Stripe at the time of onboarding. Stripe verifies requests with - * your credentials in the config, and injects card details from the payment_method into the request. + * Instructs Stripe to make a request on your behalf using the destination URL. The destination URL + * is activated by Stripe at the time of onboarding. Stripe verifies requests with your credentials + * provided during onboarding, and injects card details from the payment_method into the request. * * Stripe redacts all sensitive fields and headers, including authentication credentials and card numbers, * before storing the request and response data in the forwarding Request object, which are subject to a @@ -32,11 +32,6 @@ declare module 'stripe' { */ object: 'forwarding.request'; - /** - * The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs. - */ - config: string; - /** * Time at which the object was created. Measured in seconds since the Unix epoch. */ diff --git a/types/Forwarding/RequestsResource.d.ts b/types/Forwarding/RequestsResource.d.ts index bb0042df5e..7ab588437a 100644 --- a/types/Forwarding/RequestsResource.d.ts +++ b/types/Forwarding/RequestsResource.d.ts @@ -4,11 +4,6 @@ declare module 'stripe' { namespace Stripe { namespace Forwarding { interface RequestCreateParams { - /** - * The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs. - */ - config: string; - /** * The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. */ From ab2175d2b6df2a7dcca656baa18946fcc5d1403c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:25:18 +0000 Subject: [PATCH 10/22] Update generated code for v961 --- src/apiVersion.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apiVersion.ts b/src/apiVersion.ts index d75ac976a6..9c74b4b96f 100644 --- a/src/apiVersion.ts +++ b/src/apiVersion.ts @@ -1,4 +1,4 @@ // File generated from our OpenAPI spec export const ApiVersion = '2024-04-10'; -export const PreviewVersion = '2024-03-20.preview-v2'; +export const PreviewVersion = '2024-04-11.preview-v2'; From 389442faa07cff64983edc891922504d1c29718f Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:16:37 -0700 Subject: [PATCH 11/22] Update generated code (#2064) * Update generated code for v951 * Update generated code for v954 * Update generated code for v955 * Update generated code for v956 * Update generated code for v957 * Update generated code for v958 * Update generated code for v960 * Update generated code for v961 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- types/AccountSessions.d.ts | 49 +++++++++++++++- types/AccountSessionsResource.d.ts | 57 +++++++++++++++++++ types/Billing/MeterEventsResource.d.ts | 10 ++-- types/Disputes.d.ts | 5 +- .../ActiveEntitlementSummaries.d.ts | 32 +++++++++++ types/EventTypes.d.ts | 20 +++++++ types/Events.d.ts | 1 + types/Forwarding/Requests.d.ts | 11 +--- types/Forwarding/RequestsResource.d.ts | 5 -- types/Invoices.d.ts | 8 +-- types/PaymentIntents.d.ts | 15 +++-- types/PaymentIntentsResource.d.ts | 27 +++++++++ types/PaymentMethodConfigurations.d.ts | 36 ++++++++++++ .../PaymentMethodConfigurationsResource.d.ts | 50 ++++++++++++++++ types/SetupAttempts.d.ts | 8 +-- types/SetupIntents.d.ts | 16 +++--- types/WebhookEndpointsResource.d.ts | 2 + types/index.d.ts | 1 + 19 files changed, 309 insertions(+), 46 deletions(-) create mode 100644 types/Entitlements/ActiveEntitlementSummaries.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b18a87edcc..ea2fb0ba15 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v950 \ No newline at end of file +v961 \ No newline at end of file diff --git a/types/AccountSessions.d.ts b/types/AccountSessions.d.ts index e5d34a40e4..fb0fb07c92 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -50,6 +50,8 @@ declare module 'stripe' { account_onboarding: Components.AccountOnboarding; + balances: Components.Balances; + documents: Components.Documents; notification_banner: Components.NotificationBanner; @@ -59,6 +61,8 @@ declare module 'stripe' { payments: Components.Payments; payouts: Components.Payouts; + + payouts_list: Components.PayoutsList; } namespace Components { @@ -98,6 +102,34 @@ declare module 'stripe' { } } + interface Balances { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + features: Balances.Features; + } + + namespace Balances { + interface Features { + /** + * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + edit_payout_schedule: boolean; + + /** + * Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + instant_payouts: boolean; + + /** + * Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + standard_payouts: boolean; + } + } + interface Documents { /** * Whether the embedded component is enabled. @@ -148,7 +180,7 @@ declare module 'stripe' { /** * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default. */ - destination_on_behalf_of_charge_management?: boolean; + destination_on_behalf_of_charge_management: boolean; /** * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default. @@ -181,7 +213,7 @@ declare module 'stripe' { /** * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default. */ - destination_on_behalf_of_charge_management?: boolean; + destination_on_behalf_of_charge_management: boolean; /** * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default. @@ -222,6 +254,19 @@ declare module 'stripe' { standard_payouts: boolean; } } + + interface PayoutsList { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + features: PayoutsList.Features; + } + + namespace PayoutsList { + interface Features {} + } } } } diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 2257106179..abee3d1b56 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -31,6 +31,11 @@ declare module 'stripe' { */ account_onboarding?: Components.AccountOnboarding; + /** + * Configuration for the balances embedded component. + */ + balances?: Components.Balances; + /** * Configuration for the documents embedded component. */ @@ -55,6 +60,11 @@ declare module 'stripe' { * Configuration for the payouts embedded component. */ payouts?: Components.Payouts; + + /** + * Configuration for the payouts list embedded component. + */ + payouts_list?: Components.PayoutsList; } namespace Components { @@ -100,6 +110,37 @@ declare module 'stripe' { } } + interface Balances { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + /** + * The list of features enabled in the embedded component. + */ + features?: Balances.Features; + } + + namespace Balances { + interface Features { + /** + * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + edit_payout_schedule?: boolean; + + /** + * Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + instant_payouts?: boolean; + + /** + * Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise. + */ + standard_payouts?: boolean; + } + } + interface Documents { /** * Whether the embedded component is enabled. @@ -239,6 +280,22 @@ declare module 'stripe' { standard_payouts?: boolean; } } + + interface PayoutsList { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + /** + * The list of features enabled in the embedded component. + */ + features?: PayoutsList.Features; + } + + namespace PayoutsList { + interface Features {} + } } } diff --git a/types/Billing/MeterEventsResource.d.ts b/types/Billing/MeterEventsResource.d.ts index 4ecc71e281..29f53b9ad1 100644 --- a/types/Billing/MeterEventsResource.d.ts +++ b/types/Billing/MeterEventsResource.d.ts @@ -16,11 +16,6 @@ declare module 'stripe' { [key: string]: string; }; - /** - * The time of the event. Measured in seconds since the Unix epoch. - */ - timestamp: number; - /** * Specifies which fields in the response should be expanded. */ @@ -30,6 +25,11 @@ declare module 'stripe' { * A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. */ identifier?: string; + + /** + * The time of the event. Measured in seconds since the Unix epoch. Defaults to current timestamp if not specified. + */ + timestamp?: number; } class MeterEventsResource { diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index 63f25ca60c..68512b56b2 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -248,10 +248,7 @@ declare module 'stripe' { } interface PaymentMethodDetails { - /** - * Card specific dispute details. - */ - card: PaymentMethodDetails.Card | null; + card?: PaymentMethodDetails.Card; /** * Payment method type. diff --git a/types/Entitlements/ActiveEntitlementSummaries.d.ts b/types/Entitlements/ActiveEntitlementSummaries.d.ts new file mode 100644 index 0000000000..b0b5d7649b --- /dev/null +++ b/types/Entitlements/ActiveEntitlementSummaries.d.ts @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Entitlements { + /** + * A summary of a customer's active entitlements. + */ + interface ActiveEntitlementSummary { + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'entitlements.active_entitlement_summary'; + + /** + * The customer that is entitled to this feature. + */ + customer: string; + + /** + * The list of entitlements this customer has. + */ + entitlements: ApiList; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + } + } + } +} diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index 3e4965b10b..320e03419b 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -70,6 +70,7 @@ declare module 'stripe' { | CustomerTaxIdUpdatedEvent | CustomerUpdatedEvent | CustomerCashBalanceTransactionCreatedEvent + | EntitlementsActiveEntitlementSummaryUpdatedEvent | FileCreatedEvent | FinancialConnectionsAccountCreatedEvent | FinancialConnectionsAccountDeactivatedEvent @@ -1302,6 +1303,25 @@ declare module 'stripe' { } } + /** + * Occurs whenever a customer's entitlements change. + */ + interface EntitlementsActiveEntitlementSummaryUpdatedEvent + extends EventBase { + type: 'entitlements.active_entitlement_summary.updated'; + data: EntitlementsActiveEntitlementSummaryUpdatedEvent.Data; + } + + namespace EntitlementsActiveEntitlementSummaryUpdatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Entitlements.ActiveEntitlementSummary; + + previous_attributes?: Partial< + Stripe.Entitlements.ActiveEntitlementSummary + >; + } + } + /** * Occurs whenever a new Stripe-generated file is available for your account. */ diff --git a/types/Events.d.ts b/types/Events.d.ts index d495f49926..7db871b91f 100644 --- a/types/Events.d.ts +++ b/types/Events.d.ts @@ -101,6 +101,7 @@ declare module 'stripe' { | 'customer.tax_id.updated' | 'customer.updated' | 'customer_cash_balance_transaction.created' + | 'entitlements.active_entitlement_summary.updated' | 'file.created' | 'financial_connections.account.created' | 'financial_connections.account.deactivated' diff --git a/types/Forwarding/Requests.d.ts b/types/Forwarding/Requests.d.ts index 2bccf50d3b..278f206228 100644 --- a/types/Forwarding/Requests.d.ts +++ b/types/Forwarding/Requests.d.ts @@ -4,9 +4,9 @@ declare module 'stripe' { namespace Stripe { namespace Forwarding { /** - * Instructs Stripe to make a request on your behalf using the destination URL and HTTP method in the config. - * A config is set up for each destination URL by Stripe at the time of onboarding. Stripe verifies requests with - * your credentials in the config, and injects card details from the payment_method into the request. + * Instructs Stripe to make a request on your behalf using the destination URL. The destination URL + * is activated by Stripe at the time of onboarding. Stripe verifies requests with your credentials + * provided during onboarding, and injects card details from the payment_method into the request. * * Stripe redacts all sensitive fields and headers, including authentication credentials and card numbers, * before storing the request and response data in the forwarding Request object, which are subject to a @@ -32,11 +32,6 @@ declare module 'stripe' { */ object: 'forwarding.request'; - /** - * The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs. - */ - config: string; - /** * Time at which the object was created. Measured in seconds since the Unix epoch. */ diff --git a/types/Forwarding/RequestsResource.d.ts b/types/Forwarding/RequestsResource.d.ts index bb0042df5e..7ab588437a 100644 --- a/types/Forwarding/RequestsResource.d.ts +++ b/types/Forwarding/RequestsResource.d.ts @@ -4,11 +4,6 @@ declare module 'stripe' { namespace Stripe { namespace Forwarding { interface RequestCreateParams { - /** - * The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs. - */ - config: string; - /** * The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. */ diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 8a7ce25936..0736569370 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -749,13 +749,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -763,7 +763,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 2521782f4b..537d66ed45 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -347,13 +347,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -361,7 +361,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; @@ -2084,7 +2084,12 @@ declare module 'stripe' { setup_future_usage?: 'none'; } - interface RevolutPay {} + interface RevolutPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } interface SepaDebit { mandate_options?: SepaDebit.MandateOptions; diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 4371c9e428..bff040a7fa 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -2069,6 +2069,15 @@ declare module 'stripe' { } interface RevolutPay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -4295,6 +4304,15 @@ declare module 'stripe' { } interface RevolutPay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -6666,6 +6684,15 @@ declare module 'stripe' { } interface RevolutPay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top level behavior of `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * diff --git a/types/PaymentMethodConfigurations.d.ts b/types/PaymentMethodConfigurations.d.ts index 110e884e93..74f14b6277 100644 --- a/types/PaymentMethodConfigurations.d.ts +++ b/types/PaymentMethodConfigurations.d.ts @@ -125,6 +125,8 @@ declare module 'stripe' { sofort?: PaymentMethodConfiguration.Sofort; + swish?: PaymentMethodConfiguration.Swish; + us_bank_account?: PaymentMethodConfiguration.UsBankAccount; wechat_pay?: PaymentMethodConfiguration.WechatPay; @@ -1255,6 +1257,40 @@ declare module 'stripe' { } } + interface Swish { + /** + * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + */ + available: boolean; + + display_preference: Swish.DisplayPreference; + } + + namespace Swish { + interface DisplayPreference { + /** + * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + */ + overridable: boolean | null; + + /** + * The account's display preference. + */ + preference: DisplayPreference.Preference; + + /** + * The effective display preference value. + */ + value: DisplayPreference.Value; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + + type Value = 'off' | 'on'; + } + } + interface UsBankAccount { /** * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. diff --git a/types/PaymentMethodConfigurationsResource.d.ts b/types/PaymentMethodConfigurationsResource.d.ts index 076b944e7d..8a573f5dbc 100644 --- a/types/PaymentMethodConfigurationsResource.d.ts +++ b/types/PaymentMethodConfigurationsResource.d.ts @@ -188,6 +188,11 @@ declare module 'stripe' { */ sofort?: PaymentMethodConfigurationCreateParams.Sofort; + /** + * Swish is a [real-time](https://stripe.com/docs/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://stripe.com/docs/payments/swish) for more details. + */ + swish?: PaymentMethodConfigurationCreateParams.Swish; + /** * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. */ @@ -885,6 +890,26 @@ declare module 'stripe' { } } + interface Swish { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: Swish.DisplayPreference; + } + + namespace Swish { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface UsBankAccount { /** * Whether or not the payment method should be displayed. @@ -1139,6 +1164,11 @@ declare module 'stripe' { */ sofort?: PaymentMethodConfigurationUpdateParams.Sofort; + /** + * Swish is a [real-time](https://stripe.com/docs/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://stripe.com/docs/payments/swish) for more details. + */ + swish?: PaymentMethodConfigurationUpdateParams.Swish; + /** * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. */ @@ -1836,6 +1866,26 @@ declare module 'stripe' { } } + interface Swish { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: Swish.DisplayPreference; + } + + namespace Swish { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface UsBankAccount { /** * Whether or not the payment method should be displayed. diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 96669d3e70..39cb5bc7de 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -582,13 +582,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -596,7 +596,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index bbd8273f47..b24edb5e54 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -9,13 +9,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -23,7 +23,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ interface SetupIntent { /** @@ -260,13 +260,13 @@ declare module 'stripe' { * * 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 + * 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://stripe.com/docs/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents). + * [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 @@ -274,7 +274,7 @@ declare module 'stripe' { * * 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) + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) */ setup_intent?: Stripe.SetupIntent; diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index 5040e9a0f9..719fe0fd96 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -212,6 +212,7 @@ declare module 'stripe' { | 'customer.tax_id.updated' | 'customer.updated' | 'customer_cash_balance_transaction.created' + | 'entitlements.active_entitlement_summary.updated' | 'file.created' | 'financial_connections.account.created' | 'financial_connections.account.deactivated' @@ -482,6 +483,7 @@ declare module 'stripe' { | 'customer.tax_id.updated' | 'customer.updated' | 'customer_cash_balance_transaction.created' + | 'entitlements.active_entitlement_summary.updated' | 'file.created' | 'financial_connections.account.created' | 'financial_connections.account.deactivated' diff --git a/types/index.d.ts b/types/index.d.ts index 051a8e6b12..020588e5e8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -161,6 +161,7 @@ /// /// /// +/// /// /// /// From b4f1a3c9983a98c69b18d289594cc941d09bf45a Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Tue, 16 Apr 2024 08:57:53 -0700 Subject: [PATCH 12/22] Bump version to 15.2.0 --- CHANGELOG.md | 13 +++++++++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b8d71612f..7ea89173c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 15.2.0 - 2024-04-16 +* [#2064](https://github.com/stripe/stripe-node/pull/2064) Update generated code + * Add support for new resource `Entitlements.ActiveEntitlementSummary` + * Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required + * Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional + * Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard` + * Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type` + * Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API. + * Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay` + * Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + ## 15.1.0 - 2024-04-11 * [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code * Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components` diff --git a/VERSION b/VERSION index d14dfbac36..6c43fc8aef 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -15.1.0 +15.2.0 diff --git a/package.json b/package.json index d4ef7669a5..e050a5e8f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "15.1.0", + "version": "15.2.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 0c75e7ec98..846e059490 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -49,7 +49,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '15.1.0'; + Stripe.PACKAGE_VERSION = '15.2.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From ddba465b02893f688f0ded74bebb28916b4049ba Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 17:26:16 +0000 Subject: [PATCH 13/22] Update generated code for v963 --- OPENAPI_VERSION | 2 +- types/CustomersResource.d.ts | 7 +++++++ types/PaymentIntentsResource.d.ts | 21 +++++++++++++++++++ types/PaymentMethodsResource.d.ts | 14 +++++++++++++ types/SetupIntentsResource.d.ts | 21 +++++++++++++++++++ .../ConfirmationTokensResource.d.ts | 7 +++++++ 6 files changed, 71 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 77a35c552a..b158e42fd7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v962 \ No newline at end of file +v963 \ No newline at end of file diff --git a/types/CustomersResource.d.ts b/types/CustomersResource.d.ts index 28ad62ac7a..97afe343a6 100644 --- a/types/CustomersResource.d.ts +++ b/types/CustomersResource.d.ts @@ -767,6 +767,11 @@ declare module 'stripe' { } interface CustomerListPaymentMethodsParams extends PaginationParams { + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: CustomerListPaymentMethodsParams.AllowRedisplay; + /** * Specifies which fields in the response should be expanded. */ @@ -779,6 +784,8 @@ declare module 'stripe' { } namespace CustomerListPaymentMethodsParams { + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + type Type = | 'acss_debit' | 'affirm' diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 62b4b093e8..1b110196e7 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -926,6 +926,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodData.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -1141,6 +1146,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { @@ -4049,6 +4056,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodData.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -4264,6 +4276,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { @@ -7929,6 +7943,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodData.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -8144,6 +8163,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { diff --git a/types/PaymentMethodsResource.d.ts b/types/PaymentMethodsResource.d.ts index 4b8af9885d..243044cfe4 100644 --- a/types/PaymentMethodsResource.d.ts +++ b/types/PaymentMethodsResource.d.ts @@ -23,6 +23,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodCreateParams.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodCreateParams.AllowRedisplay; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -258,6 +263,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { @@ -695,6 +702,11 @@ declare module 'stripe' { } interface PaymentMethodUpdateParams { + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodUpdateParams.AllowRedisplay; + /** * Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. */ @@ -732,6 +744,8 @@ declare module 'stripe' { } namespace PaymentMethodUpdateParams { + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface BillingDetails { /** * Billing address. diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index 0e88329d14..aae90f3606 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -204,6 +204,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodData.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -419,6 +424,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { @@ -1418,6 +1425,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodData.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -1633,6 +1645,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { @@ -2719,6 +2733,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodData.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -2934,6 +2953,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { diff --git a/types/TestHelpers/ConfirmationTokensResource.d.ts b/types/TestHelpers/ConfirmationTokensResource.d.ts index cc3b47b7e0..fb8b718269 100644 --- a/types/TestHelpers/ConfirmationTokensResource.d.ts +++ b/types/TestHelpers/ConfirmationTokensResource.d.ts @@ -59,6 +59,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodData.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`. + */ + allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -274,6 +279,8 @@ declare module 'stripe' { interface Alipay {} + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AmazonPay {} interface AuBecsDebit { From 1a000b577a49373d95c231f25bc1a937908aeef0 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 18:01:57 +0000 Subject: [PATCH 14/22] Update generated code for v964 --- OPENAPI_VERSION | 2 +- types/Billing/MeterEventSummaries.d.ts | 8 ++++---- types/Billing/MeterEvents.d.ts | 2 +- types/Billing/MeterEventsResource.d.ts | 2 +- types/Billing/Meters.d.ts | 8 ++++---- types/Billing/MetersResource.d.ts | 10 +++++----- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b158e42fd7..f5a9540599 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v963 \ No newline at end of file +v964 \ No newline at end of file diff --git a/types/Billing/MeterEventSummaries.d.ts b/types/Billing/MeterEventSummaries.d.ts index 409470f52c..8c74518af3 100644 --- a/types/Billing/MeterEventSummaries.d.ts +++ b/types/Billing/MeterEventSummaries.d.ts @@ -19,12 +19,12 @@ declare module 'stripe' { object: 'billing.meter_event_summary'; /** - * Aggregated value of all the events within start_time (inclusive) and end_time (inclusive). The aggregation strategy is defined on meter via `default_aggregation``. + * Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`. */ aggregated_value: number; /** - * End timestamp for this usage summary (inclusive). + * End timestamp for this event summary (inclusive). */ end_time: number; @@ -34,12 +34,12 @@ declare module 'stripe' { livemode: boolean; /** - * The meter associated with this usage summary. + * The meter associated with this event summary. */ meter: string; /** - * Start timestamp for this usage summary (inclusive). + * Start timestamp for this event summary (inclusive). */ start_time: number; } diff --git a/types/Billing/MeterEvents.d.ts b/types/Billing/MeterEvents.d.ts index 40e4471a95..abcb35c586 100644 --- a/types/Billing/MeterEvents.d.ts +++ b/types/Billing/MeterEvents.d.ts @@ -34,7 +34,7 @@ declare module 'stripe' { livemode: boolean; /** - * The payload of the event. + * The payload of the event. This contains the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://stripe.com/docs/billing/subscriptions/usage-based/recording-usage#payload-key-overrides). */ payload: { [key: string]: string; diff --git a/types/Billing/MeterEventsResource.d.ts b/types/Billing/MeterEventsResource.d.ts index 29f53b9ad1..95205a5f39 100644 --- a/types/Billing/MeterEventsResource.d.ts +++ b/types/Billing/MeterEventsResource.d.ts @@ -10,7 +10,7 @@ declare module 'stripe' { event_name: string; /** - * The payload of the event. This must contain a field with the event's numerical value and a field to map the event to a customer. + * The payload of the event. This must contain the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides). */ payload: { [key: string]: string; diff --git a/types/Billing/Meters.d.ts b/types/Billing/Meters.d.ts index 5550f39d44..ca9d47eb0d 100644 --- a/types/Billing/Meters.d.ts +++ b/types/Billing/Meters.d.ts @@ -32,12 +32,12 @@ declare module 'stripe' { display_name: string; /** - * The name of the usage event to record usage for. Corresponds with the `event_name` field on usage events. + * The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events. */ event_name: string; /** - * The time window to pre-aggregate usage events for, if any. + * The time window to pre-aggregate meter events for, if any. */ event_time_window: Meter.EventTimeWindow | null; @@ -64,7 +64,7 @@ declare module 'stripe' { namespace Meter { interface CustomerMapping { /** - * The key in the usage event payload to use for mapping the event to a customer. + * The key in the meter event payload to use for mapping the event to a customer. */ event_payload_key: string; @@ -98,7 +98,7 @@ declare module 'stripe' { interface ValueSettings { /** - * The key in the usage event payload to use as the value for this meter. + * The key in the meter event payload to use as the value for this meter. */ event_payload_key: string; } diff --git a/types/Billing/MetersResource.d.ts b/types/Billing/MetersResource.d.ts index d1f3c7dd51..783b7f70a3 100644 --- a/types/Billing/MetersResource.d.ts +++ b/types/Billing/MetersResource.d.ts @@ -15,7 +15,7 @@ declare module 'stripe' { display_name: string; /** - * The name of the usage event to record usage for. Corresponds with the `event_name` field on usage events. + * The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events. */ event_name: string; @@ -25,7 +25,7 @@ declare module 'stripe' { customer_mapping?: MeterCreateParams.CustomerMapping; /** - * The time window to pre-aggregate usage events for, if any. + * The time window to pre-aggregate meter events for, if any. */ event_time_window?: MeterCreateParams.EventTimeWindow; @@ -35,7 +35,7 @@ declare module 'stripe' { expand?: Array; /** - * Fields that specify how to calculate a usage event's value. + * Fields that specify how to calculate a meter event's value. */ value_settings?: MeterCreateParams.ValueSettings; } @@ -123,12 +123,12 @@ declare module 'stripe' { customer: string; /** - * The timestamp from when to stop aggregating usage events (exclusive). + * The timestamp from when to stop aggregating meter events (exclusive). */ end_time: number; /** - * The timestamp from when to start aggregating usage events (inclusive). + * The timestamp from when to start aggregating meter events (inclusive). */ start_time: number; From 3123d44940413fb30b4f050f0c44df95dd2bbdae Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 18:33:32 +0000 Subject: [PATCH 15/22] Update generated code for v965 --- OPENAPI_VERSION | 2 +- types/AccountSessionsResource.d.ts | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f5a9540599..cccabc93cf 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v964 \ No newline at end of file +v965 \ No newline at end of file diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 7e2f0a9d66..3e1c6d015c 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -38,6 +38,11 @@ declare module 'stripe' { capital_financing_promotion?: Components.CapitalFinancingPromotion; + /** + * Configuration for the capital overview embedded component. + */ + capital_overview?: Components.CapitalOverview; + /** * Configuration for the documents embedded component. */ @@ -189,6 +194,22 @@ declare module 'stripe' { interface Features {} } + interface CapitalOverview { + /** + * Whether the embedded component is enabled. + */ + enabled: boolean; + + /** + * The list of features enabled in the embedded component. + */ + features?: CapitalOverview.Features; + } + + namespace CapitalOverview { + interface Features {} + } + interface Documents { /** * Whether the embedded component is enabled. From 2bf399cac38e57e04b13f53d5289c79b382cfa7e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 19:00:21 +0000 Subject: [PATCH 16/22] Update generated code for v966 --- OPENAPI_VERSION | 2 +- types/Checkout/Sessions.d.ts | 25 +++++++++++++++++ types/Checkout/SessionsResource.d.ts | 41 ++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cccabc93cf..edc36cc541 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v965 \ No newline at end of file +v966 \ No newline at end of file diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 2a75a033e3..4fb651d49a 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -228,6 +228,11 @@ declare module 'stripe' { */ return_url?: string; + /** + * Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. + */ + saved_payment_method_options: Session.SavedPaymentMethodOptions | null; + /** * The ID of the SetupIntent for Checkout Sessions in `setup` mode. */ @@ -1507,6 +1512,26 @@ declare module 'stripe' { type RedirectOnCompletion = 'always' | 'if_required' | 'never'; + interface SavedPaymentMethodOptions { + /** + * Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method. + */ + allow_redisplay_filters: Array< + SavedPaymentMethodOptions.AllowRedisplayFilter + > | null; + + /** + * Enable customers to choose if they wish to save their payment method for future use. + */ + payment_method_save: SavedPaymentMethodOptions.PaymentMethodSave | null; + } + + namespace SavedPaymentMethodOptions { + type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified'; + + type PaymentMethodSave = 'disabled' | 'enabled'; + } + interface ShippingAddressCollection { /** * An array of two-letter ISO country codes representing which countries Checkout should provide as options for diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 6357e462cd..88b5db7c4d 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -162,6 +162,11 @@ declare module 'stripe' { */ payment_method_configuration?: string; + /** + * This parameter allows you to set some attributes on the payment method created during a Checkout session. + */ + payment_method_data?: SessionCreateParams.PaymentMethodData; + /** * Payment-method-specific configuration. */ @@ -202,6 +207,11 @@ declare module 'stripe' { */ return_url?: string; + /** + * Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. + */ + saved_payment_method_options?: SessionCreateParams.SavedPaymentMethodOptions; + /** * A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode. */ @@ -947,6 +957,17 @@ declare module 'stripe' { type PaymentMethodCollection = 'always' | 'if_required'; + interface PaymentMethodData { + /** + * Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout. + */ + allow_redisplay?: PaymentMethodData.AllowRedisplay; + } + + namespace PaymentMethodData { + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + } + interface PaymentMethodOptions { /** * contains details about the ACSS Debit payment method options. @@ -1800,6 +1821,26 @@ declare module 'stripe' { type RedirectOnCompletion = 'always' | 'if_required' | 'never'; + interface SavedPaymentMethodOptions { + /** + * Controls which payment methods are eligible to be redisplayed to returning customers. Corresponds to `allow_redisplay` on the payment method. + */ + allow_redisplay_filters?: Array< + SavedPaymentMethodOptions.AllowRedisplayFilter + >; + + /** + * Enable customers to choose if they wish to save their payment method for future use. + */ + payment_method_save?: SavedPaymentMethodOptions.PaymentMethodSave; + } + + namespace SavedPaymentMethodOptions { + type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified'; + + type PaymentMethodSave = 'disabled' | 'enabled'; + } + interface SetupIntentData { /** * An arbitrary string attached to the object. Often useful for displaying to users. From 5688fb6785ec9f6c54a9f8fe26954de49c572c7a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 19:59:51 +0000 Subject: [PATCH 17/22] Update generated code for v967 --- OPENAPI_VERSION | 2 +- types/Issuing/Transactions.d.ts | 2 +- types/TestHelpers/Issuing/AuthorizationsResource.d.ts | 4 ++-- types/TestHelpers/Issuing/TransactionsResource.d.ts | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index edc36cc541..436e09fd1b 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v966 \ No newline at end of file +v967 \ No newline at end of file diff --git a/types/Issuing/Transactions.d.ts b/types/Issuing/Transactions.d.ts index cd8c88230b..7ff79517dd 100644 --- a/types/Issuing/Transactions.d.ts +++ b/types/Issuing/Transactions.d.ts @@ -297,7 +297,7 @@ declare module 'stripe' { type: string; /** - * The units for `volume_decimal`. One of `us_gallon` or `liter`. + * The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`. */ unit: string; diff --git a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts index 273b6eb725..51304b5106 100644 --- a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +++ b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts @@ -635,7 +635,7 @@ declare module 'stripe' { type?: Fuel.Type; /** - * The units for `volume_decimal`. One of `us_gallon` or `liter`. + * The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`. */ unit?: Fuel.Unit; @@ -658,7 +658,7 @@ declare module 'stripe' { | 'unleaded_regular' | 'unleaded_super'; - type Unit = 'liter' | 'us_gallon'; + type Unit = 'liter' | 'other' | 'us_gallon'; } interface Lodging { diff --git a/types/TestHelpers/Issuing/TransactionsResource.d.ts b/types/TestHelpers/Issuing/TransactionsResource.d.ts index 2c7d7ccd43..e2770ae27e 100644 --- a/types/TestHelpers/Issuing/TransactionsResource.d.ts +++ b/types/TestHelpers/Issuing/TransactionsResource.d.ts @@ -478,7 +478,7 @@ declare module 'stripe' { type?: Fuel.Type; /** - * The units for `volume_decimal`. One of `us_gallon` or `liter`. + * The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`. */ unit?: Fuel.Unit; @@ -501,7 +501,7 @@ declare module 'stripe' { | 'unleaded_regular' | 'unleaded_super'; - type Unit = 'liter' | 'us_gallon'; + type Unit = 'liter' | 'other' | 'us_gallon'; } interface Lodging { @@ -1004,7 +1004,7 @@ declare module 'stripe' { type?: Fuel.Type; /** - * The units for `volume_decimal`. One of `us_gallon` or `liter`. + * The units for `volume_decimal`. One of `liter`, `us_gallon`, or `other`. */ unit?: Fuel.Unit; @@ -1027,7 +1027,7 @@ declare module 'stripe' { | 'unleaded_regular' | 'unleaded_super'; - type Unit = 'liter' | 'us_gallon'; + type Unit = 'liter' | 'other' | 'us_gallon'; } interface Lodging { From 302829307dc4a1dfdebfd9c6be2a1cdb78664619 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 01:14:04 +0000 Subject: [PATCH 18/22] Update generated code for v968 --- OPENAPI_VERSION | 2 +- types/Billing/MetersResource.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 436e09fd1b..471efc1946 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v967 \ No newline at end of file +v968 \ No newline at end of file diff --git a/types/Billing/MetersResource.d.ts b/types/Billing/MetersResource.d.ts index 783b7f70a3..40ad6e4c6c 100644 --- a/types/Billing/MetersResource.d.ts +++ b/types/Billing/MetersResource.d.ts @@ -55,7 +55,7 @@ declare module 'stripe' { interface DefaultAggregation { /** - * Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value, or `last` to use the last event's value. + * Specifies how events are aggregated. Allowed values are `count` to count the number of events and `sum` to sum each event's value. */ formula: DefaultAggregation.Formula; } From 7b9aec5dee8f48e345799cc2604f7707a56bfe0a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 06:47:27 +0000 Subject: [PATCH 19/22] Update generated code for v969 --- OPENAPI_VERSION | 2 +- types/InvoicesResource.d.ts | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 471efc1946..6031d9a63a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v968 \ No newline at end of file +v969 \ No newline at end of file diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 1fa2deaab8..4811184fec 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -4183,6 +4183,11 @@ declare module 'stripe' { * If provided, the invoice returned will preview updating or creating a subscription with that trial end. If set, one of `subscription_items` or `subscription` is required. This field has been deprecated and will be removed in a future API version. Use `subscription_details.trial_end` instead. */ subscription_trial_end?: 'now' | number; + + /** + * Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more. + */ + subscription_trial_from_plan?: boolean; } namespace InvoiceListUpcomingLinesParams { @@ -6648,6 +6653,11 @@ declare module 'stripe' { * If provided, the invoice returned will preview updating or creating a subscription with that trial end. If set, one of `subscription_items` or `subscription` is required. This field has been deprecated and will be removed in a future API version. Use `subscription_details.trial_end` instead. */ subscription_trial_end?: 'now' | number; + + /** + * Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more. + */ + subscription_trial_from_plan?: boolean; } namespace InvoiceRetrieveUpcomingParams { From 74f23f594f685b0f5ab94aa4557e3c5eb1d5eb8e Mon Sep 17 00:00:00 2001 From: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> Date: Thu, 18 Apr 2024 12:41:56 -0400 Subject: [PATCH 20/22] Updated cloudflare wrangler in testProject to 3.50.0 (#2067) Updated wrangler in testProject to 3.50.0 --- testProjects/cloudflare-pages/package.json | 2 +- testProjects/cloudflare-worker/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testProjects/cloudflare-pages/package.json b/testProjects/cloudflare-pages/package.json index 8870a4722c..e4b240323b 100644 --- a/testProjects/cloudflare-pages/package.json +++ b/testProjects/cloudflare-pages/package.json @@ -12,6 +12,6 @@ "stripe": "file:../../" }, "devDependencies": { - "wrangler": "^2.9.0" + "wrangler": "^3.50.0" } } diff --git a/testProjects/cloudflare-worker/package.json b/testProjects/cloudflare-worker/package.json index 8a7c11f1e5..c4e50cc3b0 100644 --- a/testProjects/cloudflare-worker/package.json +++ b/testProjects/cloudflare-worker/package.json @@ -4,7 +4,7 @@ "description": "", "main": "./src/index.js", "scripts": { - "build": "wrangler publish --dry-run" + "build": "wrangler deploy --dry-run" }, "keywords": [], "author": "", @@ -13,6 +13,6 @@ "stripe": "file:../../" }, "devDependencies": { - "wrangler": "^2.9.0" + "wrangler": "^3.50.0" } } From 6666ba1b69f192384dbdd593dfbc48d4630fe8d5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:17:12 +0000 Subject: [PATCH 21/22] Update generated code for v971 --- OPENAPI_VERSION | 2 +- types/Checkout/Sessions.d.ts | 13 +++++++++++++ types/Checkout/SessionsResource.d.ts | 17 +++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 48f2a1a8ed..481ad6d30c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v970 \ No newline at end of file +v971 \ No newline at end of file diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 4fb651d49a..af1ed13fdc 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -917,6 +917,8 @@ declare module 'stripe' { link?: PaymentMethodOptions.Link; + mobilepay?: PaymentMethodOptions.Mobilepay; + oxxo?: PaymentMethodOptions.Oxxo; p24?: PaymentMethodOptions.P24; @@ -1317,6 +1319,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Mobilepay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } + interface Oxxo { /** * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 88b5db7c4d..f7c292b874 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -1069,6 +1069,11 @@ declare module 'stripe' { */ link?: PaymentMethodOptions.Link; + /** + * contains details about the Mobilepay payment method options. + */ + mobilepay?: PaymentMethodOptions.Mobilepay; + /** * contains details about the OXXO payment method options. */ @@ -1528,6 +1533,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Mobilepay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -1797,6 +1813,7 @@ declare module 'stripe' { | 'klarna' | 'konbini' | 'link' + | 'mobilepay' | 'oxxo' | 'p24' | 'paynow' From 17d6299fb49a5a5be27d8b32cad3a8497d6c601f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 18:19:53 +0000 Subject: [PATCH 22/22] Update generated code for v972 --- OPENAPI_VERSION | 2 +- types/Billing/MeterEventsResource.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 481ad6d30c..e0b2735086 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v971 \ No newline at end of file +v972 \ No newline at end of file diff --git a/types/Billing/MeterEventsResource.d.ts b/types/Billing/MeterEventsResource.d.ts index 95205a5f39..97fb3f86b2 100644 --- a/types/Billing/MeterEventsResource.d.ts +++ b/types/Billing/MeterEventsResource.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { identifier?: string; /** - * The time of the event. Measured in seconds since the Unix epoch. Defaults to current timestamp if not specified. + * The time of the event. Measured in seconds since the Unix epoch. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified. */ timestamp?: number; }