stripe 17.7.0 → 18.0.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 (99) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/InvoicePayments.js +17 -0
  6. package/cjs/resources/Invoices.js +0 -9
  7. package/cjs/resources/SubscriptionItems.js +0 -9
  8. package/cjs/resources.js +4 -2
  9. package/cjs/stripe.core.js +3 -14
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/InvoicePayments.js +14 -0
  12. package/esm/resources/Invoices.js +0 -9
  13. package/esm/resources/SubscriptionItems.js +0 -9
  14. package/esm/resources.js +1 -0
  15. package/esm/stripe.core.js +3 -14
  16. package/package.json +1 -1
  17. package/types/Accounts.d.ts +47 -6
  18. package/types/AccountsResource.d.ts +110 -3
  19. package/types/ApplicationFees.d.ts +1 -1
  20. package/types/BalanceTransactions.d.ts +3 -1
  21. package/types/BalanceTransactionsResource.d.ts +1 -1
  22. package/types/BankAccounts.d.ts +9 -1
  23. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  24. package/types/Billing/CreditGrants.d.ts +2 -2
  25. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  26. package/types/Billing/Meters.d.ts +1 -1
  27. package/types/Billing/MetersResource.d.ts +2 -2
  28. package/types/Capabilities.d.ts +8 -0
  29. package/types/Cards.d.ts +1 -4
  30. package/types/Charges.d.ts +56 -5
  31. package/types/ChargesResource.d.ts +1 -1
  32. package/types/Checkout/Sessions.d.ts +77 -53
  33. package/types/Checkout/SessionsResource.d.ts +232 -15
  34. package/types/ConfirmationTokens.d.ts +50 -0
  35. package/types/CreditNoteLineItems.d.ts +24 -22
  36. package/types/CreditNotes.d.ts +39 -15
  37. package/types/CreditNotesResource.d.ts +48 -12
  38. package/types/CustomerBalanceTransactions.d.ts +8 -1
  39. package/types/Customers.d.ts +3 -3
  40. package/types/CustomersResource.d.ts +3 -14
  41. package/types/EventTypes.d.ts +138 -2
  42. package/types/Events.d.ts +9 -1
  43. package/types/Identity/VerificationSessions.d.ts +1 -1
  44. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  45. package/types/InvoiceItems.d.ts +60 -26
  46. package/types/InvoiceItemsResource.d.ts +26 -22
  47. package/types/InvoiceLineItems.d.ts +160 -70
  48. package/types/InvoicePayments.d.ts +99 -0
  49. package/types/InvoicePaymentsResource.d.ts +74 -0
  50. package/types/Invoices.d.ts +97 -83
  51. package/types/InvoicesResource.d.ts +239 -2846
  52. package/types/Issuing/Authorizations.d.ts +2 -1
  53. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  54. package/types/Mandates.d.ts +8 -0
  55. package/types/PaymentIntents.d.ts +59 -8
  56. package/types/PaymentIntentsResource.d.ts +293 -8
  57. package/types/PaymentLinks.d.ts +49 -0
  58. package/types/PaymentLinksResource.d.ts +77 -0
  59. package/types/PaymentMethodConfigurations.d.ts +108 -0
  60. package/types/PaymentMethodConfigurationsResource.d.ts +150 -0
  61. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  62. package/types/PaymentMethods.d.ts +50 -0
  63. package/types/PaymentMethodsResource.d.ts +54 -16
  64. package/types/Persons.d.ts +17 -9
  65. package/types/Plans.d.ts +0 -7
  66. package/types/PlansResource.d.ts +0 -7
  67. package/types/Prices.d.ts +0 -11
  68. package/types/PricesResource.d.ts +2 -13
  69. package/types/QuotesResource.d.ts +2 -2
  70. package/types/Refunds.d.ts +18 -0
  71. package/types/Reviews.d.ts +3 -2
  72. package/types/SetupAttempts.d.ts +15 -0
  73. package/types/SetupIntents.d.ts +2 -0
  74. package/types/SetupIntentsResource.d.ts +155 -0
  75. package/types/SubscriptionItems.d.ts +9 -13
  76. package/types/SubscriptionItemsResource.d.ts +2 -94
  77. package/types/SubscriptionSchedules.d.ts +0 -51
  78. package/types/SubscriptionSchedulesResource.d.ts +4 -110
  79. package/types/Subscriptions.d.ts +3 -33
  80. package/types/SubscriptionsResource.d.ts +8 -86
  81. package/types/Tax/Calculations.d.ts +1 -1
  82. package/types/Tax/RegistrationsResource.d.ts +1 -1
  83. package/types/TaxRates.d.ts +1 -1
  84. package/types/Terminal/Configurations.d.ts +86 -3
  85. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  86. package/types/TestHelpers/ConfirmationTokensResource.d.ts +51 -0
  87. package/types/TokensResource.d.ts +6 -1
  88. package/types/Treasury/FinancialAccountsResource.d.ts +1 -1
  89. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  90. package/types/V2/Core/EventsResource.d.ts +0 -5
  91. package/types/V2/EventDestinations.d.ts +1 -1
  92. package/types/V2/Events.d.ts +1 -1
  93. package/types/WebhookEndpointsResource.d.ts +21 -3
  94. package/types/index.d.ts +3 -3
  95. package/types/lib.d.ts +1 -1
  96. package/types/test/typescriptTest.ts +3 -6
  97. package/types/Deprecations.d.ts +0 -215
  98. package/types/UsageRecordSummaries.d.ts +0 -56
  99. package/types/UsageRecords.d.ts +0 -45
