stripe 17.7.0-beta.1 → 17.8.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 17.8.0-beta.1 - 2025-03-18
4
+ * [#2271](https://github.com/stripe/stripe-node/pull/2271) Beta SDK updates between Open API versions 1473 and 1505
5
+
6
+ * Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `Terminal.Reader`
7
+ * Change type of `Account.risk_controls.rejected_reason` from enum to enum | null
8
+ * Change `Checkout.Session.collected_information.shipping_details` and `Checkout.Session.collected_information` to be required
9
+ * Add support for `target_date` on `Order.payment.settings.payment_method_options.acss_debit`, `Order.payment.settings.payment_method_options.sepa_debit`, `OrderCreateParams.payment.settings.payment_method_options.acss_debit`, `OrderCreateParams.payment.settings.payment_method_options.sepa_debit`, `OrderUpdateParams.payment.settings.payment_method_options.acss_debit`, and `OrderUpdateParams.payment.settings.payment_method_options.sepa_debit`
10
+ * [#2272](https://github.com/stripe/stripe-node/pull/2272) Merge master
11
+
3
12
  ## 17.7.0-beta.1 - 2025-02-07
4
13
  * [#2254](https://github.com/stripe/stripe-node/pull/2254) Update generated code for beta
5
14
  * Add support for `rejected_reason` on `Account.risk_controls`
@@ -11,6 +20,21 @@
11
20
  * Change `Checkout.Session.discounts` to be required
12
21
  * Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
13
22
 
23
+ ## 17.7.0 - 2025-02-24
24
+ * [#2256](https://github.com/stripe/stripe-node/pull/2256) Update generated code
25
+ * Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
26
+ * Change `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope.price_type`, `Billing.CreditGrant.applicability_config.scope.price_type`, and `Billing.CreditGrantCreateParams.applicability_config.scope.price_type` to be optional
27
+ * Add support for `priority` on `Billing.CreditGrantCreateParams` and `Billing.CreditGrant`
28
+ * Add support for `target_date` on `Checkout.Session.payment_method_options.acss_debit`, `Checkout.Session.payment_method_options.au_becs_debit`, `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.Session.payment_method_options.us_bank_account`, `Checkout.SessionCreateParams.payment_method_options.acss_debit`, `Checkout.SessionCreateParams.payment_method_options.au_becs_debit`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit`, `Checkout.SessionCreateParams.payment_method_options.sepa_debit`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.acss_debit`, `PaymentIntent.payment_method_options.au_becs_debit`, `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntent.payment_method_options.sepa_debit`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.acss_debit`, `PaymentIntentConfirmParams.payment_method_options.au_becs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.sepa_debit`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.acss_debit`, `PaymentIntentCreateParams.payment_method_options.au_becs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.sepa_debit`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.acss_debit`, `PaymentIntentUpdateParams.payment_method_options.au_becs_debit`, `PaymentIntentUpdateParams.payment_method_options.bacs_debit`, `PaymentIntentUpdateParams.payment_method_options.sepa_debit`, and `PaymentIntentUpdateParams.payment_method_options.us_bank_account`
29
+ * Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
30
+ * Add support for `collected_information` on `Checkout.SessionUpdateParams` and `Checkout.Session`
31
+ * Change `Checkout.Session.discounts`, `Refund.destination_details.blik.network_decline_code`, and `Refund.destination_details.swish.network_decline_code` to be required
32
+ * Add support for `metadata` on `ProductCreateParams.default_price_data`
33
+ * Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
34
+ * Add support for new value `2025-02-24.acacia` on enum `WebhookEndpointCreateParams.api_version`
35
+ * [#2259](https://github.com/stripe/stripe-node/pull/2259) Add Next.js App Router webhook example that leverages Route Handlers
36
+ * [#2257](https://github.com/stripe/stripe-node/pull/2257) Include `OPENAPI_VERSION` into npm bundle
37
+
14
38
  ## 17.6.0 - 2025-01-27
15
39
  * [#2250](https://github.com/stripe/stripe-node/pull/2250) Update generated code
16
40
  * Add support for `close` method on resource `Treasury.FinancialAccount`
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1472
1
+ v1505
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.7.0-beta.1
1
+ 17.8.0-beta.1
package/cjs/apiVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2025-01-27.acacia';
5
+ exports.ApiVersion = '2025-02-24.acacia';
@@ -9,4 +9,12 @@ exports.Readers = StripeResource_js_1.StripeResource.extend({
9
9
  method: 'POST',
10
10
  fullPath: '/v1/test_helpers/terminal/readers/{reader}/present_payment_method',
11
11
  }),
12
+ succeedInputCollection: stripeMethod({
13
+ method: 'POST',
14
+ fullPath: '/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection',
15
+ }),
16
+ timeoutInputCollection: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection',
19
+ }),
12
20
  });
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
36
36
  ];
37
37
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
38
38
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
39
- Stripe.PACKAGE_VERSION = '17.7.0-beta.1';
39
+ Stripe.PACKAGE_VERSION = '17.8.0-beta.1';
40
40
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
41
41
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
42
42
  Stripe.resources = resources;
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2025-01-27.acacia';
2
+ export const ApiVersion = '2025-02-24.acacia';
@@ -6,4 +6,12 @@ export const Readers = StripeResource.extend({
6
6
  method: 'POST',
7
7
  fullPath: '/v1/test_helpers/terminal/readers/{reader}/present_payment_method',
8
8
  }),
9
+ succeedInputCollection: stripeMethod({
10
+ method: 'POST',
11
+ fullPath: '/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection',
12
+ }),
13
+ timeoutInputCollection: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection',
16
+ }),
9
17
  });
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
33
33
  ];
34
34
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
35
35
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
36
- Stripe.PACKAGE_VERSION = '17.7.0-beta.1';
36
+ Stripe.PACKAGE_VERSION = '17.8.0-beta.1';
37
37
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
38
38
  Stripe.StripeResource = StripeResource;
39
39
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "17.7.0-beta.1",
3
+ "version": "17.8.0-beta.1",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -1436,7 +1436,7 @@ declare module 'stripe' {
1436
1436
  /**
1437
1437
  * Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://stripe.com/docs/connect/)
1438
1438
  */
1439
- rejected_reason?: RiskControls.RejectedReason;
1439
+ rejected_reason?: RiskControls.RejectedReason | null;
1440
1440
  }
1441
1441
 
1442
1442
  namespace RiskControls {
@@ -43,7 +43,7 @@ declare module 'stripe' {
43
43
  /**
44
44
  * The price type that credit grants can apply to. We currently only support the `metered` price type.
45
45
  */
46
- price_type: 'metered';
46
+ price_type?: 'metered';
47
47
 
48
48
  /**
49
49
  * A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
@@ -63,6 +63,11 @@ declare module 'stripe' {
63
63
  */
64
64
  name: string | null;
65
65
 
66
+ /**
67
+ * The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
68
+ */
69
+ priority?: number | null;
70
+
66
71
  /**
67
72
  * ID of the test clock this credit grant belongs to.
68
73
  */
@@ -10,7 +10,7 @@ declare module 'stripe' {
10
10
  amount: CreditGrantCreateParams.Amount;
11
11
 
12
12
  /**
13
- * Configuration specifying what this credit grant applies to.
13
+ * Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
14
14
  */
15
15
  applicability_config: CreditGrantCreateParams.ApplicabilityConfig;
16
16
 
@@ -48,6 +48,11 @@ declare module 'stripe' {
48
48
  * A descriptive name shown in the Dashboard.
49
49
  */
50
50
  name?: string;
51
+
52
+ /**
53
+ * The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
54
+ */
55
+ priority?: number;
51
56
  }
52
57
 
53
58
  namespace CreditGrantCreateParams {
@@ -89,7 +94,7 @@ declare module 'stripe' {
89
94
  /**
90
95
  * The price type that credit grants can apply to. We currently only support the `metered` price type.
91
96
  */
92
- price_type: 'metered';
97
+ price_type?: 'metered';
93
98
 
94
99
  /**
95
100
  * A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
@@ -497,7 +497,7 @@ declare module 'stripe' {
497
497
  twint?: PaymentMethodDetails.Twint;
498
498
 
499
499
  /**
500
- * The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
500
+ * The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
501
501
  * An additional hash is included on `payment_method_details` with a name matching this value.
502
502
  * It contains information specific to the payment method.
503
503
  */
@@ -82,7 +82,7 @@ declare module 'stripe' {
82
82
  /**
83
83
  * Information about the customer collected within the Checkout Session.
84
84
  */
85
- collected_information?: Session.CollectedInformation | null;
85
+ collected_information: Session.CollectedInformation | null;
86
86
 
87
87
  /**
88
88
  * Results of `consent_collection` for this session.
@@ -421,7 +421,7 @@ declare module 'stripe' {
421
421
  /**
422
422
  * Shipping information for this Checkout Session.
423
423
  */
424
- shipping_details?: CollectedInformation.ShippingDetails | null;
424
+ shipping_details: CollectedInformation.ShippingDetails | null;
425
425
 
426
426
  /**
427
427
  * Customer's tax ids for this Checkout Session.
@@ -1229,6 +1229,11 @@ declare module 'stripe' {
1229
1229
  */
1230
1230
  setup_future_usage?: AcssDebit.SetupFutureUsage;
1231
1231
 
1232
+ /**
1233
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1234
+ */
1235
+ target_date?: string;
1236
+
1232
1237
  /**
1233
1238
  * Bank account verification method.
1234
1239
  */
@@ -1345,6 +1350,11 @@ declare module 'stripe' {
1345
1350
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1346
1351
  */
1347
1352
  setup_future_usage?: 'none';
1353
+
1354
+ /**
1355
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1356
+ */
1357
+ target_date?: string;
1348
1358
  }
1349
1359
 
1350
1360
  interface BacsDebit {
@@ -1360,6 +1370,11 @@ declare module 'stripe' {
1360
1370
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1361
1371
  */
1362
1372
  setup_future_usage?: BacsDebit.SetupFutureUsage;
1373
+
1374
+ /**
1375
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1376
+ */
1377
+ target_date?: string;
1363
1378
  }
1364
1379
 
1365
1380
  namespace BacsDebit {
@@ -1994,6 +2009,11 @@ declare module 'stripe' {
1994
2009
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1995
2010
  */
1996
2011
  setup_future_usage?: SepaDebit.SetupFutureUsage;
2012
+
2013
+ /**
2014
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2015
+ */
2016
+ target_date?: string;
1997
2017
  }
1998
2018
 
1999
2019
  namespace SepaDebit {
@@ -2041,6 +2061,11 @@ declare module 'stripe' {
2041
2061
  */
2042
2062
  setup_future_usage?: UsBankAccount.SetupFutureUsage;
2043
2063
 
2064
+ /**
2065
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2066
+ */
2067
+ target_date?: string;
2068
+
2044
2069
  /**
2045
2070
  * Bank account verification method.
2046
2071
  */
@@ -1233,6 +1233,11 @@ declare module 'stripe' {
1233
1233
  */
1234
1234
  setup_future_usage?: AcssDebit.SetupFutureUsage;
1235
1235
 
1236
+ /**
1237
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1238
+ */
1239
+ target_date?: string;
1240
+
1236
1241
  /**
1237
1242
  * Verification method for the intent
1238
1243
  */
@@ -1351,6 +1356,11 @@ declare module 'stripe' {
1351
1356
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1352
1357
  */
1353
1358
  setup_future_usage?: 'none';
1359
+
1360
+ /**
1361
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1362
+ */
1363
+ target_date?: string;
1354
1364
  }
1355
1365
 
1356
1366
  interface BacsDebit {
@@ -1369,6 +1379,11 @@ declare module 'stripe' {
1369
1379
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1370
1380
  */
1371
1381
  setup_future_usage?: BacsDebit.SetupFutureUsage;
1382
+
1383
+ /**
1384
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1385
+ */
1386
+ target_date?: string;
1372
1387
  }
1373
1388
 
1374
1389
  namespace BacsDebit {
@@ -2075,6 +2090,11 @@ declare module 'stripe' {
2075
2090
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2076
2091
  */
2077
2092
  setup_future_usage?: SepaDebit.SetupFutureUsage;
2093
+
2094
+ /**
2095
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2096
+ */
2097
+ target_date?: string;
2078
2098
  }
2079
2099
 
2080
2100
  namespace SepaDebit {
@@ -2125,6 +2145,11 @@ declare module 'stripe' {
2125
2145
  */
2126
2146
  setup_future_usage?: UsBankAccount.SetupFutureUsage;
2127
2147
 
2148
+ /**
2149
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2150
+ */
2151
+ target_date?: string;
2152
+
2128
2153
  /**
2129
2154
  * Verification method for the intent
2130
2155
  */
@@ -3159,6 +3184,63 @@ declare module 'stripe' {
3159
3184
  }
3160
3185
  }
3161
3186
 
3187
+ namespace SessionUpdateParams {
3188
+ interface CollectedInformation {
3189
+ /**
3190
+ * The shipping details to apply to this Session.
3191
+ */
3192
+ shipping_details?: CollectedInformation.ShippingDetails;
3193
+ }
3194
+
3195
+ namespace CollectedInformation {
3196
+ interface ShippingDetails {
3197
+ /**
3198
+ * The address of the customer
3199
+ */
3200
+ address: ShippingDetails.Address;
3201
+
3202
+ /**
3203
+ * The name of customer
3204
+ */
3205
+ name: string;
3206
+ }
3207
+
3208
+ namespace ShippingDetails {
3209
+ interface Address {
3210
+ /**
3211
+ * City, district, suburb, town, or village.
3212
+ */
3213
+ city?: string;
3214
+
3215
+ /**
3216
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
3217
+ */
3218
+ country: string;
3219
+
3220
+ /**
3221
+ * Address line 1 (e.g., street, PO Box, or company name).
3222
+ */
3223
+ line1: string;
3224
+
3225
+ /**
3226
+ * Address line 2 (e.g., apartment, suite, unit, or building).
3227
+ */
3228
+ line2?: string;
3229
+
3230
+ /**
3231
+ * ZIP or postal code.
3232
+ */
3233
+ postal_code?: string;
3234
+
3235
+ /**
3236
+ * State, county, province, or region.
3237
+ */
3238
+ state?: string;
3239
+ }
3240
+ }
3241
+ }
3242
+ }
3243
+
3162
3244
  interface SessionListParams extends PaginationParams {
3163
3245
  /**
3164
3246
  * Only return Checkout Sessions that were created during the given date interval.
@@ -2080,7 +2080,7 @@ declare module 'stripe' {
2080
2080
  }
2081
2081
 
2082
2082
  /**
2083
- * Occurs whenever an invoice payment attempt fails, due either to a declined payment or to the lack of a stored payment method.
2083
+ * Occurs whenever an invoice payment attempt fails, due to either a declined payment, including soft decline, or to the lack of a stored payment method.
2084
2084
  */
2085
2085
  interface InvoicePaymentFailedEvent extends EventBase {
2086
2086
  type: 'invoice.payment_failed';
@@ -81,7 +81,7 @@ declare module 'stripe' {
81
81
  redaction: VerificationSession.Redaction | null;
82
82
 
83
83
  /**
84
- * Token referencing a Customer resource.
84
+ * Customer ID
85
85
  */
86
86
  related_customer: string | null;
87
87
 
@@ -30,7 +30,7 @@ declare module 'stripe' {
30
30
  provided_details?: VerificationSessionCreateParams.ProvidedDetails;
31
31
 
32
32
  /**
33
- * Token referencing a Customer resource.
33
+ * Customer ID
34
34
  */
35
35
  related_customer?: string;
36
36
 
package/types/Orders.d.ts CHANGED
@@ -310,6 +310,11 @@ declare module 'stripe' {
310
310
  */
311
311
  setup_future_usage?: AcssDebit.SetupFutureUsage;
312
312
 
313
+ /**
314
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
315
+ */
316
+ target_date?: string;
317
+
313
318
  /**
314
319
  * Bank account verification method.
315
320
  */
@@ -732,6 +737,11 @@ declare module 'stripe' {
732
737
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
733
738
  */
734
739
  setup_future_usage?: SepaDebit.SetupFutureUsage;
740
+
741
+ /**
742
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
743
+ */
744
+ target_date?: string;
735
745
  }
736
746
 
737
747
  namespace SepaDebit {
@@ -455,6 +455,11 @@ declare module 'stripe' {
455
455
  */
456
456
  setup_future_usage?: Stripe.Emptyable<AcssDebit.SetupFutureUsage>;
457
457
 
458
+ /**
459
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
460
+ */
461
+ target_date?: string;
462
+
458
463
  /**
459
464
  * Bank account verification method.
460
465
  */
@@ -1004,6 +1009,11 @@ declare module 'stripe' {
1004
1009
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
1005
1010
  */
1006
1011
  setup_future_usage?: Stripe.Emptyable<SepaDebit.SetupFutureUsage>;
1012
+
1013
+ /**
1014
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1015
+ */
1016
+ target_date?: string;
1007
1017
  }
1008
1018
 
1009
1019
  namespace SepaDebit {
@@ -1874,6 +1884,11 @@ declare module 'stripe' {
1874
1884
  */
1875
1885
  setup_future_usage?: Stripe.Emptyable<AcssDebit.SetupFutureUsage>;
1876
1886
 
1887
+ /**
1888
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1889
+ */
1890
+ target_date?: string;
1891
+
1877
1892
  /**
1878
1893
  * Bank account verification method.
1879
1894
  */
@@ -2423,6 +2438,11 @@ declare module 'stripe' {
2423
2438
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2424
2439
  */
2425
2440
  setup_future_usage?: Stripe.Emptyable<SepaDebit.SetupFutureUsage>;
2441
+
2442
+ /**
2443
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2444
+ */
2445
+ target_date?: string;
2426
2446
  }
2427
2447
 
2428
2448
  namespace SepaDebit {
@@ -1781,6 +1781,11 @@ declare module 'stripe' {
1781
1781
  */
1782
1782
  setup_future_usage?: AcssDebit.SetupFutureUsage;
1783
1783
 
1784
+ /**
1785
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1786
+ */
1787
+ target_date?: string;
1788
+
1784
1789
  /**
1785
1790
  * Bank account verification method.
1786
1791
  */
@@ -1925,6 +1930,11 @@ declare module 'stripe' {
1925
1930
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1926
1931
  */
1927
1932
  setup_future_usage?: AuBecsDebit.SetupFutureUsage;
1933
+
1934
+ /**
1935
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1936
+ */
1937
+ target_date?: string;
1928
1938
  }
1929
1939
 
1930
1940
  namespace AuBecsDebit {
@@ -1944,6 +1954,11 @@ declare module 'stripe' {
1944
1954
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
1945
1955
  */
1946
1956
  setup_future_usage?: BacsDebit.SetupFutureUsage;
1957
+
1958
+ /**
1959
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
1960
+ */
1961
+ target_date?: string;
1947
1962
  }
1948
1963
 
1949
1964
  namespace BacsDebit {
@@ -3019,6 +3034,11 @@ declare module 'stripe' {
3019
3034
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
3020
3035
  */
3021
3036
  setup_future_usage?: SepaDebit.SetupFutureUsage;
3037
+
3038
+ /**
3039
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
3040
+ */
3041
+ target_date?: string;
3022
3042
  }
3023
3043
 
3024
3044
  namespace SepaDebit {
@@ -3128,6 +3148,11 @@ declare module 'stripe' {
3128
3148
  */
3129
3149
  setup_future_usage?: UsBankAccount.SetupFutureUsage;
3130
3150
 
3151
+ /**
3152
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
3153
+ */
3154
+ target_date?: string;
3155
+
3131
3156
  /**
3132
3157
  * Bank account verification method.
3133
3158
  */
@@ -3320,14 +3345,14 @@ declare module 'stripe' {
3320
3345
 
3321
3346
  interface TransferData {
3322
3347
  /**
3323
- * Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
3348
+ * The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
3349
+ * The amount must be less than or equal to the [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
3350
+ * representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
3324
3351
  */
3325
3352
  amount?: number;
3326
3353
 
3327
3354
  /**
3328
- * The account (if any) that the payment is attributed to for tax
3329
- * reporting, and where funds from the payment are transferred to after
3330
- * payment success.
3355
+ * The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
3331
3356
  */
3332
3357
  destination: string | Stripe.Account;
3333
3358
  }
@@ -2002,6 +2002,11 @@ declare module 'stripe' {
2002
2002
  */
2003
2003
  setup_future_usage?: Stripe.Emptyable<AcssDebit.SetupFutureUsage>;
2004
2004
 
2005
+ /**
2006
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2007
+ */
2008
+ target_date?: string;
2009
+
2005
2010
  /**
2006
2011
  * Bank account verification method.
2007
2012
  */
@@ -2172,6 +2177,11 @@ declare module 'stripe' {
2172
2177
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2173
2178
  */
2174
2179
  setup_future_usage?: Stripe.Emptyable<AuBecsDebit.SetupFutureUsage>;
2180
+
2181
+ /**
2182
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2183
+ */
2184
+ target_date?: string;
2175
2185
  }
2176
2186
 
2177
2187
  namespace AuBecsDebit {
@@ -2196,6 +2206,11 @@ declare module 'stripe' {
2196
2206
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
2197
2207
  */
2198
2208
  setup_future_usage?: Stripe.Emptyable<BacsDebit.SetupFutureUsage>;
2209
+
2210
+ /**
2211
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
2212
+ */
2213
+ target_date?: string;
2199
2214
  }
2200
2215
 
2201
2216
  namespace BacsDebit {
@@ -3539,6 +3554,11 @@ declare module 'stripe' {
3539
3554
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3540
3555
  */
3541
3556
  setup_future_usage?: Stripe.Emptyable<SepaDebit.SetupFutureUsage>;
3557
+
3558
+ /**
3559
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
3560
+ */
3561
+ target_date?: string;
3542
3562
  }
3543
3563
 
3544
3564
  namespace SepaDebit {
@@ -3671,6 +3691,11 @@ declare module 'stripe' {
3671
3691
  */
3672
3692
  setup_future_usage?: Stripe.Emptyable<UsBankAccount.SetupFutureUsage>;
3673
3693
 
3694
+ /**
3695
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
3696
+ */
3697
+ target_date?: string;
3698
+
3674
3699
  /**
3675
3700
  * Bank account verification method.
3676
3701
  */
@@ -5790,6 +5815,11 @@ declare module 'stripe' {
5790
5815
  */
5791
5816
  setup_future_usage?: Stripe.Emptyable<AcssDebit.SetupFutureUsage>;
5792
5817
 
5818
+ /**
5819
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
5820
+ */
5821
+ target_date?: string;
5822
+
5793
5823
  /**
5794
5824
  * Bank account verification method.
5795
5825
  */
@@ -5960,6 +5990,11 @@ declare module 'stripe' {
5960
5990
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
5961
5991
  */
5962
5992
  setup_future_usage?: Stripe.Emptyable<AuBecsDebit.SetupFutureUsage>;
5993
+
5994
+ /**
5995
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
5996
+ */
5997
+ target_date?: string;
5963
5998
  }
5964
5999
 
5965
6000
  namespace AuBecsDebit {
@@ -5984,6 +6019,11 @@ declare module 'stripe' {
5984
6019
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
5985
6020
  */
5986
6021
  setup_future_usage?: Stripe.Emptyable<BacsDebit.SetupFutureUsage>;
6022
+
6023
+ /**
6024
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
6025
+ */
6026
+ target_date?: string;
5987
6027
  }
5988
6028
 
5989
6029
  namespace BacsDebit {
@@ -7327,6 +7367,11 @@ declare module 'stripe' {
7327
7367
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
7328
7368
  */
7329
7369
  setup_future_usage?: Stripe.Emptyable<SepaDebit.SetupFutureUsage>;
7370
+
7371
+ /**
7372
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
7373
+ */
7374
+ target_date?: string;
7330
7375
  }
7331
7376
 
7332
7377
  namespace SepaDebit {
@@ -7459,6 +7504,11 @@ declare module 'stripe' {
7459
7504
  */
7460
7505
  setup_future_usage?: Stripe.Emptyable<UsBankAccount.SetupFutureUsage>;
7461
7506
 
7507
+ /**
7508
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
7509
+ */
7510
+ target_date?: string;
7511
+
7462
7512
  /**
7463
7513
  * Bank account verification method.
7464
7514
  */
@@ -10333,6 +10383,11 @@ declare module 'stripe' {
10333
10383
  */
10334
10384
  setup_future_usage?: Stripe.Emptyable<AcssDebit.SetupFutureUsage>;
10335
10385
 
10386
+ /**
10387
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
10388
+ */
10389
+ target_date?: string;
10390
+
10336
10391
  /**
10337
10392
  * Bank account verification method.
10338
10393
  */
@@ -10503,6 +10558,11 @@ declare module 'stripe' {
10503
10558
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
10504
10559
  */
10505
10560
  setup_future_usage?: Stripe.Emptyable<AuBecsDebit.SetupFutureUsage>;
10561
+
10562
+ /**
10563
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
10564
+ */
10565
+ target_date?: string;
10506
10566
  }
10507
10567
 
10508
10568
  namespace AuBecsDebit {
@@ -10527,6 +10587,11 @@ declare module 'stripe' {
10527
10587
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
10528
10588
  */
10529
10589
  setup_future_usage?: Stripe.Emptyable<BacsDebit.SetupFutureUsage>;
10590
+
10591
+ /**
10592
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
10593
+ */
10594
+ target_date?: string;
10530
10595
  }
10531
10596
 
10532
10597
  namespace BacsDebit {
@@ -11870,6 +11935,11 @@ declare module 'stripe' {
11870
11935
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
11871
11936
  */
11872
11937
  setup_future_usage?: Stripe.Emptyable<SepaDebit.SetupFutureUsage>;
11938
+
11939
+ /**
11940
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
11941
+ */
11942
+ target_date?: string;
11873
11943
  }
11874
11944
 
11875
11945
  namespace SepaDebit {
@@ -12002,6 +12072,11 @@ declare module 'stripe' {
12002
12072
  */
12003
12073
  setup_future_usage?: Stripe.Emptyable<UsBankAccount.SetupFutureUsage>;
12004
12074
 
12075
+ /**
12076
+ * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
12077
+ */
12078
+ target_date?: string;
12079
+
12005
12080
  /**
12006
12081
  * Bank account verification method.
12007
12082
  */
@@ -111,6 +111,11 @@ declare module 'stripe' {
111
111
  */
112
112
  custom_unit_amount?: DefaultPriceData.CustomUnitAmount;
113
113
 
114
+ /**
115
+ * 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`.
116
+ */
117
+ metadata?: Stripe.MetadataParam;
118
+
114
119
  /**
115
120
  * The recurring components of a price such as `interval` and `interval_count`.
116
121
  */
@@ -446,7 +446,7 @@ declare module 'stripe' {
446
446
  percentage_decimal: string;
447
447
 
448
448
  /**
449
- * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
449
+ * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
450
450
  */
451
451
  rate_type: TaxRateDetails.RateType | null;
452
452
 
@@ -86,7 +86,7 @@ declare module 'stripe' {
86
86
  percentage: number;
87
87
 
88
88
  /**
89
- * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
89
+ * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax.
90
90
  */
91
91
  rate_type: TaxRate.RateType | null;
92
92
 
@@ -50,6 +50,33 @@ declare module 'stripe' {
50
50
  }
51
51
  }
52
52
 
53
+ namespace Terminal {
54
+ interface ReaderSucceedInputCollectionParams {
55
+ /**
56
+ * Specifies which fields in the response should be expanded.
57
+ */
58
+ expand?: Array<string>;
59
+
60
+ /**
61
+ * Skip behavior for input collection.
62
+ */
63
+ skip_non_required_inputs?: ReaderSucceedInputCollectionParams.SkipNonRequiredInputs;
64
+ }
65
+
66
+ namespace ReaderSucceedInputCollectionParams {
67
+ type SkipNonRequiredInputs = 'all' | 'none';
68
+ }
69
+ }
70
+
71
+ namespace Terminal {
72
+ interface ReaderTimeoutInputCollectionParams {
73
+ /**
74
+ * Specifies which fields in the response should be expanded.
75
+ */
76
+ expand?: Array<string>;
77
+ }
78
+ }
79
+
53
80
  namespace Terminal {
54
81
  class ReadersResource {
55
82
  /**
@@ -64,6 +91,32 @@ declare module 'stripe' {
64
91
  id: string,
65
92
  options?: RequestOptions
66
93
  ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
94
+
95
+ /**
96
+ * Succeeds an input collection on a simulated reader. Can be used to simulate collecting inputs.
97
+ */
98
+ succeedInputCollection(
99
+ id: string,
100
+ params?: ReaderSucceedInputCollectionParams,
101
+ options?: RequestOptions
102
+ ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
103
+ succeedInputCollection(
104
+ id: string,
105
+ options?: RequestOptions
106
+ ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
107
+
108
+ /**
109
+ * Completes an input collection with a timeout error on a simulated reader.
110
+ */
111
+ timeoutInputCollection(
112
+ id: string,
113
+ params?: ReaderTimeoutInputCollectionParams,
114
+ options?: RequestOptions
115
+ ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
116
+ timeoutInputCollection(
117
+ id: string,
118
+ options?: RequestOptions
119
+ ): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
67
120
  }
68
121
  }
69
122
  }
@@ -719,7 +719,7 @@ declare module 'stripe' {
719
719
  /**
720
720
  * Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
721
721
  */
722
- political_exposure?: Person.PoliticalExposure;
722
+ political_exposure?: string;
723
723
 
724
724
  /**
725
725
  * The person's registered address.
@@ -826,8 +826,6 @@ declare module 'stripe' {
826
826
  }
827
827
  }
828
828
 
829
- type PoliticalExposure = 'existing' | 'none';
830
-
831
829
  interface Relationship {
832
830
  /**
833
831
  * Whether the person is the authorizer of the account's representative.
@@ -147,7 +147,8 @@ declare module 'stripe' {
147
147
  | '2024-10-28.acacia'
148
148
  | '2024-11-20.acacia'
149
149
  | '2024-12-18.acacia'
150
- | '2025-01-27.acacia';
150
+ | '2025-01-27.acacia'
151
+ | '2025-02-24.acacia';
151
152
 
152
153
  type EnabledEvent =
153
154
  | '*'
package/types/lib.d.ts CHANGED
@@ -27,7 +27,7 @@ declare module 'stripe' {
27
27
  }): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
28
28
  static MAX_BUFFERED_REQUEST_METRICS: number;
29
29
  }
30
- export type LatestApiVersion = '2025-01-27.acacia';
30
+ export type LatestApiVersion = '2025-02-24.acacia';
31
31
  export type HttpAgent = Agent;
32
32
  export type HttpProtocol = 'http' | 'https';
33
33
 
@@ -9,7 +9,7 @@
9
9
  import Stripe from 'stripe';
10
10
 
11
11
  let stripe = new Stripe('sk_test_123', {
12
- apiVersion: '2025-01-27.acacia',
12
+ apiVersion: '2025-02-24.acacia',
13
13
  });
14
14
 
15
15
  stripe = new Stripe('sk_test_123');
@@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {
26
26
 
27
27
  // Check config object.
28
28
  stripe = new Stripe('sk_test_123', {
29
- apiVersion: '2025-01-27.acacia',
29
+ apiVersion: '2025-02-24.acacia',
30
30
  typescript: true,
31
31
  maxNetworkRetries: 1,
32
32
  timeout: 1000,
@@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
44
44
  description: 'test',
45
45
  };
46
46
  const opts: Stripe.RequestOptions = {
47
- apiVersion: '2025-01-27.acacia',
47
+ apiVersion: '2025-02-24.acacia',
48
48
  };
49
49
  const customer: Stripe.Customer = await stripe.customers.create(params, opts);
50
50