stripe 18.4.0-beta.2 → 18.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/CHANGELOG.md +39 -10
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/Billing/MeterUsage.js +12 -0
  6. package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
  7. package/cjs/resources.js +4 -0
  8. package/cjs/stripe.core.js +2 -1
  9. package/esm/apiVersion.js +1 -1
  10. package/esm/resources/Billing/MeterUsage.js +9 -0
  11. package/esm/resources/Terminal/OnboardingLinks.js +9 -0
  12. package/esm/resources.js +4 -0
  13. package/esm/stripe.core.js +2 -1
  14. package/package.json +1 -1
  15. package/types/AccountLinksResource.d.ts +3 -1
  16. package/types/AccountSessions.d.ts +30 -0
  17. package/types/AccountSessionsResource.d.ts +36 -0
  18. package/types/Accounts.d.ts +1 -1
  19. package/types/AccountsResource.d.ts +3 -3
  20. package/types/BalanceSettings.d.ts +6 -4
  21. package/types/BalanceSettingsResource.d.ts +8 -6
  22. package/types/Billing/CreditGrantsResource.d.ts +1 -1
  23. package/types/Billing/MeterUsage.d.ts +32 -0
  24. package/types/Billing/MeterUsageResource.d.ts +685 -0
  25. package/types/Billing/MeterUsageRows.d.ts +49 -0
  26. package/types/BillingPortal/Configurations.d.ts +21 -0
  27. package/types/BillingPortal/ConfigurationsResource.d.ts +48 -0
  28. package/types/Capabilities.d.ts +1 -6
  29. package/types/Charges.d.ts +10 -5
  30. package/types/Checkout/Sessions.d.ts +24 -1
  31. package/types/Checkout/SessionsResource.d.ts +108 -0
  32. package/types/ConfirmationTokens.d.ts +3 -3
  33. package/types/Customers.d.ts +1 -1
  34. package/types/Disputes.d.ts +23 -1
  35. package/types/Events.d.ts +14 -26
  36. package/types/FxQuotes.d.ts +6 -4
  37. package/types/Identity/VerificationSessions.d.ts +2 -2
  38. package/types/InvoiceItemsResource.d.ts +1 -1
  39. package/types/Invoices.d.ts +38 -0
  40. package/types/InvoicesResource.d.ts +115 -6
  41. package/types/PaymentAttemptRecords.d.ts +9 -4
  42. package/types/PaymentIntents.d.ts +1 -1
  43. package/types/PaymentIntentsResource.d.ts +966 -40
  44. package/types/PaymentLinks.d.ts +5 -0
  45. package/types/PaymentLinksResource.d.ts +102 -3
  46. package/types/PaymentMethods.d.ts +3 -3
  47. package/types/PaymentMethodsResource.d.ts +1 -1
  48. package/types/PaymentRecords.d.ts +9 -4
  49. package/types/QuotePreviewInvoices.d.ts +38 -0
  50. package/types/QuotesResource.d.ts +3 -0
  51. package/types/Radar/ValueLists.d.ts +1 -1
  52. package/types/Radar/ValueListsResource.d.ts +1 -1
  53. package/types/Refunds.d.ts +1 -1
  54. package/types/Reporting/ReportRunsResource.d.ts +1 -0
  55. package/types/Reviews.d.ts +2 -2
  56. package/types/SetupAttempts.d.ts +1 -1
  57. package/types/SubscriptionItemsResource.d.ts +2 -2
  58. package/types/SubscriptionSchedulesResource.d.ts +47 -2
  59. package/types/Subscriptions.d.ts +38 -0
  60. package/types/SubscriptionsResource.d.ts +86 -1
  61. package/types/Tax/Registrations.d.ts +228 -27
  62. package/types/Tax/RegistrationsResource.d.ts +648 -27
  63. package/types/Terminal/Configurations.d.ts +76 -0
  64. package/types/Terminal/ConfigurationsResource.d.ts +176 -0
  65. package/types/Terminal/OnboardingLinks.d.ts +57 -0
  66. package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
  67. package/types/V2/Core/AccountLinks.d.ts +66 -4
  68. package/types/V2/Core/AccountLinksResource.d.ts +65 -3
  69. package/types/V2/Core/Accounts.d.ts +22 -0
  70. package/types/V2/Core/AccountsResource.d.ts +44 -0
  71. package/types/V2/EventTypes.d.ts +32 -25
  72. package/types/V2/MoneyManagement/PayoutMethods.d.ts +9 -0
  73. package/types/V2/Payments/OffSessionPayments.d.ts +40 -23
  74. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +34 -19
  75. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +2 -0
  76. package/types/WebhookEndpointsResource.d.ts +2 -1
  77. package/types/index.d.ts +7 -0
  78. package/types/lib.d.ts +2 -1
  79. package/types/test/typescriptTest.ts +3 -3
