From 247d651c4c1baf0efd70a88984651ca931330f22 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 24 Aug 2023 17:48:05 +0000 Subject: [PATCH] Update generated code (#1879) * Update generated code for v469 * Update generated code for v470 * Update generated code for v471 * Update generated code for v474 * Update generated code for v475 * Update generated code for v476 * Update generated code for v477 * Update generated code for v478 * Update generated code for v481 * Update generated code for v482 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- types/BillingPortal/Sessions.d.ts | 28 +++++++++++++++++++ types/BillingPortal/SessionsResource.d.ts | 28 +++++++++++++++++++ types/Cards.d.ts | 2 +- types/Charges.d.ts | 6 ++-- types/Checkout/Sessions.d.ts | 5 ++++ types/Checkout/SessionsResource.d.ts | 9 ++++-- types/CustomerCashBalanceTransactions.d.ts | 5 ++++ types/Disputes.d.ts | 28 +++++++++++++++++++ types/FinancialConnections/Sessions.d.ts | 7 +++++ .../SessionsResource.d.ts | 7 +++++ types/Invoices.d.ts | 5 ++++ types/InvoicesResource.d.ts | 10 +++++++ types/PaymentIntents.d.ts | 7 ++++- types/PaymentIntentsResource.d.ts | 24 +++++++++++++--- types/PaymentMethods.d.ts | 6 ++-- types/Payouts.d.ts | 2 +- types/PayoutsResource.d.ts | 2 +- types/SetupAttempts.d.ts | 2 +- types/SetupIntents.d.ts | 5 ++++ types/SetupIntentsResource.d.ts | 22 +++++++++++++-- types/Subscriptions.d.ts | 5 ++++ types/SubscriptionsResource.d.ts | 10 +++++++ 23 files changed, 206 insertions(+), 21 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 19d71b607a..3c560ddf20 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v468 \ No newline at end of file +v482 \ No newline at end of file diff --git a/types/BillingPortal/Sessions.d.ts b/types/BillingPortal/Sessions.d.ts index 819f7c64b7..04b2983d74 100644 --- a/types/BillingPortal/Sessions.d.ts +++ b/types/BillingPortal/Sessions.d.ts @@ -138,12 +138,40 @@ declare module 'stripe' { } interface SubscriptionCancel { + /** + * Specify a retention strategy to be used in the cancellation flow. + */ + retention: SubscriptionCancel.Retention | null; + /** * The ID of the subscription to be canceled. */ subscription: string; } + namespace SubscriptionCancel { + interface Retention { + /** + * Configuration when `retention.type=coupon_offer`. + */ + coupon_offer: Retention.CouponOffer | null; + + /** + * Type of retention strategy that will be used. + */ + type: 'coupon_offer'; + } + + namespace Retention { + interface CouponOffer { + /** + * The ID of the coupon to be offered. + */ + coupon: string; + } + } + } + interface SubscriptionUpdate { /** * The ID of the subscription to be updated. diff --git a/types/BillingPortal/SessionsResource.d.ts b/types/BillingPortal/SessionsResource.d.ts index d1fe558039..710966e2e9 100644 --- a/types/BillingPortal/SessionsResource.d.ts +++ b/types/BillingPortal/SessionsResource.d.ts @@ -105,12 +105,40 @@ declare module 'stripe' { } interface SubscriptionCancel { + /** + * Specify a retention strategy to be used in the cancellation flow. + */ + retention?: SubscriptionCancel.Retention; + /** * The ID of the subscription to be canceled. */ subscription: string; } + namespace SubscriptionCancel { + interface Retention { + /** + * Configuration when `retention.type=coupon_offer`. + */ + coupon_offer: Retention.CouponOffer; + + /** + * Type of retention strategy to use with the customer. + */ + type: 'coupon_offer'; + } + + namespace Retention { + interface CouponOffer { + /** + * The ID of the coupon to be offered. + */ + coupon: string; + } + } + } + interface SubscriptionUpdate { /** * The ID of the subscription to be updated. diff --git a/types/Cards.d.ts b/types/Cards.d.ts index d3ebc17e45..3ae976b98c 100644 --- a/types/Cards.d.ts +++ b/types/Cards.d.ts @@ -125,7 +125,7 @@ declare module 'stripe' { /** * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.* + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ fingerprint?: string | null; diff --git a/types/Charges.d.ts b/types/Charges.d.ts index a8f590ffa4..8eae94d212 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -709,7 +709,7 @@ declare module 'stripe' { /** * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.* + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ fingerprint?: string | null; @@ -1011,7 +1011,7 @@ declare module 'stripe' { /** * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.* + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ fingerprint: string | null; @@ -1369,7 +1369,7 @@ declare module 'stripe' { /** * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.* + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ fingerprint: string | null; diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index f680090acf..a6cf61ebf2 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -1275,6 +1275,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * Data features requested to be retrieved upon account creation. + */ + prefetch: Array<'balances'> | null; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 4dc4ad178b..5a00d11699 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -204,7 +204,7 @@ declare module 'stripe' { shipping_address_collection?: SessionCreateParams.ShippingAddressCollection; /** - * The shipping rate options to apply to this Session. + * The shipping rate options to apply to this Session. Up to a maximum of 5. */ shipping_options?: Array; @@ -783,7 +783,7 @@ declare module 'stripe' { transfer_data?: PaymentIntentData.TransferData; /** - * A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details. + * A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details. */ transfer_group?: string; } @@ -1524,6 +1524,11 @@ declare module 'stripe' { * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`. */ permissions?: Array; + + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; } namespace FinancialConnections { diff --git a/types/CustomerCashBalanceTransactions.d.ts b/types/CustomerCashBalanceTransactions.d.ts index f29c1c5096..fb7e24be79 100644 --- a/types/CustomerCashBalanceTransactions.d.ts +++ b/types/CustomerCashBalanceTransactions.d.ts @@ -67,6 +67,11 @@ declare module 'stripe' { namespace CustomerCashBalanceTransaction { interface AdjustedForOverdraft { + /** + * The [Balance Transaction](docs/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance. + */ + balance_transaction: string | Stripe.BalanceTransaction; + /** * The [Cash Balance Transaction](https://stripe.com/docs/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds. */ diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index 4f74650247..cc8c154137 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -76,6 +76,8 @@ declare module 'stripe' { */ payment_intent: string | Stripe.PaymentIntent | null; + payment_method_details?: Dispute.PaymentMethodDetails; + /** * Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Read more about [dispute reasons](https://stripe.com/docs/disputes/categories). */ @@ -247,6 +249,32 @@ declare module 'stripe' { submission_count: number; } + interface PaymentMethodDetails { + /** + * Card specific dispute details. + */ + card: PaymentMethodDetails.Card | null; + + /** + * Payment method type. + */ + type: 'card'; + } + + namespace PaymentMethodDetails { + interface Card { + /** + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + */ + brand: string; + + /** + * The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network. + */ + network_reason_code: string | null; + } + } + type Status = | 'lost' | 'needs_response' diff --git a/types/FinancialConnections/Sessions.d.ts b/types/FinancialConnections/Sessions.d.ts index a6997c7666..542dba5e28 100644 --- a/types/FinancialConnections/Sessions.d.ts +++ b/types/FinancialConnections/Sessions.d.ts @@ -44,6 +44,11 @@ declare module 'stripe' { */ permissions: Array; + /** + * Data features requested to be retrieved upon account creation. + */ + prefetch: Array | null; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ @@ -84,6 +89,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'ownership'; } } } diff --git a/types/FinancialConnections/SessionsResource.d.ts b/types/FinancialConnections/SessionsResource.d.ts index b3a6739c56..04c01a0af7 100644 --- a/types/FinancialConnections/SessionsResource.d.ts +++ b/types/FinancialConnections/SessionsResource.d.ts @@ -26,6 +26,11 @@ declare module 'stripe' { */ filters?: SessionCreateParams.Filters; + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ @@ -66,6 +71,8 @@ declare module 'stripe' { | 'ownership' | 'payment_method' | 'transactions'; + + type Prefetch = 'balances' | 'ownership'; } interface SessionRetrieveParams { diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 8adf4022b9..761675adc5 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -1025,6 +1025,11 @@ declare module 'stripe' { * The list of permissions to request. The `payment_method` permission must be included. */ permissions?: Array; + + /** + * Data features requested to be retrieved upon account creation. + */ + prefetch: Array<'balances'> | null; } namespace FinancialConnections { diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 0bcda70757..e52c0c732f 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -398,6 +398,11 @@ declare module 'stripe' { * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`. */ permissions?: Array; + + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; } namespace FinancialConnections { @@ -991,6 +996,11 @@ declare module 'stripe' { * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`. */ permissions?: Array; + + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; } namespace FinancialConnections { diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 94e0dcb19a..69684f8068 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -218,7 +218,7 @@ declare module 'stripe' { transfer_data: PaymentIntent.TransferData | null; /** - * A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details. + * A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details. */ transfer_group: string | null; } @@ -1963,6 +1963,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * Data features requested to be retrieved upon account creation. + */ + prefetch: Array<'balances'> | null; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 1318bb0a3c..f6c1f49efd 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -67,7 +67,7 @@ declare module 'stripe' { /** * This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm). */ - mandate_data?: PaymentIntentCreateParams.MandateData; + mandate_data?: Stripe.Emptyable; /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -154,7 +154,7 @@ declare module 'stripe' { transfer_data?: PaymentIntentCreateParams.TransferData; /** - * A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details. + * A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details. */ transfer_group?: string; @@ -1903,6 +1903,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ @@ -3825,6 +3830,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ @@ -4066,9 +4076,10 @@ declare module 'stripe' { /** * This hash contains details about the Mandate to create */ - mandate_data?: + mandate_data?: Stripe.Emptyable< | PaymentIntentConfirmParams.MandateData1 - | PaymentIntentConfirmParams.MandateData2; + | PaymentIntentConfirmParams.MandateData2 + >; /** * Set to `true` to indicate that the customer is not in your checkout flow during this payment attempt, and therefore is unable to authenticate. This parameter is intended for scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards). @@ -5887,6 +5898,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index eb4f086318..4f9ddd074e 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -254,7 +254,7 @@ declare module 'stripe' { /** * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.* + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ fingerprint?: string | null; @@ -457,7 +457,7 @@ declare module 'stripe' { /** * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.* + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ fingerprint: string | null; @@ -691,7 +691,7 @@ declare module 'stripe' { /** * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.* + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ fingerprint: string | null; diff --git a/types/Payouts.d.ts b/types/Payouts.d.ts index aed011602e..05ee9b0d0d 100644 --- a/types/Payouts.d.ts +++ b/types/Payouts.d.ts @@ -95,7 +95,7 @@ declare module 'stripe' { metadata: Stripe.Metadata | null; /** - * The method used to send this payout, which can be `standard` or `instant`. `instant` is only supported for payouts to debit cards. (See [Instant payouts for marketplaces](https://stripe.com/blog/instant-payouts-for-marketplaces) for more information.) + * The method used to send this payout, which can be `standard` or `instant`. `instant` is supported for payouts to debit cards and bank accounts in certain countries. (See [Bank support for Instant Payouts](https://stripe.com/docs/payouts/instant-payouts-banks) for more information.) */ method: string; diff --git a/types/PayoutsResource.d.ts b/types/PayoutsResource.d.ts index 8604d25acf..29dbbd825c 100644 --- a/types/PayoutsResource.d.ts +++ b/types/PayoutsResource.d.ts @@ -34,7 +34,7 @@ declare module 'stripe' { metadata?: Stripe.MetadataParam; /** - * The method used to send this payout, which can be `standard` or `instant`. `instant` is only supported for payouts to debit cards. (See [Instant payouts for marketplaces for more information](https://stripe.com/blog/instant-payouts-for-marketplaces).) + * The method used to send this payout, which can be `standard` or `instant`. `instant` is supported for payouts to debit cards and bank accounts in certain countries. (See [Bank support for Instant Payouts](https://stripe.com/docs/payouts/instant-payouts-banks) for more information.) */ method?: PayoutCreateParams.Method; diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 9a224a9e4a..e07f5ec005 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -217,7 +217,7 @@ declare module 'stripe' { /** * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. * - * *Starting May 1, 2021, card fingerprint in India for Connect will change to allow two fingerprints for the same card --- one for India and one for the rest of the world.* + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* */ fingerprint?: string | null; diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index 5086dbdb49..61198511b7 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -737,6 +737,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * Data features requested to be retrieved upon account creation. + */ + prefetch: Array<'balances'> | null; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index 41ee99fecb..0ef3222e58 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -47,7 +47,7 @@ declare module 'stripe' { /** * This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm). */ - mandate_data?: SetupIntentCreateParams.MandateData; + mandate_data?: Stripe.Emptyable; /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -955,6 +955,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ @@ -1857,6 +1862,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ @@ -1944,9 +1954,10 @@ declare module 'stripe' { /** * This hash contains details about the Mandate to create */ - mandate_data?: + mandate_data?: Stripe.Emptyable< | SetupIntentConfirmParams.MandateData1 - | SetupIntentConfirmParams.MandateData2; + | SetupIntentConfirmParams.MandateData2 + >; /** * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. @@ -2846,6 +2857,11 @@ declare module 'stripe' { */ permissions?: Array; + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; + /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ diff --git a/types/Subscriptions.d.ts b/types/Subscriptions.d.ts index eca6165d01..e51e3dacd7 100644 --- a/types/Subscriptions.d.ts +++ b/types/Subscriptions.d.ts @@ -493,6 +493,11 @@ declare module 'stripe' { * The list of permissions to request. The `payment_method` permission must be included. */ permissions?: Array; + + /** + * Data features requested to be retrieved upon account creation. + */ + prefetch: Array<'balances'> | null; } namespace FinancialConnections { diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index fabf777ac1..fefeeaa604 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -564,6 +564,11 @@ declare module 'stripe' { * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`. */ permissions?: Array; + + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; } namespace FinancialConnections { @@ -1277,6 +1282,11 @@ declare module 'stripe' { * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`. */ permissions?: Array; + + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch?: Array<'balances'>; } namespace FinancialConnections {