stripe 15.12.0 → 16.1.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +48 -2
  2. package/VERSION +1 -1
  3. package/cjs/apiVersion.js +1 -1
  4. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  5. package/cjs/stripe.core.js +1 -1
  6. package/esm/apiVersion.js +1 -1
  7. package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
  8. package/esm/stripe.core.js +1 -1
  9. package/package.json +5 -1
  10. package/types/BalanceTransactionSources.d.ts +0 -1
  11. package/types/Billing/MetersResource.d.ts +6 -2
  12. package/types/Capabilities.d.ts +28 -8
  13. package/types/Checkout/Sessions.d.ts +15 -1
  14. package/types/Checkout/SessionsResource.d.ts +2 -2
  15. package/types/CreditNotesResource.d.ts +21 -0
  16. package/types/CustomersResource.d.ts +4 -2
  17. package/types/FinancialConnections/Sessions.d.ts +14 -0
  18. package/types/FinancialConnections/SessionsResource.d.ts +14 -0
  19. package/types/Invoices.d.ts +15 -1
  20. package/types/InvoicesResource.d.ts +38 -3
  21. package/types/Issuing/Authorizations.d.ts +173 -0
  22. package/types/Issuing/Transactions.d.ts +112 -6
  23. package/types/PaymentIntents.d.ts +13 -0
  24. package/types/PaymentIntentsResource.d.ts +48 -0
  25. package/types/PaymentLinks.d.ts +4 -1
  26. package/types/PaymentLinksResource.d.ts +10 -4
  27. package/types/SetupIntents.d.ts +13 -0
  28. package/types/SetupIntentsResource.d.ts +48 -0
  29. package/types/Subscriptions.d.ts +13 -0
  30. package/types/SubscriptionsResource.d.ts +32 -0
  31. package/types/Tax/Calculations.d.ts +2 -1
  32. package/types/Tax/CalculationsResource.d.ts +3 -2
  33. package/types/Tax/Transactions.d.ts +2 -1
  34. package/types/TaxIds.d.ts +2 -1
  35. package/types/TaxIdsResource.d.ts +2 -1
  36. package/types/Terminal/Configurations.d.ts +14 -0
  37. package/types/Terminal/ConfigurationsResource.d.ts +36 -0
  38. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +480 -7
  39. package/types/TestHelpers/Issuing/TransactionsResource.d.ts +262 -14
  40. package/types/WebhookEndpointsResource.d.ts +2 -1
  41. package/types/index.d.ts +0 -1
  42. package/types/lib.d.ts +1 -1
  43. package/types/test/typescriptTest.ts +3 -3
  44. package/types/PlatformTaxFees.d.ts +0 -35
package/CHANGELOG.md CHANGED
@@ -1,12 +1,58 @@
1
1
  # Changelog
2
2
 
