stripe 16.4.0 → 16.5.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,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 16.5.0 - 2024-07-25
4
+ * [#2143](https://github.com/stripe/stripe-node/pull/2143) Update generated code
5
+ * Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components`
6
+ * [#2140](https://github.com/stripe/stripe-node/pull/2140) Update generated code
7
+ * Add support for `update` method on resource `Checkout.Session`
8
+ * Add support for `transaction_id` on `Charge.payment_method_details.affirm`
9
+ * Add support for `buyer_id` on `Charge.payment_method_details.blik`
10
+ * Add support for `authorization_code` on `Charge.payment_method_details.card`
11
+ * Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
12
+ * Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present`
13
+ * Add support for `case_type` on `Dispute.payment_method_details.card`
14
+ * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enum `Event.type`
15
+ * Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
16
+ * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
17
+
3
18
  ## 16.4.0 - 2024-07-18
4
19
  * [#2138](https://github.com/stripe/stripe-node/pull/2138) Update generated code
5
20
  * Add support for `customer` on `ConfirmationToken.payment_method_preview`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 16.4.0
1
+ 16.5.0
@@ -10,6 +10,10 @@ exports.Sessions = StripeResource_js_1.StripeResource.extend({
10
10
  method: 'GET',
11
11
  fullPath: '/v1/checkout/sessions/{session}',
12
12
  }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/checkout/sessions/{session}',
16
+ }),
13
17
  list: stripeMethod({
14
18
  method: 'GET',
15
19
  fullPath: '/v1/checkout/sessions',
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
34
34
  ];
35
35
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
36
36
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
37
- Stripe.PACKAGE_VERSION = '16.4.0';
37
+ Stripe.PACKAGE_VERSION = '16.5.0';
38
38
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
39
39
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
40
40
  Stripe.resources = resources;
@@ -7,6 +7,10 @@ export const Sessions = StripeResource.extend({
7
7
  method: 'GET',
8
8
  fullPath: '/v1/checkout/sessions/{session}',
9
9
  }),
10
+ update: stripeMethod({
11
+ method: 'POST',
12
+ fullPath: '/v1/checkout/sessions/{session}',
13
+ }),
10
14
  list: stripeMethod({
11
15
  method: 'GET',
12
16
  fullPath: '/v1/checkout/sessions',
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
31
31
  ];
32
32
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
33
33
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
34
- Stripe.PACKAGE_VERSION = '16.4.0';
34
+ Stripe.PACKAGE_VERSION = '16.5.0';
35
35
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
36
36
  Stripe.StripeResource = StripeResource;
37
37
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "16.4.0",
3
+ "version": "16.5.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -63,6 +63,10 @@ declare module 'stripe' {
63
63
  payouts: Components.Payouts;
64
64
 
65
65
  payouts_list: Components.PayoutsList;
66
+
67
+ tax_registrations: Components.TaxRegistrations;
68
+
69
+ tax_settings: Components.TaxSettings;
66
70
  }
67
71
 
68
72
  namespace Components {
@@ -277,6 +281,32 @@ declare module 'stripe' {
277
281
  namespace PayoutsList {
278
282
  interface Features {}
279
283
  }
284
+
285
+ interface TaxRegistrations {
286
+ /**
287
+ * Whether the embedded component is enabled.
288
+ */
289
+ enabled: boolean;
290
+
291
+ features: TaxRegistrations.Features;
292
+ }
293
+
294
+ namespace TaxRegistrations {
295
+ interface Features {}
296
+ }
297
+
298
+ interface TaxSettings {
299
+ /**
300
+ * Whether the embedded component is enabled.
301
+ */
302
+ enabled: boolean;
303
+
304
+ features: TaxSettings.Features;
305
+ }
306
+
307
+ namespace TaxSettings {
308
+ interface Features {}
309
+ }
280
310
  }
281
311
  }
282
312
  }
@@ -65,6 +65,16 @@ declare module 'stripe' {
65
65
  * Configuration for the payouts list embedded component.
66
66
  */
67
67
  payouts_list?: Components.PayoutsList;
68
+
69
+ /**
70
+ * Configuration for the tax registrations embedded component.
71
+ */
72
+ tax_registrations?: Components.TaxRegistrations;
73
+
74
+ /**
75
+ * Configuration for the tax settings embedded component.
76
+ */
77
+ tax_settings?: Components.TaxSettings;
68
78
  }
69
79
 
70
80
  namespace Components {
@@ -306,6 +316,38 @@ declare module 'stripe' {
306
316
  namespace PayoutsList {
307
317
  interface Features {}
308
318
  }
319
+
320
+ interface TaxRegistrations {
321
+ /**
322
+ * Whether the embedded component is enabled.
323
+ */
324
+ enabled: boolean;
325
+
326
+ /**
327
+ * The list of features enabled in the embedded component.
328
+ */
329
+ features?: TaxRegistrations.Features;
330
+ }
331
+
332
+ namespace TaxRegistrations {
333
+ interface Features {}
334
+ }
335
+
336
+ interface TaxSettings {
337
+ /**
338
+ * Whether the embedded component is enabled.
339
+ */
340
+ enabled: boolean;
341
+
342
+ /**
343
+ * The list of features enabled in the embedded component.
344
+ */
345
+ features?: TaxSettings.Features;
346
+ }
347
+
348
+ namespace TaxSettings {
349
+ interface Features {}
350
+ }
309
351
  }
310
352
  }
311
353
 
@@ -132,7 +132,7 @@ declare module 'stripe' {
132
132
  estimated_worker_count: number | null;
133
133
 
134
134
  /**
135
- * [The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
135
+ * [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
136
136
  */
137
137
  mcc: string | null;
138
138
 
@@ -177,7 +177,7 @@ declare module 'stripe' {
177
177
  namespace BusinessProfile {
178
178
  interface AnnualRevenue {
179
179
  /**
180
- * A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
180
+ * A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
181
181
  */
182
182
  amount: number | null;
183
183
 
@@ -194,7 +194,7 @@ declare module 'stripe' {
194
194
 
195
195
  interface MonthlyEstimatedRevenue {
196
196
  /**
197
- * A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
197
+ * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
198
198
  */
199
199
  amount: number;
200
200
 
@@ -111,7 +111,7 @@ declare module 'stripe' {
111
111
  estimated_worker_count?: number;
112
112
 
113
113
  /**
114
- * [The merchant category code for the account](https://docs.stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
114
+ * [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
115
115
  */
116
116
  mcc?: string;
117
117
 
@@ -159,7 +159,7 @@ declare module 'stripe' {
159
159
  namespace BusinessProfile {
160
160
  interface AnnualRevenue {
161
161
  /**
162
- * A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
162
+ * A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
163
163
  */
164
164
  amount: number;
165
165
 
@@ -176,7 +176,7 @@ declare module 'stripe' {
176
176
 
177
177
  interface MonthlyEstimatedRevenue {
178
178
  /**
179
- * A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
179
+ * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
180
180
  */
181
181
  amount: number;
182
182
 
@@ -778,12 +778,12 @@ declare module 'stripe' {
778
778
  address_kanji?: Stripe.JapanAddressParam;
779
779
 
780
780
  /**
781
- * Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
781
+ * Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
782
782
  */
783
783
  directors_provided?: boolean;
784
784
 
785
785
  /**
786
- * Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
786
+ * Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
787
787
  */
788
788
  executives_provided?: boolean;
789
789
 
@@ -813,7 +813,7 @@ declare module 'stripe' {
813
813
  name_kanji?: string;
814
814
 
815
815
  /**
816
- * Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
816
+ * Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
817
817
  */
818
818
  owners_provided?: boolean;
819
819
 
@@ -833,7 +833,7 @@ declare module 'stripe' {
833
833
  registration_number?: string;
834
834
 
835
835
  /**
836
- * The category identifying the legal structure of the company or legal entity. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
836
+ * The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
837
837
  */
838
838
  structure?: Stripe.Emptyable<Company.Structure>;
839
839
 
@@ -1159,12 +1159,12 @@ declare module 'stripe' {
1159
1159
  gender?: string;
1160
1160
 
1161
1161
  /**
1162
- * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
1162
+ * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/js/tokens/create_token?type=pii).
1163
1163
  */
1164
1164
  id_number?: string;
1165
1165
 
1166
1166
  /**
1167
- * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
1167
+ * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/js/tokens/create_token?type=pii).
1168
1168
  */
1169
1169
  id_number_secondary?: string;
1170
1170
 
@@ -1379,7 +1379,7 @@ declare module 'stripe' {
1379
1379
 
1380
1380
  interface CardIssuing {
1381
1381
  /**
1382
- * Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://docs.stripe.com/issuing/connect/tos_acceptance).
1382
+ * Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/issuing/connect/tos_acceptance).
1383
1383
  */
1384
1384
  tos_acceptance?: CardIssuing.TosAcceptance;
1385
1385
  }
@@ -1458,12 +1458,12 @@ declare module 'stripe' {
1458
1458
 
1459
1459
  interface Payouts {
1460
1460
  /**
1461
- * A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
1461
+ * A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://stripe.com/connect/account-balances).
1462
1462
  */
1463
1463
  debit_negative_balances?: boolean;
1464
1464
 
1465
1465
  /**
1466
- * Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation.
1466
+ * Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://stripe.com/connect/bank-transfers#payout-information) documentation.
1467
1467
  */
1468
1468
  schedule?: Payouts.Schedule;
1469
1469
 
@@ -1476,7 +1476,7 @@ declare module 'stripe' {
1476
1476
  namespace Payouts {
1477
1477
  interface Schedule {
1478
1478
  /**
1479
- * The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
1479
+ * The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://stripe.com/connect/manage-payout-schedule).
1480
1480
  */
1481
1481
  delay_days?: 'minimum' | number;
1482
1482
 
@@ -1706,7 +1706,7 @@ declare module 'stripe' {
1706
1706
  estimated_worker_count?: number;
1707
1707
 
1708
1708
  /**
1709
- * [The merchant category code for the account](https://docs.stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
1709
+ * [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
1710
1710
  */
1711
1711
  mcc?: string;
1712
1712
 
@@ -1754,7 +1754,7 @@ declare module 'stripe' {
1754
1754
  namespace BusinessProfile {
1755
1755
  interface AnnualRevenue {
1756
1756
  /**
1757
- * A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
1757
+ * A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
1758
1758
  */
1759
1759
  amount: number;
1760
1760
 
@@ -1771,7 +1771,7 @@ declare module 'stripe' {
1771
1771
 
1772
1772
  interface MonthlyEstimatedRevenue {
1773
1773
  /**
1774
- * A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
1774
+ * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
1775
1775
  */
1776
1776
  amount: number;
1777
1777
 
@@ -2416,12 +2416,12 @@ declare module 'stripe' {
2416
2416
  address_kanji?: Stripe.JapanAddressParam;
2417
2417
 
2418
2418
  /**
2419
- * Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
2419
+ * Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
2420
2420
  */
2421
2421
  directors_provided?: boolean;
2422
2422
 
2423
2423
  /**
2424
- * Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
2424
+ * Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
2425
2425
  */
2426
2426
  executives_provided?: boolean;
2427
2427
 
@@ -2451,7 +2451,7 @@ declare module 'stripe' {
2451
2451
  name_kanji?: string;
2452
2452
 
2453
2453
  /**
2454
- * Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
2454
+ * Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
2455
2455
  */
2456
2456
  owners_provided?: boolean;
2457
2457
 
@@ -2471,7 +2471,7 @@ declare module 'stripe' {
2471
2471
  registration_number?: string;
2472
2472
 
2473
2473
  /**
2474
- * The category identifying the legal structure of the company or legal entity. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
2474
+ * The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
2475
2475
  */
2476
2476
  structure?: Stripe.Emptyable<Company.Structure>;
2477
2477
 
@@ -2701,12 +2701,12 @@ declare module 'stripe' {
2701
2701
  gender?: string;
2702
2702
 
2703
2703
  /**
2704
- * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
2704
+ * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/js/tokens/create_token?type=pii).
2705
2705
  */
2706
2706
  id_number?: string;
2707
2707
 
2708
2708
  /**
2709
- * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
2709
+ * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/js/tokens/create_token?type=pii).
2710
2710
  */
2711
2711
  id_number_secondary?: string;
2712
2712
 
@@ -2926,7 +2926,7 @@ declare module 'stripe' {
2926
2926
 
2927
2927
  interface CardIssuing {
2928
2928
  /**
2929
- * Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://docs.stripe.com/issuing/connect/tos_acceptance).
2929
+ * Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/issuing/connect/tos_acceptance).
2930
2930
  */
2931
2931
  tos_acceptance?: CardIssuing.TosAcceptance;
2932
2932
  }
@@ -3012,12 +3012,12 @@ declare module 'stripe' {
3012
3012
 
3013
3013
  interface Payouts {
3014
3014
  /**
3015
- * A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
3015
+ * A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://stripe.com/connect/account-balances).
3016
3016
  */
3017
3017
  debit_negative_balances?: boolean;
3018
3018
 
3019
3019
  /**
3020
- * Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation.
3020
+ * Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://stripe.com/connect/bank-transfers#payout-information) documentation.
3021
3021
  */
3022
3022
  schedule?: Payouts.Schedule;
3023
3023
 
@@ -3030,7 +3030,7 @@ declare module 'stripe' {
3030
3030
  namespace Payouts {
3031
3031
  interface Schedule {
3032
3032
  /**
3033
- * The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
3033
+ * The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](https://stripe.com/connect/manage-payout-schedule).
3034
3034
  */
3035
3035
  delay_days?: 'minimum' | number;
3036
3036
 
@@ -553,7 +553,12 @@ declare module 'stripe' {
553
553
  transit_number: string | null;
554
554
  }
555
555
 
556
- interface Affirm {}
556
+ interface Affirm {
557
+ /**
558
+ * The Affirm transaction ID associated with this payment.
559
+ */
560
+ transaction_id: string | null;
561
+ }
557
562
 
558
563
  interface AfterpayClearpay {
559
564
  /**
@@ -678,7 +683,12 @@ declare module 'stripe' {
678
683
  type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
679
684
  }
680
685
 
681
- interface Blik {}
686
+ interface Blik {
687
+ /**
688
+ * A unique and immutable identifier assigned by BLIK to every buyer.
689
+ */
690
+ buyer_id: string | null;
691
+ }
682
692
 
683
693
  interface Boleto {
684
694
  /**
@@ -693,6 +703,11 @@ declare module 'stripe' {
693
703
  */
694
704
  amount_authorized: number | null;
695
705
 
706
+ /**
707
+ * Authorization code on the charge.
708
+ */
709
+ authorization_code?: string | null;
710
+
696
711
  /**
697
712
  * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
698
713
  */
@@ -1079,6 +1094,11 @@ declare module 'stripe' {
1079
1094
  */
1080
1095
  brand: string | null;
1081
1096
 
1097
+ /**
1098
+ * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
1099
+ */
1100
+ brand_product: string | null;
1101
+
1082
1102
  /**
1083
1103
  * When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
1084
1104
  */
@@ -1156,6 +1176,14 @@ declare module 'stripe' {
1156
1176
  */
1157
1177
  network: string | null;
1158
1178
 
1179
+ /**
1180
+ * This is used by the financial networks to identify a transaction.
1181
+ * Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
1182
+ * 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).
1183
+ * This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
1184
+ */
1185
+ network_transaction_id: string | null;
1186
+
1159
1187
  /**
1160
1188
  * Details about payments collected offline.
1161
1189
  */
@@ -1530,6 +1558,14 @@ declare module 'stripe' {
1530
1558
  */
1531
1559
  network: string | null;
1532
1560
 
1561
+ /**
1562
+ * This is used by the financial networks to identify a transaction.
1563
+ * Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
1564
+ * 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).
1565
+ * This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
1566
+ */
1567
+ network_transaction_id: string | null;
1568
+
1533
1569
  /**
1534
1570
  * EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
1535
1571
  */
@@ -2429,6 +2429,18 @@ declare module 'stripe' {
2429
2429
  expand?: Array<string>;
2430
2430
  }
2431
2431
 
2432
+ interface SessionUpdateParams {
2433
+ /**
2434
+ * Specifies which fields in the response should be expanded.
2435
+ */
2436
+ expand?: Array<string>;
2437
+
2438
+ /**
2439
+ * 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`.
2440
+ */
2441
+ metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
2442
+ }
2443
+
2432
2444
  interface SessionListParams extends PaginationParams {
2433
2445
  /**
2434
2446
  * Only return Checkout Sessions that were created during the given date interval.
@@ -2521,6 +2533,15 @@ declare module 'stripe' {
2521
2533
  options?: RequestOptions
2522
2534
  ): Promise<Stripe.Response<Stripe.Checkout.Session>>;
2523
2535
 
2536
+ /**
2537
+ * Updates a Session object.
2538
+ */
2539
+ update(
2540
+ id: string,
2541
+ params?: SessionUpdateParams,
2542
+ options?: RequestOptions
2543
+ ): Promise<Stripe.Response<Stripe.Checkout.Session>>;
2544
+
2524
2545
  /**
2525
2546
  * Returns a list of Checkout Sessions.
2526
2547
  */
@@ -480,6 +480,11 @@ declare module 'stripe' {
480
480
  */
481
481
  brand: string | null;
482
482
 
483
+ /**
484
+ * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
485
+ */
486
+ brand_product: string | null;
487
+
483
488
  /**
484
489
  * When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
485
490
  */
@@ -557,6 +562,14 @@ declare module 'stripe' {
557
562
  */
558
563
  network: string | null;
559
564
 
565
+ /**
566
+ * This is used by the financial networks to identify a transaction.
567
+ * Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
568
+ * 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).
569
+ * This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
570
+ */
571
+ network_transaction_id: string | null;
572
+
560
573
  /**
561
574
  * Details about payments collected offline.
562
575
  */
@@ -773,6 +786,11 @@ declare module 'stripe' {
773
786
  */
774
787
  brand: string | null;
775
788
 
789
+ /**
790
+ * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
791
+ */
792
+ brand_product: string | null;
793
+
776
794
  /**
777
795
  * The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
778
796
  */
@@ -267,12 +267,21 @@ declare module 'stripe' {
267
267
  */
268
268
  brand: string;
269
269
 
270
+ /**
271
+ * The type of dispute opened. Different case types may have varying fees and financial impact.
272
+ */
273
+ case_type: Card.CaseType;
274
+
270
275
  /**
271
276
  * 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.
272
277
  */
273
278
  network_reason_code: string | null;
274
279
  }
275
280
 
281
+ namespace Card {
282
+ type CaseType = 'chargeback' | 'inquiry';
283
+ }
284
+
276
285
  interface Klarna {
277
286
  /**
278
287
  * The reason for the dispute as defined by Klarna
@@ -90,6 +90,7 @@ declare module 'stripe' {
90
90
  | InvoiceFinalizationFailedEvent
91
91
  | InvoiceFinalizedEvent
92
92
  | InvoiceMarkedUncollectibleEvent
93
+ | InvoiceOverdueEvent
93
94
  | InvoicePaidEvent
94
95
  | InvoicePaymentActionRequiredEvent
95
96
  | InvoicePaymentFailedEvent
@@ -98,6 +99,7 @@ declare module 'stripe' {
98
99
  | InvoiceUpcomingEvent
99
100
  | InvoiceUpdatedEvent
100
101
  | InvoiceVoidedEvent
102
+ | InvoiceWillBeDueEvent
101
103
  | InvoiceItemCreatedEvent
102
104
  | InvoiceItemDeletedEvent
103
105
  | IssuingAuthorizationCreatedEvent
@@ -1636,6 +1638,22 @@ declare module 'stripe' {
1636
1638
  }
1637
1639
  }
1638
1640
 
1641
+ /**
1642
+ * Occurs X number of days after an invoice becomes due&mdash;where X is determined by Automations
1643
+ */
1644
+ interface InvoiceOverdueEvent extends EventBase {
1645
+ type: 'invoice.overdue';
1646
+ data: InvoiceOverdueEvent.Data;
1647
+ }
1648
+
1649
+ namespace InvoiceOverdueEvent {
1650
+ interface Data extends Stripe.Event.Data {
1651
+ object: Stripe.Invoice;
1652
+
1653
+ previous_attributes?: Partial<Stripe.Invoice>;
1654
+ }
1655
+ }
1656
+
1639
1657
  /**
1640
1658
  * Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid out-of-band.
1641
1659
  */
@@ -1764,6 +1782,22 @@ declare module 'stripe' {
1764
1782
  }
1765
1783
  }
1766
1784
 
1785
+ /**
1786
+ * Occurs X number of days before an invoice becomes due&mdash;where X is determined by Automations
1787
+ */
1788
+ interface InvoiceWillBeDueEvent extends EventBase {
1789
+ type: 'invoice.will_be_due';
1790
+ data: InvoiceWillBeDueEvent.Data;
1791
+ }
1792
+
1793
+ namespace InvoiceWillBeDueEvent {
1794
+ interface Data extends Stripe.Event.Data {
1795
+ object: Stripe.Invoice;
1796
+
1797
+ previous_attributes?: Partial<Stripe.Invoice>;
1798
+ }
1799
+ }
1800
+
1767
1801
  /**
1768
1802
  * Occurs whenever an invoice item is created.
1769
1803
  */
package/types/Events.d.ts CHANGED
@@ -121,6 +121,7 @@ declare module 'stripe' {
121
121
  | 'invoice.finalization_failed'
122
122
  | 'invoice.finalized'
123
123
  | 'invoice.marked_uncollectible'
124
+ | 'invoice.overdue'
124
125
  | 'invoice.paid'
125
126
  | 'invoice.payment_action_required'
126
127
  | 'invoice.payment_failed'
@@ -129,6 +130,7 @@ declare module 'stripe' {
129
130
  | 'invoice.upcoming'
130
131
  | 'invoice.updated'
131
132
  | 'invoice.voided'
133
+ | 'invoice.will_be_due'
132
134
  | 'invoiceitem.created'
133
135
  | 'invoiceitem.deleted'
134
136
  | 'issuing_authorization.created'
@@ -122,7 +122,7 @@ declare module 'stripe' {
122
122
  last_payment_error: PaymentIntent.LastPaymentError | null;
123
123
 
124
124
  /**
125
- * The latest charge created by this PaymentIntent.
125
+ * ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
126
126
  */
127
127
  latest_charge: string | Stripe.Charge | null;
128
128
 
@@ -131,6 +131,8 @@ declare module 'stripe' {
131
131
 
132
132
  swish?: PaymentMethodConfiguration.Swish;
133
133
 
134
+ twint?: PaymentMethodConfiguration.Twint;
135
+
134
136
  us_bank_account?: PaymentMethodConfiguration.UsBankAccount;
135
137
 
136
138
  wechat_pay?: PaymentMethodConfiguration.WechatPay;
@@ -1363,6 +1365,40 @@ declare module 'stripe' {
1363
1365
  }
1364
1366
  }
1365
1367
 
1368
+ interface Twint {
1369
+ /**
1370
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1371
+ */
1372
+ available: boolean;
1373
+
1374
+ display_preference: Twint.DisplayPreference;
1375
+ }
1376
+
1377
+ namespace Twint {
1378
+ interface DisplayPreference {
1379
+ /**
1380
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1381
+ */
1382
+ overridable: boolean | null;
1383
+
1384
+ /**
1385
+ * The account's display preference.
1386
+ */
1387
+ preference: DisplayPreference.Preference;
1388
+
1389
+ /**
1390
+ * The effective display preference value.
1391
+ */
1392
+ value: DisplayPreference.Value;
1393
+ }
1394
+
1395
+ namespace DisplayPreference {
1396
+ type Preference = 'none' | 'off' | 'on';
1397
+
1398
+ type Value = 'off' | 'on';
1399
+ }
1400
+ }
1401
+
1366
1402
  interface UsBankAccount {
1367
1403
  /**
1368
1404
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -203,6 +203,11 @@ declare module 'stripe' {
203
203
  */
204
204
  swish?: PaymentMethodConfigurationCreateParams.Swish;
205
205
 
206
+ /**
207
+ * Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
208
+ */
209
+ twint?: PaymentMethodConfigurationCreateParams.Twint;
210
+
206
211
  /**
207
212
  * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details.
208
213
  */
@@ -960,6 +965,26 @@ declare module 'stripe' {
960
965
  }
961
966
  }
962
967
 
968
+ interface Twint {
969
+ /**
970
+ * Whether or not the payment method should be displayed.
971
+ */
972
+ display_preference?: Twint.DisplayPreference;
973
+ }
974
+
975
+ namespace Twint {
976
+ interface DisplayPreference {
977
+ /**
978
+ * The account's preference for whether or not to display this payment method.
979
+ */
980
+ preference?: DisplayPreference.Preference;
981
+ }
982
+
983
+ namespace DisplayPreference {
984
+ type Preference = 'none' | 'off' | 'on';
985
+ }
986
+ }
987
+
963
988
  interface UsBankAccount {
964
989
  /**
965
990
  * Whether or not the payment method should be displayed.
@@ -1229,6 +1254,11 @@ declare module 'stripe' {
1229
1254
  */
1230
1255
  swish?: PaymentMethodConfigurationUpdateParams.Swish;
1231
1256
 
1257
+ /**
1258
+ * Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
1259
+ */
1260
+ twint?: PaymentMethodConfigurationUpdateParams.Twint;
1261
+
1232
1262
  /**
1233
1263
  * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details.
1234
1264
  */
@@ -1986,6 +2016,26 @@ declare module 'stripe' {
1986
2016
  }
1987
2017
  }
1988
2018
 
2019
+ interface Twint {
2020
+ /**
2021
+ * Whether or not the payment method should be displayed.
2022
+ */
2023
+ display_preference?: Twint.DisplayPreference;
2024
+ }
2025
+
2026
+ namespace Twint {
2027
+ interface DisplayPreference {
2028
+ /**
2029
+ * The account's preference for whether or not to display this payment method.
2030
+ */
2031
+ preference?: DisplayPreference.Preference;
2032
+ }
2033
+
2034
+ namespace DisplayPreference {
2035
+ type Preference = 'none' | 'off' | 'on';
2036
+ }
2037
+ }
2038
+
1989
2039
  interface UsBankAccount {
1990
2040
  /**
1991
2041
  * Whether or not the payment method should be displayed.
@@ -382,6 +382,11 @@ declare module 'stripe' {
382
382
  */
383
383
  brand: string | null;
384
384
 
385
+ /**
386
+ * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
387
+ */
388
+ brand_product: string | null;
389
+
385
390
  /**
386
391
  * When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
387
392
  */
@@ -459,6 +464,14 @@ declare module 'stripe' {
459
464
  */
460
465
  network: string | null;
461
466
 
467
+ /**
468
+ * This is used by the financial networks to identify a transaction.
469
+ * Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
470
+ * 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).
471
+ * This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
472
+ */
473
+ network_transaction_id: string | null;
474
+
462
475
  /**
463
476
  * Details about payments collected offline.
464
477
  */
@@ -675,6 +688,11 @@ declare module 'stripe' {
675
688
  */
676
689
  brand: string | null;
677
690
 
691
+ /**
692
+ * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
693
+ */
694
+ brand_product: string | null;
695
+
678
696
  /**
679
697
  * The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
680
698
  */
@@ -160,7 +160,7 @@ declare module 'stripe' {
160
160
  ): Promise<Stripe.Response<Stripe.Refund>>;
161
161
 
162
162
  /**
163
- * Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first The 10 most recent refunds are always available by default on the Charge object.
163
+ * Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object.
164
164
  */
165
165
  list(
166
166
  params?: RefundListParams,
@@ -20,7 +20,7 @@ declare module 'stripe' {
20
20
  object: 'tax.calculation';
21
21
 
22
22
  /**
23
- * Total after taxes.
23
+ * Total amount after taxes in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
24
24
  */
25
25
  amount_total: number;
26
26
 
@@ -205,9 +205,7 @@ declare module 'stripe' {
205
205
 
206
206
  interface LineItem {
207
207
  /**
208
- * A positive integer representing the line item's total price 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).
209
- * The minimum amount is $0.0 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts).
210
- * The amount value supports up to twelve digits (e.g., a value of 999999999999 for a USD charge of $9,999,999,999.99).
208
+ * A positive integer representing the line item's total price in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
211
209
  * If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount.
212
210
  */
213
211
  amount: number;
@@ -62,7 +62,7 @@ declare module 'stripe' {
62
62
  individual?: Account.Individual;
63
63
 
64
64
  /**
65
- * Whether the user described by the data in the token has been shown [the Stripe Connected Account Agreement](https://docs.stripe.com/connect/account-tokens#stripe-connected-account-agreement). When creating an account token to create a new Connect account, this value must be `true`.
65
+ * Whether the user described by the data in the token has been shown [the Stripe Connected Account Agreement](https://stripe.com/connect/account-tokens#stripe-connected-account-agreement). When creating an account token to create a new Connect account, this value must be `true`.
66
66
  */
67
67
  tos_shown_and_accepted?: boolean;
68
68
  }
@@ -91,12 +91,12 @@ declare module 'stripe' {
91
91
  address_kanji?: Stripe.JapanAddressParam;
92
92
 
93
93
  /**
94
- * Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
94
+ * Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided.
95
95
  */
96
96
  directors_provided?: boolean;
97
97
 
98
98
  /**
99
- * Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
99
+ * Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.executive` requirement.
100
100
  */
101
101
  executives_provided?: boolean;
102
102
 
@@ -126,7 +126,7 @@ declare module 'stripe' {
126
126
  name_kanji?: string;
127
127
 
128
128
  /**
129
- * Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://docs.stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
129
+ * Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.owner` requirement.
130
130
  */
131
131
  owners_provided?: boolean;
132
132
 
@@ -151,7 +151,7 @@ declare module 'stripe' {
151
151
  registration_number?: string;
152
152
 
153
153
  /**
154
- * The category identifying the legal structure of the company or legal entity. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
154
+ * The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
155
155
  */
156
156
  structure?: Stripe.Emptyable<Company.Structure>;
157
157
 
@@ -293,12 +293,12 @@ declare module 'stripe' {
293
293
  gender?: string;
294
294
 
295
295
  /**
296
- * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
296
+ * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/js/tokens/create_token?type=pii).
297
297
  */
298
298
  id_number?: string;
299
299
 
300
300
  /**
301
- * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
301
+ * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/js/tokens/create_token?type=pii).
302
302
  */
303
303
  id_number_secondary?: string;
304
304
 
@@ -233,6 +233,7 @@ declare module 'stripe' {
233
233
  | 'invoice.finalization_failed'
234
234
  | 'invoice.finalized'
235
235
  | 'invoice.marked_uncollectible'
236
+ | 'invoice.overdue'
236
237
  | 'invoice.paid'
237
238
  | 'invoice.payment_action_required'
238
239
  | 'invoice.payment_failed'
@@ -241,6 +242,7 @@ declare module 'stripe' {
241
242
  | 'invoice.upcoming'
242
243
  | 'invoice.updated'
243
244
  | 'invoice.voided'
245
+ | 'invoice.will_be_due'
244
246
  | 'invoiceitem.created'
245
247
  | 'invoiceitem.deleted'
246
248
  | 'issuing_authorization.created'
@@ -511,6 +513,7 @@ declare module 'stripe' {
511
513
  | 'invoice.finalization_failed'
512
514
  | 'invoice.finalized'
513
515
  | 'invoice.marked_uncollectible'
516
+ | 'invoice.overdue'
514
517
  | 'invoice.paid'
515
518
  | 'invoice.payment_action_required'
516
519
  | 'invoice.payment_failed'
@@ -519,6 +522,7 @@ declare module 'stripe' {
519
522
  | 'invoice.upcoming'
520
523
  | 'invoice.updated'
521
524
  | 'invoice.voided'
525
+ | 'invoice.will_be_due'
522
526
  | 'invoiceitem.created'
523
527
  | 'invoiceitem.deleted'
524
528
  | 'issuing_authorization.created'