package/CHANGELOG.md CHANGED
@@ -1,20 +1,49 @@
1
1
  # Changelog
2
2
 
3
+ ## 18.5.0-beta.1 - 2025-07-30
4
+ This release changes the pinned API version to `2025-07-30.preview`.
5
+
6
+ * [#2363](https://github.com/stripe/stripe-node/pull/2363) Update generated code for beta
7
+ * Add support for new resources `Billing.MeterUsageRow`, `Billing.MeterUsage`, and `Terminal.OnboardingLink`
8
+ * Add support for `retrieve` method on resource `Billing.MeterUsage`
9
+ * Add support for `create` method on resource `Terminal.OnboardingLink`
10
+ * Add support for `monthly_payout_days` and `weekly_payout_days` on `BalanceSettingUpdateParams.payouts.schedule` and `BalanceSettings.payouts.schedule`
11
+ * Remove support for `monthly_anchor` and `weekly_anchor` on `BalanceSettingUpdateParams.payouts.schedule` and `BalanceSettings.payouts.schedule`
12
+ * Add support for `delay_days_override` on `BalanceSettingUpdateParams.settlement_timing`
13
+ * Remove support for `delay_days` on `BalanceSettingUpdateParams.settlement_timing`
14
+ * Add support for `update_discounts` on `Checkout.SessionCreateParams.permissions`
15
+ * Add support for `discounts` and `subscription_data` on `Checkout.SessionUpdateParams`
16
+ * Add support for `smart_disputes` on `Dispute`
17
+ * Add support for `upi` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `QuotePreviewInvoice.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`
18
+ * Add support for new value `upi` 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`
19
+ * Add support for `transaction_id` on `PaymentAttemptRecord.payment_method_details.cashapp` and `PaymentRecord.payment_method_details.cashapp`
20
+ * Add support for `amount_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, and `PaymentIntentUpdateParams`
21
+ * Add support for `payment_details` on `PaymentIntentIncrementAuthorizationParams`
22
+ * Add support for `storer` on `V2.Core.Account.identity.attestations.terms_of_service`, `V2.Core.AccountCreateParams.identity.attestations.terms_of_service`, and `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
23
+ * Add support for `collection_options` on `V2.Core.AccountLink.use_case.account_onboarding`, `V2.Core.AccountLink.use_case.account_update`, `V2.Core.AccountLinkCreateParams.use_case.account_onboarding`, and `V2.Core.AccountLinkCreateParams.use_case.account_update`
24
+ * Change type of `V2.Core.AccountLink.use_case.account_onboarding.configurations`, `V2.Core.AccountLink.use_case.account_update.configurations`, `V2.Core.AccountLinkCreateParams.use_case.account_onboarding.configurations`, and `V2.Core.AccountLinkCreateParams.use_case.account_update.configurations` from `literal('recipient')` to `enum('customer'|'merchant'|'recipient'|'storer')`
25
+ * Add support for `bank_account_type` on `V2.MoneyManagement.PayoutMethod.bank_account`
26
+ * Add support for thin event `V2CoreAccountLinkReturnedEvent`
27
+ * Add support for thin event `V2MoneyManagementPayoutMethodUpdatedEvent` with related object `V2.MoneyManagement.PayoutMethod`
28
+ * Remove support for thin event `V2CoreAccountLinkCompletedEvent`
29
+ * Remove support for thin event `V2OffSessionPaymentRequiresCaptureEvent` with related object `V2.Payments.OffSessionPayment`
30
+
3
31
  ## 18.4.0-beta.2 - 2025-07-09
4
32
  * [#2367](https://github.com/stripe/stripe-node/pull/2367) Pull in V2 FinancialAccount changes for June release
5
- * Add support for `close` and `create` methods on resource `V2.MoneyManagement.FinancialAccount`
6
- * Add support for new value `storer` on enums `V2.Core.Account.applied_configurations` and `V2.Core.AccountCloseParams.applied_configurations`
7
- * Add support for `storer` on `V2.Core.Account.configuration`, `V2.Core.AccountCreateParams.configuration`, and `V2.Core.AccountUpdateParams.configuration`
8
- * Add support for new values `financial_addresses.bank_accounts`, `holds_currencies.gbp`, `inbound_transfers.financial_accounts`, `outbound_payments.bank_accounts`, `outbound_payments.cards`, `outbound_payments.financial_accounts`, `outbound_transfers.bank_accounts`, and `outbound_transfers.financial_accounts` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
9
- * Add support for new value `storer` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].configuration`
10
- * Add support for `status_details` on `V2.MoneyManagement.FinancialAccount`
11
- * Add support for `status` on `V2.MoneyManagement.FinancialAccountListParams`
12
- * Add support for new value `configuration.storer` on enums `V2.Core.AccountCreateParams.include`, `V2.Core.AccountRetrieveParams.include`, and `V2.Core.AccountUpdateParams.include`
13
- * Add support for thin events `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `V2.Core.Account`
33
+ * Add support for `close` and `create` methods on resource `V2.MoneyManagement.FinancialAccount`
34
+ * Add support for new value `storer` on enums `V2.Core.Account.applied_configurations` and `V2.Core.AccountCloseParams.applied_configurations`
35
+ * Add support for `storer` on `V2.Core.Account.configuration`, `V2.Core.AccountCreateParams.configuration`, and `V2.Core.AccountUpdateParams.configuration`
36
+ * Add support for new values `financial_addresses.bank_accounts`, `holds_currencies.gbp`, `inbound_transfers.financial_accounts`, `outbound_payments.bank_accounts`, `outbound_payments.cards`, `outbound_payments.financial_accounts`, `outbound_transfers.bank_accounts`, and `outbound_transfers.financial_accounts` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
37
+ * Add support for new value `storer` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].configuration`
38
+ * Add support for `status_details` on `V2.MoneyManagement.FinancialAccount`
39
+ * Add support for `status` on `V2.MoneyManagement.FinancialAccountListParams`
40
+ * Add support for new value `configuration.storer` on enums `V2.Core.AccountCreateParams.include`, `V2.Core.AccountRetrieveParams.include`, and `V2.Core.AccountUpdateParams.include`
41
+ * Add support for thin events `V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent` and `V2CoreAccountIncludingConfigurationStorerUpdatedEvent` with related object `V2.Core.Account`
14
42
  * Add support for error types `AlreadyExistsError` and `NonZeroBalanceError`
15
- * [#2362](https://github.com/stripe/stripe-node/pull/2362) Prathmesh/merge node beta
16
43
 
17
44
  ## 18.4.0-beta.1 - 2025-07-01
45
+ This release changes the pinned API version to `2025-06-30.preview`.
46
+
18
47
  * [#2344](https://github.com/stripe/stripe-node/pull/2344) Update generated code for beta
19
48
  * Change type of `Checkout.SessionCreateParams.subscription_data.billing_mode`, `InvoiceCreatePreviewParams.schedule_details.billing_mode`, `InvoiceCreatePreviewParams.subscription_details.billing_mode`, `Quote.subscription_data.billing_mode`, `QuoteCreateParams.subscription_data.billing_mode`, `SubscriptionCreateParams.billing_mode`, and `SubscriptionScheduleCreateParams.billing_mode` from `enum('classic'|'flexible')` to `billing_mode`
20
49
  * Add support for `submission_method` on `Dispute.evidence_details`
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1819
1
+ v1868
package/VERSION CHANGED
@@ -1 +1 @@
1
- 18.4.0-beta.2
1
+ 18.5.0-beta.1
package/cjs/apiVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2025-06-30.preview';
5
+ exports.ApiVersion = '2025-07-30.preview';
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MeterUsage = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.MeterUsage = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/billing/analytics/meter_usage',
11
+ }),
12
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OnboardingLinks = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.OnboardingLinks = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v1/terminal/onboarding_links',
11
+ }),
12
+ });
package/cjs/resources.js CHANGED
@@ -55,8 +55,10 @@ const MeterEventSession_js_1 = require("./resources/V2/Billing/MeterEventSession
55
55
  const MeterEventStream_js_1 = require("./resources/V2/Billing/MeterEventStream.js");
56
56
  const MeterEvents_js_1 = require("./resources/Billing/MeterEvents.js");
57
57
  const MeterEvents_js_2 = require("./resources/V2/Billing/MeterEvents.js");
58
+ const MeterUsage_js_1 = require("./resources/Billing/MeterUsage.js");
58
59
  const Meters_js_1 = require("./resources/Billing/Meters.js");
59
60
  const OffSessionPayments_js_1 = require("./resources/V2/Payments/OffSessionPayments.js");
61
+ const OnboardingLinks_js_1 = require("./resources/Terminal/OnboardingLinks.js");
60
62
  const Orders_js_1 = require("./resources/Climate/Orders.js");
61
63
  const OutboundPaymentQuotes_js_1 = require("./resources/V2/MoneyManagement/OutboundPaymentQuotes.js");
62
64
  const OutboundPayments_js_1 = require("./resources/TestHelpers/Treasury/OutboundPayments.js");
@@ -239,6 +241,7 @@ exports.Billing = (0, ResourceNamespace_js_1.resourceNamespace)('billing', {
239
241
  CreditGrants: CreditGrants_js_1.CreditGrants,
240
242
  MeterEventAdjustments: MeterEventAdjustments_js_1.MeterEventAdjustments,
241
243
  MeterEvents: MeterEvents_js_1.MeterEvents,
244
+ MeterUsage: MeterUsage_js_1.MeterUsage,
242
245
  Meters: Meters_js_1.Meters,
243
246
  });
244
247
  exports.BillingPortal = (0, ResourceNamespace_js_1.resourceNamespace)('billingPortal', {
@@ -315,6 +318,7 @@ exports.Terminal = (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
315
318
  Configurations: Configurations_js_2.Configurations,
316
319
  ConnectionTokens: ConnectionTokens_js_1.ConnectionTokens,
317
320
  Locations: Locations_js_1.Locations,
321
+ OnboardingLinks: OnboardingLinks_js_1.OnboardingLinks,
318
322
  ReaderCollectedData: ReaderCollectedData_js_1.ReaderCollectedData,
319
323
  Readers: Readers_js_2.Readers,
320
324
  });
@@ -36,7 +36,8 @@ 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.4.0-beta.2';
39
+ Stripe.PACKAGE_VERSION = '18.5.0-beta.1';
40
+ Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
40
41
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
41
42
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
42
43
  Stripe.resources = resources;
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2025-06-30.preview';
2
+ export const ApiVersion = '2025-07-30.preview';
@@ -0,0 +1,9 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const MeterUsage = StripeResource.extend({
5
+ retrieve: stripeMethod({
6
+ method: 'GET',
7
+ fullPath: '/v1/billing/analytics/meter_usage',
8
+ }),
9
+ });
@@ -0,0 +1,9 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const OnboardingLinks = StripeResource.extend({
5
+ create: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v1/terminal/onboarding_links',
8
+ }),
9
+ });
package/esm/resources.js CHANGED
@@ -51,8 +51,10 @@ import { MeterEventSession as V2BillingMeterEventSession } from './resources/V2/
51
51
  import { MeterEventStream as V2BillingMeterEventStream } from './resources/V2/Billing/MeterEventStream.js';