package/CHANGELOG.md CHANGED
@@ -1,4 +1,143 @@
1
1
  # Changelog
2
+ ## 18.0.0 - 2025-04-01
3
+ * [#2279](https://github.com/stripe/stripe-node/pull/2279) Support for APIs in the new API version 2025-03-31.basil
4
+
5
+ This release changes the pinned API version to `2025-03-31.basil`.
6
+
7
+ ### ⚠️ Breaking changes due to changes in the Stripe API
8
+
9
+ Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/acacia) before upgrading.
10
+
11
+ * Remove support for resources `SubscriptionItemUsageRecordSummary` and `SubscriptionItemUsageRecord`
12
+ * Remove support for `listUpcomingLines` and `retrieveUpcoming` methods on resource `Invoice`
13
+ * Remove support for `createUsageRecord` and `listUsageRecordSummaries` methods on resource `SubscriptionItems`
14
+ * Remove support for `invoice` on `Charge` and `PaymentIntent`
15
+ * Remove support for `shipping_details` on `Checkout.Session`
16
+ * Remove support for `carrier`, `phone`, and `tracking_number` on `Checkout.Session.collected_information.shipping_details`. Make `name` and `address` required instead of optional.
17
+ * Remove support for `refund` on `CreditNoteCreateParams`, `CreditNoteListPreviewLineItemsParams`, `CreditNotePreviewParams`, and `CreditNote`
18
+ * Remove support for `tax_amounts` on `CreditNoteLineItem`, `CreditNote`, and `InvoiceLineItem`
19
+ * Remove support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem`
20
+ * Remove support for `coupon` on `CustomerCreateParams`, `CustomerUpdateParams`, `InvoiceCreatePreviewParams.schedule_details.phases[]`, `InvoiceCreatePreviewParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `SubscriptionUpdateParams`
21
+ * Remove support for `promotion_code` on `CustomerCreateParams`, `CustomerUpdateParams`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams`
22
+ * Remove support for `price` on `InvoiceAddLinesParams.lines[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]. Use `pricing` instead.
23
+ * Remove support for `billing_thresholds` on `InvoiceCreatePreviewParams.schedule_details.phases[].items[]`, `InvoiceCreatePreviewParams.schedule_details.phases[]`, `InvoiceCreatePreviewParams.subscription_details.items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription`
24
+ * Remove support for `application_fee_amount`, `charge`, `paid_out_of_band`, `paid`, `payment_intent`, `quote`, `subscription`, `subscription_details`, `subscription_proration_date`, `tax`, `total_tax_amounts`, and `transfer_data` on `Invoice`
25
+ * Remove support for `discount` on `Invoice` and `Subscription`
26
+ * Remove support for `invoice_item`, `proration_details`, `proration`, `tax_rates`, and `type` on `InvoiceLineItem`
27
+ * Remove support for `plan` and `subscription_item` on `InvoiceItem` and `InvoiceLineItem`
28
+ * Remove support for `unit_amount` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, and `InvoiceItem`
29
+ * Remove support for `subscription` and `unit_amount_decimal` on `InvoiceItem`
30
+ * Remove support for `naver_pay` on `PaymentMethodUpdateParams`
31
+ * Remove support for `aggregate_usage` on `PlanCreateParams`, `Plan`, `Price.recurring`, and `PriceCreateParams.recurring`
32
+ * Remove support for `current_period_end` and `current_period_start` on `Subscription`
33
+ * `page` has been removed from all V2 list method params (e.g. `EventService.list()`); use the [auto paginator](https://github.com/stripe/stripe-node?tab=readme-ov-file#auto-pagination) or the `next_page_url` and `previous_page_url` fields instead ([more info](https://docs.stripe.com/api-v2-overview#list-pagination))
34
+
35
+ ### Changes
36
+
37
+ * Change `Checkout.Session.collected_information` to be required
38
+ * Change `Checkout.Session.collected_information.shipping_details` to be required
39
+ * Change `Checkout.Session.collected_information.shipping_details.address` to be required
40
+ * Change `Checkout.Session.collected_information.shipping_details.name` to be required
41
+ * Change `PaymentIntentConfirmParams.payment_method_options.wechat_pay.client`, `PaymentIntentCreateParams.payment_method_options.wechat_pay.client`, and `PaymentIntentUpdateParams.payment_method_options.wechat_pay.client` to be optional
42
+ * Change `political_exposure` on resources `Person` and `Token` and params `Token.CreateParams` from string to enum("existing" | "none")
43
+
44
+ ### Additions
45
+
46
+ * Add support for new resource `InvoicePayment`
47
+ * Add support for `list` and `retrieve` methods on resource `InvoicePayment`
48
+ * Add support for `billie_payments`, `nz_bank_account_becs_debit_payments`, and `satispay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
49
+ * Add support for `hosted_payment_method_save` on `Account.settings.invoices` and `AccountUpdateParams.settings.invoices`
50
+ * Add support for `invoices` on `AccountCreateParams.settings`
51
+ * Add support for new values `information_missing`, `invalid_signator`, `verification_failed_authorizer_authority`, and `verification_rejected_ownership_exemption_reason` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `AccountCapability.future_requirements.errors[].code`, `AccountCapability.requirements.errors[].code`, `AccountPerson.future_requirements.errors[].code`, `AccountPerson.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
52
+ * Add support for new values `forwarding_api_retryable_upstream_error` and `setup_intent_mobile_wallet_unsupported` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
53
+ * Add support for new values `stripe_balance_payment_debit_reversal` and `stripe_balance_payment_debit` on enum `BalanceTransaction.type`
54
+ * Add support for new value `last` on enums `Billing.Meter.default_aggregation.formula` and `Billing.MeterCreateParams.default_aggregation.formula`
55
+ * Add support for `presentment_details` on `Charge`, `Checkout.Session`, `PaymentIntent`, and `Refund`
56
+ * Add support for `billie` and `satispay` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerPaymentMethod`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
57
+ * Add support for `nz_bank_account` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerPaymentMethod`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
58
+ * Add support for `optional_items` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentLinkCreateParams`, and `PaymentLink`
59
+ * Add support for `permissions` on `Checkout.SessionCreateParams` and `Checkout.Session`
60
+ * Add support for new values `billie` and `satispay` on enum `Checkout.SessionCreateParams.payment_method_types`
61
+ * Add support for new value `custom` on enums `Checkout.Session.ui_mode` and `Checkout.SessionCreateParams.ui_mode`
62
+ * Add support for `shipping_options` on `Checkout.SessionUpdateParams`
63
+ * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
64
+ * Add support for `buyer_id` on `ConfirmationToken.payment_method_preview.naver_pay`, `CustomerPaymentMethod.naver_pay`, and `PaymentMethod.naver_pay`
65
+ * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `ConfirmationToken.payment_method_preview.type`, `CustomerPaymentMethod.type`, and `PaymentMethod.type`
66
+ * Add support for `refunds` on `CreditNoteCreateParams`, `CreditNoteListPreviewLineItemsParams`, `CreditNotePreviewParams`, and `CreditNote`
67
+ * Add support for `total_taxes` on `CreditNote` and `Invoice`
68
+ * Add support for `taxes` on `CreditNoteLineItem` and `InvoiceLineItem`
69
+ * Add support for `checkout_session` on `CustomerBalanceTransaction`
70
+ * Add support for new values `checkout_session_subscription_payment_canceled` and `checkout_session_subscription_payment` on enum `CustomerBalanceTransaction.type`
71
+ * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `CustomerPaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
72
+ * Add support for new value `invoice.overpaid` on enum `Event.type`
73
+ * Add support for new values `klarna` and `nz_bank_account` on enums `Invoice.payment_settings.payment_method_types`, `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `Subscription.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
74
+ * Add support for `pricing` on `InvoiceAddLinesParams.lines[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]`
75
+ * Add support for `taxability_reason` on `InvoiceAddLinesParams.lines[].tax_amounts[]`, `InvoiceLineItemUpdateParams.tax_amounts[]`, and `InvoiceUpdateLinesParams.lines[].tax_amounts[]`
76
+ * Add support for `jurisdiction_level` on `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data`, `InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data`, and `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data`
77
+ * Add support for `amount_overpaid`, `confirmation_secret`, and `payments` on `Invoice`
78
+ * Add support for `parent` on `InvoiceItem`, `InvoiceLineItem`, and `Invoice`
79
+ * Add support for new value `expired` on enums `Issuing.Authorization.status` and `Issuing.AuthorizationListParams.status`
80
+ * Add support for new value `network_fallback` on enum `Issuing.Authorization.request_history[].reason`
81
+ * Add support for `naver_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
82
+ * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.naver_pay`, `PaymentIntentConfirmParams.payment_method_options.naver_pay`, `PaymentIntentCreateParams.payment_method_options.naver_pay`, and `PaymentIntentUpdateParams.payment_method_options.naver_pay`
83
+ * Add support for new value `expired` on enum `PaymentIntent.cancellation_reason`
84
+ * Add support for `default_value` on `PaymentLink.custom_fields[].dropdown`, `PaymentLink.custom_fields[].numeric`, `PaymentLink.custom_fields[].text`, `PaymentLinkCreateParams.custom_fields[].dropdown`, `PaymentLinkCreateParams.custom_fields[].numeric`, `PaymentLinkCreateParams.custom_fields[].text`, `PaymentLinkUpdateParams.custom_fields[].dropdown`, `PaymentLinkUpdateParams.custom_fields[].numeric`, and `PaymentLinkUpdateParams.custom_fields[].text`
85
+ * Add support for new values `billie` and `satispay` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkUpdateParams.payment_method_types`
86
+ * Add support for `nz_bank_transfer` on `Refund.destination_details`
87
+ * Add support for new value `canceled` on enum `Review.closed_reason`
88
+ * Add support for `current_period_end` and `current_period_start` on `SubscriptionItem`
89
+ * Add support for `wifi` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
90
+ * Add support for new value `invoice.overpaid` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
91
+ * Add support for new values `2025-03-01.dashboard` and `2025-03-31.basil` on enum `WebhookEndpointCreateParams.api_version`
92
+
93
+ ### ⚠️ Other Breaking changes in the SDK
94
+ * [#2277](https://github.com/stripe/stripe-node/pull/2277) Swap Stripe.webhooks from a factory function to a static property
95
+ - `Stripe.webhooks` and `Stripe().webhooks` are no longer functions (just plain objects)
96
+ - if you were already treating those properties as plain objects (per the types), then you can ignore this change
97
+ - if you were calling `Stripe.webhooks().someMethod()`, you should use `Stripe.webhooks.someMethod()` instead
98
+ - there shouldn't be user-facing functionality changing, just a slight breaking change in our internal organization
99
+ * [#2286](https://github.com/stripe/stripe-node/pull/2286) Remove types that were marked as deprecated in Feb 2024
100
+ * Remove `AccountDebitSource` in favor of `Account`
101
+ * Remove `CapabilityListParams` in favor of `AccountListCapabilitiesParams`
102
+ * Remove `CapabilityRetrieveParams` in favor of `AccountRetrieveCapabilityParams`
103
+ * Remove `CapabilityUpdateParams` in favor of `AccountUpdateCapabilityParams`
104
+ * Remove `CashBalanceRetrieveParams` in favor of `CustomerRetrieveCashBalanceParams`
105
+ * Remove `CashBalanceUpdateParams` in favor of `CustomerUpdateCashBalanceParams`
106
+ * Remove `CreditNoteLineItemListParams` in favor of `CreditNoteListLineItemsParams`
107
+ * Remove `CustomerBalanceTransactionCreateParams` in favor of `CustomerCreateBalanceTransactionParams`
108
+ * Remove `CustomerBalanceTransactionListParams` in favor of `CustomerListBalanceTransactionsParams`
109
+ * Remove `CustomerBalanceTransactionRetrieveParams` in favor of `CustomerRetrieveBalanceTransactionParams`
110
+ * Remove `CustomerBalanceTransactionUpdateParams` in favor of `CustomerUpdateBalanceTransactionParams`
111
+ * Remove `CustomerCashBalanceTransactionListParams` in favor of `CustomerListCashBalanceTransactionsParams`
112
+ * Remove `CustomerCashBalanceTransactionRetrieveParams` in favor of `CustomerRetrieveCashBalanceTransactionParams`
113
+ * Remove `CustomerSourceCreateParams` in favor of `CustomerCreateSourceParams`
114
+ * Remove `CustomerSourceDeleteParams` in favor of `CustomerDeleteSourceParams`
115
+ * Remove `CustomerSourceListParams` in favor of `CustomerListSourcesParams`
116
+ * Remove `CustomerSourceRetrieveParams` in favor of `CustomerRetrieveSourceParams`
117
+ * Remove `CustomerSourceUpdateParams` in favor of `CustomerUpdateSourceParams`
118
+ * Remove `CustomerSourceVerifyParams` in favor of `CustomerVerifySourceParams`
119
+ * Remove `ExternalAccountCreateParams` in favor of `AccountCreateExternalAccountParams`
120
+ * Remove `ExternalAccountDeleteParams` in favor of `AccountDeleteExternalAccountParams`
121
+ * Remove `ExternalAccountListParams` in favor of `AccountListExternalAccountsParams`
122
+ * Remove `ExternalAccountRetrieveParams` in favor of `AccountRetrieveExternalAccountParams`
123
+ * Remove `ExternalAccountUpdateParams` in favor of `AccountUpdateExternalAccountParams`
124
+ * Remove `FeeRefundCreateParams` in favor of `ApplicationFeeCreateRefundParams`
125
+ * Remove `FeeRefundListParams` in favor of `ApplicationFeeListRefundsParams`
126
+ * Remove `FeeRefundRetrieveParams` in favor of `ApplicationFeeRetrieveRefundParams`
127
+ * Remove `FeeRefundUpdateParams` in favor of `ApplicationFeeUpdateRefundParams`
128
+ * Remove `InvoiceLineItemListParams` in favor of `InvoiceListLineItemsParams`
129
+ * Remove `InvoiceLineItemUpdateParams` in favor of `InvoiceUpdateLineItemParams`
130
+ * Remove `LoginLinkCreateParams` in favor of `AccountCreateLoginLinkParams`
131
+ * Remove `PersonCreateParams` in favor of `AccountCreatePersonParams`
132
+ * Remove `PersonDeleteParams` in favor of `AccountDeletePersonParams`
133
+ * Remove `PersonListParams` in favor of `AccountListPersonsParams`
134
+ * Remove `PersonRetrieveParams` in favor of `AccountRetrievePersonParams`
135
+ * Remove `PersonUpdateParams` in favor of `AccountUpdatePersonParams`
136
+ * Remove `TransferReversalCreateParams` in favor of `TransferCreateReversalParams`
137
+ * Remove `TransferReversalListParams` in favor of `TransferListReversalsParams`
138
+ * Remove `TransferReversalRetrieveParams` in favor of `TransferRetrieveReversalParams`
139
+ * Remove `TransferReversalUpdateParams` in favor of `TransferUpdateReversalParams`
140
+
2
141
  ## 17.7.0 - 2025-02-24
3
142
  * [#2256](https://github.com/stripe/stripe-node/pull/2256) Update generated code
4
143
  * Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1505
1
+ v1642
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.7.0
1
+ 18.0.0
package/cjs/apiVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2025-02-24.acacia';
5
+ exports.ApiVersion = '2025-03-31.basil';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InvoicePayments = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.InvoicePayments = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/invoice_payments/{invoice_payment}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/invoice_payments',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -31,11 +31,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
31
31
  fullPath: '/v1/invoices/{invoice}/lines',
32
32
  methodType: 'list',
33
33
  }),
34
- listUpcomingLines: stripeMethod({
35
- method: 'GET',
36
- fullPath: '/v1/invoices/upcoming/lines',
37
- methodType: 'list',
38
- }),
39
34
  markUncollectible: stripeMethod({
40
35
  method: 'POST',
41
36
  fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
@@ -45,10 +40,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
45
40
  method: 'POST',
46
41
  fullPath: '/v1/invoices/{invoice}/remove_lines',
47
42
  }),
48
- retrieveUpcoming: stripeMethod({
49
- method: 'GET',
50
- fullPath: '/v1/invoices/upcoming',
51
- }),
52
43
  search: stripeMethod({
53
44
  method: 'GET',
54
45
  fullPath: '/v1/invoices/search',
@@ -23,13 +23,4 @@ exports.SubscriptionItems = StripeResource_js_1.StripeResource.extend({
23
23
  method: 'DELETE',
24
24
  fullPath: '/v1/subscription_items/{item}',
25
25
  }),
26
- createUsageRecord: stripeMethod({
27
- method: 'POST',
28
- fullPath: '/v1/subscription_items/{subscription_item}/usage_records',
29
- }),
30
- listUsageRecordSummaries: stripeMethod({
31
- method: 'GET',
32
- fullPath: '/v1/subscription_items/{subscription_item}/usage_record_summaries',
33
- methodType: 'list',
34
- }),
35
26
  });
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.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = 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.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.OAuth = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = 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.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountLinks = exports.Account = void 0;
5
- exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = void 0;
4
+ exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = 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.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.OAuth = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoicePayments = exports.InvoiceItems = exports.Files = exports.FileLinks = 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.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountLinks = exports.Account = void 0;
5
+ exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = void 0;
6
6
  const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
7
7
  const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
8
8
  const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
@@ -122,6 +122,8 @@ var Files_js_1 = require("./resources/Files.js");
122
122
  Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return Files_js_1.Files; } });
123
123
  var InvoiceItems_js_1 = require("./resources/InvoiceItems.js");
124
124
  Object.defineProperty(exports, "InvoiceItems", { enumerable: true, get: function () { return InvoiceItems_js_1.InvoiceItems; } });
125
+ var InvoicePayments_js_1 = require("./resources/InvoicePayments.js");
126
+ Object.defineProperty(exports, "InvoicePayments", { enumerable: true, get: function () { return InvoicePayments_js_1.InvoicePayments; } });
125
127
  var InvoiceRenderingTemplates_js_1 = require("./resources/InvoiceRenderingTemplates.js");
126
128
  Object.defineProperty(exports, "InvoiceRenderingTemplates", { enumerable: true, get: function () { return InvoiceRenderingTemplates_js_1.InvoiceRenderingTemplates; } });
127
129
  var Invoices_js_1 = require("./resources/Invoices.js");
@@ -36,23 +36,14 @@ const ALLOWED_CONFIG_PROPERTIES = [
36
36
  ];
37
37
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
38
38
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
39
- Stripe.PACKAGE_VERSION = '17.7.0';
39
+ Stripe.PACKAGE_VERSION = '18.0.0';
40
40
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
41
41
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
42
42
  Stripe.resources = resources;
43
43
  Stripe.HttpClient = HttpClient_js_1.HttpClient;
44
44
  Stripe.HttpClientResponse = HttpClient_js_1.HttpClientResponse;
45
45
  Stripe.CryptoProvider = CryptoProvider_js_1.CryptoProvider;
46
- // Previously Stripe.webhooks was just the createWebhooks() factory function
47
- // however going forward it will be a WebhookObject instance. To maintain
48
- // backwards compatibility it is currently a factory function that also
49
- // complies to the WebhookObject signature. The factory function signature
50
- // will be removed as a breaking change in the next major release.
51
- // See https://github.com/stripe/stripe-node/issues/1956
52
- function createWebhooksDefault(fns = platformFunctions) {
53
- return (0, Webhooks_js_1.createWebhooks)(fns);
54
- }
55
- Stripe.webhooks = Object.assign(createWebhooksDefault, (0, Webhooks_js_1.createWebhooks)(platformFunctions));
46
+ Stripe.webhooks = (0, Webhooks_js_1.createWebhooks)(platformFunctions);
56
47
  function Stripe(key, config = {}) {
57
48
  if (!(this instanceof Stripe)) {
58
49
  return new Stripe(key, config);
@@ -101,9 +92,7 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
101
92
  this._prepResources();
102
93
  this._setAuthenticator(key, props.authenticator);
103
94
  this.errors = _Error;
104
- // Once Stripe.webhooks looses the factory function signature in a future release
105
- // then this should become this.webhooks = Stripe.webhooks
106
- this.webhooks = createWebhooksDefault();
95
+ this.webhooks = Stripe.webhooks;
107
96
  this._prevRequestMetrics = [];
108
97
  this._enableTelemetry = props.telemetry !== false;
109
98
  this._requestSender = requestSender(this);
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2025-02-24.acacia';
2
+ export const ApiVersion = '2025-03-31.basil';
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const InvoicePayments = StripeResource.extend({
5
+ retrieve: stripeMethod({
6
+ method: 'GET',
7
+ fullPath: '/v1/invoice_payments/{invoice_payment}',
8
+ }),
9
+ list: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/invoice_payments',
12
+ methodType: 'list',
13
+ }),
14
+ });
@@ -28,11 +28,6 @@ export const Invoices = StripeResource.extend({
28
28
  fullPath: '/v1/invoices/{invoice}/lines',
29
29
  methodType: 'list',
30
30
  }),
31
- listUpcomingLines: stripeMethod({
32
- method: 'GET',
33
- fullPath: '/v1/invoices/upcoming/lines',
34
- methodType: 'list',
35
- }),
36
31
  markUncollectible: stripeMethod({
37
32
  method: 'POST',
38
33
  fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
@@ -42,10 +37,6 @@ export const Invoices = StripeResource.extend({
42
37
  method: 'POST',
43
38
  fullPath: '/v1/invoices/{invoice}/remove_lines',
44
39
  }),
45
- retrieveUpcoming: stripeMethod({
46
- method: 'GET',
47
- fullPath: '/v1/invoices/upcoming',
48
- }),
49
40
  search: stripeMethod({
50
41
  method: 'GET',
51
42
  fullPath: '/v1/invoices/search',
@@ -20,13 +20,4 @@ export const SubscriptionItems = StripeResource.extend({
20
20
  method: 'DELETE',
21
21
  fullPath: '/v1/subscription_items/{item}',
22
22
  }),
23
- createUsageRecord: stripeMethod({
24
- method: 'POST',
25
- fullPath: '/v1/subscription_items/{subscription_item}/usage_records',
26
- }),
27
- listUsageRecordSummaries: stripeMethod({
28
- method: 'GET',
29
- fullPath: '/v1/subscription_items/{subscription_item}/usage_record_summaries',
30
- methodType: 'list',
31
- }),
32
23
  });
package/esm/resources.js CHANGED
@@ -96,6 +96,7 @@ export { ExchangeRates } from './resources/ExchangeRates.js';
96
96
  export { FileLinks } from './resources/FileLinks.js';
97
97
  export { Files } from './resources/Files.js';
98
98
  export { InvoiceItems } from './resources/InvoiceItems.js';
99
+ export { InvoicePayments } from './resources/InvoicePayments.js';
99
100
  export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
100
101
  export { Invoices } from './resources/Invoices.js';
101
102
  export { Mandates } from './resources/Mandates.js';
@@ -33,23 +33,14 @@ const ALLOWED_CONFIG_PROPERTIES = [
33
33
  ];
34
34
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
35
35
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
36
- Stripe.PACKAGE_VERSION = '17.7.0';
36
+ Stripe.PACKAGE_VERSION = '18.0.0';
37
37
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
38
38
  Stripe.StripeResource = StripeResource;
39
39
  Stripe.resources = resources;
40
40
  Stripe.HttpClient = HttpClient;
41
41
  Stripe.HttpClientResponse = HttpClientResponse;
42
42
  Stripe.CryptoProvider = CryptoProvider;
43
- // Previously Stripe.webhooks was just the createWebhooks() factory function
44
- // however going forward it will be a WebhookObject instance. To maintain
45
- // backwards compatibility it is currently a factory function that also
46
- // complies to the WebhookObject signature. The factory function signature
47
- // will be removed as a breaking change in the next major release.
48
- // See https://github.com/stripe/stripe-node/issues/1956
49
- function createWebhooksDefault(fns = platformFunctions) {
50
- return createWebhooks(fns);
51
- }
52
- Stripe.webhooks = Object.assign(createWebhooksDefault, createWebhooks(platformFunctions));
43
+ Stripe.webhooks = createWebhooks(platformFunctions);
53
44
  function Stripe(key, config = {}) {
54
45
  if (!(this instanceof Stripe)) {
55
46
  return new Stripe(key, config);
@@ -98,9 +89,7 @@ export function createStripe(platformFunctions, requestSender = defaultRequestSe
98
89
  this._prepResources();
99
90
  this._setAuthenticator(key, props.authenticator);
100
91
  this.errors = _Error;
101
- // Once Stripe.webhooks looses the factory function signature in a future release
102
- // then this should become this.webhooks = Stripe.webhooks
103
- this.webhooks = createWebhooksDefault();
92
+ this.webhooks = Stripe.webhooks;
104
93
  this._prevRequestMetrics = [];
105
94
  this._enableTelemetry = props.telemetry !== false;
106
95
  this._requestSender = requestSender(this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "17.7.0",
3
+ "version": "18.0.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -33,7 +33,7 @@ declare module 'stripe' {
33
33
  business_profile?: Account.BusinessProfile | null;
34
34
 
35
35
  /**
36
- * The business type. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property is only returned for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
36
+ * The business type.
37
37
  */
38
38
  business_type?: Account.BusinessType | null;
39
39
 
@@ -93,7 +93,7 @@ declare module 'stripe' {
93
93
  /**
94
94
  * This is an object representing a person associated with a Stripe account.
95
95
  *
96
- * A platform cannot access a person for an account where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
96
+ * A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
97
97
  *
98
98
  * See the [Standard onboarding](https://stripe.com/connect/standard-accounts) or [Express onboarding](https://stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://stripe.com/connect/handling-api-verification#person-information).
99
99
  */
@@ -262,6 +262,11 @@ declare module 'stripe' {
262
262
  */
263
263
  bank_transfer_payments?: Capabilities.BankTransferPayments;
264
264
 
265
+ /**
266
+ * The status of the Billie capability of the account, or whether the account can directly process Billie payments.
267
+ */
268
+ billie_payments?: Capabilities.BilliePayments;
269
+
265
270
  /**
266
271
  * The status of the blik payments capability of the account, or whether the account can directly process blik charges.
267
272
  */
@@ -387,6 +392,11 @@ declare module 'stripe' {
387
392
  */
388
393
  naver_pay_payments?: Capabilities.NaverPayPayments;
389
394
 
395
+ /**
396
+ * The status of the New Zealand BECS Direct Debit payments capability of the account, or whether the account can directly process New Zealand BECS Direct Debit charges.
397
+ */
398
+ nz_bank_account_becs_debit_payments?: Capabilities.NzBankAccountBecsDebitPayments;
399
+
390
400
  /**
391
401
  * The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges.
392
402
  */
@@ -427,6 +437,11 @@ declare module 'stripe' {
427
437
  */
428
438
  samsung_pay_payments?: Capabilities.SamsungPayPayments;
429
439
 
440
+ /**
441
+ * The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.
442
+ */
443
+ satispay_payments?: Capabilities.SatispayPayments;
444
+
430
445
  /**
431
446
  * The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
432
447
  */
@@ -507,6 +522,8 @@ declare module 'stripe' {
507
522
 
508
523
  type BankTransferPayments = 'active' | 'inactive' | 'pending';
509
524
 
525
+ type BilliePayments = 'active' | 'inactive' | 'pending';
526
+
510
527
  type BlikPayments = 'active' | 'inactive' | 'pending';
511
528
 
512
529
  type BoletoPayments = 'active' | 'inactive' | 'pending';
@@ -557,6 +574,8 @@ declare module 'stripe' {
557
574
 
558
575
  type NaverPayPayments = 'active' | 'inactive' | 'pending';
559
576
 
577
+ type NzBankAccountBecsDebitPayments = 'active' | 'inactive' | 'pending';
578
+
560
579
  type OxxoPayments = 'active' | 'inactive' | 'pending';
561
580
 
562
581
  type P24Payments = 'active' | 'inactive' | 'pending';
@@ -573,6 +592,8 @@ declare module 'stripe' {
573
592
 
574
593
  type SamsungPayPayments = 'active' | 'inactive' | 'pending';
575
594
 
595
+ type SatispayPayments = 'active' | 'inactive' | 'pending';
596
+
576
597
  type SepaBankTransferPayments = 'active' | 'inactive' | 'pending';
577
598
 
578
599
  type SepaDebitPayments = 'active' | 'inactive' | 'pending';
@@ -637,17 +658,17 @@ declare module 'stripe' {
637
658
  export_purpose_code?: string;
638
659
 
639
660
  /**
640
- * The company's legal name.
661
+ * The company's legal name. Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
641
662
  */
642
663
  name?: string | null;
643
664
 
644
665
  /**
645
- * The Kana variation of the company's legal name (Japan only).
666
+ * The Kana variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
646
667
  */
647
668
  name_kana?: string | null;
648
669
 
649
670
  /**
650
- * The Kanji variation of the company's legal name (Japan only).
671
+ * The Kanji variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
651
672
  */
652
673
  name_kanji?: string | null;
653
674
 
@@ -661,6 +682,9 @@ declare module 'stripe' {
661
682
  */
662
683
  ownership_declaration?: Company.OwnershipDeclaration | null;
663
684
 
685
+ /**
686
+ * This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
687
+ */
664
688
  ownership_exemption_reason?: Company.OwnershipExemptionReason;
665
689
 
666
690
  /**
@@ -669,7 +693,7 @@ declare module 'stripe' {
669
693
  phone?: string | null;
670
694
 
671
695
  /**
672
- * The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
696
+ * 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.
673
697
  */
674
698
  structure?: Company.Structure;
675
699
 
@@ -1018,6 +1042,7 @@ declare module 'stripe' {
1018
1042
 
1019
1043
  namespace Error {
1020
1044
  type Code =
1045
+ | 'information_missing'
1021
1046
  | 'invalid_address_city_state_postal_code'
1022
1047
  | 'invalid_address_highway_contract_box'
1023
1048
  | 'invalid_address_private_mailbox'
@@ -1030,6 +1055,7 @@ declare module 'stripe' {
1030
1055
  | 'invalid_product_description_length'
1031
1056
  | 'invalid_product_description_url_match'
1032
1057
  | 'invalid_representative_country'
1058
+ | 'invalid_signator'
1033
1059
  | 'invalid_statement_descriptor_business_mismatch'
1034
1060
  | 'invalid_statement_descriptor_denylisted'
1035
1061
  | 'invalid_statement_descriptor_length'
@@ -1091,6 +1117,7 @@ declare module 'stripe' {
1091
1117
  | 'verification_document_type_not_supported'
1092
1118
  | 'verification_extraneous_directors'
1093
1119
  | 'verification_failed_address_match'
1120
+ | 'verification_failed_authorizer_authority'
1094
1121
  | 'verification_failed_business_iec_number'
1095
1122
  | 'verification_failed_document_match'
1096
1123
  | 'verification_failed_id_number_match'
@@ -1105,6 +1132,7 @@ declare module 'stripe' {
1105
1132
  | 'verification_missing_directors'
1106
1133
  | 'verification_missing_executives'
1107
1134
  | 'verification_missing_owners'
1135
+ | 'verification_rejected_ownership_exemption_reason'
1108
1136
  | 'verification_requires_additional_memorandum_of_associations'
1109
1137
  | 'verification_requires_additional_proof_of_registration'
1110
1138
  | 'verification_supportability';
@@ -1209,6 +1237,7 @@ declare module 'stripe' {
1209
1237
 
1210
1238
  namespace Error {
1211
1239
  type Code =
1240
+ | 'information_missing'
1212
1241
  | 'invalid_address_city_state_postal_code'
1213
1242
  | 'invalid_address_highway_contract_box'
1214
1243
  | 'invalid_address_private_mailbox'
@@ -1221,6 +1250,7 @@ declare module 'stripe' {
1221
1250
  | 'invalid_product_description_length'
1222
1251
  | 'invalid_product_description_url_match'
1223
1252
  | 'invalid_representative_country'
1253
+ | 'invalid_signator'
1224
1254
  | 'invalid_statement_descriptor_business_mismatch'
1225
1255
  | 'invalid_statement_descriptor_denylisted'
1226
1256
  | 'invalid_statement_descriptor_length'
@@ -1282,6 +1312,7 @@ declare module 'stripe' {
1282
1312
  | 'verification_document_type_not_supported'
1283
1313
  | 'verification_extraneous_directors'
1284
1314
  | 'verification_failed_address_match'
1315
+ | 'verification_failed_authorizer_authority'
1285
1316
  | 'verification_failed_business_iec_number'
1286
1317
  | 'verification_failed_document_match'
1287
1318
  | 'verification_failed_id_number_match'
@@ -1296,6 +1327,7 @@ declare module 'stripe' {
1296
1327
  | 'verification_missing_directors'
1297
1328
  | 'verification_missing_executives'
1298
1329
  | 'verification_missing_owners'
1330
+ | 'verification_rejected_ownership_exemption_reason'
1299
1331
  | 'verification_requires_additional_memorandum_of_associations'
1300
1332
  | 'verification_requires_additional_proof_of_registration'
1301
1333
  | 'verification_supportability';
@@ -1432,6 +1464,15 @@ declare module 'stripe' {
1432
1464
  * The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
1433
1465
  */
1434
1466
  default_account_tax_ids: Array<string | Stripe.TaxId> | null;
1467
+
1468
+ /**
1469
+ * Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1470
+ */
1471
+ hosted_payment_method_save?: Invoices.HostedPaymentMethodSave | null;
1472
+ }
1473
+
1474
+ namespace Invoices {
1475
+ type HostedPaymentMethodSave = 'always' | 'never' | 'offer';
1435
1476
  }
1436
1477
 
1437
1478
  interface Payments {