stripe 18.1.0-beta.2 → 18.1.0-beta.3

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 (53) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/FxQuotes.js +15 -0
  5. package/cjs/resources/Invoices.js +0 -13
  6. package/cjs/resources/PaymentIntents.js +5 -0
  7. package/cjs/resources.js +4 -2
  8. package/cjs/stripe.core.js +1 -1
  9. package/esm/resources/FxQuotes.js +12 -0
  10. package/esm/resources/Invoices.js +0 -13
  11. package/esm/resources/PaymentIntents.js +5 -0
  12. package/esm/resources.js +1 -0
  13. package/esm/stripe.core.js +1 -1
  14. package/package.json +1 -1
  15. package/types/Accounts.d.ts +19 -0
  16. package/types/AccountsResource.d.ts +212 -0
  17. package/types/BalanceSettings.d.ts +5 -1
  18. package/types/Capital/FinancingOffers.d.ts +4 -4
  19. package/types/Capital/FinancingSummary.d.ts +6 -6
  20. package/types/Charges.d.ts +5 -0
  21. package/types/ChargesResource.d.ts +20 -0
  22. package/types/Checkout/SessionsResource.d.ts +93 -4
  23. package/types/ConfirmationTokens.d.ts +5 -0
  24. package/types/Coupons.d.ts +33 -0
  25. package/types/CouponsResource.d.ts +21 -0
  26. package/types/EventTypes.d.ts +17 -0
  27. package/types/Events.d.ts +1 -0
  28. package/types/FxQuotes.d.ts +153 -0
  29. package/types/FxQuotesResource.d.ts +130 -0
  30. package/types/Invoices.d.ts +1 -0
  31. package/types/InvoicesResource.d.ts +2 -76
  32. package/types/PaymentIntentAmountDetailsLineItems.d.ts +110 -0
  33. package/types/PaymentIntents.d.ts +53 -0
  34. package/types/PaymentIntentsResource.d.ts +91 -0
  35. package/types/PaymentMethodConfigurations.d.ts +36 -0
  36. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  37. package/types/PaymentMethods.d.ts +5 -0
  38. package/types/PaymentMethodsResource.d.ts +10 -0
  39. package/types/Persons.d.ts +88 -1
  40. package/types/QuotePreviewInvoices.d.ts +1 -0
  41. package/types/Refunds.d.ts +10 -0
  42. package/types/SetupIntentsResource.d.ts +15 -0
  43. package/types/Subscriptions.d.ts +1 -0
  44. package/types/SubscriptionsResource.d.ts +2 -0
  45. package/types/Tax/Registrations.d.ts +72 -0
  46. package/types/Tax/RegistrationsResource.d.ts +96 -0
  47. package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -0
  48. package/types/TokensResource.d.ts +106 -0
  49. package/types/Transfers.d.ts +5 -0
  50. package/types/TransfersResource.d.ts +5 -0
  51. package/types/Treasury/OutboundPaymentsResource.d.ts +5 -0
  52. package/types/WebhookEndpointsResource.d.ts +2 -0
  53. package/types/index.d.ts +4 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 18.1.0-beta.3 - 2025-04-17
