stripe 18.6.0-beta.1 → 19.1.0-alpha.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 (266) hide show
  1. package/CHANGELOG.md +268 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +22 -6
  4. package/VERSION +1 -1
  5. package/cjs/Error.js +9 -1
  6. package/cjs/RequestSender.js +15 -6
  7. package/cjs/StripeContext.js +56 -0
  8. package/cjs/apiVersion.js +1 -1
  9. package/cjs/net/FetchHttpClient.js +1 -1
  10. package/cjs/resources/Billing/{MeterUsage.js → Analytics/MeterUsage.js} +1 -1
  11. package/cjs/resources/PaymentRecords.js +4 -0
  12. package/cjs/resources/Subscriptions.js +4 -0
  13. package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
  14. package/cjs/resources/V2/Billing/BillSettings.js +27 -0
  15. package/cjs/resources/V2/Billing/Cadences.js +23 -0
  16. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
  17. package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
  18. package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
  19. package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
  20. package/cjs/resources/V2/Billing/Intents.js +36 -0
  21. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
  22. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
  23. package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
  24. package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
  25. package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
  26. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +21 -0
  27. package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
  28. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
  29. package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
  30. package/cjs/resources/V2/Billing/Profiles.js +19 -0
  31. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
  32. package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
  33. package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
  34. package/cjs/resources/V2/Billing/RateCards.js +29 -0
  35. package/cjs/resources/V2/Billing/ServiceActions.js +20 -0
  36. package/cjs/resources/V2/Core/ClaimableSandboxes.js +16 -0
  37. package/cjs/resources/V2/Core/Events.js +1 -1
  38. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
  39. package/cjs/resources/V2/Payments/OffSessionPayments.js +4 -0
  40. package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
  41. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
  42. package/cjs/resources.js +42 -2
  43. package/cjs/stripe.core.js +24 -3
  44. package/esm/Error.js +7 -0
  45. package/esm/RequestSender.js +15 -6
  46. package/esm/StripeContext.js +52 -0
  47. package/esm/apiVersion.js +1 -1
  48. package/esm/net/FetchHttpClient.js +1 -1
  49. package/esm/resources/Billing/{MeterUsage.js → Analytics/MeterUsage.js} +1 -1
  50. package/esm/resources/PaymentRecords.js +4 -0
  51. package/esm/resources/Subscriptions.js +4 -0
  52. package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
  53. package/esm/resources/V2/Billing/BillSettings.js +24 -0
  54. package/esm/resources/V2/Billing/Cadences.js +20 -0
  55. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
  56. package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
  57. package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
  58. package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
  59. package/esm/resources/V2/Billing/Intents.js +33 -0
  60. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
  61. package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
  62. package/esm/resources/V2/Billing/LicenseFees.js +24 -0
  63. package/esm/resources/V2/Billing/LicensedItems.js +22 -0
  64. package/esm/resources/V2/Billing/MeteredItems.js +19 -0
  65. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +18 -0
  66. package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
  67. package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
  68. package/esm/resources/V2/Billing/PricingPlans.js +26 -0
  69. package/esm/resources/V2/Billing/Profiles.js +16 -0
  70. package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
  71. package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
  72. package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
  73. package/esm/resources/V2/Billing/RateCards.js +26 -0
  74. package/esm/resources/V2/Billing/ServiceActions.js +17 -0
  75. package/esm/resources/V2/Core/ClaimableSandboxes.js +13 -0
  76. package/esm/resources/V2/Core/Events.js +1 -1
  77. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
  78. package/esm/resources/V2/Payments/OffSessionPayments.js +4 -0
  79. package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
  80. package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
  81. package/esm/resources.js +42 -2
  82. package/esm/stripe.core.js +24 -3
  83. package/package.json +4 -4
  84. package/types/AccountSessions.d.ts +0 -30
  85. package/types/AccountSessionsResource.d.ts +0 -42
  86. package/types/Accounts.d.ts +11 -2
  87. package/types/AccountsResource.d.ts +28 -8
  88. package/types/BalanceSettings.d.ts +12 -6
  89. package/types/BalanceSettingsResource.d.ts +15 -10
  90. package/types/BankAccounts.d.ts +4 -0
  91. package/types/Billing/AlertTriggereds.d.ts +15 -0
  92. package/types/Billing/Alerts.d.ts +116 -1
  93. package/types/Billing/AlertsResource.d.ts +150 -3
  94. package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
  95. package/types/Billing/Analytics/MeterUsageResource.d.ts +689 -0
  96. package/types/Billing/Analytics/MeterUsageRows.d.ts +51 -0
  97. package/types/Billing/CreditBalanceSummary.d.ts +118 -2
  98. package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
  99. package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
  100. package/types/Billing/CreditGrants.d.ts +71 -1
  101. package/types/Billing/CreditGrantsResource.d.ts +32 -1
  102. package/types/BillingPortal/Configurations.d.ts +7 -0
  103. package/types/BillingPortal/ConfigurationsResource.d.ts +14 -0
  104. package/types/Capabilities.d.ts +4 -0
  105. package/types/Cards.d.ts +1 -1
  106. package/types/Charges.d.ts +5 -2
  107. package/types/Checkout/Sessions.d.ts +270 -1
  108. package/types/Checkout/SessionsResource.d.ts +510 -3
  109. package/types/ConfirmationTokens.d.ts +5 -0
  110. package/types/CreditNotes.d.ts +26 -0
  111. package/types/CreditNotesResource.d.ts +78 -0
  112. package/types/Customers.d.ts +10 -0
  113. package/types/CustomersResource.d.ts +21 -0
  114. package/types/Discounts.d.ts +32 -14
  115. package/types/Disputes.d.ts +18 -1
  116. package/types/DisputesResource.d.ts +11 -0
  117. package/types/Errors.d.ts +6 -0
  118. package/types/ExchangeRates.d.ts +2 -0
  119. package/types/ExchangeRatesResource.d.ts +6 -0
  120. package/types/InvoiceItems.d.ts +132 -2
  121. package/types/InvoiceLineItems.d.ts +113 -2
  122. package/types/Invoices.d.ts +36 -2
  123. package/types/InvoicesResource.d.ts +171 -10
  124. package/types/Issuing/CardholdersResource.d.ts +4 -4
  125. package/types/Issuing/Cards.d.ts +5 -0
  126. package/types/Issuing/CardsResource.d.ts +4 -4
  127. package/types/PaymentAttemptRecords.d.ts +40 -1
  128. package/types/PaymentIntents.d.ts +10 -3
  129. package/types/PaymentIntentsResource.d.ts +208 -5
  130. package/types/PaymentLinks.d.ts +1 -0
  131. package/types/PaymentLinksResource.d.ts +7 -0
  132. package/types/PaymentMethodConfigurations.d.ts +36 -0
  133. package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
  134. package/types/PaymentMethods.d.ts +5 -0
  135. package/types/PaymentMethodsResource.d.ts +9 -14
  136. package/types/PaymentRecords.d.ts +40 -1
  137. package/types/PaymentRecordsResource.d.ts +83 -0
  138. package/types/Persons.d.ts +4 -0
  139. package/types/PromotionCodes.d.ts +16 -9
  140. package/types/PromotionCodesResource.d.ts +15 -3
  141. package/types/QuotePreviewInvoices.d.ts +35 -1
  142. package/types/QuotePreviewSubscriptionSchedules.d.ts +16 -0
  143. package/types/Quotes.d.ts +13 -0
  144. package/types/QuotesResource.d.ts +17 -1
  145. package/types/Reviews.d.ts +2 -0
  146. package/types/SetupAttempts.d.ts +2 -0
  147. package/types/SetupIntents.d.ts +2 -0
  148. package/types/SetupIntentsResource.d.ts +24 -0
  149. package/types/Sources.d.ts +1 -1
  150. package/types/SubscriptionItems.d.ts +5 -0
  151. package/types/SubscriptionSchedules.d.ts +16 -0
  152. package/types/SubscriptionSchedulesResource.d.ts +19 -13
  153. package/types/Subscriptions.d.ts +144 -0
  154. package/types/SubscriptionsResource.d.ts +316 -4
  155. package/types/Tax/CalculationsResource.d.ts +5 -5
  156. package/types/Tax/Settings.d.ts +7 -0
  157. package/types/Terminal/Configurations.d.ts +9 -0
  158. package/types/Terminal/ConfigurationsResource.d.ts +26 -0
  159. package/types/Terminal/Locations.d.ts +95 -0
  160. package/types/Terminal/LocationsResource.d.ts +59 -6
  161. package/types/TestHelpers/ConfirmationTokensResource.d.ts +8 -0
  162. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +79 -0
  163. package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
  164. package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
  165. package/types/V2/Billing/BillSettings.d.ts +120 -0
  166. package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
  167. package/types/V2/Billing/Cadences.d.ts +731 -0
  168. package/types/V2/Billing/CadencesResource.d.ts +516 -0
  169. package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
  170. package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
  171. package/types/V2/Billing/CollectionSettings.d.ts +337 -0
  172. package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
  173. package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
  174. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
  175. package/types/V2/Billing/IntentActions.d.ts +459 -0
  176. package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
  177. package/types/V2/Billing/Intents.d.ts +117 -0
  178. package/types/V2/Billing/IntentsResource.d.ts +575 -0
  179. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
  180. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
  181. package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
  182. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
  183. package/types/V2/Billing/LicenseFees.d.ts +164 -0
  184. package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
  185. package/types/V2/Billing/LicensedItems.d.ts +73 -0
  186. package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
  187. package/types/V2/Billing/MeterEventStreamResource.d.ts +1 -1
  188. package/types/V2/Billing/MeteredItems.d.ts +101 -0
  189. package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
  190. package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
  191. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
  192. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +118 -0
  193. package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
  194. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
  195. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
  196. package/types/V2/Billing/PricingPlans.d.ts +84 -0
  197. package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
  198. package/types/V2/Billing/Profiles.d.ts +70 -0
  199. package/types/V2/Billing/ProfilesResource.d.ts +150 -0
  200. package/types/V2/Billing/RateCardRates.d.ts +144 -0
  201. package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
  202. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
  203. package/types/V2/Billing/RateCardVersions.d.ts +39 -0
  204. package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
  205. package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
  206. package/types/V2/Billing/RateCards.d.ts +98 -0
  207. package/types/V2/Billing/RateCardsResource.d.ts +162 -0
  208. package/types/V2/Billing/ServiceActions.d.ts +274 -0
  209. package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
  210. package/types/V2/Core/AccountLinks.d.ts +10 -10
  211. package/types/V2/Core/AccountPersons.d.ts +615 -0
  212. package/types/V2/Core/Accounts/PersonsResource.d.ts +37 -2696
  213. package/types/V2/Core/Accounts.d.ts +419 -3303
  214. package/types/V2/Core/AccountsResource.d.ts +152 -5833
  215. package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
  216. package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
  217. package/types/V2/Core/EventDestinations.d.ts +166 -0
  218. package/types/V2/Core/EventDestinationsResource.d.ts +14 -14
  219. package/types/V2/Core/EventTypes.d.ts +8698 -0
  220. package/types/V2/Core/Events.d.ts +89 -0
  221. package/types/V2/Core/EventsResource.d.ts +4 -4
  222. package/types/V2/Core/Vault/GbBankAccounts.d.ts +2 -2
  223. package/types/V2/Core/Vault/UsBankAccounts.d.ts +2 -2
  224. package/types/V2/DeletedObject.d.ts +22 -0
  225. package/types/V2/EventMisc.d.ts +72 -0
  226. package/types/V2/MoneyManagement/Adjustments.d.ts +9 -9
  227. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +13 -450
  228. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +1 -185
  229. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +55 -191
  230. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +22 -185
  231. package/types/V2/MoneyManagement/InboundTransfers.d.ts +7 -7
  232. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +10 -8
  233. package/types/V2/MoneyManagement/OutboundPayments.d.ts +21 -16
  234. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +5 -0
  235. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +3 -3
  236. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +36 -2
  237. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +20 -15
  238. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +5 -0
  239. package/types/V2/MoneyManagement/PayoutMethods.d.ts +46 -5
  240. package/types/V2/MoneyManagement/{PayoutMethodsBankAccountSpecs.d.ts → PayoutMethodsBankAccountSpec.d.ts} +6 -0
  241. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +71 -31
  242. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +16 -11
  243. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
  244. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
  245. package/types/V2/MoneyManagement/TransactionEntries.d.ts +8 -8
  246. package/types/V2/MoneyManagement/Transactions.d.ts +10 -10
  247. package/types/V2/Payments/OffSessionPayments.d.ts +160 -13
  248. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +228 -1
  249. package/types/V2/Tax/AutomaticRules.d.ts +53 -0
  250. package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
  251. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +6 -1
  252. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +48 -0
  253. package/types/WebhookEndpointsResource.d.ts +2 -1
  254. package/types/Webhooks.d.ts +2 -0
  255. package/types/apiVersion.d.ts +3 -0
  256. package/types/index.d.ts +90 -14
  257. package/types/lib.d.ts +7 -5
  258. package/types/test/typescriptTest.ts +48 -3
  259. package/types/Billing/MeterUsage.d.ts +0 -32
  260. package/types/Billing/MeterUsageResource.d.ts +0 -685
  261. package/types/Billing/MeterUsageRows.d.ts +0 -49
  262. package/types/ThinEvent.d.ts +0 -36
  263. package/types/V2/Core/Persons.d.ts +0 -1888
  264. package/types/V2/EventDestinations.d.ts +0 -164
  265. package/types/V2/EventTypes.d.ts +0 -1188
  266. package/types/V2/Events.d.ts +0 -75