52
52
  import { MeterEvents as BillingMeterEvents } from './resources/Billing/MeterEvents.js';
53
53
  import { MeterEvents as V2BillingMeterEvents } from './resources/V2/Billing/MeterEvents.js';
54
+ import { MeterUsage as BillingMeterUsage } from './resources/Billing/MeterUsage.js';
54
55
  import { Meters as BillingMeters } from './resources/Billing/Meters.js';
55
56
  import { OffSessionPayments as V2PaymentsOffSessionPayments } from './resources/V2/Payments/OffSessionPayments.js';
57
+ import { OnboardingLinks as TerminalOnboardingLinks } from './resources/Terminal/OnboardingLinks.js';
56
58
  import { Orders as ClimateOrders } from './resources/Climate/Orders.js';
57
59
  import { OutboundPaymentQuotes as V2MoneyManagementOutboundPaymentQuotes } from './resources/V2/MoneyManagement/OutboundPaymentQuotes.js';
58
60
  import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resources/TestHelpers/Treasury/OutboundPayments.js';
@@ -174,6 +176,7 @@ export const Billing = resourceNamespace('billing', {
174
176
  CreditGrants: BillingCreditGrants,
175
177
  MeterEventAdjustments: BillingMeterEventAdjustments,
176
178
  MeterEvents: BillingMeterEvents,
179
+ MeterUsage: BillingMeterUsage,
177
180
  Meters: BillingMeters,
178
181
  });