4
+ * [#2302](https://github.com/stripe/stripe-node/pull/2302) Update generated code for beta
5
+ * Add support for new resources `FxQuote` and `PaymentIntentAmountDetailsLineItem`
6
+ * Add support for `create`, `list`, and `retrieve` methods on resource `FxQuote`
7
+ * Remove support for `attach_payment_intent` method on resource `Invoice`
8
+ * Add support for `registration_date` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
9
+ * Add support for `customer_reference` and `order_reference` on `ChargeCaptureParams.payment_details`, `ChargeUpdateParams.payment_details`, `PaymentIntent.payment_details`, `PaymentIntentCaptureParams.payment_details`, `PaymentIntentConfirmParams.payment_details`, `PaymentIntentCreateParams.payment_details`, and `PaymentIntentUpdateParams.payment_details`
10
+ * Add support for `tax_id` on `Charge.billing_details`, `ConfirmationToken.payment_method_preview.billing_details`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data.billing_details`, `PaymentIntentConfirmParams.payment_method_data.billing_details`, `PaymentIntentCreateParams.payment_method_data.billing_details`, `PaymentIntentUpdateParams.payment_method_data.billing_details`, `PaymentMethod.billing_details`, `PaymentMethodCreateParams.billing_details`, `PaymentMethodUpdateParams.billing_details`, `SetupIntentConfirmParams.payment_method_data.billing_details`, `SetupIntentCreateParams.payment_method_data.billing_details`, `SetupIntentUpdateParams.payment_method_data.billing_details`, and `Treasury.OutboundPaymentCreateParams.destination_payment_method_data.billing_details`
11
+ * Add support for `price_data` on `Checkout.SessionUpdateParams.line_items[]`
12
+ * Change type of `Checkout.SessionUpdateParams.line_items[].quantity` from `longInteger` to `emptyable(longInteger)`
13
+ * Add support for `script` on `CouponCreateParams` and `Coupon`
14
+ * Add support for `type` on `Coupon`
15
+ * Add support for new value `fx_quote.expired` on enum `Event.type`
16
+ * Add support for new value `affirm` on enums `Invoice.payment_settings.payment_method_types`, `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `QuotePreviewInvoice.payment_settings.payment_method_types`, `Subscription.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
17
+ * Add support for `fx_quote` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `PaymentIntent`, `TransferCreateParams`, and `Transfer`
18
+ * Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent.amount_details`
19
+ * Add support for `pix` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
20
+ * Add support for `us_cfpb_data` on `Person` and `TokenCreateParams.person`
21
+ * Add support for `pending_reason` on `Refund`
22
+ * Add support for `aw`, `az`, `bd`, `bj`, `et`, `kg`, `la`, and `ph` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
23
+ * Add support for new value `fx_quote.expired` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
24
+ * Add support for snapshot event `FxQuoteExpiredEvent` with resource `FxQuote`
25
+
3
26
  ## 18.1.0-beta.2 - 2025-04-10
4
27
  * [#2298](https://github.com/stripe/stripe-node/pull/2298) Update generated code for beta
5
28
 
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1669
1
+ v1697
package/VERSION CHANGED
@@ -1 +1 @@
1
- 18.1.0-beta.2
1
+ 18.1.0-beta.3
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FxQuotes = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.FxQuotes = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/fx_quotes' }),
9
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/fx_quotes/{id}' }),
10
+ list: stripeMethod({
11
+ method: 'GET',
12
+ fullPath: '/v1/fx_quotes',
13
+ methodType: 'list',
14
+ }),
15
+ });
@@ -22,10 +22,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
22
22
  method: 'POST',
23
23
  fullPath: '/v1/invoices/{invoice}/attach_payment',
24
24
  }),
25
- attachPaymentIntent: stripeMethod({
26
- method: 'POST',
27
- fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
28
- }),
29
25
  createPreview: stripeMethod({
30
26
  method: 'POST',
31
27
  fullPath: '/v1/invoices/create_preview',
@@ -39,11 +35,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
39
35
  fullPath: '/v1/invoices/{invoice}/lines',
40
36
  methodType: 'list',
41
37
  }),
42
- listPayments: stripeMethod({
43
- method: 'GET',
44
- fullPath: '/v1/invoices/{invoice}/payments',
45
- methodType: 'list',
46
- }),
47
38
  markUncollectible: stripeMethod({
48
39
  method: 'POST',
49
40
  fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
@@ -53,10 +44,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
53
44
  method: 'POST',
54
45
  fullPath: '/v1/invoices/{invoice}/remove_lines',
55
46
  }),
