From 3383639f67442f90cf30f5763e53a763d0b3c550 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 18 Aug 2023 17:14:24 +0000 Subject: [PATCH 01/10] Update generated code for v469 --- OPENAPI_VERSION | 2 +- types/CustomerCashBalanceTransactions.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 19d71b607a..dacb9ca62a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v468 \ No newline at end of file +v469 \ No newline at end of file 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. */ From ed1bdd5dcdc111995069995efb86df156a3ecd51 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sun, 20 Aug 2023 04:51:26 +0000 Subject: [PATCH 02/10] Update generated code for v470 --- OPENAPI_VERSION | 2 +- types/Disputes.d.ts | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index dacb9ca62a..cf6fdf0973 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v469 \ No newline at end of file +v470 \ No newline at end of file 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' From 6c56bfa630380867fad5241517f55201a5b9cc80 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 07:53:10 +0000 Subject: [PATCH 03/10] Update generated code for v471 --- OPENAPI_VERSION | 2 +- types/PaymentIntentsResource.d.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cf6fdf0973..d42f75d7b6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v470 \ No newline at end of file +v471 \ No newline at end of file diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index 1318bb0a3c..de3856c93d 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`. @@ -4066,9 +4066,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). From 54688d103e6cbf2800db36950c4dd0e2b3424681 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 19:46:29 +0000 Subject: [PATCH 04/10] Update generated code for v474 --- OPENAPI_VERSION | 2 +- types/SetupIntentsResource.d.ts | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d42f75d7b6..f0e1cf7769 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v471 \ No newline at end of file +v474 \ No newline at end of file diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index 41ee99fecb..322a344099 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`. @@ -1944,9 +1944,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. From 0c8d76efdb0c0b2f53f6cb55c0b453615894cebf Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 21 Aug 2023 23:04:13 +0000 Subject: [PATCH 05/10] Update generated code for v475 --- OPENAPI_VERSION | 2 +- types/Checkout/Sessions.d.ts | 5 +++++ types/Checkout/SessionsResource.d.ts | 5 +++++ types/FinancialConnections/Sessions.d.ts | 7 +++++++ types/FinancialConnections/SessionsResource.d.ts | 7 +++++++ types/Invoices.d.ts | 5 +++++ types/InvoicesResource.d.ts | 10 ++++++++++ types/PaymentIntents.d.ts | 5 +++++ types/PaymentIntentsResource.d.ts | 15 +++++++++++++++ types/SetupIntents.d.ts | 5 +++++ types/SetupIntentsResource.d.ts | 15 +++++++++++++++ types/Subscriptions.d.ts | 5 +++++ types/SubscriptionsResource.d.ts | 10 ++++++++++ 13 files changed, 95 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f0e1cf7769..9137bf67b4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v474 \ No newline at end of file +v475 \ No newline at end of file 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..86239b9c36 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -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/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..31f12a7e5c 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -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 de3856c93d..f883a6ed56 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -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. */ @@ -5888,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/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 322a344099..0ef3222e58 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -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. */ @@ -2847,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 { From e67918d2c5e093d48cdd81544ce8095bfc753242 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 22 Aug 2023 17:47:24 +0000 Subject: [PATCH 06/10] Update generated code for v476 --- OPENAPI_VERSION | 2 +- types/Checkout/SessionsResource.d.ts | 2 +- types/PaymentIntents.d.ts | 2 +- types/PaymentIntentsResource.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 9137bf67b4..e9d8427dd8 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v475 \ No newline at end of file +v476 \ No newline at end of file diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 86239b9c36..a248777ef6 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -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; } diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 31f12a7e5c..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; } diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index f883a6ed56..f6c1f49efd 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -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; From 4aa9448f93b3ca933659432e095a83e7afa4b46c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 22 Aug 2023 20:10:10 +0000 Subject: [PATCH 07/10] Update generated code for v477 --- OPENAPI_VERSION | 2 +- types/Checkout/SessionsResource.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e9d8427dd8..04064b5529 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v476 \ No newline at end of file +v477 \ No newline at end of file diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index a248777ef6..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; From 866cc6d7cdafc8f6f64d46844440f8e4958d17c4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 22 Aug 2023 20:28:51 +0000 Subject: [PATCH 08/10] Update generated code for v478 --- OPENAPI_VERSION | 2 +- types/BillingPortal/Sessions.d.ts | 28 +++++++++++++++++++++++ types/BillingPortal/SessionsResource.d.ts | 28 +++++++++++++++++++++++ 3 files changed, 57 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 04064b5529..54bc38fc39 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v477 \ No newline at end of file +v478 \ 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. From 35bd66591adcca2c1df1ae8632c8fee949554190 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:08:28 +0000 Subject: [PATCH 09/10] Update generated code for v481 --- OPENAPI_VERSION | 2 +- types/Payouts.d.ts | 2 +- types/PayoutsResource.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 54bc38fc39..ad92821181 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v478 \ No newline at end of file +v481 \ No newline at end of file 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; From b45efb3568b444a0ca936123aeea3ace74895afa Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 23 Aug 2023 22:10:23 +0000 Subject: [PATCH 10/10] Update generated code for v482 --- OPENAPI_VERSION | 2 +- types/Cards.d.ts | 2 +- types/Charges.d.ts | 6 +++--- types/PaymentMethods.d.ts | 6 +++--- types/SetupAttempts.d.ts | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ad92821181..3c560ddf20 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v481 \ No newline at end of file +v482 \ No newline at end of file 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/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/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;