stripe 17.6.0 → 17.7.0

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,4 +1,19 @@
1
1
  # Changelog
2
+ ## 17.7.0 - 2025-02-24
3
+ * [#2256](https://github.com/stripe/stripe-node/pull/2256) Update generated code
4
+ * Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
5
+ * 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
6
+ * Add support for `priority` on `Billing.CreditGrantCreateParams` and `Billing.CreditGrant`
7
+ * 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`
8
+ * Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
9
+ * Add support for `collected_information` on `Checkout.SessionUpdateParams` and `Checkout.Session`
10
+ * Change `Checkout.Session.discounts`, `Refund.destination_details.blik.network_decline_code`, and `Refund.destination_details.swish.network_decline_code` to be required
11
+ * Add support for `metadata` on `ProductCreateParams.default_price_data`
12
+ * Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
13
+ * Add support for new value `2025-02-24.acacia` on enum `WebhookEndpointCreateParams.api_version`
14
+ * [#2259](https://github.com/stripe/stripe-node/pull/2259) Add Next.js App Router webhook example that leverages Route Handlers
15
+ * [#2257](https://github.com/stripe/stripe-node/pull/2257) Include `OPENAPI_VERSION` into npm bundle
16
+
2
17
  ## 17.6.0 - 2025-01-27
3
18
  * [#2250](https://github.com/stripe/stripe-node/pull/2250) Update generated code
4
19
  * Add support for `close` method on resource `Treasury.FinancialAccount`
@@ -0,0 +1 @@
1
+ v1505
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.6.0
1
+ 17.7.0
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';
@@ -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.6.0';
39
+ Stripe.PACKAGE_VERSION = '17.7.0';
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';
@@ -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.6.0';
36
+ Stripe.PACKAGE_VERSION = '17.7.0';
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.6.0",
3
+ "version": "17.7.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -67,17 +67,17 @@ declare module 'stripe' {
67
67
  namespace Available {
68
68
  interface SourceTypes {
69
69
  /**
70
- * Amount for bank account.
70
+ * Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
71
71
  */
72
72
  bank_account?: number;
73
73
 
74
74
  /**
75
- * Amount for card.
75
+ * Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
76
76
  */
77
77
  card?: number;
78
78
 
79
79
  /**
80
- * Amount for FPX.
80
+ * Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
81
81
  */
82
82
  fpx?: number;
83
83
  }
@@ -100,17 +100,17 @@ declare module 'stripe' {
100
100
  namespace ConnectReserved {
101
101
  interface SourceTypes {
102
102
  /**
103
- * Amount for bank account.
103
+ * Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
104
104
  */
105
105
  bank_account?: number;
106
106
 
107
107
  /**
108
- * Amount for card.
108
+ * Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
109
109
  */
110
110
  card?: number;
111
111
 
112
112
  /**
113
- * Amount for FPX.
113
+ * Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
114
114
  */
115
115
  fpx?: number;
116
116
  }
@@ -153,17 +153,17 @@ declare module 'stripe' {
153
153
  namespace NetAvailable {
154
154
  interface SourceTypes {
155
155
  /**
156
- * Amount for bank account.
156
+ * Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
157
157
  */
158
158
  bank_account?: number;
159
159
 
160
160
  /**
161
- * Amount for card.
161
+ * Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
162
162
  */
163
163
  card?: number;
164
164
 
165
165
  /**
166
- * Amount for FPX.
166
+ * Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
167
167
  */
168
168
  fpx?: number;
169
169
  }
@@ -171,17 +171,17 @@ declare module 'stripe' {
171
171
 
172
172
  interface SourceTypes {
173
173
  /**
174
- * Amount for bank account.
174
+ * Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
175
175
  */
176
176
  bank_account?: number;
177
177
 
178
178
  /**
179
- * Amount for card.
179
+ * Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
180
180
  */
181
181
  card?: number;
182
182
 
183
183
  /**
184
- * Amount for FPX.
184
+ * Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
185
185
  */
186
186
  fpx?: number;
187
187
  }
@@ -212,17 +212,17 @@ declare module 'stripe' {
212
212
  namespace Available {
213
213
  interface SourceTypes {
214
214
  /**
215
- * Amount for bank account.
215
+ * Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
216
216
  */
217
217
  bank_account?: number;
218
218
 
219
219
  /**
220
- * Amount for card.
220
+ * Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
221
221
  */
222
222
  card?: number;
223
223
 
224
224
  /**
225
- * Amount for FPX.
225
+ * Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
226
226
  */
227
227
  fpx?: number;
228
228
  }
@@ -246,17 +246,17 @@ declare module 'stripe' {
246
246
  namespace Pending {
247
247
  interface SourceTypes {
248
248
  /**
249
- * Amount for bank account.
249
+ * Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
250
250
  */
251
251
  bank_account?: number;
252
252
 
253
253
  /**
254
- * Amount for card.
254
+ * Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
255
255
  */
256
256
  card?: number;
257
257
 
258
258
  /**
259
- * Amount for FPX.
259
+ * Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
260
260
  */
261
261
  fpx?: number;
262
262
  }
@@ -43,7 +43,21 @@ 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
+
48
+ /**
49
+ * A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
50
+ */
51
+ prices?: Array<ApplicabilityScope.Price>;
52
+ }
53
+
54
+ namespace ApplicabilityScope {
55
+ interface Price {
56
+ /**
57
+ * The price ID this credit grant should apply to.
58
+ */
59
+ id: string;
60
+ }
47
61
  }
48
62
 
49
63
  type Type = 'applicability_scope' | 'credit_grant';
@@ -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
  */
@@ -115,7 +120,21 @@ declare module 'stripe' {
115
120
  /**
116
121
  * The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
117
122
  */
118
- price_type: 'metered';
123
+ price_type?: 'metered';
124
+
125
+ /**
126
+ * The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
127
+ */
128
+ prices?: Array<Scope.Price>;
129
+ }
130
+
131
+ namespace Scope {
132
+ interface Price {
133
+ /**
134
+ * Unique identifier for the object.
135
+ */
136
+ id: string | null;
137
+ }
119
138
  }
120
139
  }
121
140
 
@@ -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,21 @@ 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';
98
+
99
+ /**
100
+ * A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
101
+ */
102
+ prices?: Array<Scope.Price>;
103
+ }
104
+
105
+ namespace Scope {
106
+ interface Price {
107
+ /**
108
+ * The price ID this credit grant should apply to.
109
+ */
110
+ id: string;
111
+ }
93
112
  }
94
113
  }
95
114
 
@@ -6,6 +6,8 @@ declare module 'stripe' {
6
6
  /**
7
7
  * A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much
8
8
  * usage was accrued by a customer for that period.
9
+ *
10
+ * Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
9
11
  */
10
12
  interface MeterEventSummary {
11
13
  /**
@@ -483,7 +483,7 @@ declare module 'stripe' {
483
483
  twint?: PaymentMethodDetails.Twint;
484
484
 
485
485
  /**
486
- * 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`.
486
+ * 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.
487
487
  * An additional hash is included on `payment_method_details` with a name matching this value.
488
488
  * It contains information specific to the payment method.
489
489
  */
@@ -889,7 +889,7 @@ declare module 'stripe' {
889
889
  network_token?: Card.NetworkToken | null;
890
890
 
891
891
  /**
892
- * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
892
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
893
893
  */
894
894
  network_transaction_id: string | null;
895
895
 
@@ -1274,7 +1274,7 @@ declare module 'stripe' {
1274
1274
  network: string | null;
1275
1275
 
1276
1276
  /**
1277
- * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
1277
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
1278
1278
  */
1279
1279
  network_transaction_id: string | null;
1280
1280
 
@@ -1671,7 +1671,7 @@ declare module 'stripe' {
1671
1671
  network: string | null;
1672
1672
 
1673
1673
  /**
1674
- * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
1674
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
1675
1675
  */
1676
1676
  network_transaction_id: string | null;
1677
1677
 
@@ -79,6 +79,11 @@ declare module 'stripe' {
79
79
  */
80
80
  client_secret: string | null;
81
81
 
82
+ /**
83
+ * Information about the customer collected within the Checkout Session.
84
+ */
85
+ collected_information?: Session.CollectedInformation | null;
86
+
82
87
  /**
83
88
  * Results of `consent_collection` for this session.
84
89
  */
@@ -142,7 +147,7 @@ declare module 'stripe' {
142
147
  /**
143
148
  * List of coupons and promotion codes attached to the Checkout Session.
144
149
  */
145
- discounts?: Array<Session.Discount> | null;
150
+ discounts: Array<Session.Discount> | null;
146
151
 
147
152
  /**
148
153
  * The timestamp at which the Checkout Session will expire.
@@ -390,6 +395,39 @@ declare module 'stripe' {
390
395
 
391
396
  type BillingAddressCollection = 'auto' | 'required';
392
397
 
398
+ interface CollectedInformation {
399
+ /**
400
+ * Shipping information for this Checkout Session.
401
+ */
402
+ shipping_details?: CollectedInformation.ShippingDetails | null;
403
+ }
404
+
405
+ namespace CollectedInformation {
406
+ interface ShippingDetails {
407
+ address?: Stripe.Address;
408
+
409
+ /**
410
+ * The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
411
+ */
412
+ carrier?: string | null;
413
+
414
+ /**
415
+ * Recipient name.
416
+ */
417
+ name?: string;
418
+
419
+ /**
420
+ * Recipient phone (including extension).
421
+ */
422
+ phone?: string | null;
423
+
424
+ /**
425
+ * The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
426
+ */
427
+ tracking_number?: string | null;
428
+ }
429
+ }
430
+
393
431
  interface Consent {
394
432
  /**
395
433
  * If `opt_in`, the customer consents to receiving promotional communications
@@ -1045,6 +1083,11 @@ declare module 'stripe' {
1045
1083
  */
1046
1084
  setup_future_usage?: AcssDebit.SetupFutureUsage;
1047
1085
 
1086
+ /**
1087
+ * 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.
1088
+ */
1089
+ target_date?: string;
1090
+
1048
1091
  /**
1049
1092
  * Bank account verification method.
1050
1093
  */
@@ -1161,6 +1204,11 @@ declare module 'stripe' {
1161
1204
  * 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).
1162
1205
  */
1163
1206
  setup_future_usage?: 'none';
1207
+
1208
+ /**
1209
+ * 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.
1210
+ */
1211
+ target_date?: string;
1164
1212
  }
1165
1213
 
1166
1214
  interface BacsDebit {
@@ -1176,6 +1224,11 @@ declare module 'stripe' {
1176
1224
  * 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).
1177
1225
  */
1178
1226
  setup_future_usage?: BacsDebit.SetupFutureUsage;
1227
+
1228
+ /**
1229
+ * 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.
1230
+ */
1231
+ target_date?: string;
1179
1232
  }
1180
1233
 
1181
1234
  namespace BacsDebit {
@@ -1252,6 +1305,8 @@ declare module 'stripe' {
1252
1305
  */
1253
1306
  request_three_d_secure: Card.RequestThreeDSecure;
1254
1307
 
1308
+ restrictions?: Card.Restrictions;
1309
+
1255
1310
  /**
1256
1311
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1257
1312
  *
@@ -1292,6 +1347,21 @@ declare module 'stripe' {
1292
1347
 
1293
1348
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1294
1349
 
1350
+ interface Restrictions {
1351
+ /**
1352
+ * Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
1353
+ */
1354
+ brands_blocked?: Array<Restrictions.BrandsBlocked>;
1355
+ }
1356
+
1357
+ namespace Restrictions {
1358
+ type BrandsBlocked =
1359
+ | 'american_express'
1360
+ | 'discover_global_network'
1361
+ | 'mastercard'
1362
+ | 'visa';
1363
+ }
1364
+
1295
1365
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
1296
1366
  }
1297
1367
 
@@ -1698,6 +1768,11 @@ declare module 'stripe' {
1698
1768
  * 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).
1699
1769
  */
1700
1770
  setup_future_usage?: SepaDebit.SetupFutureUsage;
1771
+
1772
+ /**
1773
+ * 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.
1774
+ */
1775
+ target_date?: string;
1701
1776
  }
1702
1777
 
1703
1778
  namespace SepaDebit {
@@ -1745,6 +1820,11 @@ declare module 'stripe' {
1745
1820
  */
1746
1821
  setup_future_usage?: UsBankAccount.SetupFutureUsage;
1747
1822
 
1823
+ /**
1824
+ * 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.
1825
+ */
1826
+ target_date?: string;
1827
+
1748
1828
  /**
1749
1829
  * Bank account verification method.
1750
1830
  */
@@ -2121,9 +2201,9 @@ declare module 'stripe' {
2121
2201
  amount: number;
2122
2202
 
2123
2203
  /**
2124
- * Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
2204
+ * Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
2125
2205
  *
2126
- * Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
2206
+ * Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
2127
2207
  */
2128
2208
  rate: Stripe.TaxRate;
2129
2209
 
@@ -2269,9 +2349,9 @@ declare module 'stripe' {
2269
2349
  amount: number;
2270
2350
 
2271
2351
  /**
2272
- * Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
2352
+ * Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
2273
2353
  *
2274
- * Related guide: [Tax rates](https://stripe.com/docs/billing/taxes/tax-rates)
2354
+ * Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
2275
2355
  */
2276
2356
  rate: Stripe.TaxRate;
2277
2357