56
- retrievePayment: stripeMethod({
57
- method: 'GET',
58
- fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
59
- }),
60
47
  search: stripeMethod({
61
48
  method: 'GET',
62
49
  fullPath: '/v1/invoices/search',
@@ -43,6 +43,11 @@ exports.PaymentIntents = StripeResource_js_1.StripeResource.extend({
43
43
  method: 'POST',
44
44
  fullPath: '/v1/payment_intents/{intent}/increment_authorization',
45
45
  }),
46
+ listAmountDetailsLineItems: stripeMethod({
47
+ method: 'GET',
48
+ fullPath: '/v1/payment_intents/{intent}/amount_details_line_items',
49
+ methodType: 'list',
50
+ }),
46
51
  search: stripeMethod({
47
52
  method: 'GET',
48
53
  fullPath: '/v1/payment_intents/search',
package/cjs/resources.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExternalAccounts = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.BalanceSettings = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
5
- exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = void 0;
4
+ exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.FxQuotes = exports.Files = exports.FileLinks = exports.ExternalAccounts = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.BalanceSettings = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
5
+ exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = void 0;
6
6
  const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
7
7
  const AccountLinks_js_1 = require("./resources/V2/Core/AccountLinks.js");
8
8
  const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
@@ -158,6 +158,8 @@ var FileLinks_js_1 = require("./resources/FileLinks.js");
158
158
  Object.defineProperty(exports, "FileLinks", { enumerable: true, get: function () { return FileLinks_js_1.FileLinks; } });
159
159
  var Files_js_1 = require("./resources/Files.js");
160
160
  Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return Files_js_1.Files; } });
161
+ var FxQuotes_js_1 = require("./resources/FxQuotes.js");
162
+ Object.defineProperty(exports, "FxQuotes", { enumerable: true, get: function () { return FxQuotes_js_1.FxQuotes; } });
161
163
  var InvoiceItems_js_1 = require("./resources/InvoiceItems.js");
162
164
  Object.defineProperty(exports, "InvoiceItems", { enumerable: true, get: function () { return InvoiceItems_js_1.InvoiceItems; } });
163
165
  var InvoiceRenderingTemplates_js_1 = require("./resources/InvoiceRenderingTemplates.js");
@@ -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 = '18.1.0-beta.2';
39
+ Stripe.PACKAGE_VERSION = '18.1.0-beta.3';
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;
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const FxQuotes = StripeResource.extend({
5
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/fx_quotes' }),
6
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/fx_quotes/{id}' }),
7
+ list: stripeMethod({
8
+ method: 'GET',
9
+ fullPath: '/v1/fx_quotes',
10
+ methodType: 'list',
11
+ }),
12
+ });
@@ -19,10 +19,6 @@ export const Invoices = StripeResource.extend({
19
19
  method: 'POST',
20
20
  fullPath: '/v1/invoices/{invoice}/attach_payment',
21
21
  }),
22
- attachPaymentIntent: stripeMethod({
23
- method: 'POST',
24
- fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
25
- }),
26
22
  createPreview: stripeMethod({
27
23
  method: 'POST',
28
24
  fullPath: '/v1/invoices/create_preview',
@@ -36,11 +32,6 @@ export const Invoices = StripeResource.extend({
36
32
  fullPath: '/v1/invoices/{invoice}/lines',
37
33
  methodType: 'list',
38
34
  }),
39
- listPayments: stripeMethod({
40
- method: 'GET',
41
- fullPath: '/v1/invoices/{invoice}/payments',
42
- methodType: 'list',
43
- }),
44
35
  markUncollectible: stripeMethod({
45
36
  method: 'POST',
46
37
  fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
@@ -50,10 +41,6 @@ export const Invoices = StripeResource.extend({
50
41
  method: 'POST',
51
42
  fullPath: '/v1/invoices/{invoice}/remove_lines',
52
43
  }),
53
- retrievePayment: stripeMethod({
54
- method: 'GET',
55
- fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
56
- }),
57
44
  search: stripeMethod({
58
45
  method: 'GET',
59
46
  fullPath: '/v1/invoices/search',
@@ -40,6 +40,11 @@ export const PaymentIntents = StripeResource.extend({
40
40
  method: 'POST',
41
41
  fullPath: '/v1/payment_intents/{intent}/increment_authorization',
42
42
  }),
43
+ listAmountDetailsLineItems: stripeMethod({
44
+ method: 'GET',
45
+ fullPath: '/v1/payment_intents/{intent}/amount_details_line_items',
46
+ methodType: 'list',
47
+ }),
43
48
  search: stripeMethod({
44
49
  method: 'GET',
45
50
  fullPath: '/v1/payment_intents/search',
package/esm/resources.js CHANGED
@@ -130,6 +130,7 @@ export { ExchangeRates } from './resources/ExchangeRates.js';
130
130
  export { ExternalAccounts } from './resources/ExternalAccounts.js';
131
131
  export { FileLinks } from './resources/FileLinks.js';
132
132
  export { Files } from './resources/Files.js';
133
+ export { FxQuotes } from './resources/FxQuotes.js';
133
134
  export { InvoiceItems } from './resources/InvoiceItems.js';
134
135
  export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
135
136
  export { Invoices } from './resources/Invoices.js';
@@ -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 = '18.1.0-beta.2';
36
+ Stripe.PACKAGE_VERSION = '18.1.0-beta.3';
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": "18.1.0-beta.2",
3
+ "version": "18.1.0-beta.3",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -806,6 +806,8 @@ declare module 'stripe' {
806
806
  */
807
807
  phone?: string | null;
808
808
 
809
+ registration_date?: Company.RegistrationDate;
810
+
809
811
  /**
810
812
  * The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
811
813
  */
@@ -945,6 +947,23 @@ declare module 'stripe' {
945
947
  | 'qualified_entity_exceeds_ownership_threshold'
946
948
  | 'qualifies_as_financial_institution';
947
949
 
950
+ interface RegistrationDate {
951
+ /**
952
+ * The day of registration, between 1 and 31.
953
+ */
954
+ day: number | null;
955
+
956
+ /**
957
+ * The month of registration, between 1 and 12.
958
+ */
959
+ month: number | null;
960
+
961
+ /**
962
+ * The four-digit year of registration.
963
+ */
964
+ year: number | null;
965
+ }
966
+
948
967
  type Structure =
949
968
  | 'free_zone_establishment'
950
969
  | 'free_zone_llc'
@@ -1151,6 +1151,8 @@ declare module 'stripe' {
1151
1151
  */
1152
1152
  phone?: string;
1153
1153
 
1154
+ registration_date?: Stripe.Emptyable<Company.RegistrationDate>;
1155
+
1154
1156
  /**
1155
1157
  * The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
1156
1158
  */
@@ -1221,6 +1223,23 @@ declare module 'stripe' {
1221
1223
  | 'qualified_entity_exceeds_ownership_threshold'
1222
1224
  | 'qualifies_as_financial_institution';
1223
1225
 
1226
+ interface RegistrationDate {
1227
+ /**
1228
+ * The day of registration, between 1 and 31.
1229
+ */
1230
+ day: number;
1231
+
1232
+ /**
1233
+ * The month of registration, between 1 and 12.
1234
+ */
1235
+ month: number;
1236
+
1237
+ /**
1238
+ * The four-digit year of registration.
1239
+ */
1240
+ year: number;
1241
+ }
1242
+
1224
1243
  type Structure =
1225
1244
  | 'free_zone_establishment'
1226
1245
  | 'free_zone_llc'
@@ -3287,6 +3306,8 @@ declare module 'stripe' {
3287
3306
  */
3288
3307
  phone?: string;
3289
3308
 
3309
+ registration_date?: Stripe.Emptyable<Company.RegistrationDate>;
3310
+
3290
3311
  /**
3291
3312
  * The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
3292
3313
  */
@@ -3357,6 +3378,23 @@ declare module 'stripe' {
3357
3378
  | 'qualified_entity_exceeds_ownership_threshold'
3358
3379
  | 'qualifies_as_financial_institution';
3359
3380
 
3381
+ interface RegistrationDate {
3382
+ /**
3383
+ * The day of registration, between 1 and 31.
3384
+ */
3385
+ day: number;
3386
+
3387
+ /**
3388
+ * The month of registration, between 1 and 12.
3389
+ */
3390
+ month: number;
3391
+
3392
+ /**
3393
+ * The four-digit year of registration.
3394
+ */
3395
+ year: number;
3396
+ }
3397
+
3360
3398
  type Structure =
3361
3399
  | 'free_zone_establishment'
3362
3400
  | 'free_zone_llc'
@@ -4329,6 +4367,11 @@ declare module 'stripe' {
4329
4367
  */
4330
4368
  ssn_last_4?: string;
4331
4369
 
4370
+ /**
4371
+ * Demographic data related to the person.
4372
+ */
4373
+ us_cfpb_data?: AccountCreatePersonParams.UsCfpbData;
4374
+
4332
4375
  /**
4333
4376
  * The person's verification status.
4334
4377
  */
@@ -4463,6 +4506,88 @@ declare module 'stripe' {
4463
4506
  title?: string;
4464
4507
  }
4465
4508
 
4509
+ interface UsCfpbData {
4510
+ /**
4511
+ * The persons ethnicity details
4512
+ */
4513
+ ethnicity_details?: UsCfpbData.EthnicityDetails;
4514
+
4515
+ /**
4516
+ * The persons race details
4517
+ */
4518
+ race_details?: UsCfpbData.RaceDetails;
4519
+
4520
+ /**
4521
+ * The persons self-identified gender
4522
+ */
4523
+ self_identified_gender?: string;
4524
+ }
4525
+
4526
+ namespace UsCfpbData {
4527
+ interface EthnicityDetails {
4528
+ /**
4529
+ * The persons ethnicity
4530
+ */
4531
+ ethnicity?: Array<EthnicityDetails.Ethnicity>;
4532
+
4533
+ /**
4534
+ * Please specify your origin, when other is selected.
4535
+ */
4536
+ ethnicity_other?: string;
4537
+ }
4538
+
4539
+ namespace EthnicityDetails {
4540
+ type Ethnicity =
4541
+ | 'cuban'
4542
+ | 'hispanic_or_latino'
4543
+ | 'mexican'
4544
+ | 'not_hispanic_or_latino'
4545
+ | 'other_hispanic_or_latino'
4546
+ | 'prefer_not_to_answer'
4547
+ | 'puerto_rican';
4548
+ }
4549
+
4550
+ interface RaceDetails {
4551
+ /**
4552
+ * The persons race.
4553
+ */
4554
+ race?: Array<RaceDetails.Race>;
4555
+
4556
+ /**
4557
+ * Please specify your race, when other is selected.
4558
+ */
4559
+ race_other?: string;
4560
+ }
4561
+
4562
+ namespace RaceDetails {
4563
+ type Race =
4564
+ | 'african_american'
4565
+ | 'american_indian_or_alaska_native'
4566
+ | 'asian'
4567
+ | 'asian_indian'
4568
+ | 'black_or_african_american'
4569
+ | 'chinese'
4570
+ | 'ethiopian'
4571
+ | 'filipino'
4572
+ | 'guamanian_or_chamorro'
4573
+ | 'haitian'
4574
+ | 'jamaican'
4575
+ | 'japanese'
4576
+ | 'korean'
4577
+ | 'native_hawaiian'
4578
+ | 'native_hawaiian_or_other_pacific_islander'
4579
+ | 'nigerian'
4580
+ | 'other_asian'
4581
+ | 'other_black_or_african_american'
4582
+ | 'other_pacific_islander'
4583
+ | 'prefer_not_to_answer'
4584
+ | 'samoan'
4585
+ | 'somali'
4586
+ | 'vietnamese'
4587
+ | 'white';
4588
+ }
4589
+ }
4590
+
4466
4591
  interface Verification {
4467
4592
  /**
4468
4593
  * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
@@ -4871,6 +4996,11 @@ declare module 'stripe' {
4871
4996
  */
4872
4997
  ssn_last_4?: string;
4873
4998
 
4999
+ /**
5000
+ * Demographic data related to the person.
5001
+ */
5002
+ us_cfpb_data?: AccountUpdatePersonParams.UsCfpbData;
5003
+
4874
5004
  /**
4875
5005
  * The person's verification status.
4876
5006
  */
@@ -5005,6 +5135,88 @@ declare module 'stripe' {
5005
5135
  title?: string;
5006
5136
  }
5007
5137
 
5138
+ interface UsCfpbData {
5139
+ /**
5140
+ * The persons ethnicity details
5141
+ */
5142
+ ethnicity_details?: UsCfpbData.EthnicityDetails;
5143
+
5144
+ /**
5145
+ * The persons race details
5146
+ */
5147
+ race_details?: UsCfpbData.RaceDetails;
5148
+
5149
+ /**
5150
+ * The persons self-identified gender
5151
+ */
5152
+ self_identified_gender?: string;
5153
+ }
5154
+
5155
+ namespace UsCfpbData {
5156
+ interface EthnicityDetails {
5157
+ /**
5158
+ * The persons ethnicity
5159
+ */
5160
+ ethnicity?: Array<EthnicityDetails.Ethnicity>;
5161
+
5162
+ /**
5163
+ * Please specify your origin, when other is selected.
5164
+ */
5165
+ ethnicity_other?: string;
5166
+ }
5167
+
5168
+ namespace EthnicityDetails {
5169
+ type Ethnicity =
5170
+ | 'cuban'
5171
+ | 'hispanic_or_latino'
5172
+ | 'mexican'
5173
+ | 'not_hispanic_or_latino'
5174
+ | 'other_hispanic_or_latino'
5175
+ | 'prefer_not_to_answer'
5176
+ | 'puerto_rican';
5177
+ }
5178
+
5179
+ interface RaceDetails {
5180
+ /**
5181
+ * The persons race.
5182
+ */
5183
+ race?: Array<RaceDetails.Race>;
5184
+
5185
+ /**
5186
+ * Please specify your race, when other is selected.
5187
+ */
5188
+ race_other?: string;
5189
+ }
5190
+
5191
+ namespace RaceDetails {
5192
+ type Race =
5193
+ | 'african_american'
5194
+ | 'american_indian_or_alaska_native'
5195
+ | 'asian'
5196
+ | 'asian_indian'
5197
+ | 'black_or_african_american'
5198
+ | 'chinese'
5199
+ | 'ethiopian'
5200
+ | 'filipino'
5201
+ | 'guamanian_or_chamorro'
5202
+ | 'haitian'
5203
+ | 'jamaican'
5204
+ | 'japanese'
5205
+ | 'korean'
5206
+ | 'native_hawaiian'
5207
+ | 'native_hawaiian_or_other_pacific_islander'
5208
+ | 'nigerian'
5209
+ | 'other_asian'
5210
+ | 'other_black_or_african_american'
5211
+ | 'other_pacific_islander'
5212
+ | 'prefer_not_to_answer'
5213
+ | 'samoan'
5214
+ | 'somali'
5215
+ | 'vietnamese'
5216
+ | 'white';
5217
+ }
5218
+ }
5219
+
5008
5220
  interface Verification {
5009
5221
  /**
5010
5222
  * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
@@ -3,7 +3,11 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  /**
6
- * Options for customizing account balances within Stripe.
6
+ * Options for customizing account balances and payout settings for a Stripe platform's connected accounts.
7
+ *
8
+ * This API is only available for users enrolled in the public preview for Accounts v2 on Stripe Connect.
9
+ * If you are not in this preview, please use the [Accounts v1 API](https://docs.stripe.com/api/accounts?api-version=2025-03-31.basil)
10
+ * to manage your connected accounts' balance settings instead.
7
11
  */
8
12
  interface BalanceSettings {
9
13
  /**
@@ -97,7 +97,7 @@ declare module 'stripe' {
97
97
  namespace FinancingOffer {
98
98
  interface AcceptedTerms {
99
99
  /**
100
- * Amount of financing offered, in minor units.
100
+ * Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
101
101
  */
102
102
  advance_amount: number;
103
103
 
@@ -107,7 +107,7 @@ declare module 'stripe' {
107
107
  currency: string;
108
108
 
109
109
  /**
110
- * Fixed fee amount, in minor units.
110
+ * Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
111
111
  */
112
112
  fee_amount: number;
113
113
 
@@ -127,7 +127,7 @@ declare module 'stripe' {
127
127
 
128
128
  interface OfferedTerms {
129
129
  /**
130
- * Amount of financing offered, in minor units.
130
+ * Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
131
131
  */
132
132
  advance_amount: number;
133
133
 
@@ -142,7 +142,7 @@ declare module 'stripe' {
142
142
  currency: string;
143
143
 
144
144
  /**
145
- * Fixed fee amount, in minor units.
145
+ * Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
146
146
  */
147
147
  fee_amount: number;
148
148
 
@@ -34,7 +34,7 @@ declare module 'stripe' {
34
34
  namespace FinancingSummary {
35
35
  interface Details {
36
36
  /**
37
- * Amount of financing offered, in minor units.
37
+ * Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
38
38
  */
39
39
  advance_amount: number;
40
40
 
@@ -54,17 +54,17 @@ declare module 'stripe' {
54
54
  current_repayment_interval: Details.CurrentRepaymentInterval | null;
55
55
 
56
56
  /**
57
- * Fixed fee amount, in minor units.
57
+ * Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
58
58
  */
59
59
  fee_amount: number;
60
60
 
61
61
  /**
62
- * The amount the Connected account has paid toward the financing debt so far.
62
+ * The amount the Connected account has paid toward the financing debt so far, in minor units. For example, $1,000 USD will be represented as 100000.
63
63
  */
64
64
  paid_amount: number;
65
65
 
66
66
  /**
67
- * The balance remaining to be paid on the financing, in minor units.
67
+ * The balance remaining to be paid on the financing, in minor units. For example, $1,000 USD will be represented as 100000.
68
68
  */
69
69
  remaining_amount: number;
70
70
 
@@ -88,12 +88,12 @@ declare module 'stripe' {
88
88
  due_at: number;
89
89
 
90
90
  /**
91
- * The amount that has already been paid in the current repayment interval.
91
+ * The amount that has already been paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
92
92
  */
93
93
  paid_amount: number | null;
94
94
 
95
95
  /**
96
- * The amount that is yet to be paid in the current repayment interval.
96
+ * The amount that is yet to be paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
97
97
  */
98
98
  remaining_amount: number;
99
99
  }
@@ -264,6 +264,11 @@ declare module 'stripe' {
264
264
  * Billing phone number (including extension).
265
265
  */
266
266
  phone: string | null;
267
+
268
+ /**
269
+ * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
270
+ */
271
+ tax_id: string | null;
267
272
  }
268
273
 
269
274
  interface FraudDetails {