3
+ ## 16.1.0 - 2024-06-27
4
+ * [#2120](https://github.com/stripe/stripe-node/pull/2120) Update generated code
5
+ * Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`
6
+ * Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams`
7
+ * Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters`
8
+ * Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
9
+ * Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
10
+
11
+ ## 16.0.0 - 2024-06-24
12
+ * [#2113](https://github.com/stripe/stripe-node/pull/2113)
13
+
14
+ This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.
15
+
16
+ ### ⚠️ Breaking changes
17
+
18
+ * Remove the unused resource `PlatformTaxFee`
19
+ * Rename `volume_decimal` to `quantity_decimal` on
20
+ * `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`,
21
+ * `Issuing.Transaction.purchase_details.fuel`,
22
+ * `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and
23
+ * `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel`
24
+ * `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values
25
+ * `other`
26
+ * `paused.inactivity`
27
+ * `pending.onboarding`
28
+ * `pending.review`
29
+ * `platform_disabled`
30
+ * `platform_paused`
31
+ * `rejected.inactivity`
32
+ * `rejected.other`
33
+ * `rejected.unsupported_business`
34
+ * `requirements.fields_needed`
35
+
36
+ ### Additions
37
+
38
+ * Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit`
39
+ * Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason`
40
+ * Add support for `finalize_amount` test helper method on resource `Issuing.Authorization`
41
+ * Add support for new value `ch_uid` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
42
+ * Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
43
+ * Add support for `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details`
44
+ * Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization`
45
+ * Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel`
46
+ * Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version`
47
+ * [#2118](https://github.com/stripe/stripe-node/pull/2118) Use worker module in Bun
48
+
3
49
  ## 15.12.0 - 2024-06-17
4
50
  * [#2109](https://github.com/stripe/stripe-node/pull/2109) Update generated code
5
51
  * Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
6
52
  * Add support for `tax_id_collection` on `PaymentLinkUpdateParams`
7
53
  * [#2111](https://github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names
8
- * Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData1 | PaymentIntentConfirmParams.MandateData2>` to `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData>` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
9
- * Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2
54
+ * Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData1 | PaymentIntentConfirmParams.MandateData2>` to `Stripe.Emptyable<PaymentIntentConfirmParams.MandateData>` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
55
+ * Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2
10
56
  * Change type of `SetupIntentConfirmParams.mandate_data` from `Stripe.Emptyable<SetupIntentConfirmParams.MandateData1 | SetupIntentConfirmParams.MandateData2>` to `Stripe.Emptyable<SetupIntentConfirmParams.MandateData>` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
11
57
 
12
58
  ## 15.11.0 - 2024-06-13
package/VERSION CHANGED
@@ -1 +1 @@
1
- 15.12.0
1
+ 16.1.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 = '2024-04-10';
5
+ exports.ApiVersion = '2024-06-20';
@@ -17,6 +17,10 @@ exports.Authorizations = StripeResource_js_1.StripeResource.extend({
17
17
  method: 'POST',
18
18
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/expire',
19
19
  }),
20
+ finalizeAmount: stripeMethod({
21
+ method: 'POST',
22
+ fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount',
23
+ }),
20
24
  increment: stripeMethod({
21
25
  method: 'POST',
22
26
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
@@ -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 = '15.12.0';
37
+ Stripe.PACKAGE_VERSION = '16.1.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;
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2024-04-10';
2
+ export const ApiVersion = '2024-06-20';
@@ -14,6 +14,10 @@ export const Authorizations = StripeResource.extend({
14
14
  method: 'POST',
15
15
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/expire',
16
16
  }),
17
+ finalizeAmount: stripeMethod({
18
+ method: 'POST',
19
+ fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount',
20
+ }),
17
21
  increment: stripeMethod({
18
22
  method: 'POST',
19
23
  fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
@@ -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 = '15.12.0';
34
+ Stripe.PACKAGE_VERSION = '16.1.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": "15.12.0",
3
+ "version": "16.1.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -80,6 +80,10 @@
80
80
  "import": "./esm/stripe.esm.worker.js",
81
81
  "require": "./cjs/stripe.cjs.worker.js"
82
82
  },
83
+ "bun": {
84
+ "import": "./esm/stripe.esm.worker.js",
85
+ "require": "./cjs/stripe.cjs.worker.js"
86
+ },
83
87
  "deno": {
84
88
  "import": "./esm/stripe.esm.worker.js",
85
89
  "require": "./cjs/stripe.cjs.worker.js"
@@ -13,7 +13,6 @@ declare module 'stripe' {
13
13
  | Issuing.Dispute
14
14
  | Issuing.Transaction
15
15
  | Payout
16
- | PlatformTaxFee
17
16
  | Refund
18
17
  | ReserveTransaction
19
18
  | TaxDeductedAtSource
@@ -138,9 +138,13 @@ declare module 'stripe' {
138
138
  expand?: Array<string>;
139
139
 
140
140
  /**
141
- * Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range.
141
+ * Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC).
142
142
  */
143
- value_grouping_window?: 'hour';
143
+ value_grouping_window?: MeterListEventSummariesParams.ValueGroupingWindow;
144
+ }
145
+
146
+ namespace MeterListEventSummariesParams {
147
+ type ValueGroupingWindow = 'day' | 'hour';
144
148
  }
145
149
 
146
150
  interface MeterReactivateParams {
@@ -61,9 +61,9 @@ declare module 'stripe' {
61
61
  currently_due: Array<string>;
62
62
 
63
63
  /**
64
- * This is typed as a string for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is empty because fields in `future_requirements` will never disable the account.
64
+ * This is typed as an enum for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is null because fields in `future_requirements` will never disable the account.
65
65
  */
66
- disabled_reason: string | null;
66
+ disabled_reason: FutureRequirements.DisabledReason | null;
67
67
 
68
68
  /**
69
69
  * Fields that are `currently_due` and need to be collected again because validation or verification failed.
@@ -99,6 +99,18 @@ declare module 'stripe' {
99
99
  original_fields_due: Array<string>;
100
100
  }
101
101
 
102
+ type DisabledReason =
103
+ | 'other'
104
+ | 'paused.inactivity'
105
+ | 'pending.onboarding'
106
+ | 'pending.review'
107
+ | 'platform_disabled'
108
+ | 'platform_paused'
109
+ | 'rejected.inactivity'
110
+ | 'rejected.other'
111
+ | 'rejected.unsupported_business'
112
+ | 'requirements.fields_needed';
113
+
102
114
  interface Error {
103
115
  /**
104
116
  * The code for the type of error.
@@ -227,13 +239,9 @@ declare module 'stripe' {
227
239
  currently_due: Array<string>;
228
240
 
229
241
  /**
230
- * If the capability is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `requirements.fields_needed`, `pending.onboarding`, `pending.review`, `rejected.other`, `platform_paused`, `rejected.inactivty`, or `rejected.unsupported_business`.
231
- *
232
- * `rejected.unsupported_business` means that the account's business is not supported by the capability. For example, payment methods may restrict the businesses they support in their terms of service, such as in [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses).
233
- *
234
- * `rejected.inactivity` means that the capability has been paused for inactivity. This disabled reason currently only applies to the Issuing capability. See [Issuing: Managing Inactive Connects](https://support.stripe.com/questions/issuing-managing-inactive-connect-accounts) for more details.
242
+ * Description of why the capability is disabled. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification).
235
243
  */
236
- disabled_reason: string | null;
244
+ disabled_reason: Requirements.DisabledReason | null;
237
245
 
238
246
  /**
239
247
  * Fields that are `currently_due` and need to be collected again because validation or verification failed.
@@ -269,6 +277,18 @@ declare module 'stripe' {
269
277
  original_fields_due: Array<string>;
270
278
  }
271
279
 
280
+ type DisabledReason =
281
+ | 'other'
282
+ | 'paused.inactivity'
283
+ | 'pending.onboarding'
284
+ | 'pending.review'
285
+ | 'platform_disabled'
286
+ | 'platform_paused'
287
+ | 'rejected.inactivity'
288
+ | 'rejected.other'
289
+ | 'rejected.unsupported_business'
290
+ | 'requirements.fields_needed';
291
+
272
292
  interface Error {
273
293
  /**
274
294
  * The code for the type of error.
@@ -490,7 +490,7 @@ declare module 'stripe' {
490
490
 
491
491
  interface TaxId {
492
492
  /**
493
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, or `unknown`
493
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
494
494
  */
495
495
  type: TaxId.Type;
496
496
 
@@ -518,6 +518,7 @@ declare module 'stripe' {
518
518
  | 'ca_pst_mb'
519
519
  | 'ca_pst_sk'
520
520
  | 'ca_qst'
521
+ | 'ch_uid'
521
522
  | 'ch_vat'
522
523
  | 'cl_tin'
523
524
  | 'cn_tin'
@@ -1515,6 +1516,8 @@ declare module 'stripe' {
1515
1516
 
1516
1517
  namespace UsBankAccount {
1517
1518
  interface FinancialConnections {
1519
+ filters?: FinancialConnections.Filters;
1520
+
1518
1521
  /**
1519
1522
  * The list of permissions to request. The `payment_method` permission must be included.
1520
1523
  */
@@ -1532,6 +1535,17 @@ declare module 'stripe' {
1532
1535
  }
1533
1536
 
1534
1537
  namespace FinancialConnections {
1538
+ interface Filters {
1539
+ /**
1540
+ * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1541
+ */
1542
+ account_subcategories?: Array<Filters.AccountSubcategory>;
1543
+ }
1544
+
1545
+ namespace Filters {
1546
+ type AccountSubcategory = 'checking' | 'savings';
1547
+ }
1548
+
1535
1549
  type Permission =
1536
1550
  | 'balances'
1537
1551
  | 'ownership'
@@ -249,7 +249,7 @@ declare module 'stripe' {
249
249
  success_url?: string;
250
250
 
251
251
  /**
252
- * Controls tax ID collection settings for the session.
252
+ * Controls tax ID collection during checkout.
253
253
  */
254
254
  tax_id_collection?: SessionCreateParams.TaxIdCollection;
255
255
 
@@ -2414,7 +2414,7 @@ declare module 'stripe' {
2414
2414
 
2415
2415
  interface TaxIdCollection {
2416
2416
  /**
2417
- * Set to true to enable Tax ID collection.
2417
+ * Enable tax ID collection during checkout. Defaults to `false`.
2418
2418
  */
2419
2419
  enabled: boolean;
2420
2420
  }
@@ -23,6 +23,11 @@ declare module 'stripe' {
23
23
  */
24
24
  effective_at?: number;
25
25
 
26
+ /**
27
+ * Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
28
+ */
29
+ email_type?: CreditNoteCreateParams.EmailType;
30
+
26
31
  /**
27
32
  * Specifies which fields in the response should be expanded.
28
33
  */
@@ -70,6 +75,8 @@ declare module 'stripe' {
70
75
  }
71
76
 
72
77
  namespace CreditNoteCreateParams {
78
+ type EmailType = 'credit_note' | 'none';
79
+
73
80
  interface Line {
74
81
  /**
75
82
  * The line item amount to credit. Only valid when `type` is `invoice_line_item`.
@@ -226,6 +233,11 @@ declare module 'stripe' {
226
233
  */
227
234
  effective_at?: number;
228
235
 
236
+ /**
237
+ * Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
238
+ */
239
+ email_type?: CreditNoteListPreviewLineItemsParams.EmailType;
240
+
229
241
  /**
230
242
  * Specifies which fields in the response should be expanded.
231
243
  */
@@ -273,6 +285,8 @@ declare module 'stripe' {
273
285
  }
274
286
 
275
287
  namespace CreditNoteListPreviewLineItemsParams {
288
+ type EmailType = 'credit_note' | 'none';
289
+
276
290
  interface Line {
277
291
  /**
278
292
  * The line item amount to credit. Only valid when `type` is `invoice_line_item`.
@@ -376,6 +390,11 @@ declare module 'stripe' {
376
390
  */
377
391
  effective_at?: number;
378
392
 
393
+ /**
394
+ * Type of email to send to the customer, one of `credit_note` or `none` and the default is `credit_note`.
395
+ */
396
+ email_type?: CreditNotePreviewParams.EmailType;
397
+
379
398
  /**
380
399
  * Specifies which fields in the response should be expanded.
381
400
  */
@@ -423,6 +442,8 @@ declare module 'stripe' {
423
442
  }
424
443
 
425
444
  namespace CreditNotePreviewParams {
445
+ type EmailType = 'credit_note' | 'none';
446
+
426
447
  interface Line {
427
448
  /**
428
449
  * The line item amount to credit. Only valid when `type` is `invoice_line_item`.
@@ -215,7 +215,7 @@ declare module 'stripe' {
215
215
 
216
216
  interface TaxIdDatum {
217
217
  /**
218
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
218
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
219
219
  */
220
220
  type: TaxIdDatum.Type;
221
221
 
@@ -243,6 +243,7 @@ declare module 'stripe' {
243
243
  | 'ca_pst_mb'
244
244
  | 'ca_pst_sk'
245
245
  | 'ca_qst'
246
+ | 'ch_uid'
246
247
  | 'ch_vat'
247
248
  | 'cl_tin'
248
249
  | 'cn_tin'
@@ -651,7 +652,7 @@ declare module 'stripe' {
651
652
 
652
653
  interface CustomerCreateTaxIdParams {
653
654
  /**
654
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
655
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
655
656
  */
656
657
  type: CustomerCreateTaxIdParams.Type;
657
658
 
@@ -684,6 +685,7 @@ declare module 'stripe' {
684
685
  | 'ca_pst_mb'
685
686
  | 'ca_pst_sk'
686
687
  | 'ca_qst'
688
+ | 'ch_uid'
687
689
  | 'ch_vat'
688
690
  | 'cl_tin'
689
691
  | 'cn_tin'
@@ -78,12 +78,26 @@ declare module 'stripe' {
78
78
  }
79
79
 
80
80
  interface Filters {
81
+ /**
82
+ * Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`.
83
+ */
84
+ account_subcategories: Array<Filters.AccountSubcategory> | null;
85
+
81
86
  /**
82
87
  * List of countries from which to filter accounts.
83
88
  */
84
89
  countries: Array<string> | null;
85
90
  }
86
91
 
92
+ namespace Filters {
93
+ type AccountSubcategory =
94
+ | 'checking'
95
+ | 'credit_card'
96
+ | 'line_of_credit'
97
+ | 'mortgage'
98
+ | 'savings';
99
+ }
100
+
87
101
  type Permission =
88
102
  | 'balances'
89
103
  | 'ownership'
@@ -60,12 +60,26 @@ declare module 'stripe' {
60
60
  }
61
61
 
62
62
  interface Filters {
63
+ /**
64
+ * Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`.
65
+ */
66
+ account_subcategories?: Array<Filters.AccountSubcategory>;
67
+
63
68
  /**
64
69
  * List of countries from which to collect accounts.
65
70
  */
66
71
  countries?: Array<string>;
67
72
  }
68
73
 
74
+ namespace Filters {
75
+ type AccountSubcategory =
76
+ | 'checking'
77
+ | 'credit_card'
78
+ | 'line_of_credit'
79
+ | 'mortgage'
80
+ | 'savings';
81
+ }
82
+
69
83
  type Permission =
70
84
  | 'balances'
71
85
  | 'ownership'
@@ -551,7 +551,7 @@ declare module 'stripe' {
551
551
 
552
552
  interface CustomerTaxId {
553
553
  /**
554
- * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, or `unknown`
554
+ * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
555
555
  */
556
556
  type: CustomerTaxId.Type;
557
557
 
@@ -579,6 +579,7 @@ declare module 'stripe' {
579
579
  | 'ca_pst_mb'
580
580
  | 'ca_pst_sk'
581
581
  | 'ca_qst'
582
+ | 'ch_uid'
582
583
  | 'ch_vat'
583
584
  | 'cl_tin'
584
585
  | 'cn_tin'
@@ -1118,6 +1119,8 @@ declare module 'stripe' {
1118
1119
 
1119
1120
  namespace UsBankAccount {
1120
1121
  interface FinancialConnections {
1122
+ filters?: FinancialConnections.Filters;
1123
+
1121
1124
  /**
1122
1125
  * The list of permissions to request. The `payment_method` permission must be included.
1123
1126
  */
@@ -1130,6 +1133,17 @@ declare module 'stripe' {
1130
1133
  }
1131
1134
 
1132
1135
  namespace FinancialConnections {
1136
+ interface Filters {
1137
+ /**
1138
+ * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
1139
+ */
1140
+ account_subcategories?: Array<Filters.AccountSubcategory>;
1141
+ }
1142
+
1143
+ namespace Filters {
1144
+ type AccountSubcategory = 'checking' | 'savings';
1145
+ }
1146
+
1133
1147
  type Permission =
1134
1148
  | 'balances'
1135
1149
  | 'ownership'
@@ -453,6 +453,11 @@ declare module 'stripe' {
453
453
 
454
454
  namespace UsBankAccount {
455
455
  interface FinancialConnections {
456
+ /**
457
+ * Provide filters for the linked accounts that the customer can select for the payment method.
458
+ */
459
+ filters?: FinancialConnections.Filters;
460
+
456
461
  /**
457
462
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
458
463
  */
@@ -465,6 +470,17 @@ declare module 'stripe' {
465
470
  }
466
471
 
467
472
  namespace FinancialConnections {
473
+ interface Filters {
474
+ /**
475
+ * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
476
+ */
477
+ account_subcategories?: Array<Filters.AccountSubcategory>;
478
+ }
479
+
480
+ namespace Filters {
481
+ type AccountSubcategory = 'checking' | 'savings';
482
+ }
483
+
468
484
  type Permission =
469
485
  | 'balances'
470
486
  | 'ownership'
@@ -1130,6 +1146,11 @@ declare module 'stripe' {
1130
1146
 
1131
1147
  namespace UsBankAccount {
1132
1148
  interface FinancialConnections {
1149
+ /**
1150
+ * Provide filters for the linked accounts that the customer can select for the payment method.
1151
+ */
1152
+ filters?: FinancialConnections.Filters;
1153
+
1133
1154
  /**
1134
1155
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1135
1156
  */
@@ -1142,6 +1163,17 @@ declare module 'stripe' {
1142
1163
  }
1143
1164
 
1144
1165
  namespace FinancialConnections {
1166
+ interface Filters {
1167
+ /**
1168
+ * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1169
+ */
1170
+ account_subcategories?: Array<Filters.AccountSubcategory>;
1171
+ }
1172
+
1173
+ namespace Filters {
1174
+ type AccountSubcategory = 'checking' | 'savings';
1175
+ }
1176
+
1145
1177
  type Permission =
1146
1178
  | 'balances'
1147
1179
  | 'ownership'
@@ -1590,7 +1622,7 @@ declare module 'stripe' {
1590
1622
 
1591
1623
  interface TaxId {
1592
1624
  /**
1593
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
1625
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
1594
1626
  */
1595
1627
  type: TaxId.Type;
1596
1628
 
@@ -1618,6 +1650,7 @@ declare module 'stripe' {
1618
1650
  | 'ca_pst_mb'
1619
1651
  | 'ca_pst_sk'
1620
1652
  | 'ca_qst'
1653
+ | 'ch_uid'
1621
1654
  | 'ch_vat'
1622
1655
  | 'cl_tin'
1623
1656
  | 'cn_tin'
@@ -2766,7 +2799,7 @@ declare module 'stripe' {
2766
2799
 
2767
2800
  interface TaxId {
2768
2801
  /**
2769
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
2802
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
2770
2803
  */
2771
2804
  type: TaxId.Type;
2772
2805
 
@@ -2794,6 +2827,7 @@ declare module 'stripe' {
2794
2827
  | 'ca_pst_mb'
2795
2828
  | 'ca_pst_sk'
2796
2829
  | 'ca_qst'
2830
+ | 'ch_uid'
2797
2831
  | 'ch_vat'
2798
2832
  | 'cl_tin'
2799
2833
  | 'cn_tin'
@@ -4113,7 +4147,7 @@ declare module 'stripe' {
4113
4147
 
4114
4148
  interface TaxId {
4115
4149
  /**
4116
- * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
4150
+ * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
4117
4151
  */
4118
4152
  type: TaxId.Type;
4119
4153
 
@@ -4141,6 +4175,7 @@ declare module 'stripe' {
4141
4175
  | 'ca_pst_mb'
4142
4176
  | 'ca_pst_sk'
4143
4177
  | 'ca_qst'
4178
+ | 'ch_uid'
4144
4179
  | 'ch_vat'
4145
4180
  | 'cl_tin'
4146
4181
  | 'cn_tin'