179
182
  export const BillingPortal = resourceNamespace('billingPortal', {
@@ -250,6 +253,7 @@ export const Terminal = resourceNamespace('terminal', {
250
253
  Configurations: TerminalConfigurations,
251
254
  ConnectionTokens: TerminalConnectionTokens,
252
255
  Locations: TerminalLocations,
256
+ OnboardingLinks: TerminalOnboardingLinks,
253
257
  ReaderCollectedData: TerminalReaderCollectedData,
254
258
  Readers: TerminalReaders,
255
259
  });
@@ -33,7 +33,8 @@ 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.4.0-beta.2';
36
+ Stripe.PACKAGE_VERSION = '18.5.0-beta.1';
37
+ Stripe.API_VERSION = ApiVersion;
37
38
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
38
39
  Stripe.StripeResource = StripeResource;
39
40
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "18.4.0-beta.2",
3
+ "version": "18.5.0-beta.1",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -9,7 +9,9 @@ declare module 'stripe' {
9
9
  account: string;
10
10
 
11
11
  /**
12
- * The type of account link the user is requesting. Possible values are `account_onboarding` or `account_update`.
12
+ * The type of account link the user is requesting.
13
+ *
14
+ * You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
13
15
  */
14
16
  type: AccountLinkCreateParams.Type;
15
17
 
@@ -66,6 +66,8 @@ declare module 'stripe' {
66
66
 
67
67
  financial_account_transactions: Components.FinancialAccountTransactions;
68
68
 
69
+ instant_payouts_promotion: Components.InstantPayoutsPromotion;
70
+
69
71
  issuing_card: Components.IssuingCard;
70
72
 
71
73
  issuing_cards_list: Components.IssuingCardsList;
@@ -308,6 +310,34 @@ declare module 'stripe' {
308
310
  }
309
311
  }
310
312
 
313
+ interface InstantPayoutsPromotion {
314
+ /**
315
+ * Whether the embedded component is enabled.
316
+ */
317
+ enabled: boolean;
318
+
319
+ features: InstantPayoutsPromotion.Features;
320
+ }
321
+
322
+ namespace InstantPayoutsPromotion {
323
+ interface Features {
324
+ /**
325
+ * Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
326
+ */
327
+ disable_stripe_user_authentication: boolean;
328
+
329
+ /**
330
+ * Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
331
+ */
332
+ external_account_collection: boolean;
333
+
334
+ /**
335
+ * Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
336
+ */
337
+ instant_payouts: boolean;
338
+ }
339
+ }
340
+
311
341
  interface IssuingCard {
312
342
  /**
313
343
  * Whether the embedded component is enabled.
@@ -91,6 +91,11 @@ declare module 'stripe' {
91
91
  */
92
92
  financial_account_transactions?: Components.FinancialAccountTransactions;
93
93
 
94
+ /**
95
+ * Configuration for the [instant payouts promotion](https://docs.stripe.com/connect/supported-embedded-components/instant-payouts-promotion/) embedded component.
96
+ */
97
+ instant_payouts_promotion?: Components.InstantPayoutsPromotion;
98
+
94
99
  /**
95
100
  * Configuration for the [issuing card](https://docs.stripe.com/connect/supported-embedded-components/issuing-card/) embedded component.
96
101
  */
@@ -492,6 +497,37 @@ declare module 'stripe' {
492
497
  }
493
498
  }
494
499
 
500
+ interface InstantPayoutsPromotion {
501
+ /**
502
+ * Whether the embedded component is enabled.
503
+ */
504
+ enabled: boolean;
505
+
506
+ /**
507
+ * The list of features enabled in the embedded component.
508
+ */
509
+ features?: InstantPayoutsPromotion.Features;
510
+ }
511
+
512
+ namespace InstantPayoutsPromotion {
513
+ interface Features {
514
+ /**
515
+ * Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
516
+ */
517
+ disable_stripe_user_authentication?: boolean;
518
+
519
+ /**
520
+ * Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
521
+ */
522
+ external_account_collection?: boolean;
523
+
524
+ /**
525
+ * Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
526
+ */
527
+ instant_payouts?: boolean;
528
+ }
529
+ }
530
+
495
531
  interface IssuingCard {
496
532
  /**
497
533
  * Whether the embedded component is enabled.
@@ -144,7 +144,7 @@ declare module 'stripe' {
144
144
  mcc: string | null;
145
145
 
146
146
  /**
147
- * Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
147
+ * Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
148
148
  */
149
149
  minority_owned_business_designation: Array<
150
150
  BusinessProfile.MinorityOwnedBusinessDesignation
@@ -126,7 +126,7 @@ declare module 'stripe' {
126
126
  mcc?: string;
127
127
 
128
128
  /**
129
- * Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
129
+ * Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
130
130
  */
131
131
  minority_owned_business_designation?: Array<
132
132
  BusinessProfile.MinorityOwnedBusinessDesignation
@@ -2296,7 +2296,7 @@ declare module 'stripe' {
2296
2296
  mcc?: string;
2297
2297
 
2298
2298
  /**
2299
- * Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
2299
+ * Whether the business is a minority-owned, women-owned, and/or LGBTQI+ -owned business.
2300
2300
  */
2301
2301
  minority_owned_business_designation?: Array<
2302
2302
  BusinessProfile.MinorityOwnedBusinessDesignation
@@ -5445,7 +5445,7 @@ declare module 'stripe' {
5445
5445
  *
5446
5446
  * Test-mode accounts can be deleted at any time.
5447
5447
  *
5448
- * Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
5448
+ * Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
5449
5449
  *
5450
5450
  * If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
5451
5451
  */
@@ -56,20 +56,22 @@ declare module 'stripe' {
56
56
  /**
57
57
  * The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
58
58
  */
59
- monthly_anchor?: number;
59
+ monthly_payout_days?: Array<number>;
60
60
 
61
61
  /**
62
- * The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
62
+ * The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
63
63
  */
64
- weekly_anchor?: Schedule.WeeklyAnchor;
64
+ weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
65
65
  }
66
66
 
67
67
  namespace Schedule {
68
68
  type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
69
69
 
70
- type WeeklyAnchor =
70
+ type WeeklyPayoutDay =
71
71
  | 'friday'
72
72
  | 'monday'
73
+ | 'saturday'
74
+ | 'sunday'
73
75
  | 'thursday'
74
76
  | 'tuesday'
75
77
  | 'wednesday';
@@ -52,22 +52,24 @@ declare module 'stripe' {
52
52
  interval?: Schedule.Interval;
53
53
 
54
54
  /**
55
- * The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
55
+ * The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
56
56
  */
57
- monthly_anchor?: number;
57
+ monthly_payout_days?: Array<number>;
58
58
 
59
59
  /**
60
- * The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
60
+ * The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly`.)
61
61
  */
62
- weekly_anchor?: Schedule.WeeklyAnchor;
62
+ weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
63
63
  }
64
64
 
65
65
  namespace Schedule {
66
66
  type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
67
67
 
68
- type WeeklyAnchor =
68
+ type WeeklyPayoutDay =
69
69
  | 'friday'
70
70
  | 'monday'
71
+ | 'saturday'
72
+ | 'sunday'
71
73
  | 'thursday'
72
74
  | 'tuesday'
73
75
  | 'wednesday';
@@ -78,7 +80,7 @@ declare module 'stripe' {
78
80
  /**
79
81
  * The number of days charge funds are held before becoming available. 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 `payouts.schedule.interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
80
82
  */
81
- delay_days?: number;
83
+ delay_days_override?: number;
82
84
  }
83
85
  }
84
86
 
@@ -68,7 +68,7 @@ declare module 'stripe' {
68
68
  monetary?: Amount.Monetary;
69
69
 
70
70
  /**
71
- * Specify the type of this amount. We currently only support `monetary` billing credits.
71
+ * The type of this amount. We currently only support `monetary` billing credits.
72
72
  */
73
73
  type: 'monetary';
74
74
  }
@@ -0,0 +1,32 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Billing {
6
+ /**
7
+ * A billing meter usage event represents an aggregated view of a customer's billing meter events within a specified timeframe.
8
+ */
9
+ interface MeterUsage {
10
+ /**
11
+ * String representing the object's type. Objects of the same type share the same value.
12
+ */
13
+ object: 'billing.meter_usage';
14
+
15
+ /**
16
+ * The aggregated meter usage data for the specified customer and time range.
17
+ */
18
+ data: Array<Stripe.Billing.MeterUsageRow>;
19
+
20
+ /**
21
+ * Timestamp indicating how fresh the data is. Measured in seconds since the Unix epoch.
22
+ */
23
+ data_refreshed_at: number;
24
+
25
+ /**
26
+ * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
27
+ */
28
+ livemode: boolean;
29
+ }
30
+ }
31
+ }
32
+ }