package/CHANGELOG.md CHANGED
@@ -1,5 +1,248 @@
1
1
  # Changelog
2
2
 
3
+ ## 19.1.0-alpha.1 - 2025-09-30
4
+ This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 19.0.0 and 19.1.0-beta.1 which contain breaking changes. Please review the changelog for these versions if upgrading from older SDK versions.
5
+
6
+ * [#2417](https://github.com/stripe/stripe-node/pull/2417) parseThinEvent__experimental is no longer needed
7
+ * ⚠️ Remove the `StripeClient.parseThinEvent__experimental` and `PushedThinEvent` classes. They've been replaced with `StripeClient.parseEventNotification` and the *`EventNotification` classes respectively.
8
+ * [#2409](https://github.com/stripe/stripe-node/pull/2409) Update generated code for private-preview
9
+ * Add support for new resource `V2.MoneyManagement.RecipientVerification`
10
+ * Add support for `acknowledge`, `create`, `recipient_verifications`, and `retrieve` methods on resource `V2.MoneyManagement.RecipientVerification`
11
+ * Add support for `update` method on resources `V2.Billing.PricingPlanSubscription` and `V2.Billing.ServiceAction`
12
+ * Add support for `crypto_wallets` on `V2.Account.configuration.recipient_data.features`, `V2.AccountCreateParams.configuration.recipient_data.features`, `V2.AccountUpdateParams.configuration.recipient_data.features`, `V2.Core.Account.configuration.recipient.capabilities`, `V2.Core.AccountCreateParams.configuration.recipient.capabilities`, and `V2.Core.AccountUpdateParams.configuration.recipient.capabilities`
13
+ * Add support for new value `crypto` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
14
+ * Add support for new value `crypto_wallet` on enum `V2.Account.configuration.recipient_data.default_outbound_destination.type`
15
+ * Add support for new value `crypto_wallets` on enum `V2.Account.configuration.supportable_features.recipient_data`
16
+ * Add support for new value `crypto_wallets` on enum `V2.Account.requirements[].impact.required_for_features`
17
+ * Add support for `lookup_key` on `V2.Billing.CadenceCreateParams`, `V2.Billing.CadenceUpdateParams`, and `V2.Billing.Cadence`
18
+ * Add support for `settings_data` on `V2.Billing.Cadence`
19
+ * Change type of `V2.Billing.Cadence.payer.billing_profile` from `string | null` to `string`
20
+ * Add support for `v1_event_id` on `V2.Core.Event`
21
+ * Add support for `recipient_verification` on `V2.MoneyManagement.OutboundPaymentCreateParams`, `V2.MoneyManagement.OutboundPayment`, `V2.MoneyManagement.OutboundTransferCreateParams`, and `V2.MoneyManagement.OutboundTransfer`
22
+ * Add support for `crypto_wallet` on `V2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data` and `V2.MoneyManagement.PayoutMethod`
23
+ * Add support for `custom_pricing_unit_details` on `V2.Billing.RateCardRate.custom_pricing_unit_amount`, `V2.Billing.ServiceAction.credit_grant.amount.custom_pricing_unit`, and `V2.Billing.ServiceAction.credit_grant_per_tenant.amount.custom_pricing_unit`
24
+ * Add support for `origin_type` on `V2.MoneyManagement.ReceivedDebit.bank_transfer`
25
+ * Add support for new value `sepa_credit_transfer` on enum `V2.FinancialAddressCreditSimulationCreditParams.network`
26
+ * Add support for new value `credentials.sepa_bank_account.iban` on enums `V2.MoneyManagement.FinancialAddressListParams.include` and `V2.MoneyManagement.FinancialAddressRetrieveParams.include`
27
+ * Add support for `sepa_bank_account` on `V2.MoneyManagement.FinancialAddressCreateParams`
28
+ * Remove support for `price` on `V2.Billing.RateCardRateCreateParams`
29
+ * Change `V2.Billing.LicenseFeeUpdateParams.display_name` to be optional
30
+ * Add support for `lookup_keys` on `V2.Billing.CadenceListParams`
31
+ * Change type of `V2.Billing.CadenceCancelParams.include`, `V2.Billing.CadenceCreateParams.include`, `V2.Billing.CadenceListParams.include`, `V2.Billing.CadenceRetrieveParams.include`, and `V2.Billing.CadenceUpdateParams.include` from `literal('invoice_discount_rules')` to `enum('invoice_discount_rules'|'settings_data')`
32
+ * Remove support for `customer` and `type` on `V2.Billing.CadenceCreateParams.payer`
33
+ * Change `V2.Billing.CadenceCreateParams.payer.billing_profile` to be required
34
+ * Add support for new value `crypto_wallets` on enum `EventsAccountConfigurationRecipientDataFeatureStatusUpdatedEvent.feature_name`
35
+ * Add support for new value `crypto_wallets_v2` on enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability`
36
+ * Remove support for `alert_id` on `EventsV2CoreHealthApiErrorResolvedEvent`, `EventsV2CoreHealthApiLatencyResolvedEvent`, `EventsV2CoreHealthAuthorizationRateDropResolvedEvent`, `EventsV2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `EventsV2CoreHealthPaymentMethodErrorResolvedEvent`, `EventsV2CoreHealthTrafficVolumeDropResolvedEvent`, and `EventsV2CoreHealthWebhookLatencyResolvedEvent`
37
+ * Add support for thin event `V1AccountUpdatedEvent` with related object `V2.Account`
38
+ * Add support for thin events `V1ApplicationFeeCreatedEvent`, `V1ApplicationFeeRefundedEvent`, `V1BillingPortalConfigurationCreatedEvent`, `V1BillingPortalConfigurationUpdatedEvent`, `V1CapabilityUpdatedEvent`, `V1ChargeCapturedEvent`, `V1ChargeDisputeClosedEvent`, `V1ChargeDisputeCreatedEvent`, `V1ChargeDisputeFundsReinstatedEvent`, `V1ChargeDisputeFundsWithdrawnEvent`, `V1ChargeDisputeUpdatedEvent`, `V1ChargeExpiredEvent`, `V1ChargeFailedEvent`, `V1ChargePendingEvent`, `V1ChargeRefundUpdatedEvent`, `V1ChargeRefundedEvent`, `V1ChargeSucceededEvent`, `V1ChargeUpdatedEvent`, `V1CheckoutSessionAsyncPaymentFailedEvent`, `V1CheckoutSessionAsyncPaymentSucceededEvent`, `V1CheckoutSessionCompletedEvent`, `V1CheckoutSessionExpiredEvent`, `V1ClimateOrderCanceledEvent`, `V1ClimateOrderCreatedEvent`, `V1ClimateOrderDelayedEvent`, `V1ClimateOrderDeliveredEvent`, `V1ClimateOrderProductSubstitutedEvent`, `V1ClimateProductCreatedEvent`, `V1ClimateProductPricingUpdatedEvent`, `V1CouponCreatedEvent`, `V1CouponDeletedEvent`, `V1CouponUpdatedEvent`, `V1CreditNoteCreatedEvent`, `V1CreditNoteUpdatedEvent`, `V1CreditNoteVoidedEvent`, `V1CustomerCreatedEvent`, `V1CustomerDeletedEvent`, `V1CustomerDiscountCreatedEvent`, `V1CustomerDiscountDeletedEvent`, `V1CustomerDiscountUpdatedEvent`, `V1CustomerSubscriptionCreatedEvent`, `V1CustomerSubscriptionDeletedEvent`, `V1CustomerSubscriptionPausedEvent`, `V1CustomerSubscriptionPendingUpdateAppliedEvent`, `V1CustomerSubscriptionPendingUpdateExpiredEvent`, `V1CustomerSubscriptionResumedEvent`, `V1CustomerSubscriptionTrialWillEndEvent`, `V1CustomerSubscriptionUpdatedEvent`, `V1CustomerTaxIdCreatedEvent`, `V1CustomerTaxIdDeletedEvent`, `V1CustomerTaxIdUpdatedEvent`, `V1CustomerUpdatedEvent`, `V1FileCreatedEvent`, `V1FinancialConnectionsAccountCreatedEvent`, `V1FinancialConnectionsAccountDeactivatedEvent`, `V1FinancialConnectionsAccountDisconnectedEvent`, `V1FinancialConnectionsAccountReactivatedEvent`, `V1FinancialConnectionsAccountRefreshedBalanceEvent`, `V1FinancialConnectionsAccountRefreshedOwnershipEvent`, `V1FinancialConnectionsAccountRefreshedTransactionsEvent`, `V1IdentityVerificationSessionCanceledEvent`, `V1IdentityVerificationSessionCreatedEvent`, `V1IdentityVerificationSessionProcessingEvent`, `V1IdentityVerificationSessionRedactedEvent`, `V1IdentityVerificationSessionRequiresInputEvent`, `V1IdentityVerificationSessionVerifiedEvent`, `V1InvoiceCreatedEvent`, `V1InvoiceDeletedEvent`, `V1InvoiceFinalizationFailedEvent`, `V1InvoiceFinalizedEvent`, `V1InvoiceMarkedUncollectibleEvent`, `V1InvoiceOverdueEvent`, `V1InvoiceOverpaidEvent`, `V1InvoicePaidEvent`, `V1InvoicePaymentActionRequiredEvent`, `V1InvoicePaymentFailedEvent`, `V1InvoicePaymentPaidEvent`, `V1InvoicePaymentSucceededEvent`, `V1InvoiceSentEvent`, `V1InvoiceUpcomingEvent`, `V1InvoiceUpdatedEvent`, `V1InvoiceVoidedEvent`, `V1InvoiceWillBeDueEvent`, `V1InvoiceitemCreatedEvent`, `V1InvoiceitemDeletedEvent`, `V1IssuingAuthorizationCreatedEvent`, `V1IssuingAuthorizationRequestEvent`, `V1IssuingAuthorizationUpdatedEvent`, `V1IssuingCardCreatedEvent`, `V1IssuingCardUpdatedEvent`, `V1IssuingCardholderCreatedEvent`, `V1IssuingCardholderUpdatedEvent`, `V1IssuingDisputeClosedEvent`, `V1IssuingDisputeCreatedEvent`, `V1IssuingDisputeFundsReinstatedEvent`, `V1IssuingDisputeFundsRescindedEvent`, `V1IssuingDisputeSubmittedEvent`, `V1IssuingDisputeUpdatedEvent`, `V1IssuingPersonalizationDesignActivatedEvent`, `V1IssuingPersonalizationDesignDeactivatedEvent`, `V1IssuingPersonalizationDesignRejectedEvent`, `V1IssuingPersonalizationDesignUpdatedEvent`, `V1IssuingTokenCreatedEvent`, `V1IssuingTokenUpdatedEvent`, `V1IssuingTransactionCreatedEvent`, `V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent`, `V1IssuingTransactionUpdatedEvent`, `V1MandateUpdatedEvent`, `V1PaymentIntentAmountCapturableUpdatedEvent`, `V1PaymentIntentCanceledEvent`, `V1PaymentIntentCreatedEvent`, `V1PaymentIntentPartiallyFundedEvent`, `V1PaymentIntentPaymentFailedEvent`, `V1PaymentIntentProcessingEvent`, `V1PaymentIntentRequiresActionEvent`, `V1PaymentIntentSucceededEvent`, `V1PaymentLinkCreatedEvent`, `V1PaymentLinkUpdatedEvent`, `V1PaymentMethodAttachedEvent`, `V1PaymentMethodAutomaticallyUpdatedEvent`, `V1PaymentMethodDetachedEvent`, `V1PaymentMethodUpdatedEvent`, `V1PayoutCanceledEvent`, `V1PayoutCreatedEvent`, `V1PayoutFailedEvent`, `V1PayoutPaidEvent`, `V1PayoutReconciliationCompletedEvent`, `V1PayoutUpdatedEvent`, `V1PersonCreatedEvent`, `V1PersonDeletedEvent`, `V1PersonUpdatedEvent`, `V1PlanCreatedEvent`, `V1PlanDeletedEvent`, `V1PlanUpdatedEvent`, `V1PriceCreatedEvent`, `V1PriceDeletedEvent`, `V1PriceUpdatedEvent`, `V1ProductCreatedEvent`, `V1ProductDeletedEvent`, `V1ProductUpdatedEvent`, `V1PromotionCodeCreatedEvent`, `V1PromotionCodeUpdatedEvent`, `V1QuoteAcceptedEvent`, `V1QuoteCanceledEvent`, `V1QuoteCreatedEvent`, `V1QuoteFinalizedEvent`, `V1RadarEarlyFraudWarningCreatedEvent`, `V1RadarEarlyFraudWarningUpdatedEvent`, `V1RefundCreatedEvent`, `V1RefundFailedEvent`, `V1RefundUpdatedEvent`, `V1ReviewClosedEvent`, `V1ReviewOpenedEvent`, `V1SetupIntentCanceledEvent`, `V1SetupIntentCreatedEvent`, `V1SetupIntentRequiresActionEvent`, `V1SetupIntentSetupFailedEvent`, `V1SetupIntentSucceededEvent`, `V1SigmaScheduledQueryRunCreatedEvent`, `V1SourceCanceledEvent`, `V1SourceChargeableEvent`, `V1SourceFailedEvent`, `V1SourceRefundAttributesRequiredEvent`, `V1SubscriptionScheduleAbortedEvent`, `V1SubscriptionScheduleCanceledEvent`, `V1SubscriptionScheduleCompletedEvent`, `V1SubscriptionScheduleCreatedEvent`, `V1SubscriptionScheduleExpiringEvent`, `V1SubscriptionScheduleReleasedEvent`, `V1SubscriptionScheduleUpdatedEvent`, `V1TaxRateCreatedEvent`, `V1TaxRateUpdatedEvent`, `V1TerminalReaderActionFailedEvent`, `V1TerminalReaderActionSucceededEvent`, `V1TerminalReaderActionUpdatedEvent`, `V1TestHelpersTestClockAdvancingEvent`, `V1TestHelpersTestClockCreatedEvent`, `V1TestHelpersTestClockDeletedEvent`, `V1TestHelpersTestClockInternalFailureEvent`, `V1TestHelpersTestClockReadyEvent`, `V1TopupCanceledEvent`, `V1TopupCreatedEvent`, `V1TopupFailedEvent`, `V1TopupReversedEvent`, `V1TopupSucceededEvent`, `V1TransferCreatedEvent`, `V1TransferReversedEvent`, `V1TransferUpdatedEvent`, `V2CoreHealthIssuingAuthorizationRequestErrorsFiringEvent`, and `V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEvent`
39
+ * Add support for thin event `V2CoreClaimableSandboxCreatedEvent` with related object `V2.Core.ClaimableSandbox`
40
+ * Add support for thin events `V2MoneyManagementRecipientVerificationCreatedEvent` and `V2MoneyManagementRecipientVerificationUpdatedEvent` with related object `V2.MoneyManagement.RecipientVerification`
41
+ * Add support for error code `account_rate_limit_exceeded` on `RateLimitError`
42
+
43
+ ## 19.1.0-beta.1 - 2025-09-30
44
+ This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 19.0.0 which contains breaking changes. Please review the [changelog for 19.0.0](https://github.com/stripe/stripe-go/blob/master/CHANGELOG.md#1900---2025-09-30) if upgrading from older SDK versions.
45
+
46
+ * [#2422](https://github.com/stripe/stripe-node/pull/2422) Update generated code for beta
47
+ * Add support for `attach_cadence` method on resource `Subscription`
48
+ * Add support for `billing_cadence` on `InvoiceCreatePreviewParams`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
49
+ * Add support for `billing_cadence_details` on `Invoice.parent` and `QuotePreviewInvoice.parent`
50
+ * Add support for new value `billing_cadence_details` on enums `Invoice.parent.type` and `QuotePreviewInvoice.parent.type`
51
+ * [#2410](https://github.com/stripe/stripe-node/pull/2410) Update generated code for beta
52
+ * Add support for new resources `V2.Billing.BillSettingVersion`, `V2.Billing.BillSetting`, `V2.Billing.Cadence`, `V2.Billing.CollectionSettingVersion`, `V2.Billing.CollectionSetting`, and `V2.Billing.Profile`
53
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resources `V2.Billing.BillSetting`, `V2.Billing.CollectionSetting`, and `V2.Billing.Profile`
54
+ * Add support for `list` and `retrieve` methods on resources `V2.Billing.BillSettingVersion` and `V2.Billing.CollectionSettingVersion`
55
+ * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resource `V2.Billing.Cadence`
56
+ * Add support for new value `crypto_wallet` on enum `V2.Core.Account.configuration.recipient.default_outbound_destination.type`
57
+ * Add support for `profile` on `V2.Core.Account.defaults`, `V2.Core.AccountCreateParams.defaults`, and `V2.Core.AccountUpdateParams.defaults`
58
+ * Add support for `i_p` on `V2.Core.Account.identity.attestations.directorship_declaration`, `V2.Core.Account.identity.attestations.ownership_declaration`, `V2.Core.Account.identity.attestations.terms_of_service.account`, `V2.Core.Account.identity.attestations.terms_of_service.storer`, `V2.Core.Account.identity.individual.additional_terms_of_service.account`, `V2.Core.AccountCreateParams.identity.attestations.terms_of_service.account`, `V2.Core.AccountCreateParams.identity.attestations.terms_of_service.storer`, `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.account`, `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.storer`, `V2.Core.Person.additional_terms_of_service.account`, `V2.Core.PersonCreateParams.additional_terms_of_service.account`, and `V2.Core.PersonUpdateParams.additional_terms_of_service.account`
59
+ * Remove support for `ip` on `V2.Core.Account.identity.attestations.directorship_declaration`, `V2.Core.Account.identity.attestations.ownership_declaration`, `V2.Core.Account.identity.attestations.terms_of_service.account`, `V2.Core.Account.identity.attestations.terms_of_service.storer`, `V2.Core.Account.identity.individual.additional_terms_of_service.account`, `V2.Core.AccountCreateParams.identity.attestations.terms_of_service.account`, `V2.Core.AccountCreateParams.identity.attestations.terms_of_service.storer`, `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.account`, `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service.storer`, `V2.Core.Person.additional_terms_of_service.account`, `V2.Core.PersonCreateParams.additional_terms_of_service.account`, and `V2.Core.PersonUpdateParams.additional_terms_of_service.account`
60
+ * Remove support for `doing_business_as`, `product_description`, and `url` on `V2.Core.Account.identity.business_details`, `V2.Core.AccountCreateParams.identity.business_details`, and `V2.Core.AccountUpdateParams.identity.business_details`
61
+ * Add support for `settlement_currency` on `V2.MoneyManagement.FinancialAddress`
62
+ * Add support for `sepa_bank_account` on `V2.MoneyManagement.FinancialAddress.credentials` and `V2.MoneyManagement.ReceivedCredit.bank_transfer`
63
+ * Add support for new value `sepa_bank_account` on enum `V2.MoneyManagement.FinancialAddress.credentials.type`
64
+ * Add support for `amount_details` and `payments_orchestration` on `V2.Payments.OffSessionPaymentCreateParams` and `V2.Payments.OffSessionPayment`
65
+ * Add support for new value `authorization_expired` on enum `V2.Payments.OffSessionPayment.failure_reason`
66
+ * Add support for `retry_policy` on `V2.Payments.OffSessionPayment.retry_details` and `V2.Payments.OffSessionPaymentCreateParams.retry_details`
67
+ * Add support for new values `heuristic` and `scheduled` on enums `V2.Payments.OffSessionPayment.retry_details.retry_strategy` and `V2.Payments.OffSessionPaymentCreateParams.retry_details.retry_strategy`
68
+ * Change type of `V2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_duration` from `literal('five_minutes')` to `enum('five_minutes'|'none')`
69
+ * Change type of `V2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_expires_at` from `DateTime` to `DateTime | null`
70
+ * Add support for new value `none` on enum `V2.MoneyManagement.OutboundPaymentQuote.fx_quote.lock_status`
71
+ * Add support for new value `crypto_wallet` on enums `V2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data.type`, `V2.MoneyManagement.OutboundSetupIntentUpdateParams.payout_method_data.type`, and `V2.MoneyManagement.PayoutMethod.type`
72
+ * Add support for `origin_type` on `V2.MoneyManagement.ReceivedCredit.bank_transfer`
73
+ * Remove support for `payment_method_type` on `V2.MoneyManagement.ReceivedCredit.bank_transfer`
74
+ * Add support for new value `prevented` on enum `Dispute.status`
75
+ * Add support for `mandate_data` and `payment_method_options` on `V2.Payments.OffSessionPaymentCreateParams`
76
+ * Add support for `type` on `V2.MoneyManagement.FinancialAddressCreateParams`
77
+ * Remove support for `currency` on `V2.MoneyManagement.FinancialAddressCreateParams`
78
+ * Add support for new values `financial_addressses.crypto_wallets`, `holds_currencies.usdc`, `outbound_payments.crypto_wallets`, and `outbound_transfers.crypto_wallets` on enum `EventsV2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.updated_capability`
79
+ * Add support for thin event `V2BillingBillSettingUpdatedEvent` with related object `V2.Billing.BillSetting`
80
+ * Add support for error type `RateLimitError`
81
+ * Add support for error code `invalid_payout_method_crypto_wallet` on `InvalidPayoutMethodError`
82
+ * [#2397](https://github.com/stripe/stripe-node/pull/2397) Update generated code for beta
83
+ * Add support for new resources `Billing.Analytics.MeterUsageRow` and `Billing.Analytics.MeterUsage`
84
+ * Remove support for resources `Billing.MeterUsageRow` and `Billing.MeterUsage`
85
+ * Add support for `retrieve` method on resource `Billing.Analytics.MeterUsage`
86
+ * Remove support for `retrieve` method on resource `Billing.MeterUsage`
87
+ * Add support for `report_payment_attempt_informational` method on resource `PaymentRecord`
88
+ * Add support for `minimum_balance_by_currency` on `BalanceSettingUpdateParams.payments.payouts` and `BalanceSettings.payments.payouts`
89
+ * Remove support for values `saturday` and `sunday` from enums `BalanceSettingUpdateParams.payments.payouts.schedule.weekly_payout_days` and `BalanceSettings.payments.payouts.schedule.weekly_payout_days`
90
+ * Change type of `BalanceSettingUpdateParams.payments.settlement_timing.delay_days_override` from `longInteger` to `emptyable(longInteger)`
91
+ * Change `BalanceSettingUpdateParams.payments` to be optional
92
+ * Add support for `delay_days_override` on `BalanceSettings.payments.settlement_timing`
93
+ * Add support for `automatic_tax` and `invoice_creation` on `Checkout.SessionUpdateParams`
94
+ * Add support for `unit_label` on `Checkout.SessionUpdateParams.line_items[].price_data.product_data`
95
+ * Add support for `invoice_settings` on `Checkout.SessionUpdateParams.subscription_data`
96
+ * Change `Checkout.Session.collected_information.business_name` to be required
97
+ * Add support for `intended_submission_method` on `DisputeUpdateParams` and `Dispute`
98
+ * Change type of `Dispute.smart_disputes.recommended_evidence` from `string` to `array(string)`
99
+ * Add support for `pix` 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`
100
+ * Add support for new value `pix` 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`
101
+ * Add support for `billing_schedules` on `InvoiceCreatePreviewParams.subscription_details`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
102
+ * Add support for `paypay` on `PaymentAttemptRecord.payment_method_details` and `PaymentRecord.payment_method_details`
103
+ * Add support for `wallet` on `PaymentAttemptRecord.payment_method_details.card` and `PaymentRecord.payment_method_details.card`
104
+ * Change type of `PaymentAttemptRecord.processor_details.custom.payment_reference` and `PaymentRecord.processor_details.custom.payment_reference` from `string` to `string | null`
105
+ * Add support for `flexible` on `QuotePreviewSubscriptionSchedule.billing_mode`
106
+ * Add support for `billed_until` on `SubscriptionItem`
107
+ * Add support for error codes `financial_connections_account_pending_account_numbers` and `financial_connections_account_unavailable_account_numbers` on `QuotePreviewInvoice.last_finalization_error`
108
+
109
+ ## 19.0.0 - 2025-09-30
110
+ This release changes the pinned API version to `2025-09-30.basil` and contains breaking changes (prefixed with ⚠️ below)
111
+
112
+ * [#2427](https://github.com/stripe/stripe-node/pull/2427) Move `V2.Event` API resources to `V2.Core.Events`
113
+ - ⚠️ Move the below event related interfaces and types from `Stripe.V2` to `Stripe.V2.Core`. This enables us to correctly match the API path to the namespace
114
+ - `Stripe.V2.EventDestination` -> `Stripe.V2.Core.EventDestination`
115
+ - `Stripe.V2.Event` -> `Stripe.V2.Core.Event`
116
+ - `Stripe.V2.EventBase` -> `Stripe.V2.Core.EventBase`
117
+ - `Stripe.V2.Events.RelatedObject` -> `Stripe.V2.Core.Events.RelatedObject`
118
+ * [#2370](https://github.com/stripe/stripe-node/pull/2370) Add strongly typed EventNotifications
119
+ We've overhauled how V2 Events are handled in the SDK! This approach should provide a lot more information at authoring and compile time, leading to more robust integrations. As part of this process, there are a number of changes to be aware of.
120
+ - ⚠️ Rename function `StripeClient.parseThinEvent` to `StripeClient.parseEventNotification` and remove the `Stripe.ThinEvent` interface.
121
+ - This function now returns a `Stripe.V2.EventNotification` which is a union of all possible event notifications instead of `Stripe.ThinEvent`. When applicable, these event notifications will have the `relatedObject` field and a function `fetchRelatedObject()`. They also have a `fetchEvent()` method to retrieve their corresponding event.
122
+ - If this union type does not cover a new event notification that you parsed, you can cast it to `UnknownEventNotification` to then access the `relatedObject` field and the function `fetchRelatedObject()`
123
+ * [#2432](https://github.com/stripe/stripe-node/pull/2432) Drop support for Node < 16 & clarify policy
124
+ - Publish our new [language version support policy](https://docs.stripe.com/sdks/versioning?server=node#stripe-sdk-language-version-support-policy) and add a link to the README.
125
+ - ⚠️ Drop support for Node versions < 16
126
+ - Node 16 support is deprecated and will be removed in the next scheduled major release (March 2026)
127
+ * [#2426](https://github.com/stripe/stripe-node/pull/2426) Add `StripeContext` object
128
+ - Add the `StripeContext` class. It can be used anywhere the [context](https://docs.stripe.com/context) option is supplied and gets serialized to a string when making requests.
129
+ - ⚠️ Change `EventNotification` (formerly known as `ThinEvent`)'s `context` property from `string` to `StripeContext`
130
+ - ⚠️ We no longer remove the stripe-context header from /v1 requests and the stripe-account header from /v2 requests. The server may reject a request with both of these headers, so if you're sending both, remove any reference to stripeAccount (since the headers are identical, but context is preferred)
131
+ * [#2398](https://github.com/stripe/stripe-node/pull/2398) ⚠️ Build SDK w/ V2 OpenAPI spec
132
+ - ⚠️ The delete methods for v2 APIs (the ones in the `StripeClient.v2` namespace) now return a `V2DeletedObject` which has the id of the object that has been deleted and a string representing the type of the object that has been deleted.
133
+ - ⚠️ Change the types of nullable properties in objects returned by v2 APIs (the ones in the `StripeClient.v2` namespace) from a null union to optional (e.g. `prop: string | null` -> `prop?: string`).
134
+ * [#2420](https://github.com/stripe/stripe-node/pull/2420) Fixed file uploading in Bun runtimes
135
+ * Fixed issue ([#2416](https://github.com/stripe/stripe-node/issues/2416)) with file uploads in runtimes using `FetchHttpClient` (e.g. Bun). This bug affected Node SDK versions between 18.1.0 to 18.5.0.
136
+ * [#2405](https://github.com/stripe/stripe-node/pull/2405) support more npm tags
137
+ - ⚠️ Starting with this release, we'll no longer be tagging releases with `beta` npm tag. Instead, we'll use `latest`, `public-preview`, or `private-preview` to more closely align with Stripe's [release phases](https://docs.stripe.com/release-phases)
138
+
139
+ * [#2402](https://github.com/stripe/stripe-node/pull/2402), [#2413](https://github.com/stripe/stripe-node/pull/2413), [#2430](https://github.com/stripe/stripe-node/pull/2430), [#2428](https://github.com/stripe/stripe-node/pull/2428) Update generated code based on incoming API changes in the `2025-09-30.basil` API version.
140
+ * ⚠️ Remove support for `balance_report` and `payout_reconciliation_report` on `AccountSession.components` and `AccountSessionCreateParams.components`
141
+ * ⚠️ Remove support for values `saturday` and `sunday` from enums `Account.settings.payouts.schedule.weekly_payout_days`, `AccountCreateParams.settings.payouts.schedule.weekly_payout_days`, and `AccountUpdateParams.settings.payouts.schedule.weekly_payout_days`
142
+ * Add support for new values `external_request` and `unsupported_business_type` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, `BankAccount.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code`
143
+ * Remove support for `link` and `pay_by_bank` on `PaymentMethodUpdateParams`
144
+ * ⚠️ Remove support for `coupon` on `Discount`, `PromotionCodeCreateParams`, and `PromotionCode`. Use `Discount.source.coupon`, `PromotionCodeCreateParams.promotion.coupon` and `PromotionCode.coupon` instead.
145
+ * Change `Invoice.id` to be required.
146
+ * Add support for new value `prevented` on enum `Dispute.status`
147
+ * Add support for new resource `BalanceSettings`
148
+ * Add support for `retrieve` and `update` methods on resource `BalanceSettings`
149
+ * Add support for `mb_way_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
150
+ * Add support for `source` on `Discount`
151
+ * Add support for `trial_update_behavior` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update`
152
+ * Add support for `mb_way` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
153
+ * Add support for `branding_settings` and `name_collection` on `Checkout.SessionCreateParams` and `Checkout.Session`
154
+ * Add support for `excluded_payment_method_types` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentIntentConfirmParams`, and `PaymentIntentUpdateParams`
155
+ * Add support for `unit_label` on `Checkout.SessionCreateParams.line_items[].price_data.product_data`, `InvoiceAddLinesParams.lines[].price_data.product_data`, `InvoiceLineItemUpdateParams.price_data.product_data`, `InvoiceUpdateLinesParams.lines[].price_data.product_data`, and `PaymentLinkCreateParams.line_items[].price_data.product_data`
156
+ * Add support for `alma`, `billie`, and `satispay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options`
157
+ * Add support for `demo_pay` on `Checkout.SessionCreateParams.payment_method_options`
158
+ * Add support for `capture_method` on `Checkout.Session.payment_method_options.affirm`, `Checkout.Session.payment_method_options.afterpay_clearpay`, `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.card`, `Checkout.Session.payment_method_options.cashapp`, `Checkout.Session.payment_method_options.klarna`, `Checkout.Session.payment_method_options.link`, `Checkout.Session.payment_method_options.mobilepay`, `Checkout.Session.payment_method_options.revolut_pay`, `Checkout.SessionCreateParams.payment_method_options.affirm`, `Checkout.SessionCreateParams.payment_method_options.afterpay_clearpay`, `Checkout.SessionCreateParams.payment_method_options.amazon_pay`, `Checkout.SessionCreateParams.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.cashapp`, `Checkout.SessionCreateParams.payment_method_options.klarna`, `Checkout.SessionCreateParams.payment_method_options.link`, `Checkout.SessionCreateParams.payment_method_options.mobilepay`, and `Checkout.SessionCreateParams.payment_method_options.revolut_pay`
159
+ * Add support for `flexible` on `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`, `Subscription.billing_mode`, `SubscriptionCreateParams.billing_mode`, `SubscriptionMigrateParams.billing_mode`, `SubscriptionSchedule.billing_mode`, and `SubscriptionScheduleCreateParams.billing_mode`
160
+ * Add support for `business_name` and `individual_name` on `Checkout.Session.collected_information`, `Checkout.Session.customer_details`, `CustomerCreateParams`, `CustomerUpdateParams`, and `Customer`
161
+ * Add support for new values `mb_way` 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`
162
+ * Add support for new values `mb_way` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
163
+ * Add support for new values `mb_way` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
164
+ * Add support for `chargeback_loss_reason_code` on `Dispute.payment_method_details.klarna`
165
+ * Add support for `net_amount` and `proration_details` on `InvoiceItem`
166
+ * Remove support for `iterations` on `InvoiceCreatePreviewParams.schedule_details.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]`
167
+ * Add support for `fraud_disputability_likelihood` and `risk_assessment` on `Issuing.AuthorizationCreateParams.testHelpers`
168
+ * Add support for `second_line` on `Issuing.Card`
169
+ * Add support for new values `mb_way` on enums `PaymentIntent.excluded_payment_method_types` and `PaymentIntentCreateParams.excluded_payment_method_types`
170
+ * Add support for `fr_meal_voucher_conecs` on `PaymentMethodConfigurationCreateParams` and `PaymentMethodConfigurationUpdateParams`
171
+ * Add support for `promotion` on `PromotionCodeCreateParams` and `PromotionCode`
172
+ * Add support for new values `acknowledged` and `payment_never_settled` on enum `Review.closed_reason`
173
+ * Add support for `provider` on `Tax.Settings.defaults`
174
+ * Add support for `bbpos_wisepad3` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
175
+ * Add support for `address_kana`, `address_kanji`, `display_name_kana`, `display_name_kanji`, and `phone` on `Terminal.LocationCreateParams`, `Terminal.LocationUpdateParams`, and `Terminal.Location`
176
+ * Change `Terminal.LocationCreateParams.address` to be optional
177
+ * Change `Terminal.LocationCreateParams.display_name` to be optional
178
+ * Add support for new value `2025-09-30.clover` on enum `WebhookEndpointCreateParams.api_version`
179
+ * Add support for error codes `financial_connections_account_pending_account_numbers` and `financial_connections_account_unavailable_account_numbers` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
180
+
181
+ ## 18.6.0-alpha.2 - 2025-09-17
182
+
183
+ * [#2404](https://github.com/stripe/stripe-node/pull/2404) Update generated code for private-preview
184
+ * Add support for `retrieve` method on resource `V2.Core.ClaimableSandbox`
185
+ * Add support for `month_of_year` on `V2.Billing.Cadence#create.billing_cycle.month` and `V2.Billing.Cadence.billing_cycle.month`
186
+ * Add support for `claimed_at`, `expires_at`, `sandbox_details`, and `status` on `V2.Core.ClaimableSandbox`
187
+ * Remove support for `api_keys` on `V2.Core.ClaimableSandbox`
188
+ * Change type of `V2.Core.ClaimableSandbox.claim_url` from `string` to `nullable(string)`
189
+ * Add support for new value `current_billing_period_end` on enums `V2.Billing.Intent#create.actions[].deactivate.effective_at.type` and `V2.Billing.IntentAction.deactivate.effective_at.type`
190
+ * Add support for `will_activate_at` and `will_cancel_at` on `V2.Billing.PricingPlanSubscription.servicing_status_transitions` and `V2.Billing.RateCardSubscription.servicing_status_transitions`
191
+ * Add support for `category` and `priority` on `V2.Billing.ServiceAction#create.credit_grant_per_tenant`, `V2.Billing.ServiceAction#create.credit_grant`, `V2.Billing.ServiceAction.credit_grant_per_tenant`, and `V2.Billing.ServiceAction.credit_grant`
192
+ * Change `V2.Billing.LicenseFee#update.display_name` to be optional
193
+ * Add support for `invoices` on `EventsV2BillingCadenceBilledEvent`
194
+ * Add support for thin events `V2CoreClaimableSandboxClaimedEvent`, `V2CoreClaimableSandboxExpiredEvent`, `V2CoreClaimableSandboxExpiringEvent`, and `V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent` with related object `V2.Core.ClaimableSandbox`
195
+ * Remove support for thin event `V2BillingCadenceErroredEvent` with related object `V2.Billing.Cadence`
196
+
197
+ ## 18.6.0-alpha.1 - 2025-08-27
198
+ It is built on top of SDK version 18.6.0-beta.1 which contains breaking changes. Please review the changelog for it if upgrading from older SDK versions.
199
+
200
+ * [#2390](https://github.com/stripe/stripe-node/pull/2390) Update generated code for private-preview
201
+ * Add support for `attach_cadence` method on resource `Subscription`
202
+ * Add support for `currency` and `external_customer_id` on `Billing.AlertTriggered`
203
+ * Add support for `custom_pricing_unit` on `Billing.AlertTriggered`, `Billing.CreditBalanceSummary.balances[].available_balance`, `Billing.CreditBalanceSummary.balances[].ledger_balance`, `Billing.CreditBalanceTransaction.credit.amount`, `Billing.CreditBalanceTransaction.debit.amount`, `Billing.CreditGrant.amount`, and `Billing.CreditGrantCreateParams.amount`
204
+ * Add support for `customer` on `Billing.AlertListParams`
205
+ * Change type of `Billing.Alert.alert_type`, `Billing.AlertCreateParams.alert_type`, and `Billing.AlertListParams.alert_type` from `literal('usage_threshold')` to `enum('credit_balance_threshold'|'usage_threshold')`
206
+ * Add support for `credit_balance_threshold` on `Billing.AlertCreateParams` and `Billing.Alert`
207
+ * Add support for `billable_items` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
208
+ * Change type of `Billing.CreditBalanceSummary.balances[].available_balance.type`, `Billing.CreditBalanceSummary.balances[].ledger_balance.type`, `Billing.CreditBalanceTransaction.credit.amount.type`, `Billing.CreditBalanceTransaction.debit.amount.type`, `Billing.CreditGrant.amount.type`, and `Billing.CreditGrantCreateParams.amount.type` from `literal('monetary')` to `enum('custom_pricing_unit'|'monetary')`
209
+ * Add support for `license_fee_subscription_details` and `rate_card_subscription_details` on `InvoiceItem.parent` and `InvoiceLineItem.parent`
210
+ * Change type of `InvoiceItem.parent.type` from `literal('subscription_details')` to `enum('license_fee_subscription_details'|'rate_card_subscription_details'|'subscription_details')`
211
+ * Add support for `license_fee_details` and `rate_card_rate_details` on `InvoiceItem.pricing` and `InvoiceLineItem.pricing`
212
+ * Change type of `InvoiceItem.pricing.type` and `InvoiceLineItem.pricing.type` from `literal('price_details')` to `enum('license_fee_details'|'price_details'|'rate_card_rate_details')`
213
+ * Add support for `billing_cadence` on `InvoiceCreatePreviewParams`, `SubscriptionCreateParams`, and `Subscription`
214
+ * Add support for `billing_cadence_details` on `Invoice.parent` and `QuotePreviewInvoice.parent`
215
+ * Add support for new value `billing_cadence_details` on enums `Invoice.parent.type` and `QuotePreviewInvoice.parent.type`
216
+ * Add support for new values `license_fee_subscription_details` and `rate_card_subscription_details` on enum `InvoiceLineItem.parent.type`
217
+ * Add support for new resources `V2.Billing.BillSettingVersion`, `V2.Billing.BillSetting`, `V2.Billing.Cadence`, `V2.Billing.CollectionSettingVersion`, `V2.Billing.CollectionSetting`, `V2.Billing.CustomPricingUnit`, `V2.Billing.IntentAction`, `V2.Billing.Intent`, `V2.Billing.LicenseFeeSubscription`, `V2.Billing.LicenseFeeVersion`, `V2.Billing.LicenseFee`, `V2.Billing.LicensedItem`, `V2.Billing.MeteredItem`, `V2.Billing.PricingPlanComponent`, `V2.Billing.PricingPlanSubscription`, `V2.Billing.PricingPlanVersion`, `V2.Billing.PricingPlan`, `V2.Billing.Profile`, `V2.Billing.RateCardRate`, `V2.Billing.RateCardSubscription`, `V2.Billing.RateCardVersion`, `V2.Billing.RateCard`, `V2.Billing.ServiceAction`, `V2.Core.ClaimableSandbox`, `V2.Reporting.ReportRun`, `V2.Reporting.Report`, and `V2.Tax.AutomaticRule`
218
+ * Add support for `create`, `deactivate`, `find`, `retrieve`, and `update` methods on resource `V2.Tax.AutomaticRule`
219
+ * Add support for `create` and `retrieve` methods on resources `V2.Billing.ServiceAction` and `V2.Reporting.ReportRun`
220
+ * Add support for `retrieve` method on resources `V2.Billing.LicenseFeeSubscription` and `V2.Reporting.Report`
221
+ * Add support for `create` method on resources `V2.Core.ClaimableSandbox`
222
+ * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resources `V2.Billing.Cadence` and `V2.Billing.RateCardSubscription`
223
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resources `V2.Billing.BillSetting`, `V2.Billing.CollectionSetting`, `V2.Billing.CustomPricingUnit`, `V2.Billing.LicenseFee`, `V2.Billing.LicensedItem`, `V2.Billing.MeteredItem`, `V2.Billing.PricingPlan`, `V2.Billing.Profile`, and `V2.Billing.RateCard`
224
+ * Add support for `list` and `retrieve` methods on resources `V2.Billing.BillSettingVersion`, `V2.Billing.CollectionSettingVersion`, `V2.Billing.IntentAction`, `V2.Billing.LicenseFeeVersion`, `V2.Billing.PricingPlanSubscription`, `V2.Billing.PricingPlanVersion`, and `V2.Billing.RateCardVersion`
225
+ * Add support for `create`, `del`, `list`, and `retrieve` methods on resource `V2.Billing.RateCardRate`
226
+ * Add support for `create`, `del`, `list`, `retrieve`, and `update` methods on resource `V2.Billing.PricingPlanComponent`
227
+ * Add support for `cancel`, `commit`, `create`, `list`, `release_reservation`, `reserve`, and `retrieve` methods on resource `V2.Billing.Intent`
228
+ * Add support for `changes` on `V2.Event`
229
+ * Add support for thin events `V2BillingCadenceBilledEvent`, `V2BillingCadenceCanceledEvent`, `V2BillingCadenceCreatedEvent`, and `V2BillingCadenceErroredEvent` with related object `V2.Billing.Cadence`
230
+ * Add support for thin events `V2BillingLicenseFeeCreatedEvent` and `V2BillingLicenseFeeUpdatedEvent` with related object `V2.Billing.LicenseFee`
231
+ * Add support for thin event `V2BillingLicenseFeeVersionCreatedEvent` with related object `V2.Billing.LicenseFeeVersion`
232
+ * Add support for thin events `V2BillingLicensedItemCreatedEvent` and `V2BillingLicensedItemUpdatedEvent` with related object `V2.Billing.LicensedItem`
233
+ * Add support for thin events `V2BillingMeteredItemCreatedEvent` and `V2BillingMeteredItemUpdatedEvent` with related object `V2.Billing.MeteredItem`
234
+ * Add support for thin events `V2BillingPricingPlanCreatedEvent` and `V2BillingPricingPlanUpdatedEvent` with related object `V2.Billing.PricingPlan`
235
+ * Add support for thin events `V2BillingPricingPlanComponentCreatedEvent` and `V2BillingPricingPlanComponentUpdatedEvent` with related object `V2.Billing.PricingPlanComponent`
236
+ * Add support for thin events `V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEvent`, `V2BillingPricingPlanSubscriptionCollectionCurrentEvent`, `V2BillingPricingPlanSubscriptionCollectionPastDueEvent`, `V2BillingPricingPlanSubscriptionCollectionPausedEvent`, `V2BillingPricingPlanSubscriptionCollectionUnpaidEvent`, `V2BillingPricingPlanSubscriptionServicingActivatedEvent`, `V2BillingPricingPlanSubscriptionServicingCanceledEvent`, and `V2BillingPricingPlanSubscriptionServicingPausedEvent` with related object `V2.Billing.PricingPlanSubscription`
237
+ * Add support for thin event `V2BillingPricingPlanVersionCreatedEvent` with related object `V2.Billing.PricingPlanVersion`
238
+ * Add support for thin events `V2BillingRateCardCreatedEvent` and `V2BillingRateCardUpdatedEvent` with related object `V2.Billing.RateCard`
239
+ * Add support for thin event `V2BillingRateCardRateCreatedEvent` with related object `V2.Billing.RateCardRate`
240
+ * Add support for thin events `V2BillingRateCardSubscriptionActivatedEvent`, `V2BillingRateCardSubscriptionCanceledEvent`, `V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEvent`, `V2BillingRateCardSubscriptionCollectionCurrentEvent`, `V2BillingRateCardSubscriptionCollectionPastDueEvent`, `V2BillingRateCardSubscriptionCollectionPausedEvent`, `V2BillingRateCardSubscriptionCollectionUnpaidEvent`, `V2BillingRateCardSubscriptionServicingActivatedEvent`, `V2BillingRateCardSubscriptionServicingCanceledEvent`, and `V2BillingRateCardSubscriptionServicingPausedEvent` with related object `V2.Billing.RateCardSubscription`
241
+ * Add support for thin event `V2BillingRateCardVersionCreatedEvent` with related object `V2.Billing.RateCardVersion`
242
+ * Add support for thin events `V2CoreHealthApiErrorFiringEvent`, `V2CoreHealthApiErrorResolvedEvent`, `V2CoreHealthApiLatencyFiringEvent`, `V2CoreHealthApiLatencyResolvedEvent`, `V2CoreHealthAuthorizationRateDropFiringEvent`, `V2CoreHealthAuthorizationRateDropResolvedEvent`, `V2CoreHealthEventGenerationFailureResolvedEvent`, `V2CoreHealthFraudRateIncreasedEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `V2CoreHealthPaymentMethodErrorFiringEvent`, `V2CoreHealthPaymentMethodErrorResolvedEvent`, `V2CoreHealthTrafficVolumeDropFiringEvent`, `V2CoreHealthTrafficVolumeDropResolvedEvent`, `V2CoreHealthWebhookLatencyFiringEvent`, and `V2CoreHealthWebhookLatencyResolvedEvent`
243
+ * Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `V2.Reporting.ReportRun`
244
+ * Add support for error type `RateLimitError`
245
+
3
246
  ## 18.6.0-beta.1 - 2025-08-27
4
247
  This release changes the pinned API version to `2025-08-27.preview`.
5
248
 
@@ -37,6 +280,31 @@ This release changes the pinned API version to `2025-08-27.preview`.
37
280
  * Add support for `reader_security` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
38
281
  * Add support for error codes `customer_session_expired` and `india_recurring_payment_mandate_canceled` on `QuotePreviewInvoice.last_finalization_error`
39
282
 
283
+ ## 18.5.0 - 2025-08-27
284
+ This release changes the pinned API version to `2025-08-27.basil`.
285
+
286
+ * [#2392](https://github.com/stripe/stripe-node/pull/2392) Add section on private preview SDKs in readme
287
+ * [#2384](https://github.com/stripe/stripe-node/pull/2384) Update generated code.
288
+ * Add support for `balance_report`, `payout_details`, and `payout_reconciliation_report` on `AccountSession.components` and `AccountSessionCreateParams.components`
289
+ * Add support for `name` on `BillingPortal.ConfigurationCreateParams`, `BillingPortal.ConfigurationUpdateParams`, and `BillingPortal.Configuration`
290
+ * Add support for `installments` on `Charge.payment_method_details.alma`
291
+ * Add support for `transaction_id` on `Charge.payment_method_details.alma`, `Charge.payment_method_details.amazon_pay`, `Charge.payment_method_details.billie`, `Charge.payment_method_details.kakao_pay`, `Charge.payment_method_details.kr_card`, `Charge.payment_method_details.naver_pay`, `Charge.payment_method_details.payco`, `Charge.payment_method_details.revolut_pay`, `Charge.payment_method_details.samsung_pay`, and `Charge.payment_method_details.satispay`
292
+ * Add support for `location` and `reader` on `Charge.payment_method_details.paynow`
293
+ * Add support for `amount_includes_iof` on `Checkout.Session.payment_method_options.pix`, `Checkout.SessionCreateParams.payment_method_options.pix`, `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, and `PaymentIntentUpdateParams.payment_method_options.pix`
294
+ * Add support for new values `block` and `resolution` on enum `Dispute.payment_method_details.card.case_type`
295
+ * Add support for new value `terminal_android_apk` on enums `File.purpose` and `FileListParams.purpose`
296
+ * Add support for new value `terminal_android_apk` on enum `FileCreateParams.purpose`
297
+ * Add support for `metadata` and `period` on `InvoiceCreatePreviewParams.schedule_details.phases[].add_invoice_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, and `SubscriptionUpdateParams.add_invoice_items[]`
298
+ * Add support for `exp_month` and `exp_year` on `Issuing.CardCreateParams`
299
+ * Add support for `excluded_payment_method_types` on `PaymentIntentCreateParams` and `PaymentIntent`
300
+ * Add support for `payout_method` on `PayoutCreateParams` and `Payout`
301
+ * Add support for `mxn` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
302
+ * Add support for `card` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers`
303
+ * Add support for new value `card` on enum `Terminal.ReaderPresentPaymentMethodParams.testHelpers.type`
304
+ * Add support for new value `2025-08-27.basil` on enum `WebhookEndpointCreateParams.api_version`
305
+ * Add support for error codes `customer_session_expired` and `india_recurring_payment_mandate_canceled` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
306
+ * [#2389](https://github.com/stripe/stripe-node/pull/2389) fix(example): expires_at is in milliseconds
307
+
40
308
  ## 18.5.0-beta.2 - 2025-08-06
41
309
  * [#2383](https://github.com/stripe/stripe-node/pull/2383) Bring back GA invoice payments APIs that were missing in the public preview SDKs
42
310
  * Add support for new resource `InvoicePayment`
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1932
1
+ 3254488ad9df6baaabe4c802afb68791838928b5
package/README.md CHANGED
@@ -16,7 +16,9 @@ See the [`stripe-node` API docs](https://stripe.com/docs/api?lang=node) for Node
16
16
 
17
17
  ## Requirements
18
18
 
19
- Node 12 or higher.
19
+ Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?server=node#stripe-sdk-language-version-support-policy), we currently support all LTS versions of **Node.js 16+**.
20
+
21
+ Support for Node 16 is deprecated and will be removed in an upcoming major version. Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?server=node#stripe-sdk-language-version-support-policy
20
22
 
21
23
  ## Installation
22
24
 
@@ -525,20 +527,26 @@ const stripe = new Stripe('sk_test_...', {
525
527
 
526
528
  ### Public Preview SDKs
527
529
 
528
- Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-beta.X` suffix like `15.2.0-beta.2`.
530
+ Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-beta.X` suffix like `18.6.0-beta.1`.
529
531
  We would love for you to try these as we incrementally release new features and improve them based on your feedback.
530
532
 
531
- To install, choose the version that includes support for the preview feature you are interested in by reviewing the [releases page](https://github.com/stripe/stripe-node/releases/) and use it in the below command
533
+ The easiest way to install a public-preview release is to use the dedicated npm tag:
534
+
535
+ ```
536
+ npm install stripe@public-preview --save
537
+ ```
538
+
539
+ Or, to install a specific version from the [releases page](https://github.com/stripe/stripe-node/releases/), you can specify that version explicitly:
532
540
 
533
541
  ```
534
- npm install stripe@<replace-with-the-version-of-your-choice> --save
542
+ npm install stripe@<some-version>
543
+ # for example:
544
+ # npm install stripe@18.6.0-beta.1
535
545
  ```
536
546
 
537
547
  > **Note**
538
548
  > There can be breaking changes between two versions of the public preview SDKs without a bump in the major version. Therefore we recommend pinning the package version to a specific version in your package.json file. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest public preview SDK.
539
549
 
540
- The versions tab on the [stripe page on npm](https://www.npmjs.com/package/stripe) lists the current tags in use. The `beta` tag here corresponds to the the latest public preview SDK.
541
-
542
550
  Some preview features require a name and version to be set in the `Stripe-Version` header like `feature_beta=v3`. If your preview feature has this requirement, use the `apiVersion` property of `config` object to set it:
543
551
 
544
552
  ```js
@@ -547,6 +555,14 @@ const stripe = new Stripe('sk_test_...', {
547
555
  });
548
556
  ```
549
557
 
558
+ ### Private Preview SDKs
559
+
560
+ Stripe has features in the [private preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-alpha.X` suffix like `18.6.0-alpha.1`. These are invite-only features. Once invited, you can install the private preview SDKs by following the same instructions as for the [public preview SDKs](https://github.com/stripe/stripe-node?tab=readme-ov-file#public-preview-sdks) above and replacing the term `public-preview` with `private-preview`:
561
+
562
+ ```
563
+ npm install stripe@private-preview --save
564
+ ```
565
+
550
566
  ### Custom requests
551
567
 
552
568
  If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 18.6.0-beta.1
1
+ 19.1.0-alpha.1
package/cjs/Error.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable camelcase */
3
3
  /* eslint-disable no-warning-comments */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.TemporarySessionExpiredError = exports.RecipientNotNotifiableError = exports.QuotaExceededError = exports.NotCancelableError = exports.NonZeroBalanceError = exports.InvalidPayoutMethodError = exports.InvalidPaymentMethodError = exports.InsufficientFundsError = exports.FinancialAccountNotOpenError = exports.FeatureNotEnabledError = exports.ControlledByDashboardError = exports.BlockedByStripeError = exports.AlreadyExistsError = exports.AlreadyCanceledError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
5
+ exports.TemporarySessionExpiredError = exports.RecipientNotNotifiableError = exports.RateLimitError = exports.QuotaExceededError = exports.NotCancelableError = exports.NonZeroBalanceError = exports.InvalidPayoutMethodError = exports.InvalidPaymentMethodError = exports.InsufficientFundsError = exports.FinancialAccountNotOpenError = exports.FeatureNotEnabledError = exports.ControlledByDashboardError = exports.BlockedByStripeError = exports.AlreadyExistsError = exports.AlreadyCanceledError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
6
6
  const generateV1Error = (rawStripeError) => {
7
7
  switch (rawStripeError.type) {
8
8
  case 'card_error':
@@ -52,6 +52,8 @@ const generateV2Error = (rawStripeError) => {
52
52
  return new NotCancelableError(rawStripeError);
53
53
  case 'quota_exceeded':
54
54
  return new QuotaExceededError(rawStripeError);
55
+ case 'rate_limit':
56
+ return new RateLimitError(rawStripeError);
55
57
  case 'recipient_not_notifiable':
56
58
  return new RecipientNotNotifiableError(rawStripeError);
57
59
  case 'temporary_session_expired':
@@ -294,6 +296,12 @@ class QuotaExceededError extends StripeError {
294
296
  }
295
297
  }
296
298
  exports.QuotaExceededError = QuotaExceededError;
299
+ class RateLimitError extends StripeError {
300
+ constructor(rawStripeError = {}) {
301
+ super(rawStripeError, 'RateLimitError');
302
+ }
303
+ }
304
+ exports.RateLimitError = RateLimitError;
297
305
  class RecipientNotNotifiableError extends StripeError {
298
306
  constructor(rawStripeError = {}) {
299
307
  super(rawStripeError, 'RecipientNotNotifiableError');
@@ -10,6 +10,12 @@ class RequestSender {
10
10
  this._stripe = stripe;
11
11
  this._maxBufferedRequestMetric = maxBufferedRequestMetric;
12
12
  }
13
+ _normalizeStripeContext(optsContext, clientContext) {
14
+ if (optsContext) {
15
+ return optsContext.toString() || null; // return null for empty strings
16
+ }
17
+ return (clientContext === null || clientContext === void 0 ? void 0 : clientContext.toString()) || null; // return null for empty strings
18
+ }
13
19
  _addHeadersDirectlyToObject(obj, headers) {
14
20
  // For convenience, make some headers easily accessible on
15
21
  // lastResponse.
@@ -285,7 +291,7 @@ class RequestSender {
285
291
  }
286
292
  }
287
293
  }
288
- _rawRequest(method, path, params, options) {
294
+ _rawRequest(method, path, params, options, usage) {
289
295
  const requestPromise = new Promise((resolve, reject) => {
290
296
  let opts;
291
297
  try {
@@ -313,7 +319,8 @@ class RequestSender {
313
319
  host: calculatedOptions.host,
314
320
  streaming: !!calculatedOptions.streaming,
315
321
  settings: {},
316
- usage: ['raw_request'],
322
+ // We use this for thin event internals, so we should record the more specific `usage`, when available
323
+ usage: usage || ['raw_request'],
317
324
  };
318
325
  }
319
326
  catch (err) {
@@ -417,6 +424,7 @@ class RequestSender {
417
424
  }
418
425
  requestData = data;
419
426
  this._stripe.getClientUserAgent((clientUserAgent) => {
427
+ var _a, _b, _c;
420
428
  const apiVersion = this._stripe.getApiField('version');
421
429
  const headers = this._makeHeaders({
422
430
  contentType: apiMode == 'v2'
@@ -426,10 +434,11 @@ class RequestSender {
426
434
  apiVersion: apiVersion,
427
435
  clientUserAgent,
428
436
  method,
429
- userSuppliedHeaders: options.headers,
430
- userSuppliedSettings: options.settings,
431
- stripeAccount: apiMode == 'v2' ? null : this._stripe.getApiField('stripeAccount'),
432
- stripeContext: apiMode == 'v2' ? this._stripe.getApiField('stripeContext') : null,
437
+ // other callers expect null, but .headers being optional means it's undefined if not supplied. So we normalize to null.
438
+ userSuppliedHeaders: (_a = options.headers) !== null && _a !== void 0 ? _a : null,
439
+ userSuppliedSettings: (_b = options.settings) !== null && _b !== void 0 ? _b : {},
440
+ stripeAccount: (_c = options.stripeAccount) !== null && _c !== void 0 ? _c : this._stripe.getApiField('stripeAccount'),
441
+ stripeContext: this._normalizeStripeContext(options.stripeContext, this._stripe.getApiField('stripeContext')),
433
442
  apiMode: apiMode,
434
443
  });
435
444
  makeRequest(apiVersion, headers, 0);
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StripeContext = void 0;
4
+ /**
5
+ * The StripeContext class provides an immutable container and convenience methods for interacting with the `Stripe-Context` header. All methods return a new instance of StripeContext.
6
+ * You can use it whenever you're initializing a `Stripe` instance or sending `stripeContext` with a request. It's also found in the `EventNotification.context` property.
7
+ */
8
+ class StripeContext {
9
+ /**
10
+ * Creates a new StripeContext with the given segments.
11
+ */
12
+ constructor(segments = []) {
13
+ this._segments = [...segments];
14
+ }
15
+ /**
16
+ * Gets a copy of the segments of this Context.
17
+ */
18
+ get segments() {
19
+ return [...this._segments];
20
+ }
21
+ /**
22
+ * Creates a new StripeContext with an additional segment appended.
23
+ */
24
+ push(segment) {
25
+ if (!segment) {
26
+ throw new Error('Segment cannot be null or undefined');
27
+ }
28
+ return new StripeContext([...this._segments, segment]);
29
+ }
30
+ /**
31
+ * Creates a new StripeContext with the last segment removed.
32
+ * If there are no segments, throws an error.
33
+ */
34
+ pop() {
35
+ if (this._segments.length === 0) {
36
+ throw new Error('Cannot pop from an empty context');
37
+ }
38
+ return new StripeContext(this._segments.slice(0, -1));
39
+ }
40
+ /**
41
+ * Converts this context to its string representation.
42
+ */
43
+ toString() {
44
+ return this._segments.join('/');
45
+ }
46
+ /**
47
+ * Parses a context string into a StripeContext instance.
48
+ */
49
+ static parse(contextStr) {
50
+ if (!contextStr) {
51
+ return new StripeContext([]);
52
+ }
53
+ return new StripeContext(contextStr.split('/'));
54
+ }
55
+ }
56
+ exports.StripeContext = StripeContext;
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-08-27.preview';
5
+ exports.ApiVersion = '2025-09-30.preview';
@@ -99,7 +99,7 @@ class FetchHttpClient extends HttpClient_js_1.HttpClient {
99
99
  const res = await this._fetchFn(url.toString(), {
100
100
  method,
101
101
  headers: (0, utils_js_1.parseHeadersForFetch)(headers),
102
- body: typeof body === 'object' ? JSON.stringify(body) : body,
102
+ body: body,
103
103
  }, timeout);
104
104
  return new FetchHttpClientResponse(res);
105
105
  }
@@ -2,7 +2,7 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.MeterUsage = void 0;
5
- const StripeResource_js_1 = require("../../StripeResource.js");
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
6
  const stripeMethod = StripeResource_js_1.StripeResource.method;
7
7
  exports.MeterUsage = StripeResource_js_1.StripeResource.extend({
8
8
  retrieve: stripeMethod({
@@ -26,4 +26,8 @@ exports.PaymentRecords = StripeResource_js_1.StripeResource.extend({
26
26
  method: 'POST',
27
27
  fullPath: '/v1/payment_records/{id}/report_payment_attempt_guaranteed',
28
28
  }),
29
+ reportPaymentAttemptInformational: stripeMethod({
30
+ method: 'POST',
31
+ fullPath: '/v1/payment_records/{id}/report_payment_attempt_informational',
32
+ }),
29
33
  });
@@ -19,6 +19,10 @@ exports.Subscriptions = StripeResource_js_1.StripeResource.extend({
19
19
  fullPath: '/v1/subscriptions',
20
20
  methodType: 'list',
21
21
  }),
22
+ attachCadence: stripeMethod({
23
+ method: 'POST',
24
+ fullPath: '/v1/subscriptions/{subscription}/attach_cadence',
25
+ }),
22
26
  cancel: stripeMethod({
23
27
  method: 'DELETE',
24
28
  fullPath: '/v1/subscriptions/{subscription_exposed_id}',
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Versions = void 0;
5
+ const StripeResource_js_1 = require("../../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Versions = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v2/billing/bill_settings/{bill_setting_id}/versions/{id}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/billing/bill_settings/{bill_setting_id}/versions',
15
+ methodType: 'list',
16
+ }),
17
+ });