@depup/stripe 22.0.1-depup.0 → 22.5.0-depup.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 (951) hide show
  1. package/CHANGELOG.md +275 -11
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +2 -2
  4. package/VERSION +1 -1
  5. package/changes.json +1 -1
  6. package/cjs/Error.d.ts +61 -7
  7. package/cjs/Error.js +12 -3
  8. package/cjs/Error.js.map +1 -1
  9. package/cjs/RequestSender.d.ts +2 -1
  10. package/cjs/RequestSender.js +33 -14
  11. package/cjs/RequestSender.js.map +1 -1
  12. package/cjs/StripeEventEmitter.d.ts +18 -0
  13. package/cjs/StripeEventEmitter.js +63 -0
  14. package/cjs/StripeEventEmitter.js.map +1 -0
  15. package/cjs/StripeResource.js +4 -0
  16. package/cjs/StripeResource.js.map +1 -1
  17. package/cjs/Types.d.ts +73 -11
  18. package/cjs/Types.js.map +1 -1
  19. package/cjs/Webhooks.d.ts +49 -8
  20. package/cjs/Webhooks.js +65 -32
  21. package/cjs/Webhooks.js.map +1 -1
  22. package/cjs/apiVersion.d.ts +1 -1
  23. package/cjs/apiVersion.js +1 -1
  24. package/cjs/autoPagination.js +41 -4
  25. package/cjs/autoPagination.js.map +1 -1
  26. package/cjs/lib.d.ts +56 -5
  27. package/cjs/net/EndpointFetchHttpClient.d.ts +21 -0
  28. package/cjs/net/EndpointFetchHttpClient.js +83 -0
  29. package/cjs/net/EndpointFetchHttpClient.js.map +1 -0
  30. package/cjs/net/FetchHttpClient.js +1 -1
  31. package/cjs/net/FetchHttpClient.js.map +1 -1
  32. package/cjs/net/HttpClient.d.ts +3 -0
  33. package/cjs/net/HttpClient.js +15 -1
  34. package/cjs/net/HttpClient.js.map +1 -1
  35. package/cjs/net/NodeHttpClient.js +1 -1
  36. package/cjs/net/NodeHttpClient.js.map +1 -1
  37. package/cjs/platform/ExtensibilityPlatformFunctions.d.ts +34 -0
  38. package/cjs/platform/ExtensibilityPlatformFunctions.js +64 -0
  39. package/cjs/platform/ExtensibilityPlatformFunctions.js.map +1 -0
  40. package/cjs/platform/NodePlatformFunctions.d.ts +12 -0
  41. package/cjs/platform/NodePlatformFunctions.js +79 -2
  42. package/cjs/platform/NodePlatformFunctions.js.map +1 -1
  43. package/cjs/platform/PlatformFunctions.d.ts +34 -5
  44. package/cjs/platform/PlatformFunctions.js +40 -0
  45. package/cjs/platform/PlatformFunctions.js.map +1 -1
  46. package/cjs/resources/AccountLinks.d.ts +2 -1
  47. package/cjs/resources/AccountLinks.js.map +1 -1
  48. package/cjs/resources/AccountSessions.d.ts +92 -0
  49. package/cjs/resources/Accounts.d.ts +202 -71
  50. package/cjs/resources/Accounts.js +31 -21
  51. package/cjs/resources/Accounts.js.map +1 -1
  52. package/cjs/resources/ApplePayDomains.js +2 -2
  53. package/cjs/resources/ApplePayDomains.js.map +1 -1
  54. package/cjs/resources/ApplicationFees.d.ts +2 -2
  55. package/cjs/resources/ApplicationFees.js +5 -5
  56. package/cjs/resources/ApplicationFees.js.map +1 -1
  57. package/cjs/resources/Apps/Secrets.d.ts +19 -21
  58. package/cjs/resources/Apps/index.d.ts +5 -5
  59. package/cjs/resources/BalanceSettings.d.ts +92 -6
  60. package/cjs/resources/BalanceTransactions.d.ts +9 -9
  61. package/cjs/resources/BalanceTransactions.js +3 -3
  62. package/cjs/resources/BalanceTransactions.js.map +1 -1
  63. package/cjs/resources/BankAccounts.d.ts +2 -2
  64. package/cjs/resources/Billing/Alerts.d.ts +29 -31
  65. package/cjs/resources/Billing/Alerts.js +4 -4
  66. package/cjs/resources/Billing/Alerts.js.map +1 -1
  67. package/cjs/resources/Billing/CreditBalanceSummary.d.ts +42 -43
  68. package/cjs/resources/Billing/CreditBalanceSummary.js.map +1 -1
  69. package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +75 -77
  70. package/cjs/resources/Billing/CreditBalanceTransactions.js +1 -1
  71. package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  72. package/cjs/resources/Billing/CreditGrants.d.ts +43 -45
  73. package/cjs/resources/Billing/CreditGrants.js +4 -4
  74. package/cjs/resources/Billing/CreditGrants.js.map +1 -1
  75. package/cjs/resources/Billing/MeterEventAdjustments.d.ts +10 -11
  76. package/cjs/resources/Billing/MeterEventAdjustments.js.map +1 -1
  77. package/cjs/resources/Billing/MeterEvents.d.ts +1 -1
  78. package/cjs/resources/Billing/Meters.d.ts +45 -47
  79. package/cjs/resources/Billing/Meters.js +5 -5
  80. package/cjs/resources/Billing/Meters.js.map +1 -1
  81. package/cjs/resources/Billing/index.d.ts +31 -31
  82. package/cjs/resources/BillingPortal/Configurations.d.ts +148 -150
  83. package/cjs/resources/BillingPortal/Configurations.js +2 -2
  84. package/cjs/resources/BillingPortal/Configurations.js.map +1 -1
  85. package/cjs/resources/BillingPortal/Sessions.d.ts +104 -105
  86. package/cjs/resources/BillingPortal/Sessions.js.map +1 -1
  87. package/cjs/resources/BillingPortal/index.d.ts +7 -7
  88. package/cjs/resources/Capabilities.d.ts +6 -5
  89. package/cjs/resources/Cards.d.ts +3 -3
  90. package/cjs/resources/Charges.d.ts +85 -32
  91. package/cjs/resources/Charges.js +3 -3
  92. package/cjs/resources/Charges.js.map +1 -1
  93. package/cjs/resources/Checkout/Sessions.d.ts +1823 -1575
  94. package/cjs/resources/Checkout/Sessions.js +4 -4
  95. package/cjs/resources/Checkout/Sessions.js.map +1 -1
  96. package/cjs/resources/Checkout/index.d.ts +7 -7
  97. package/cjs/resources/Climate/Orders.d.ts +48 -50
  98. package/cjs/resources/Climate/Orders.js +3 -3
  99. package/cjs/resources/Climate/Orders.js.map +1 -1
  100. package/cjs/resources/Climate/Products.d.ts +15 -17
  101. package/cjs/resources/Climate/Products.js +1 -1
  102. package/cjs/resources/Climate/Products.js.map +1 -1
  103. package/cjs/resources/Climate/Suppliers.d.ts +26 -28
  104. package/cjs/resources/Climate/Suppliers.js +1 -1
  105. package/cjs/resources/Climate/Suppliers.js.map +1 -1
  106. package/cjs/resources/Climate/index.d.ts +12 -12
  107. package/cjs/resources/ConfirmationTokens.d.ts +42 -21
  108. package/cjs/resources/ConfirmationTokens.js +1 -1
  109. package/cjs/resources/ConfirmationTokens.js.map +1 -1
  110. package/cjs/resources/CountrySpecs.js +1 -1
  111. package/cjs/resources/CountrySpecs.js.map +1 -1
  112. package/cjs/resources/Coupons.d.ts +3 -3
  113. package/cjs/resources/Coupons.js +3 -3
  114. package/cjs/resources/Coupons.js.map +1 -1
  115. package/cjs/resources/CreditNoteLineItems.d.ts +3 -3
  116. package/cjs/resources/CreditNotes.d.ts +23 -20
  117. package/cjs/resources/CreditNotes.js +6 -4
  118. package/cjs/resources/CreditNotes.js.map +1 -1
  119. package/cjs/resources/CustomerBalanceTransactions.d.ts +2 -2
  120. package/cjs/resources/CustomerCashBalanceTransactions.d.ts +4 -3
  121. package/cjs/resources/CustomerSessions.d.ts +25 -24
  122. package/cjs/resources/CustomerSessions.js.map +1 -1
  123. package/cjs/resources/Customers.d.ts +14 -14
  124. package/cjs/resources/Customers.js +31 -27
  125. package/cjs/resources/Customers.js.map +1 -1
  126. package/cjs/resources/Discounts.d.ts +4 -4
  127. package/cjs/resources/Disputes.d.ts +43 -12
  128. package/cjs/resources/Disputes.js +4 -4
  129. package/cjs/resources/Disputes.js.map +1 -1
  130. package/cjs/resources/Entitlements/ActiveEntitlements.js +1 -1
  131. package/cjs/resources/Entitlements/ActiveEntitlements.js.map +1 -1
  132. package/cjs/resources/Entitlements/Features.js +2 -2
  133. package/cjs/resources/Entitlements/Features.js.map +1 -1
  134. package/cjs/resources/Entitlements/index.d.ts +8 -8
  135. package/cjs/resources/EphemeralKeys.js +1 -1
  136. package/cjs/resources/EphemeralKeys.js.map +1 -1
  137. package/cjs/resources/Events.d.ts +68 -3
  138. package/cjs/resources/Events.js +1 -1
  139. package/cjs/resources/Events.js.map +1 -1
  140. package/cjs/resources/ExchangeRates.js +1 -1
  141. package/cjs/resources/ExchangeRates.js.map +1 -1
  142. package/cjs/resources/FileLinks.js +2 -2
  143. package/cjs/resources/FileLinks.js.map +1 -1
  144. package/cjs/resources/Files.d.ts +5 -3
  145. package/cjs/resources/Files.js +6 -1
  146. package/cjs/resources/Files.js.map +1 -1
  147. package/cjs/resources/FinancialConnections/Accounts.d.ts +167 -145
  148. package/cjs/resources/FinancialConnections/Accounts.js +6 -6
  149. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  150. package/cjs/resources/FinancialConnections/Authorizations.d.ts +55 -0
  151. package/cjs/resources/FinancialConnections/Authorizations.js +4 -0
  152. package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -0
  153. package/cjs/resources/FinancialConnections/Sessions.d.ts +115 -42
  154. package/cjs/resources/FinancialConnections/Sessions.js +1 -1
  155. package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
  156. package/cjs/resources/FinancialConnections/Transactions.d.ts +14 -16
  157. package/cjs/resources/FinancialConnections/Transactions.js +1 -1
  158. package/cjs/resources/FinancialConnections/Transactions.js.map +1 -1
  159. package/cjs/resources/FinancialConnections/index.d.ts +17 -14
  160. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  161. package/cjs/resources/Forwarding/Requests.d.ts +59 -61
  162. package/cjs/resources/Forwarding/Requests.js +1 -1
  163. package/cjs/resources/Forwarding/Requests.js.map +1 -1
  164. package/cjs/resources/Forwarding/index.d.ts +4 -4
  165. package/cjs/resources/FundingInstructions.d.ts +4 -4
  166. package/cjs/resources/Identity/VerificationReports.d.ts +257 -259
  167. package/cjs/resources/Identity/VerificationReports.js +1 -1
  168. package/cjs/resources/Identity/VerificationReports.js.map +1 -1
  169. package/cjs/resources/Identity/VerificationSessions.d.ts +156 -158
  170. package/cjs/resources/Identity/VerificationSessions.js +4 -4
  171. package/cjs/resources/Identity/VerificationSessions.js.map +1 -1
  172. package/cjs/resources/Identity/index.d.ts +10 -10
  173. package/cjs/resources/InvoiceItems.d.ts +28 -0
  174. package/cjs/resources/InvoiceItems.js +3 -3
  175. package/cjs/resources/InvoiceItems.js.map +1 -1
  176. package/cjs/resources/InvoiceLineItems.d.ts +4 -4
  177. package/cjs/resources/InvoicePayments.d.ts +3 -3
  178. package/cjs/resources/InvoicePayments.js +1 -1
  179. package/cjs/resources/InvoicePayments.js.map +1 -1
  180. package/cjs/resources/InvoiceRenderingTemplates.js +3 -3
  181. package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
  182. package/cjs/resources/Invoices.d.ts +307 -88
  183. package/cjs/resources/Invoices.js +14 -14
  184. package/cjs/resources/Invoices.js.map +1 -1
  185. package/cjs/resources/Issuing/Authorizations.d.ts +359 -356
  186. package/cjs/resources/Issuing/Authorizations.js +4 -4
  187. package/cjs/resources/Issuing/Authorizations.js.map +1 -1
  188. package/cjs/resources/Issuing/Cardholders.d.ts +173 -145
  189. package/cjs/resources/Issuing/Cardholders.js +2 -2
  190. package/cjs/resources/Issuing/Cardholders.js.map +1 -1
  191. package/cjs/resources/Issuing/Cards.d.ts +229 -189
  192. package/cjs/resources/Issuing/Cards.js +2 -2
  193. package/cjs/resources/Issuing/Cards.js.map +1 -1
  194. package/cjs/resources/Issuing/Disputes.d.ts +230 -232
  195. package/cjs/resources/Issuing/Disputes.js +3 -3
  196. package/cjs/resources/Issuing/Disputes.js.map +1 -1
  197. package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +50 -52
  198. package/cjs/resources/Issuing/PersonalizationDesigns.js +2 -2
  199. package/cjs/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  200. package/cjs/resources/Issuing/PhysicalBundles.d.ts +27 -29
  201. package/cjs/resources/Issuing/PhysicalBundles.js +1 -1
  202. package/cjs/resources/Issuing/PhysicalBundles.js.map +1 -1
  203. package/cjs/resources/Issuing/Tokens.d.ts +133 -135
  204. package/cjs/resources/Issuing/Tokens.js +2 -2
  205. package/cjs/resources/Issuing/Tokens.js.map +1 -1
  206. package/cjs/resources/Issuing/Transactions.d.ts +225 -227
  207. package/cjs/resources/Issuing/Transactions.js +2 -2
  208. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  209. package/cjs/resources/Issuing/index.d.ts +38 -38
  210. package/cjs/resources/LineItems.d.ts +4 -3
  211. package/cjs/resources/Mandates.d.ts +54 -10
  212. package/cjs/resources/Mandates.js +1 -1
  213. package/cjs/resources/Mandates.js.map +1 -1
  214. package/cjs/resources/OAuth.d.ts +7 -8
  215. package/cjs/resources/PaymentAttemptRecords.d.ts +81 -52
  216. package/cjs/resources/PaymentAttemptRecords.js +1 -1
  217. package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
  218. package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -1
  219. package/cjs/resources/PaymentIntents.d.ts +963 -304
  220. package/cjs/resources/PaymentIntents.js +12 -10
  221. package/cjs/resources/PaymentIntents.js.map +1 -1
  222. package/cjs/resources/PaymentLinks.d.ts +217 -48
  223. package/cjs/resources/PaymentLinks.js +3 -3
  224. package/cjs/resources/PaymentLinks.js.map +1 -1
  225. package/cjs/resources/PaymentMethodConfigurations.d.ts +439 -225
  226. package/cjs/resources/PaymentMethodConfigurations.js +2 -2
  227. package/cjs/resources/PaymentMethodConfigurations.js.map +1 -1
  228. package/cjs/resources/PaymentMethodDomains.d.ts +7 -7
  229. package/cjs/resources/PaymentMethodDomains.js +3 -3
  230. package/cjs/resources/PaymentMethodDomains.js.map +1 -1
  231. package/cjs/resources/PaymentMethods.d.ts +76 -37
  232. package/cjs/resources/PaymentMethods.js +5 -5
  233. package/cjs/resources/PaymentMethods.js.map +1 -1
  234. package/cjs/resources/PaymentRecords.d.ts +113 -66
  235. package/cjs/resources/PaymentRecords.js +15 -7
  236. package/cjs/resources/PaymentRecords.js.map +1 -1
  237. package/cjs/resources/Payouts.d.ts +4 -4
  238. package/cjs/resources/Payouts.js +4 -4
  239. package/cjs/resources/Payouts.js.map +1 -1
  240. package/cjs/resources/Persons.d.ts +6 -6
  241. package/cjs/resources/Plans.d.ts +6 -6
  242. package/cjs/resources/Plans.js +3 -3
  243. package/cjs/resources/Plans.js.map +1 -1
  244. package/cjs/resources/Prices.d.ts +6 -6
  245. package/cjs/resources/Prices.js +2 -2
  246. package/cjs/resources/Prices.js.map +1 -1
  247. package/cjs/resources/Products.js +7 -7
  248. package/cjs/resources/Products.js.map +1 -1
  249. package/cjs/resources/PromotionCodes.d.ts +2 -2
  250. package/cjs/resources/PromotionCodes.js +2 -2
  251. package/cjs/resources/PromotionCodes.js.map +1 -1
  252. package/cjs/resources/Quotes.d.ts +86 -20
  253. package/cjs/resources/Quotes.js +20 -12
  254. package/cjs/resources/Quotes.js.map +1 -1
  255. package/cjs/resources/Radar/EarlyFraudWarnings.js +1 -1
  256. package/cjs/resources/Radar/EarlyFraudWarnings.js.map +1 -1
  257. package/cjs/resources/Radar/PaymentEvaluations.d.ts +298 -300
  258. package/cjs/resources/Radar/PaymentEvaluations.js.map +1 -1
  259. package/cjs/resources/Radar/ValueListItems.d.ts +14 -16
  260. package/cjs/resources/Radar/ValueListItems.js +2 -2
  261. package/cjs/resources/Radar/ValueListItems.js.map +1 -1
  262. package/cjs/resources/Radar/ValueLists.d.ts +22 -24
  263. package/cjs/resources/Radar/ValueLists.js +3 -3
  264. package/cjs/resources/Radar/ValueLists.js.map +1 -1
  265. package/cjs/resources/Radar/index.d.ts +20 -18
  266. package/cjs/resources/Radar/index.js.map +1 -1
  267. package/cjs/resources/Refunds.d.ts +21 -4
  268. package/cjs/resources/Refunds.js +3 -3
  269. package/cjs/resources/Refunds.js.map +1 -1
  270. package/cjs/resources/Reporting/ReportRuns.d.ts +35 -37
  271. package/cjs/resources/Reporting/ReportRuns.js +1 -1
  272. package/cjs/resources/Reporting/ReportRuns.js.map +1 -1
  273. package/cjs/resources/Reporting/ReportTypes.js +1 -1
  274. package/cjs/resources/Reporting/ReportTypes.js.map +1 -1
  275. package/cjs/resources/Reporting/index.d.ts +7 -7
  276. package/cjs/resources/Reserve/Holds.d.ts +32 -20
  277. package/cjs/resources/Reserve/Plans.d.ts +29 -31
  278. package/cjs/resources/Reserve/Releases.d.ts +23 -25
  279. package/cjs/resources/Reserve/index.js +1 -2
  280. package/cjs/resources/Reserve/index.js.map +1 -1
  281. package/cjs/resources/Reviews.js +2 -2
  282. package/cjs/resources/Reviews.js.map +1 -1
  283. package/cjs/resources/SetupAttempts.d.ts +24 -7
  284. package/cjs/resources/SetupIntents.d.ts +444 -118
  285. package/cjs/resources/SetupIntents.js +5 -5
  286. package/cjs/resources/SetupIntents.js.map +1 -1
  287. package/cjs/resources/ShippingRates.d.ts +5 -5
  288. package/cjs/resources/ShippingRates.js +2 -2
  289. package/cjs/resources/ShippingRates.js.map +1 -1
  290. package/cjs/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
  291. package/cjs/resources/Sigma/ScheduledQueryRuns.js +1 -1
  292. package/cjs/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
  293. package/cjs/resources/Sigma/index.d.ts +3 -3
  294. package/cjs/resources/Sources.d.ts +2 -2
  295. package/cjs/resources/Sources.js +4 -4
  296. package/cjs/resources/Sources.js.map +1 -1
  297. package/cjs/resources/SubscriptionItems.d.ts +11 -25
  298. package/cjs/resources/SubscriptionItems.js +3 -3
  299. package/cjs/resources/SubscriptionItems.js.map +1 -1
  300. package/cjs/resources/SubscriptionSchedules.d.ts +168 -37
  301. package/cjs/resources/SubscriptionSchedules.js +4 -4
  302. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  303. package/cjs/resources/Subscriptions.d.ts +559 -87
  304. package/cjs/resources/Subscriptions.js +9 -9
  305. package/cjs/resources/Subscriptions.js.map +1 -1
  306. package/cjs/resources/Tax/Associations.d.ts +25 -26
  307. package/cjs/resources/Tax/Associations.js.map +1 -1
  308. package/cjs/resources/Tax/CalculationLineItems.d.ts +57 -59
  309. package/cjs/resources/Tax/Calculations.d.ts +167 -169
  310. package/cjs/resources/Tax/Calculations.js +2 -2
  311. package/cjs/resources/Tax/Calculations.js.map +1 -1
  312. package/cjs/resources/Tax/Registrations.d.ts +1226 -1194
  313. package/cjs/resources/Tax/Registrations.js +2 -2
  314. package/cjs/resources/Tax/Registrations.js.map +1 -1
  315. package/cjs/resources/Tax/Settings.d.ts +38 -40
  316. package/cjs/resources/Tax/TransactionLineItems.d.ts +12 -14
  317. package/cjs/resources/Tax/Transactions.d.ts +116 -118
  318. package/cjs/resources/Tax/Transactions.js +2 -2
  319. package/cjs/resources/Tax/Transactions.js.map +1 -1
  320. package/cjs/resources/Tax/index.d.ts +19 -19
  321. package/cjs/resources/TaxCodes.js +1 -1
  322. package/cjs/resources/TaxCodes.js.map +1 -1
  323. package/cjs/resources/TaxIds.d.ts +8 -8
  324. package/cjs/resources/TaxIds.js +2 -2
  325. package/cjs/resources/TaxIds.js.map +1 -1
  326. package/cjs/resources/TaxRates.d.ts +5 -5
  327. package/cjs/resources/TaxRates.js +2 -2
  328. package/cjs/resources/TaxRates.js.map +1 -1
  329. package/cjs/resources/Terminal/Configurations.d.ts +540 -434
  330. package/cjs/resources/Terminal/Configurations.js +3 -3
  331. package/cjs/resources/Terminal/Configurations.js.map +1 -1
  332. package/cjs/resources/Terminal/Locations.d.ts +72 -74
  333. package/cjs/resources/Terminal/Locations.js +3 -3
  334. package/cjs/resources/Terminal/Locations.js.map +1 -1
  335. package/cjs/resources/Terminal/OnboardingLinks.d.ts +16 -18
  336. package/cjs/resources/Terminal/Readers.d.ts +495 -357
  337. package/cjs/resources/Terminal/Readers.js +11 -11
  338. package/cjs/resources/Terminal/Readers.js.map +1 -1
  339. package/cjs/resources/Terminal/index.d.ts +36 -33
  340. package/cjs/resources/Terminal/index.js.map +1 -1
  341. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +31 -13
  342. package/cjs/resources/TestHelpers/ConfirmationTokens.js.map +1 -1
  343. package/cjs/resources/TestHelpers/Customers.js +1 -1
  344. package/cjs/resources/TestHelpers/Customers.js.map +1 -1
  345. package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +17 -17
  346. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +6 -6
  347. package/cjs/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  348. package/cjs/resources/TestHelpers/Issuing/Cards.js +5 -5
  349. package/cjs/resources/TestHelpers/Issuing/Cards.js.map +1 -1
  350. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.d.ts +3 -2
  351. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
  352. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  353. package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +2 -2
  354. package/cjs/resources/TestHelpers/Issuing/Transactions.js +1 -1
  355. package/cjs/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  356. package/cjs/resources/TestHelpers/Refunds.js +1 -1
  357. package/cjs/resources/TestHelpers/Refunds.js.map +1 -1
  358. package/cjs/resources/TestHelpers/Terminal/Readers.d.ts +3 -2
  359. package/cjs/resources/TestHelpers/Terminal/Readers.js +3 -3
  360. package/cjs/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  361. package/cjs/resources/TestHelpers/TestClocks.d.ts +32 -30
  362. package/cjs/resources/TestHelpers/TestClocks.js +3 -3
  363. package/cjs/resources/TestHelpers/TestClocks.js.map +1 -1
  364. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.d.ts +2 -1
  365. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
  366. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  367. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.d.ts +3 -2
  368. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
  369. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  370. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.d.ts +3 -2
  371. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
  372. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  373. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +2 -1
  374. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.js.map +1 -1
  375. package/cjs/resources/TestHelpers/index.d.ts +8 -7
  376. package/cjs/resources/TestHelpers/index.js.map +1 -1
  377. package/cjs/resources/Tokens.d.ts +19 -9
  378. package/cjs/resources/Tokens.js +1 -1
  379. package/cjs/resources/Tokens.js.map +1 -1
  380. package/cjs/resources/Topups.d.ts +46 -0
  381. package/cjs/resources/Topups.js +3 -3
  382. package/cjs/resources/Topups.js.map +1 -1
  383. package/cjs/resources/Transfers.js +6 -6
  384. package/cjs/resources/Transfers.js.map +1 -1
  385. package/cjs/resources/Treasury/CreditReversals.d.ts +13 -15
  386. package/cjs/resources/Treasury/CreditReversals.js +1 -1
  387. package/cjs/resources/Treasury/CreditReversals.js.map +1 -1
  388. package/cjs/resources/Treasury/DebitReversals.d.ts +21 -23
  389. package/cjs/resources/Treasury/DebitReversals.js +1 -1
  390. package/cjs/resources/Treasury/DebitReversals.js.map +1 -1
  391. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +265 -266
  392. package/cjs/resources/Treasury/FinancialAccounts.d.ts +95 -97
  393. package/cjs/resources/Treasury/FinancialAccounts.js +5 -5
  394. package/cjs/resources/Treasury/FinancialAccounts.js.map +1 -1
  395. package/cjs/resources/Treasury/InboundTransfers.d.ts +81 -83
  396. package/cjs/resources/Treasury/InboundTransfers.js +2 -2
  397. package/cjs/resources/Treasury/InboundTransfers.js.map +1 -1
  398. package/cjs/resources/Treasury/OutboundPayments.d.ts +131 -133
  399. package/cjs/resources/Treasury/OutboundPayments.js +2 -2
  400. package/cjs/resources/Treasury/OutboundPayments.js.map +1 -1
  401. package/cjs/resources/Treasury/OutboundTransfers.d.ts +121 -123
  402. package/cjs/resources/Treasury/OutboundTransfers.js +2 -2
  403. package/cjs/resources/Treasury/OutboundTransfers.js.map +1 -1
  404. package/cjs/resources/Treasury/ReceivedCredits.d.ts +123 -125
  405. package/cjs/resources/Treasury/ReceivedCredits.js +1 -1
  406. package/cjs/resources/Treasury/ReceivedCredits.js.map +1 -1
  407. package/cjs/resources/Treasury/ReceivedDebits.d.ts +89 -91
  408. package/cjs/resources/Treasury/ReceivedDebits.js +1 -1
  409. package/cjs/resources/Treasury/ReceivedDebits.js.map +1 -1
  410. package/cjs/resources/Treasury/TransactionEntries.d.ts +77 -79
  411. package/cjs/resources/Treasury/TransactionEntries.js +1 -1
  412. package/cjs/resources/Treasury/TransactionEntries.js.map +1 -1
  413. package/cjs/resources/Treasury/Transactions.d.ts +89 -91
  414. package/cjs/resources/Treasury/Transactions.js +1 -1
  415. package/cjs/resources/Treasury/Transactions.js.map +1 -1
  416. package/cjs/resources/Treasury/index.d.ts +43 -43
  417. package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +14 -17
  418. package/cjs/resources/V2/Billing/MeterEventAdjustments.js.map +1 -1
  419. package/cjs/resources/V2/Billing/MeterEventSession.d.ts +4 -4
  420. package/cjs/resources/V2/Billing/MeterEventSession.js +1 -1
  421. package/cjs/resources/V2/Billing/index.d.ts +6 -6
  422. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +99 -0
  423. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js +156 -0
  424. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -0
  425. package/cjs/resources/V2/Commerce/ProductCatalog/index.d.ts +8 -0
  426. package/cjs/resources/V2/Commerce/ProductCatalog/index.js +13 -0
  427. package/cjs/resources/V2/Commerce/ProductCatalog/index.js.map +1 -0
  428. package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +184 -0
  429. package/cjs/resources/V2/Commerce/ProductCatalogImports.js +4 -0
  430. package/cjs/resources/V2/Commerce/ProductCatalogImports.js.map +1 -0
  431. package/cjs/resources/V2/Commerce/index.d.ts +13 -0
  432. package/cjs/resources/V2/Commerce/index.js +13 -0
  433. package/cjs/resources/V2/Commerce/index.js.map +1 -0
  434. package/cjs/resources/V2/Core/AccountLinks.d.ts +91 -94
  435. package/cjs/resources/V2/Core/AccountLinks.js.map +1 -1
  436. package/cjs/resources/V2/Core/AccountPersons.d.ts +370 -374
  437. package/cjs/resources/V2/Core/AccountTokens.d.ts +80 -11
  438. package/cjs/resources/V2/Core/AccountTokens.js +6 -2
  439. package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
  440. package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +7 -6
  441. package/cjs/resources/V2/Core/Accounts/PersonTokens.js +5 -4
  442. package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  443. package/cjs/resources/V2/Core/Accounts/Persons.d.ts +10 -10
  444. package/cjs/resources/V2/Core/Accounts/Persons.js +7 -7
  445. package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
  446. package/cjs/resources/V2/Core/Accounts.d.ts +3156 -2914
  447. package/cjs/resources/V2/Core/Accounts.js +4 -4
  448. package/cjs/resources/V2/Core/Accounts.js.map +1 -1
  449. package/cjs/resources/V2/Core/EventDestinations.d.ts +104 -61
  450. package/cjs/resources/V2/Core/EventDestinations.js +6 -6
  451. package/cjs/resources/V2/Core/EventDestinations.js.map +1 -1
  452. package/cjs/resources/V2/Core/Events.d.ts +97 -43
  453. package/cjs/resources/V2/Core/Events.js +3 -2
  454. package/cjs/resources/V2/Core/Events.js.map +1 -1
  455. package/cjs/resources/V2/Core/index.d.ts +23 -23
  456. package/cjs/resources/V2/index.d.ts +3 -0
  457. package/cjs/resources/V2/index.js +4 -2
  458. package/cjs/resources/V2/index.js.map +1 -1
  459. package/cjs/resources/WebhookEndpoints.d.ts +4 -4
  460. package/cjs/resources/WebhookEndpoints.js +3 -3
  461. package/cjs/resources/WebhookEndpoints.js.map +1 -1
  462. package/cjs/resources.js +6 -0
  463. package/cjs/resources.js.map +1 -1
  464. package/cjs/shared.d.ts +5 -0
  465. package/cjs/stripe.cjs.extensibility.d.ts +8 -0
  466. package/cjs/stripe.cjs.extensibility.js +31 -0
  467. package/cjs/stripe.cjs.extensibility.js.map +1 -0
  468. package/cjs/stripe.cjs.node.d.ts +14481 -3
  469. package/cjs/stripe.cjs.node.js +1 -4
  470. package/cjs/stripe.cjs.node.js.map +1 -1
  471. package/cjs/stripe.core.d.ts +101 -15
  472. package/cjs/stripe.core.js +112 -35
  473. package/cjs/stripe.core.js.map +1 -1
  474. package/cjs/utils.d.ts +11 -3
  475. package/cjs/utils.js +49 -21
  476. package/cjs/utils.js.map +1 -1
  477. package/esm/Error.d.ts +61 -7
  478. package/esm/Error.js +12 -3
  479. package/esm/Error.js.map +1 -1
  480. package/esm/RequestSender.d.ts +2 -1
  481. package/esm/RequestSender.js +35 -16
  482. package/esm/RequestSender.js.map +1 -1
  483. package/esm/StripeEventEmitter.d.ts +18 -0
  484. package/esm/StripeEventEmitter.js +59 -0
  485. package/esm/StripeEventEmitter.js.map +1 -0
  486. package/esm/StripeResource.js +5 -1
  487. package/esm/StripeResource.js.map +1 -1
  488. package/esm/Types.d.ts +73 -11
  489. package/esm/Types.js.map +1 -1
  490. package/esm/Webhooks.d.ts +49 -8
  491. package/esm/Webhooks.js +65 -32
  492. package/esm/Webhooks.js.map +1 -1
  493. package/esm/apiVersion.d.ts +1 -1
  494. package/esm/apiVersion.js +1 -1
  495. package/esm/autoPagination.js +42 -5
  496. package/esm/autoPagination.js.map +1 -1
  497. package/esm/lib.d.ts +56 -5
  498. package/esm/net/EndpointFetchHttpClient.d.ts +21 -0
  499. package/esm/net/EndpointFetchHttpClient.js +78 -0
  500. package/esm/net/EndpointFetchHttpClient.js.map +1 -0
  501. package/esm/net/FetchHttpClient.js +1 -1
  502. package/esm/net/FetchHttpClient.js.map +1 -1
  503. package/esm/net/HttpClient.d.ts +3 -0
  504. package/esm/net/HttpClient.js +13 -0
  505. package/esm/net/HttpClient.js.map +1 -1
  506. package/esm/net/NodeHttpClient.js +1 -1
  507. package/esm/net/NodeHttpClient.js.map +1 -1
  508. package/esm/platform/ExtensibilityPlatformFunctions.d.ts +34 -0
  509. package/esm/platform/ExtensibilityPlatformFunctions.js +60 -0
  510. package/esm/platform/ExtensibilityPlatformFunctions.js.map +1 -0
  511. package/esm/platform/NodePlatformFunctions.d.ts +12 -0
  512. package/esm/platform/NodePlatformFunctions.js +79 -2
  513. package/esm/platform/NodePlatformFunctions.js.map +1 -1
  514. package/esm/platform/PlatformFunctions.d.ts +34 -5
  515. package/esm/platform/PlatformFunctions.js +40 -0
  516. package/esm/platform/PlatformFunctions.js.map +1 -1
  517. package/esm/resources/AccountLinks.d.ts +2 -1
  518. package/esm/resources/AccountLinks.js.map +1 -1
  519. package/esm/resources/AccountSessions.d.ts +92 -0
  520. package/esm/resources/Accounts.d.ts +202 -71
  521. package/esm/resources/Accounts.js +31 -21
  522. package/esm/resources/Accounts.js.map +1 -1
  523. package/esm/resources/ApplePayDomains.js +2 -2
  524. package/esm/resources/ApplePayDomains.js.map +1 -1
  525. package/esm/resources/ApplicationFees.d.ts +2 -2
  526. package/esm/resources/ApplicationFees.js +5 -5
  527. package/esm/resources/ApplicationFees.js.map +1 -1
  528. package/esm/resources/Apps/Secrets.d.ts +19 -21
  529. package/esm/resources/Apps/index.d.ts +5 -5
  530. package/esm/resources/BalanceSettings.d.ts +92 -6
  531. package/esm/resources/BalanceTransactions.d.ts +9 -9
  532. package/esm/resources/BalanceTransactions.js +3 -3
  533. package/esm/resources/BalanceTransactions.js.map +1 -1
  534. package/esm/resources/BankAccounts.d.ts +2 -2
  535. package/esm/resources/Billing/Alerts.d.ts +29 -31
  536. package/esm/resources/Billing/Alerts.js +4 -4
  537. package/esm/resources/Billing/Alerts.js.map +1 -1
  538. package/esm/resources/Billing/CreditBalanceSummary.d.ts +42 -43
  539. package/esm/resources/Billing/CreditBalanceSummary.js.map +1 -1
  540. package/esm/resources/Billing/CreditBalanceTransactions.d.ts +75 -77
  541. package/esm/resources/Billing/CreditBalanceTransactions.js +1 -1
  542. package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  543. package/esm/resources/Billing/CreditGrants.d.ts +43 -45
  544. package/esm/resources/Billing/CreditGrants.js +4 -4
  545. package/esm/resources/Billing/CreditGrants.js.map +1 -1
  546. package/esm/resources/Billing/MeterEventAdjustments.d.ts +10 -11
  547. package/esm/resources/Billing/MeterEventAdjustments.js.map +1 -1
  548. package/esm/resources/Billing/MeterEvents.d.ts +1 -1
  549. package/esm/resources/Billing/Meters.d.ts +45 -47
  550. package/esm/resources/Billing/Meters.js +5 -5
  551. package/esm/resources/Billing/Meters.js.map +1 -1
  552. package/esm/resources/Billing/index.d.ts +31 -31
  553. package/esm/resources/BillingPortal/Configurations.d.ts +148 -150
  554. package/esm/resources/BillingPortal/Configurations.js +2 -2
  555. package/esm/resources/BillingPortal/Configurations.js.map +1 -1
  556. package/esm/resources/BillingPortal/Sessions.d.ts +104 -105
  557. package/esm/resources/BillingPortal/Sessions.js.map +1 -1
  558. package/esm/resources/BillingPortal/index.d.ts +7 -7
  559. package/esm/resources/Capabilities.d.ts +6 -5
  560. package/esm/resources/Cards.d.ts +3 -3
  561. package/esm/resources/Charges.d.ts +85 -32
  562. package/esm/resources/Charges.js +3 -3
  563. package/esm/resources/Charges.js.map +1 -1
  564. package/esm/resources/Checkout/Sessions.d.ts +1823 -1575
  565. package/esm/resources/Checkout/Sessions.js +4 -4
  566. package/esm/resources/Checkout/Sessions.js.map +1 -1
  567. package/esm/resources/Checkout/index.d.ts +7 -7
  568. package/esm/resources/Climate/Orders.d.ts +48 -50
  569. package/esm/resources/Climate/Orders.js +3 -3
  570. package/esm/resources/Climate/Orders.js.map +1 -1
  571. package/esm/resources/Climate/Products.d.ts +15 -17
  572. package/esm/resources/Climate/Products.js +1 -1
  573. package/esm/resources/Climate/Products.js.map +1 -1
  574. package/esm/resources/Climate/Suppliers.d.ts +26 -28
  575. package/esm/resources/Climate/Suppliers.js +1 -1
  576. package/esm/resources/Climate/Suppliers.js.map +1 -1
  577. package/esm/resources/Climate/index.d.ts +12 -12
  578. package/esm/resources/ConfirmationTokens.d.ts +42 -21
  579. package/esm/resources/ConfirmationTokens.js +1 -1
  580. package/esm/resources/ConfirmationTokens.js.map +1 -1
  581. package/esm/resources/CountrySpecs.js +1 -1
  582. package/esm/resources/CountrySpecs.js.map +1 -1
  583. package/esm/resources/Coupons.d.ts +3 -3
  584. package/esm/resources/Coupons.js +3 -3
  585. package/esm/resources/Coupons.js.map +1 -1
  586. package/esm/resources/CreditNoteLineItems.d.ts +3 -3
  587. package/esm/resources/CreditNotes.d.ts +23 -20
  588. package/esm/resources/CreditNotes.js +6 -4
  589. package/esm/resources/CreditNotes.js.map +1 -1
  590. package/esm/resources/CustomerBalanceTransactions.d.ts +2 -2
  591. package/esm/resources/CustomerCashBalanceTransactions.d.ts +4 -3
  592. package/esm/resources/CustomerSessions.d.ts +25 -24
  593. package/esm/resources/CustomerSessions.js.map +1 -1
  594. package/esm/resources/Customers.d.ts +14 -14
  595. package/esm/resources/Customers.js +31 -27
  596. package/esm/resources/Customers.js.map +1 -1
  597. package/esm/resources/Discounts.d.ts +4 -4
  598. package/esm/resources/Disputes.d.ts +43 -12
  599. package/esm/resources/Disputes.js +4 -4
  600. package/esm/resources/Disputes.js.map +1 -1
  601. package/esm/resources/Entitlements/ActiveEntitlements.js +1 -1
  602. package/esm/resources/Entitlements/ActiveEntitlements.js.map +1 -1
  603. package/esm/resources/Entitlements/Features.js +2 -2
  604. package/esm/resources/Entitlements/Features.js.map +1 -1
  605. package/esm/resources/Entitlements/index.d.ts +8 -8
  606. package/esm/resources/EphemeralKeys.js +1 -1
  607. package/esm/resources/EphemeralKeys.js.map +1 -1
  608. package/esm/resources/Events.d.ts +68 -3
  609. package/esm/resources/Events.js +1 -1
  610. package/esm/resources/Events.js.map +1 -1
  611. package/esm/resources/ExchangeRates.js +1 -1
  612. package/esm/resources/ExchangeRates.js.map +1 -1
  613. package/esm/resources/FileLinks.js +2 -2
  614. package/esm/resources/FileLinks.js.map +1 -1
  615. package/esm/resources/Files.d.ts +5 -3
  616. package/esm/resources/Files.js +6 -1
  617. package/esm/resources/Files.js.map +1 -1
  618. package/esm/resources/FinancialConnections/Accounts.d.ts +167 -145
  619. package/esm/resources/FinancialConnections/Accounts.js +6 -6
  620. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  621. package/esm/resources/FinancialConnections/Authorizations.d.ts +55 -0
  622. package/esm/resources/FinancialConnections/Authorizations.js +3 -0
  623. package/esm/resources/FinancialConnections/Authorizations.js.map +1 -0
  624. package/esm/resources/FinancialConnections/Sessions.d.ts +115 -42
  625. package/esm/resources/FinancialConnections/Sessions.js +1 -1
  626. package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
  627. package/esm/resources/FinancialConnections/Transactions.d.ts +14 -16
  628. package/esm/resources/FinancialConnections/Transactions.js +1 -1
  629. package/esm/resources/FinancialConnections/Transactions.js.map +1 -1
  630. package/esm/resources/FinancialConnections/index.d.ts +17 -14
  631. package/esm/resources/FinancialConnections/index.js.map +1 -1
  632. package/esm/resources/Forwarding/Requests.d.ts +59 -61
  633. package/esm/resources/Forwarding/Requests.js +1 -1
  634. package/esm/resources/Forwarding/Requests.js.map +1 -1
  635. package/esm/resources/Forwarding/index.d.ts +4 -4
  636. package/esm/resources/FundingInstructions.d.ts +4 -4
  637. package/esm/resources/Identity/VerificationReports.d.ts +257 -259
  638. package/esm/resources/Identity/VerificationReports.js +1 -1
  639. package/esm/resources/Identity/VerificationReports.js.map +1 -1
  640. package/esm/resources/Identity/VerificationSessions.d.ts +156 -158
  641. package/esm/resources/Identity/VerificationSessions.js +4 -4
  642. package/esm/resources/Identity/VerificationSessions.js.map +1 -1
  643. package/esm/resources/Identity/index.d.ts +10 -10
  644. package/esm/resources/InvoiceItems.d.ts +28 -0
  645. package/esm/resources/InvoiceItems.js +3 -3
  646. package/esm/resources/InvoiceItems.js.map +1 -1
  647. package/esm/resources/InvoiceLineItems.d.ts +4 -4
  648. package/esm/resources/InvoicePayments.d.ts +3 -3
  649. package/esm/resources/InvoicePayments.js +1 -1
  650. package/esm/resources/InvoicePayments.js.map +1 -1
  651. package/esm/resources/InvoiceRenderingTemplates.js +3 -3
  652. package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
  653. package/esm/resources/Invoices.d.ts +307 -88
  654. package/esm/resources/Invoices.js +14 -14
  655. package/esm/resources/Invoices.js.map +1 -1
  656. package/esm/resources/Issuing/Authorizations.d.ts +359 -356
  657. package/esm/resources/Issuing/Authorizations.js +4 -4
  658. package/esm/resources/Issuing/Authorizations.js.map +1 -1
  659. package/esm/resources/Issuing/Cardholders.d.ts +173 -145
  660. package/esm/resources/Issuing/Cardholders.js +2 -2
  661. package/esm/resources/Issuing/Cardholders.js.map +1 -1
  662. package/esm/resources/Issuing/Cards.d.ts +229 -189
  663. package/esm/resources/Issuing/Cards.js +2 -2
  664. package/esm/resources/Issuing/Cards.js.map +1 -1
  665. package/esm/resources/Issuing/Disputes.d.ts +230 -232
  666. package/esm/resources/Issuing/Disputes.js +3 -3
  667. package/esm/resources/Issuing/Disputes.js.map +1 -1
  668. package/esm/resources/Issuing/PersonalizationDesigns.d.ts +50 -52
  669. package/esm/resources/Issuing/PersonalizationDesigns.js +2 -2
  670. package/esm/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  671. package/esm/resources/Issuing/PhysicalBundles.d.ts +27 -29
  672. package/esm/resources/Issuing/PhysicalBundles.js +1 -1
  673. package/esm/resources/Issuing/PhysicalBundles.js.map +1 -1
  674. package/esm/resources/Issuing/Tokens.d.ts +133 -135
  675. package/esm/resources/Issuing/Tokens.js +2 -2
  676. package/esm/resources/Issuing/Tokens.js.map +1 -1
  677. package/esm/resources/Issuing/Transactions.d.ts +225 -227
  678. package/esm/resources/Issuing/Transactions.js +2 -2
  679. package/esm/resources/Issuing/Transactions.js.map +1 -1
  680. package/esm/resources/Issuing/index.d.ts +38 -38
  681. package/esm/resources/LineItems.d.ts +4 -3
  682. package/esm/resources/Mandates.d.ts +54 -10
  683. package/esm/resources/Mandates.js +1 -1
  684. package/esm/resources/Mandates.js.map +1 -1
  685. package/esm/resources/OAuth.d.ts +7 -8
  686. package/esm/resources/PaymentAttemptRecords.d.ts +81 -52
  687. package/esm/resources/PaymentAttemptRecords.js +1 -1
  688. package/esm/resources/PaymentAttemptRecords.js.map +1 -1
  689. package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -1
  690. package/esm/resources/PaymentIntents.d.ts +963 -304
  691. package/esm/resources/PaymentIntents.js +12 -10
  692. package/esm/resources/PaymentIntents.js.map +1 -1
  693. package/esm/resources/PaymentLinks.d.ts +217 -48
  694. package/esm/resources/PaymentLinks.js +3 -3
  695. package/esm/resources/PaymentLinks.js.map +1 -1
  696. package/esm/resources/PaymentMethodConfigurations.d.ts +439 -225
  697. package/esm/resources/PaymentMethodConfigurations.js +2 -2
  698. package/esm/resources/PaymentMethodConfigurations.js.map +1 -1
  699. package/esm/resources/PaymentMethodDomains.d.ts +7 -7
  700. package/esm/resources/PaymentMethodDomains.js +3 -3
  701. package/esm/resources/PaymentMethodDomains.js.map +1 -1
  702. package/esm/resources/PaymentMethods.d.ts +76 -37
  703. package/esm/resources/PaymentMethods.js +5 -5
  704. package/esm/resources/PaymentMethods.js.map +1 -1
  705. package/esm/resources/PaymentRecords.d.ts +113 -66
  706. package/esm/resources/PaymentRecords.js +15 -7
  707. package/esm/resources/PaymentRecords.js.map +1 -1
  708. package/esm/resources/Payouts.d.ts +4 -4
  709. package/esm/resources/Payouts.js +4 -4
  710. package/esm/resources/Payouts.js.map +1 -1
  711. package/esm/resources/Persons.d.ts +6 -6
  712. package/esm/resources/Plans.d.ts +6 -6
  713. package/esm/resources/Plans.js +3 -3
  714. package/esm/resources/Plans.js.map +1 -1
  715. package/esm/resources/Prices.d.ts +6 -6
  716. package/esm/resources/Prices.js +2 -2
  717. package/esm/resources/Prices.js.map +1 -1
  718. package/esm/resources/Products.js +7 -7
  719. package/esm/resources/Products.js.map +1 -1
  720. package/esm/resources/PromotionCodes.d.ts +2 -2
  721. package/esm/resources/PromotionCodes.js +2 -2
  722. package/esm/resources/PromotionCodes.js.map +1 -1
  723. package/esm/resources/Quotes.d.ts +86 -20
  724. package/esm/resources/Quotes.js +20 -12
  725. package/esm/resources/Quotes.js.map +1 -1
  726. package/esm/resources/Radar/EarlyFraudWarnings.js +1 -1
  727. package/esm/resources/Radar/EarlyFraudWarnings.js.map +1 -1
  728. package/esm/resources/Radar/PaymentEvaluations.d.ts +298 -300
  729. package/esm/resources/Radar/PaymentEvaluations.js.map +1 -1
  730. package/esm/resources/Radar/ValueListItems.d.ts +14 -16
  731. package/esm/resources/Radar/ValueListItems.js +2 -2
  732. package/esm/resources/Radar/ValueListItems.js.map +1 -1
  733. package/esm/resources/Radar/ValueLists.d.ts +22 -24
  734. package/esm/resources/Radar/ValueLists.js +3 -3
  735. package/esm/resources/Radar/ValueLists.js.map +1 -1
  736. package/esm/resources/Radar/index.d.ts +20 -18
  737. package/esm/resources/Radar/index.js.map +1 -1
  738. package/esm/resources/Refunds.d.ts +21 -4
  739. package/esm/resources/Refunds.js +3 -3
  740. package/esm/resources/Refunds.js.map +1 -1
  741. package/esm/resources/Reporting/ReportRuns.d.ts +35 -37
  742. package/esm/resources/Reporting/ReportRuns.js +1 -1
  743. package/esm/resources/Reporting/ReportRuns.js.map +1 -1
  744. package/esm/resources/Reporting/ReportTypes.js +1 -1
  745. package/esm/resources/Reporting/ReportTypes.js.map +1 -1
  746. package/esm/resources/Reporting/index.d.ts +7 -7
  747. package/esm/resources/Reserve/Holds.d.ts +32 -20
  748. package/esm/resources/Reserve/Plans.d.ts +29 -31
  749. package/esm/resources/Reserve/Releases.d.ts +23 -25
  750. package/esm/resources/Reserve/index.js +1 -2
  751. package/esm/resources/Reserve/index.js.map +1 -1
  752. package/esm/resources/Reviews.js +2 -2
  753. package/esm/resources/Reviews.js.map +1 -1
  754. package/esm/resources/SetupAttempts.d.ts +24 -7
  755. package/esm/resources/SetupIntents.d.ts +444 -118
  756. package/esm/resources/SetupIntents.js +5 -5
  757. package/esm/resources/SetupIntents.js.map +1 -1
  758. package/esm/resources/ShippingRates.d.ts +5 -5
  759. package/esm/resources/ShippingRates.js +2 -2
  760. package/esm/resources/ShippingRates.js.map +1 -1
  761. package/esm/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
  762. package/esm/resources/Sigma/ScheduledQueryRuns.js +1 -1
  763. package/esm/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
  764. package/esm/resources/Sigma/index.d.ts +3 -3
  765. package/esm/resources/Sources.d.ts +2 -2
  766. package/esm/resources/Sources.js +4 -4
  767. package/esm/resources/Sources.js.map +1 -1
  768. package/esm/resources/SubscriptionItems.d.ts +11 -25
  769. package/esm/resources/SubscriptionItems.js +3 -3
  770. package/esm/resources/SubscriptionItems.js.map +1 -1
  771. package/esm/resources/SubscriptionSchedules.d.ts +168 -37
  772. package/esm/resources/SubscriptionSchedules.js +4 -4
  773. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  774. package/esm/resources/Subscriptions.d.ts +559 -87
  775. package/esm/resources/Subscriptions.js +9 -9
  776. package/esm/resources/Subscriptions.js.map +1 -1
  777. package/esm/resources/Tax/Associations.d.ts +25 -26
  778. package/esm/resources/Tax/Associations.js.map +1 -1
  779. package/esm/resources/Tax/CalculationLineItems.d.ts +57 -59
  780. package/esm/resources/Tax/Calculations.d.ts +167 -169
  781. package/esm/resources/Tax/Calculations.js +2 -2
  782. package/esm/resources/Tax/Calculations.js.map +1 -1
  783. package/esm/resources/Tax/Registrations.d.ts +1226 -1194
  784. package/esm/resources/Tax/Registrations.js +2 -2
  785. package/esm/resources/Tax/Registrations.js.map +1 -1
  786. package/esm/resources/Tax/Settings.d.ts +38 -40
  787. package/esm/resources/Tax/TransactionLineItems.d.ts +12 -14
  788. package/esm/resources/Tax/Transactions.d.ts +116 -118
  789. package/esm/resources/Tax/Transactions.js +2 -2
  790. package/esm/resources/Tax/Transactions.js.map +1 -1
  791. package/esm/resources/Tax/index.d.ts +19 -19
  792. package/esm/resources/TaxCodes.js +1 -1
  793. package/esm/resources/TaxCodes.js.map +1 -1
  794. package/esm/resources/TaxIds.d.ts +8 -8
  795. package/esm/resources/TaxIds.js +2 -2
  796. package/esm/resources/TaxIds.js.map +1 -1
  797. package/esm/resources/TaxRates.d.ts +5 -5
  798. package/esm/resources/TaxRates.js +2 -2
  799. package/esm/resources/TaxRates.js.map +1 -1
  800. package/esm/resources/Terminal/Configurations.d.ts +540 -434
  801. package/esm/resources/Terminal/Configurations.js +3 -3
  802. package/esm/resources/Terminal/Configurations.js.map +1 -1
  803. package/esm/resources/Terminal/Locations.d.ts +72 -74
  804. package/esm/resources/Terminal/Locations.js +3 -3
  805. package/esm/resources/Terminal/Locations.js.map +1 -1
  806. package/esm/resources/Terminal/OnboardingLinks.d.ts +16 -18
  807. package/esm/resources/Terminal/Readers.d.ts +495 -357
  808. package/esm/resources/Terminal/Readers.js +11 -11
  809. package/esm/resources/Terminal/Readers.js.map +1 -1
  810. package/esm/resources/Terminal/index.d.ts +36 -33
  811. package/esm/resources/Terminal/index.js.map +1 -1
  812. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +31 -13
  813. package/esm/resources/TestHelpers/ConfirmationTokens.js.map +1 -1
  814. package/esm/resources/TestHelpers/Customers.js +1 -1
  815. package/esm/resources/TestHelpers/Customers.js.map +1 -1
  816. package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +17 -17
  817. package/esm/resources/TestHelpers/Issuing/Authorizations.js +6 -6
  818. package/esm/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  819. package/esm/resources/TestHelpers/Issuing/Cards.js +5 -5
  820. package/esm/resources/TestHelpers/Issuing/Cards.js.map +1 -1
  821. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.d.ts +3 -2
  822. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
  823. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  824. package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +2 -2
  825. package/esm/resources/TestHelpers/Issuing/Transactions.js +1 -1
  826. package/esm/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  827. package/esm/resources/TestHelpers/Refunds.js +1 -1
  828. package/esm/resources/TestHelpers/Refunds.js.map +1 -1
  829. package/esm/resources/TestHelpers/Terminal/Readers.d.ts +3 -2
  830. package/esm/resources/TestHelpers/Terminal/Readers.js +3 -3
  831. package/esm/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  832. package/esm/resources/TestHelpers/TestClocks.d.ts +32 -30
  833. package/esm/resources/TestHelpers/TestClocks.js +3 -3
  834. package/esm/resources/TestHelpers/TestClocks.js.map +1 -1
  835. package/esm/resources/TestHelpers/Treasury/InboundTransfers.d.ts +2 -1
  836. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
  837. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  838. package/esm/resources/TestHelpers/Treasury/OutboundPayments.d.ts +3 -2
  839. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
  840. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  841. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.d.ts +3 -2
  842. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
  843. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  844. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +2 -1
  845. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.js.map +1 -1
  846. package/esm/resources/TestHelpers/index.d.ts +8 -7
  847. package/esm/resources/TestHelpers/index.js.map +1 -1
  848. package/esm/resources/Tokens.d.ts +19 -9
  849. package/esm/resources/Tokens.js +1 -1
  850. package/esm/resources/Tokens.js.map +1 -1
  851. package/esm/resources/Topups.d.ts +46 -0
  852. package/esm/resources/Topups.js +3 -3
  853. package/esm/resources/Topups.js.map +1 -1
  854. package/esm/resources/Transfers.js +6 -6
  855. package/esm/resources/Transfers.js.map +1 -1
  856. package/esm/resources/Treasury/CreditReversals.d.ts +13 -15
  857. package/esm/resources/Treasury/CreditReversals.js +1 -1
  858. package/esm/resources/Treasury/CreditReversals.js.map +1 -1
  859. package/esm/resources/Treasury/DebitReversals.d.ts +21 -23
  860. package/esm/resources/Treasury/DebitReversals.js +1 -1
  861. package/esm/resources/Treasury/DebitReversals.js.map +1 -1
  862. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +265 -266
  863. package/esm/resources/Treasury/FinancialAccounts.d.ts +95 -97
  864. package/esm/resources/Treasury/FinancialAccounts.js +5 -5
  865. package/esm/resources/Treasury/FinancialAccounts.js.map +1 -1
  866. package/esm/resources/Treasury/InboundTransfers.d.ts +81 -83
  867. package/esm/resources/Treasury/InboundTransfers.js +2 -2
  868. package/esm/resources/Treasury/InboundTransfers.js.map +1 -1
  869. package/esm/resources/Treasury/OutboundPayments.d.ts +131 -133
  870. package/esm/resources/Treasury/OutboundPayments.js +2 -2
  871. package/esm/resources/Treasury/OutboundPayments.js.map +1 -1
  872. package/esm/resources/Treasury/OutboundTransfers.d.ts +121 -123
  873. package/esm/resources/Treasury/OutboundTransfers.js +2 -2
  874. package/esm/resources/Treasury/OutboundTransfers.js.map +1 -1
  875. package/esm/resources/Treasury/ReceivedCredits.d.ts +123 -125
  876. package/esm/resources/Treasury/ReceivedCredits.js +1 -1
  877. package/esm/resources/Treasury/ReceivedCredits.js.map +1 -1
  878. package/esm/resources/Treasury/ReceivedDebits.d.ts +89 -91
  879. package/esm/resources/Treasury/ReceivedDebits.js +1 -1
  880. package/esm/resources/Treasury/ReceivedDebits.js.map +1 -1
  881. package/esm/resources/Treasury/TransactionEntries.d.ts +77 -79
  882. package/esm/resources/Treasury/TransactionEntries.js +1 -1
  883. package/esm/resources/Treasury/TransactionEntries.js.map +1 -1
  884. package/esm/resources/Treasury/Transactions.d.ts +89 -91
  885. package/esm/resources/Treasury/Transactions.js +1 -1
  886. package/esm/resources/Treasury/Transactions.js.map +1 -1
  887. package/esm/resources/Treasury/index.d.ts +43 -43
  888. package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +14 -17
  889. package/esm/resources/V2/Billing/MeterEventAdjustments.js.map +1 -1
  890. package/esm/resources/V2/Billing/MeterEventSession.d.ts +4 -4
  891. package/esm/resources/V2/Billing/MeterEventSession.js +1 -1
  892. package/esm/resources/V2/Billing/index.d.ts +6 -6
  893. package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +99 -0
  894. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js +152 -0
  895. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -0
  896. package/esm/resources/V2/Commerce/ProductCatalog/index.d.ts +8 -0
  897. package/esm/resources/V2/Commerce/ProductCatalog/index.js +9 -0
  898. package/esm/resources/V2/Commerce/ProductCatalog/index.js.map +1 -0
  899. package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +184 -0
  900. package/esm/resources/V2/Commerce/ProductCatalogImports.js +3 -0
  901. package/esm/resources/V2/Commerce/ProductCatalogImports.js.map +1 -0
  902. package/esm/resources/V2/Commerce/index.d.ts +13 -0
  903. package/esm/resources/V2/Commerce/index.js +9 -0
  904. package/esm/resources/V2/Commerce/index.js.map +1 -0
  905. package/esm/resources/V2/Core/AccountLinks.d.ts +91 -94
  906. package/esm/resources/V2/Core/AccountLinks.js.map +1 -1
  907. package/esm/resources/V2/Core/AccountPersons.d.ts +370 -374
  908. package/esm/resources/V2/Core/AccountTokens.d.ts +80 -11
  909. package/esm/resources/V2/Core/AccountTokens.js +6 -2
  910. package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
  911. package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +7 -6
  912. package/esm/resources/V2/Core/Accounts/PersonTokens.js +5 -4
  913. package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  914. package/esm/resources/V2/Core/Accounts/Persons.d.ts +10 -10
  915. package/esm/resources/V2/Core/Accounts/Persons.js +7 -7
  916. package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
  917. package/esm/resources/V2/Core/Accounts.d.ts +3156 -2914
  918. package/esm/resources/V2/Core/Accounts.js +4 -4
  919. package/esm/resources/V2/Core/Accounts.js.map +1 -1
  920. package/esm/resources/V2/Core/EventDestinations.d.ts +104 -61
  921. package/esm/resources/V2/Core/EventDestinations.js +6 -6
  922. package/esm/resources/V2/Core/EventDestinations.js.map +1 -1
  923. package/esm/resources/V2/Core/Events.d.ts +97 -43
  924. package/esm/resources/V2/Core/Events.js +3 -2
  925. package/esm/resources/V2/Core/Events.js.map +1 -1
  926. package/esm/resources/V2/Core/index.d.ts +23 -23
  927. package/esm/resources/V2/index.d.ts +3 -0
  928. package/esm/resources/V2/index.js +2 -0
  929. package/esm/resources/V2/index.js.map +1 -1
  930. package/esm/resources/WebhookEndpoints.d.ts +4 -4
  931. package/esm/resources/WebhookEndpoints.js +3 -3
  932. package/esm/resources/WebhookEndpoints.js.map +1 -1
  933. package/esm/resources.js +6 -0
  934. package/esm/resources.js.map +1 -1
  935. package/esm/shared.d.ts +5 -0
  936. package/esm/stripe.core.d.ts +101 -15
  937. package/esm/stripe.core.js +114 -37
  938. package/esm/stripe.core.js.map +1 -1
  939. package/esm/stripe.esm.extensibility.d.ts +9 -0
  940. package/esm/stripe.esm.extensibility.js +9 -0
  941. package/esm/stripe.esm.extensibility.js.map +1 -0
  942. package/esm/stripe.esm.node.d.ts +91 -15
  943. package/esm/stripe.esm.node.js +110 -33
  944. package/esm/stripe.esm.node.js.map +1 -1
  945. package/esm/stripe.esm.worker.d.ts +1 -0
  946. package/esm/stripe.esm.worker.js +1 -0
  947. package/esm/stripe.esm.worker.js.map +1 -1
  948. package/esm/utils.d.ts +11 -3
  949. package/esm/utils.js +45 -17
  950. package/esm/utils.js.map +1 -1
  951. package/package.json +7 -3
package/CHANGELOG.md CHANGED
@@ -1,22 +1,286 @@
1
1
  # Changelog
2
2
 
3
+ ## 22.5.0 - 2026-08-10
4
+ * [#2805](https://github.com/stripe/stripe-node/pull/2805) Emit Claude Code plugin hint at module load time
5
+ - Emits new Claude Code plugin hint when `CLAUDECODE` or `CLAUDE_CODE_CHILD_SESSION` environment variables are detected.
6
+ * [#2794](https://github.com/stripe/stripe-node/pull/2794) add/adjust event parsing helpers
7
+
8
+ - Added methods that return their respective `Event`/`EventNotification` objects without verifying authenticity. Use them when you've previously verified an event (e.g. you verified, put the event in a queue, and are now processing). Supports events from [AWS EventBridge](https://docs.stripe.com/event-destinations/eventbridge) and [Azure Event Grid](https://docs.stripe.com/event-destinations/eventgrid) natively.
9
+ - `stripe.webhooks.constructEventWithoutVerification(payload)`
10
+ - `stripe.constructEventWithoutVerification(payload)`
11
+ - `stripe.parseEventNotificationWithoutVerification(payload)`
12
+ * [#2799](https://github.com/stripe/stripe-node/pull/2799) Add `stripe.major_api_version` constant
13
+
14
+ ## 22.4.0 - 2026-07-29
15
+ This release changes the pinned API version to 2026-07-29.dahlia.
16
+
17
+ * [#2795](https://github.com/stripe/stripe-node/pull/2795) Update generated code
18
+ * Add support for new resource `FinancialConnections.Authorization`
19
+ * Add support for `unreject` method on resource `Account`
20
+ * Add support for `list` method on resource `PaymentRecord`
21
+ * Add support for `administrative_address` and `principal_place_of_business` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
22
+ * Add support for `sepa_debit_payments` on `AccountUpdateParams.settings`
23
+ * Remove support for `proof_of_registration` on `AccountCreateParams.documents`. This field was limited-use and is being deprecated.
24
+ * Add support for `payouts_action` on `AccountRejectParams`
25
+ * Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, and `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`
26
+ * Add support for new value `chaps` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks`
27
+ * Add support for `smart_disputes_management` on `AccountSession.components.disputes_list.features`, `AccountSession.components.payment_details.features`, `AccountSession.components.payment_disputes.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.disputes_list.features`, `AccountSessionCreateParams.components.payment_details.features`, `AccountSessionCreateParams.components.payment_disputes.features`, and `AccountSessionCreateParams.components.payments.features`
28
+ * Add support for new value `data_share_only` on enums `Charge.payment_method_details.card.three_d_secure.result`, `PaymentAttemptRecord.payment_method_details.card.three_d_secure.result`, `PaymentRecord.payment_method_details.card.three_d_secure.result`, and `SetupAttempt.payment_method_details.card.three_d_secure.result`
29
+ * Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `Charge.payment_method_details.fpx.bank`, `ConfirmationToken.payment_method_preview.fpx.bank`, `PaymentAttemptRecord.payment_method_details.fpx.bank`, `PaymentMethod.fpx.bank`, and `PaymentRecord.payment_method_details.fpx.bank`
30
+ * Remove support for `dynamic_tax_rates` on `Checkout.SessionCreateParams.line_items[]`. This field was limited-use and is being deprecated.
31
+ * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.payco`, `Checkout.Session.payment_method_options.samsung_pay`, `Checkout.SessionCreateParams.payment_method_options.payco`, `Checkout.SessionCreateParams.payment_method_options.samsung_pay`, `PaymentIntent.payment_method_options.payco`, `PaymentIntent.payment_method_options.samsung_pay`, `PaymentIntentConfirmParams.payment_method_options.payco`, `PaymentIntentConfirmParams.payment_method_options.samsung_pay`, `PaymentIntentCreateParams.payment_method_options.payco`, `PaymentIntentCreateParams.payment_method_options.samsung_pay`, `PaymentIntentUpdateParams.payment_method_options.payco`, `PaymentIntentUpdateParams.payment_method_options.samsung_pay`, and `PaymentLinkUpdateParams.payment_intent_data`
32
+ * Add support for new value `ic_nif` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
33
+ * Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank`
34
+ * Add support for new value `ic_nif` on enums `CustomerCreateParams.tax_id_data[].type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
35
+ * Add support for `network` on `Dispute.payment_method_details.card`
36
+ * Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enum `Event.type`
37
+ * Add support for `limits` and `manual_entry` on `FinancialConnections.SessionCreateParams` and `FinancialConnections.Session`
38
+ * Add support for `require_payment_method_support` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters`
39
+ * Add support for `bank_account_token` on `FinancialConnections.Session`
40
+ * Add support for new values `alipay` and `mb_way` 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`
41
+ * Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
42
+ * Add support for `metadata` on `InvoiceCreatePreviewParams.subscription_details`
43
+ * Add support for new value `stripe_internal_error` on enum `Issuing.Authorization.request_history[].reason`
44
+ * Add support for `business_name` on `Issuing.Card.shipping`, `Issuing.CardCreateParams.shipping`, and `Issuing.CardUpdateParams.shipping`
45
+ * Add support for new value `correos` on enum `Issuing.Card.shipping.carrier`
46
+ * Add support for `allowed_payment_method_types` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `PaymentIntent`, `SetupIntentConfirmParams`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntent`
47
+ * Add support for `referrer` on `PaymentIntentConfirmParams.radar_options` and `PaymentIntentCreateParams.radar_options`
48
+ * Add support for `consent_collection` and `shipping_options` on `PaymentLinkUpdateParams`
49
+ * Add support for `custom_fields`, `description`, and `footer` on `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings`
50
+ * Add support for `customer_account` and `customer` on `Refund`
51
+ * Add support for `payment_method` on `Refund` and `Topup`
52
+ * Add support for `trial` on `SubscriptionSchedule.phases[]`
53
+ * Add support for `mass_transit_parking_tax` and `parking_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us`
54
+ * Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `Tax.RegistrationCreateParams.country_options.us.type`
55
+ * Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `Tax.Registration.country_options.us.type`
56
+ * Add support for `initiated_by` and `payment_method_options` on `Topup`
57
+ * Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
58
+ * Add support for new value `2026-07-29.dahlia` on enum `WebhookEndpointCreateParams.api_version`
59
+ * Add support for `additional_addresses` on `V2.Core.Account.identity.business_details`, `V2.Core.AccountCreateParams.identity.business_details`, `V2.Core.AccountTokenCreateParams.identity.business_details`, and `V2.Core.AccountUpdateParams.identity.business_details`
60
+ * Add support for snapshot events `FinancialConnectionsAccountExpectedDeactivationDateUpdatedEvent`, `FinancialConnectionsAccountSupportedPaymentMethodTypesUpdatedEvent`, and `FinancialConnectionsAccountUpcomingDeactivationEvent` with resource `FinancialConnections.Account`
61
+ * Add support for snapshot events `FinancialConnectionsAuthorizationExpectedDeactivationDateUpdatedEvent` and `FinancialConnectionsAuthorizationUpcomingDeactivationEvent` with resource `FinancialConnections.Authorization`
62
+ * [#2790](https://github.com/stripe/stripe-node/pull/2790) Bump brace-expansion from 1.1.11 to 1.1.16
63
+ * [#2786](https://github.com/stripe/stripe-node/pull/2786) Enum type annotations for non-exhaustive ("open") enums now include a shared `OtherString` type in their unions. Many Stripe enums are open, meaning new values may appear even on older API versions. This change ensures these fields have the correct type for both the values known at SDK release time and other values that may be added later. Refer to the [API Reference](https://docs.stripe.com) for the latest set of allowed values.
64
+
65
+ ## 22.3.2 - 2026-07-15
66
+ * [#2784](https://github.com/stripe/stripe-node/pull/2784) Replace source hash with Telemetry UUID
67
+ * [#2783](https://github.com/stripe/stripe-node/pull/2783) Make Error fields generated
68
+
69
+ ## 22.3.1 - 2026-07-09
70
+ * [#2781](https://github.com/stripe/stripe-node/pull/2781) Remove unused Retry-After header support
71
+ * [#2779](https://github.com/stripe/stripe-node/pull/2779) Export HttpClient types as interfaces instead of classes
72
+ - `Stripe.HttpClient` and `Stripe.HttpClientResponse` types now reflect the minimal interface contract rather than the concrete class, making custom HTTP client implementations easier to type correctly.
73
+ * [#2778](https://github.com/stripe/stripe-node/pull/2778) Restore missing public type exports from v21 Stripe namespace
74
+ - Restores `Stripe.StripeConfig`, `Stripe.CryptoProvider`, `Stripe.HttpClient`, `Stripe.HttpClientResponse`, `Stripe.Webhooks`, `Stripe.Signature`, `Stripe.WebhookTestHeaderOptions`, `Stripe.StripeResource`, `Stripe.LatestApiVersion`, `Stripe.HttpAgent`, `Stripe.HttpProtocol`, and `Stripe.RawErrorType` type exports that were inadvertently dropped in the v22 type system migration.
75
+
76
+ ## 22.3.0 - 2026-06-24
77
+ This release changes the pinned API version to 2026-06-24.dahlia.
78
+
79
+ * [#2748](https://github.com/stripe/stripe-node/pull/2748) Update generated code
80
+ * Add support for `release_details` on `Reserve.Hold`
81
+ * ⚠️ Add support for new value `tax_fund` on enum `BalanceTransaction.type`
82
+ * Change `Billing.CreditGrant.priority` to be required
83
+ * Add support for `buyer_id` on `Charge.payment_method_details.bizum`, `ConfirmationToken.payment_method_preview.bizum`, `ConfirmationToken.payment_method_preview.blik`, `PaymentAttemptRecord.payment_method_details.bizum`, `PaymentMethod.bizum`, `PaymentMethod.blik`, and `PaymentRecord.payment_method_details.bizum`
84
+ * Add support for `transaction_link_id` on `Charge.payment_method_details.card`
85
+ * ⚠️ Add support for new value `sui` on enums `Charge.payment_method_details.crypto.network`, `PaymentAttemptRecord.payment_method_details.crypto.network`, and `PaymentRecord.payment_method_details.crypto.network`
86
+ * ⚠️ Add support for new value `usdsui` on enums `Charge.payment_method_details.crypto.token_currency`, `PaymentAttemptRecord.payment_method_details.crypto.token_currency`, and `PaymentRecord.payment_method_details.crypto.token_currency`
87
+ * Add support for `fingerprint` on `Charge.payment_method_details.pix`, `ConfirmationToken.payment_method_preview.pix`, `PaymentMethod.pix`, and `SetupAttempt.payment_method_details.pix`
88
+ * Add support for `sunbit` on `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, and `PaymentIntentUpdateParams.payment_method_options`
89
+ * Add support for `billing_cycle_anchor_config` on `Checkout.SessionCreateParams.subscription_data`
90
+ * Add support for `wechat_pay` on `Checkout.Session.payment_method_options`
91
+ * Add support for `mastercard_compliance` on `Dispute.evidence.enhanced_evidence`, `Dispute.evidence_details.enhanced_eligibility`, and `DisputeUpdateParams.evidence.enhanced_evidence`
92
+ * ⚠️ Add support for new value `mastercard_compliance` on enum `Dispute.enhanced_eligibility_types`
93
+ * Add support for `status_details` on `FinancialConnections.Account`
94
+ * ⚠️ Add support for new value `validated` on enum `Identity.VerificationSession.redaction.status`
95
+ * Add support for new value `satispay` on enums `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
96
+ * ⚠️ Add support for new value `satispay` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
97
+ * ⚠️ Remove support for `stored_credential_usage` on `PaymentAttemptRecord.payment_method_details.card` and `PaymentRecord.payment_method_details.card`
98
+ * ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.description` and `PaymentRecord.payment_method_details.card.description` to be optional
99
+ * ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.iin` and `PaymentRecord.payment_method_details.card.iin` to be optional
100
+ * ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.issuer` and `PaymentRecord.payment_method_details.card.issuer` to be optional
101
+ * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.satispay`, `PaymentIntentConfirmParams.payment_method_options.satispay`, `PaymentIntentCreateParams.payment_method_options.satispay`, and `PaymentIntentUpdateParams.payment_method_options.satispay`
102
+ * Change `PaymentRecordReportRefundParams.refunded` to be optional
103
+ * Add support for `satispay` on `SetupAttempt.payment_method_details`
104
+ * Add support for `custom_fields`, `description`, and `footer` on `Subscription.invoice_settings`, `SubscriptionCreateParams.invoice_settings`, and `SubscriptionUpdateParams.invoice_settings`
105
+ * Add support for `payment_method_options` and `payment_method` on `TopupCreateParams`
106
+ * Add support for new value `2026-06-24.dahlia` on enum `WebhookEndpointCreateParams.api_version`
107
+ * Add support for `mode` on `V2.Commerce.ProductCatalogImport`
108
+ * ⚠️ Add support for new value `promotion` on enum `V2.Commerce.ProductCatalogImport.feed_type`
109
+ * Add support for `sunbit_payments` on `V2.Core.Account.configuration.merchant.capabilities`, `V2.Core.AccountCreateParams.configuration.merchant.capabilities`, and `V2.Core.AccountUpdateParams.configuration.merchant.capabilities`
110
+ * Add support for `crypto_money_manager` and `money_manager` on `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
111
+ * ⚠️ Remove support for `crypto_storer` and `storer` on `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
112
+ * Add support for new value `promotion` on enum `V2.Commerce.ProductCatalogImportCreateParams.feed_type`
113
+ * ⚠️ Add support for new value `sunbit_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability`
114
+ * Add support for error codes `anomalous_money_movement_request`, `failed_tax_calculation`, `financial_account_balance_does_not_support_currency`, `financial_account_capability_not_enabled`, and `financial_account_capability_restricted` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, `StripeError`, and `Terminal.Reader.action.api_error`
115
+ * [#2765](https://github.com/stripe/stripe-node/pull/2765) fix: CJS companion namespace access for resource types at all depths
116
+
117
+ - Fixes TypeScript type access for nested namespaces in CJS mode (e.g. `Stripe.Price.Recurring`, `Stripe.Subscription.BillingMode`)
118
+ - Fixes TypeScript type access for nested resource types e.g. `Stripe.Billing.Alert.Status`, `Stripe.Terminal.Configuration.Tipping` in both ESM and CJS modes.
119
+
120
+ ## 22.2.3 - 2026-06-22
121
+ * [#2761](https://github.com/stripe/stripe-node/pull/2761) Encode URI path params in `accounts.retrieve`
122
+
123
+ ## 22.2.2 - 2026-06-18
124
+ * [#2725](https://github.com/stripe/stripe-node/pull/2725) Fixes CJS type exports for stripe package (reported in [#2683](https://github.com/stripe/stripe-node/issues/2683))
125
+ * [#2758](https://github.com/stripe/stripe-node/pull/2758) Fix `Stripe.ErrorType.StripeError` incorrectly being usable as a runtime class (reported in [#2661](https://github.com/stripe/stripe-node/issues/2661))
126
+ * [#2753](https://github.com/stripe/stripe-node/pull/2753) handle shadowed namespaces (reported in [#2691](https://github.com/stripe/stripe-node/issues/2691))
127
+
128
+ ## 22.2.1 - 2026-06-12
129
+ * [#2750](https://github.com/stripe/stripe-node/pull/2750) URI Encode path params
130
+ * [#2747](https://github.com/stripe/stripe-node/pull/2747) Fix V2ListIterator: concurrency guard and empty page handling
131
+ * [#2740](https://github.com/stripe/stripe-node/pull/2740) Add "source" field to user-agent header
132
+ * [#2734](https://github.com/stripe/stripe-node/pull/2734) Fix parseHttpHeaderAsNumber to return undefined instead of NaN
133
+
134
+ ## 22.2.0 - 2026-05-27
135
+ This release changes the pinned API version to 2026-05-27.dahlia.
136
+
137
+ * [#2710](https://github.com/stripe/stripe-node/pull/2710) Update generated code
138
+ * Add support for new resource `V2.Commerce.ProductCatalogImport`
139
+ * Add support for `create` and `retrieve` methods on resource `V2.Commerce.ProductCatalogImport`
140
+ * Add support for `bizum_payments` and `scalapay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
141
+ * Add support for `automatic_transfer_rules_by_currency` on `BalanceSettingUpdateParams.payments.payouts` and `BalanceSettings.payments.payouts`
142
+ * Add support for `start_of_day` on `BalanceSettingUpdateParams.payments.settlement_timing` and `BalanceSettings.payments.settlement_timing`
143
+ * Add support for `description` on `ChargeCreateParams.transfer_data`, `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, and `PaymentIntentUpdateParams.transfer_data`
144
+ * Add support for `bizum` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentAttemptRecord.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`, `PaymentRecord.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options`
145
+ * Add support for `scalapay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentAttemptRecord.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`, `PaymentRecord.payment_method_details`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
146
+ * Add support for `mandate` on `Charge.payment_method_details.twint`, `PaymentAttemptRecord.payment_method_details.twint`, and `PaymentRecord.payment_method_details.twint`
147
+ * Add support for new values `bizum` and `scalapay` on enums `Checkout.SessionCreateParams.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentUpdateParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentUpdateParams.excluded_payment_method_types`
148
+ * Change type of `Checkout.SessionCreateParams.payment_method_options.twint.setup_future_usage`, `PaymentIntentConfirmParams.payment_method_options.twint.setup_future_usage`, `PaymentIntentCreateParams.payment_method_options.twint.setup_future_usage`, and `PaymentIntentUpdateParams.payment_method_options.twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
149
+ * Add support for new values `bizum` and `scalapay` on enum `Checkout.SessionCreateParams.payment_method_types`
150
+ * ⚠️ Change type of `Checkout.Session.payment_method_options.twint.setup_future_usage` and `PaymentIntent.payment_method_options.twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
151
+ * Add support for new values `bizum` and `scalapay` 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`
152
+ * ⚠️ Add support for new values `bizum` and `scalapay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
153
+ * Add support for new values `bizum` and `scalapay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
154
+ * Add support for `credited_items` on `InvoiceItem.proration_details`
155
+ * Add support for new value `twint` on enums `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
156
+ * Add support for `discountable` 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[]`
157
+ * Add support for `billing_schedules` on `InvoiceCreatePreviewParams.subscription_details`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
158
+ * Add support for new value `max_billed_until` on enums `InvoiceCreatePreviewParams.subscription_details.cancel_at`, `SubscriptionCreateParams.cancel_at`, and `SubscriptionUpdateParams.cancel_at`
159
+ * Add support for `amount_paid_off_stripe` on `Invoice`
160
+ * ⚠️ Add support for new value `twint` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
161
+ * Add support for `twint` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
162
+ * Add support for `metadata` on `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, `PaymentIntentUpdateParams.transfer_data`, and `Subscription.pending_update`
163
+ * Add support for `payment_data` on `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, and `PaymentIntentUpdateParams.transfer_data`
164
+ * ⚠️ Add support for new values `bizum` and `scalapay` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types`
165
+ * Add support for `blik_authorize` on `PaymentIntent.next_action` and `SetupIntent.next_action`
166
+ * Add support for `payment_method_options` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
167
+ * Add support for new value `bizum` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkUpdateParams.payment_method_types`
168
+ * ⚠️ Add support for new value `bizum` on enum `PaymentLink.payment_method_types`
169
+ * Add support for `active` on `PaymentMethodConfigurationListParams`
170
+ * Add support for `billed_until` on `SubscriptionItem`
171
+ * Add support for `discount` and `discounts` on `Subscription.pending_update`
172
+ * Add support for `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
173
+ * Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `Terminal.ReaderListParams.device_type`
174
+ * Add support for `api_error` and `print_content` on `Terminal.Reader.action`
175
+ * ⚠️ Add support for new value `print_content` on enum `Terminal.Reader.action.type`
176
+ * ⚠️ Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `Terminal.Reader.device_type`
177
+ * Add support for `customer` on `TestHelpers.TestClockCreateParams`
178
+ * Add support for new value `2026-05-27.dahlia` on enum `WebhookEndpointCreateParams.api_version`
179
+ * Add support for `signer` on `V2.Core.Account.identity.business_details.documents.proof_of_registration`, `V2.Core.Account.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `V2.Core.AccountCreateParams.identity.business_details.documents.proof_of_registration`, `V2.Core.AccountCreateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `V2.Core.AccountTokenCreateParams.identity.business_details.documents.proof_of_registration`, `V2.Core.AccountTokenCreateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `V2.Core.AccountUpdateParams.identity.business_details.documents.proof_of_registration`, and `V2.Core.AccountUpdateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`
180
+ * Add support for `azure_event_grid` on `V2.Core.EventDestinationCreateParams` and `V2.Core.EventDestination`
181
+ * ⚠️ Add support for new value `no_azure_partner_topic_exists` on enum `V2.Core.EventDestination.status_details.disabled.reason`
182
+ * ⚠️ Add support for new value `azure_event_grid` on enum `V2.Core.EventDestination.type`
183
+ * Add support for new value `azure_event_grid` on enum `V2.Core.EventDestinationCreateParams.type`
184
+ * ⚠️ Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.reason.error_types[].code` and `EventsV1BillingMeterNoMeterFoundEvent.reason.error_types[].code`
185
+ * Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `V2.Commerce.ProductCatalogImport`
186
+ * Add support for error codes `payment_method_microdeposit_processing_error` and `siret_invalid` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
187
+ * [#2723](https://github.com/stripe/stripe-node/pull/2723) Emit warning when `stripe-notify` header is present in response
188
+ * [#2717](https://github.com/stripe/stripe-node/pull/2717) Add V2List and V2ListPromise types for v2 list endpoints
189
+ * Adds `V2List` and `V2ListPromise` types to represent API v2 list responses. These types include deprecated fields from the previously returned list shapes. These fields will be removed in the next major release.
190
+ * [#2715](https://github.com/stripe/stripe-node/pull/2715) Add WinterTC compatibility ESLint rule
191
+ * [#2711](https://github.com/stripe/stripe-node/pull/2711) Export manually maintained types for OAuthToken and OAuth param classes
192
+ ```ts
193
+ // ❌ Before (v22.0.0-v22.1.1)
194
+ const oAuthToken: Stripe.OAuthToken = {};
195
+
196
+ // ✅ After (works on v22.1.2+)
197
+ const oAuthToken: Stripe.OAuthToken = {};
198
+ ```
199
+ * [#2712](https://github.com/stripe/stripe-node/pull/2712) Exported types for nested param classes
200
+ * Types inside nested param class namespaces(e.g. `Stripe.V2.Core.AccountCreateParams.Configuration`, `Stripe.V2.Core.AccountCreateParams.Dashboard`) are now accessible.
201
+
202
+ ## 22.1.1 - 2026-05-06
203
+ * [#2703](https://github.com/stripe/stripe-node/pull/2703) Export Decimal type from Stripe namespace
204
+
205
+ - Added `Stripe.Decimal` as a usable type in the `Stripe` namespace, enabling type annotations like `function takesDecimal(d: Stripe.Decimal)`.
206
+ * [#2704](https://github.com/stripe/stripe-node/pull/2704) Fix file upload regression: restore multipart request data processor
207
+
208
+ - Fixed file uploads failing with `StripeInvalidRequestError` on the `/v1/files` endpoint since v22.
209
+
210
+ ## 22.1.0 - 2026-04-23
211
+ This release changes the pinned API version to 2026-04-22.dahlia.
212
+
213
+ * [#2639](https://github.com/stripe/stripe-node/pull/2639) Update generated code
214
+ * Add support for `app_distribution` and `sunbit_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
215
+ * Add support for `balance_report` and `payout_reconciliation_report` on `AccountSession.components` and `AccountSessionCreateParams.components`
216
+ * ⚠️ Add support for new values `fee_credit_funding`, `inbound_transfer_reversal`, and `inbound_transfer` on enum `BalanceTransaction.type`
217
+ * Add support for `sunbit` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
218
+ * ⚠️ Add support for new values `phantom_cash` and `usdt` on enums `Charge.payment_method_details.crypto.token_currency`, `PaymentAttemptRecord.payment_method_details.crypto.token_currency`, and `PaymentRecord.payment_method_details.crypto.token_currency`
219
+ * Add support for `location` and `reader` on `Charge.payment_method_details.klarna`, `PaymentAttemptRecord.payment_method_details.klarna`, and `PaymentRecord.payment_method_details.klarna`
220
+ * Add support for `mandate` on `Charge.payment_method_details.pix`, `PaymentAttemptRecord.payment_method_details.pix`, and `PaymentRecord.payment_method_details.pix`
221
+ * Add support for `managed_payments` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentIntent`, `PaymentLinkCreateParams`, `PaymentLink`, `SetupIntent`, and `Subscription`
222
+ * Add support for new value `sunbit` on enums `Checkout.SessionCreateParams.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentUpdateParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentUpdateParams.excluded_payment_method_types`
223
+ * Add support for `mandate_options` 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`
224
+ * Change type of `Checkout.SessionCreateParams.payment_method_options.pix.setup_future_usage`, `PaymentIntentConfirmParams.payment_method_options.pix.setup_future_usage`, `PaymentIntentCreateParams.payment_method_options.pix.setup_future_usage`, and `PaymentIntentUpdateParams.payment_method_options.pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
225
+ * Add support for new value `sunbit` on enum `Checkout.SessionCreateParams.payment_method_types`
226
+ * ⚠️ Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
227
+ * ⚠️ Change type of `Checkout.Session.payment_method_options.pix.setup_future_usage` and `PaymentIntent.payment_method_options.pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
228
+ * Add support for new value `sunbit` 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`
229
+ * ⚠️ Add support for new value `sunbit` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
230
+ * Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `CustomerCreateParams.tax_id_data[].type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
231
+ * Add support for new value `sunbit` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
232
+ * Add support for `pix` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Mandate.payment_method_details`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`
233
+ * Add support for `upi` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`
234
+ * Add support for new values `pix` and `upi` on enums `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
235
+ * ⚠️ Add support for new values `pix` and `upi` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
236
+ * Add support for `card_presence` on `Issuing.Authorization`
237
+ * Add support for `allowed_card_presences` and `blocked_card_presences` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls`
238
+ * ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.cancellation_reason`
239
+ * ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.replacement_reason`
240
+ * Add support for `amount` and `currency` on `Mandate.multi_use`
241
+ * Add support for `amount_to_confirm` on `PaymentIntentConfirmParams`
242
+ * ⚠️ Add support for new value `sunbit` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types`
243
+ * Add support for `klarna_display_qr_code` on `PaymentIntent.next_action`
244
+ * Add support for new value `sunbit` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkUpdateParams.payment_method_types`
245
+ * ⚠️ Add support for new value `sunbit` on enum `PaymentLink.payment_method_types`
246
+ * ⚠️ Add support for new values `low`, `not_assessed`, and `unknown` on enum `Radar.PaymentEvaluation.signals.fraudulent_payment.risk_level`
247
+ * Add support for new value `account` on enum `Radar.ValueListCreateParams.item_type`
248
+ * ⚠️ Add support for new value `account` on enum `Radar.ValueList.item_type`
249
+ * Add support for `moto` on `SetupAttempt.payment_method_details.card`
250
+ * Add support for `pix_display_qr_code` on `SetupIntent.next_action`
251
+ * Add support for new value `2026-04-22.dahlia` on enum `WebhookEndpointCreateParams.api_version`
252
+ * Add support for error codes `action_blocked` and `approval_required` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
253
+ * [#2688](https://github.com/stripe/stripe-node/pull/2688) Preserve stack traces for async operations
254
+
255
+ ## 22.0.2 - 2026-04-16
256
+ * [#2685](https://github.com/stripe/stripe-node/pull/2685) Adds `parseEventNotificationAsync` to match existing sync function
257
+ * [#2681](https://github.com/stripe/stripe-node/pull/2681) Add emitEventBodies config to include bodies in request/response events
258
+ - Added `emitEventBodies` config option to include request and response bodies in `request`/`response` events.
259
+ - Changed `httpClient` config type from `HttpClient` class to `HttpClientInterface` interface.
260
+ * [#2670](https://github.com/stripe/stripe-node/pull/2670) tolerance, receivedAt, timestamp are now optional in Webhook.ts
261
+ * [#2677](https://github.com/stripe/stripe-node/pull/2677) Fixed named export for Bun
262
+ ```ts
263
+ // ✅ Fixed
264
+ import { Stripe } from 'stripe';
265
+ ```
266
+
3
267
  ## 22.0.1 - 2026-04-08
4
268
  * [#2669](https://github.com/stripe/stripe-node/pull/2669) Add constructor based initialization for CJS based TypeScript imports
5
- * Initialization of Stripe class with `new` keyword is now possible for CJS based TypeScript project. Resolves: [2660](https://github.com/stripe/stripe-node/issues/2660)
6
- ```ts
7
- import Stripe = require('stripe');
8
- // ✅ Both statements work
9
- const stripeNew: Stripe.Stripe = new Stripe('sk_test_...');
10
- const stripeCalled: Stripe.Stripe = Stripe('sk_test_...');
269
+ * Initialization of Stripe class with `new` keyword is now possible for CJS based TypeScript project. Resolves: [2660](https://github.com/stripe/stripe-node/issues/2660)
270
+ ```ts
271
+ import Stripe = require('stripe');
272
+ // ✅ Both statements work
273
+ const stripeNew: Stripe.Stripe = new Stripe('sk_test_...');
274
+ const stripeCalled: Stripe.Stripe = Stripe('sk_test_...');
11
275
  ```
12
276
  * [#2664](https://github.com/stripe/stripe-node/pull/2664) Fixed nested service param exports in the Stripe namespace
13
277
  * Resolves: [2658](https://github.com/stripe/stripe-node/issues/2658), [2662](https://github.com/stripe/stripe-node/issues/2662)
14
278
  * [#2667](https://github.com/stripe/stripe-node/pull/2667) Add type safety to Stripe constructor config (no runtime change)
15
- - Fixed some compile-time checks (no runtime changes)
16
- - Fixed `Stripe` constructor config parameter to use `StripeConfig` type instead of `Record<string, unknown>`, restoring compile-time type safety.
17
- - Added missing `authenticator` property to `StripeConfig`.
18
- - Fixed `Stripe.API_VERSION` to retain the literal API version type.
19
- - Fixed `StripeConfig.stripeContext` to accept `StripeContext` objects in addition to strings.
279
+ - Fixed some compile-time checks (no runtime changes)
280
+ - Fixed `Stripe` constructor config parameter to use `StripeConfig` type instead of `Record<string, unknown>`, restoring compile-time type safety.
281
+ - Added missing `authenticator` property to `StripeConfig`.
282
+ - Fixed `Stripe.API_VERSION` to retain the literal API version type.
283
+ - Fixed `StripeConfig.stripeContext` to accept `StripeContext` objects in addition to strings.
20
284
  * [#2663](https://github.com/stripe/stripe-node/pull/2663) Throw a more descriptive error when calling `rawRequest` with absolute urls
21
285
  * [#2652](https://github.com/stripe/stripe-node/pull/2652) Added `string[]` to `WebhookHeader` type for compatibility with express
22
286
  * Added `string[]` to the type of `signature` param in `stripe.webhooks.construct_event` method.
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v2206
1
+ v2349
package/README.md CHANGED
@@ -13,8 +13,8 @@ npm install @depup/stripe
13
13
 
14
14
  | Field | Value |
15
15
  |-------|-------|
16
- | Original | [stripe](https://www.npmjs.com/package/stripe) @ 22.0.1 |
17
- | Processed | 2026-04-08 |
16
+ | Original | [stripe](https://www.npmjs.com/package/stripe) @ 22.5.0 |
17
+ | Processed | 2026-08-16 |
18
18
  | Smoke test | passed |
19
19
  | Deps updated | 0 |
20
20
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 22.0.1
1
+ 22.5.0
package/changes.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "bumped": {},
3
- "timestamp": "2026-04-08T16:32:23.654Z",
3
+ "timestamp": "2026-08-16T00:30:18.040Z",
4
4
  "totalUpdated": 0
5
5
  }
package/cjs/Error.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import { HttpClientResponseError } from './RequestSender.js';
2
2
  import { RawErrorType, StripeRawError } from './Types.js';
3
+ import { PaymentIntent } from './resources/PaymentIntents.js';
4
+ import { PaymentMethod } from './resources/PaymentMethods.js';
5
+ import { SetupIntent } from './resources/SetupIntents.js';
6
+ import { CustomerSource } from './resources/CustomerSources.js';
3
7
  export declare const generateV1Error: (rawStripeError: StripeRawError) => StripeError;
4
8
  export declare const generateOAuthError: (rawStripeError: StripeRawError) => StripeError;
5
9
  export declare const generateV2Error: (rawStripeError: StripeRawError) => StripeError;
@@ -17,18 +21,68 @@ export declare class StripeError extends Error {
17
21
  [header: string]: string;
18
22
  };
19
23
  readonly requestId?: string;
20
- readonly code?: string;
21
- readonly doc_url?: string;
22
- readonly param?: string;
23
24
  readonly detail?: string | Error | HttpClientResponseError;
24
25
  readonly statusCode?: number;
26
+ /**
27
+ * For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
28
+ */
29
+ readonly advice_code?: string;
30
+ /**
31
+ * For card errors, the ID of the failed charge.
32
+ */
25
33
  readonly charge?: string;
34
+ /**
35
+ * For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
36
+ */
37
+ readonly code?: string;
38
+ /**
39
+ * For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
40
+ */
26
41
  readonly decline_code?: string;
42
+ /**
43
+ * A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
44
+ */
45
+ readonly doc_url?: string;
46
+ /**
47
+ * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
48
+ */
49
+ readonly network_advice_code?: string;
50
+ /**
51
+ * For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
52
+ */
53
+ readonly network_decline_code?: string;
54
+ /**
55
+ * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
56
+ */
57
+ readonly param?: string;
58
+ /**
59
+ * The PaymentIntent object for errors returned on a request involving a PaymentIntent.
60
+ */
61
+ readonly payment_intent?: PaymentIntent;
62
+ /**
63
+ * The PaymentMethod object for errors returned on a request involving a PaymentMethod.
64
+ */
65
+ readonly payment_method?: PaymentMethod;
66
+ /**
67
+ * If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
68
+ */
27
69
  readonly payment_method_type?: string;
28
- readonly payment_intent?: any;
29
- readonly payment_method?: any;
30
- readonly setup_intent?: any;
31
- readonly source?: any;
70
+ /**
71
+ * A URL to the request log entry in your dashboard.
72
+ */
73
+ readonly request_log_url?: string;
74
+ /**
75
+ * The SetupIntent object for errors returned on a request involving a SetupIntent.
76
+ */
77
+ readonly setup_intent?: SetupIntent;
78
+ /**
79
+ * The CustomerSource object for errors returned on a request involving a CustomerSource.
80
+ */
81
+ readonly source?: CustomerSource;
82
+ /**
83
+ * The user message associated with the error.
84
+ */
85
+ readonly user_message?: string;
32
86
  constructor(raw?: StripeRawError, type?: string | null);
33
87
  /**
34
88
  * Helper factory which takes raw stripe errors and outputs wrapping instances
package/cjs/Error.js CHANGED
@@ -3,6 +3,7 @@
3
3
  /* eslint-disable no-warning-comments */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.TemporarySessionExpiredError = exports.RateLimitError = exports.StripeUnsupportedResponseTypeError = exports.StripeUnsupportedGrantTypeError = exports.StripeInvalidScopeError = exports.StripeOAuthInvalidRequestError = exports.StripeInvalidClientError = exports.StripeInvalidGrantError = exports.StripeOAuthError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateOAuthError = exports.generateV1Error = void 0;
6
+ // errorImports: The end of the section generated from our OpenAPI spec
6
7
  const generateV1Error = (rawStripeError) => {
7
8
  const statusCode = rawStripeError.statusCode;
8
9
  if (statusCode === 429 ||
@@ -72,27 +73,35 @@ exports.generateV2Error = generateV2Error;
72
73
  * Specifically for errors returned from Stripe's REST API.
73
74
  */
74
75
  class StripeError extends Error {
76
+ // errorProperties: The end of the section generated from our OpenAPI spec
75
77
  constructor(raw = {}, type = null) {
76
78
  super(raw.message);
77
79
  this.type = type || this.constructor.name;
78
80
  this.raw = raw;
79
81
  this.rawType = raw.type;
80
- this.code = raw.code;
81
- this.doc_url = raw.doc_url;
82
- this.param = raw.param;
83
82
  this.detail = raw.detail;
84
83
  this.headers = raw.headers;
85
84
  this.requestId = raw.requestId;
86
85
  this.statusCode = raw.statusCode;
87
86
  this.message = raw.message ?? '';
88
87
  this.userMessage = raw.user_message;
88
+ // errorAssignments: The beginning of the section generated from our OpenAPI spec
89
+ this.advice_code = raw.advice_code;
89
90
  this.charge = raw.charge;
91
+ this.code = raw.code;
90
92
  this.decline_code = raw.decline_code;
93
+ this.doc_url = raw.doc_url;
94
+ this.network_advice_code = raw.network_advice_code;
95
+ this.network_decline_code = raw.network_decline_code;
96
+ this.param = raw.param;
91
97
  this.payment_intent = raw.payment_intent;
92
98
  this.payment_method = raw.payment_method;
93
99
  this.payment_method_type = raw.payment_method_type;
100
+ this.request_log_url = raw.request_log_url;
94
101
  this.setup_intent = raw.setup_intent;
95
102
  this.source = raw.source;
103
+ this.user_message = raw.user_message;
104
+ // errorAssignments: The end of the section generated from our OpenAPI spec
96
105
  }
97
106
  }
98
107
  exports.StripeError = StripeError;
package/cjs/Error.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","sourceRoot":"","sources":["../src/Error.ts"],"names":[],"mappings":";AAAA,8BAA8B;AAC9B,wCAAwC;;;AAKjC,MAAM,eAAe,GAAG,CAC7B,cAA8B,EACjB,EAAE;IACf,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;IAE7C,IACE,UAAU,KAAK,GAAG;QAClB,CAAC,UAAU,KAAK,GAAG,IAAI,cAAc,CAAC,IAAI,KAAK,Y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C;CACF;AAJD,0DAIC;AAED;;;GAGG;AACH,MAAa,+BAAgC,SAAQ,gBAAgB;IACnE,YAAY,MAAsB,EAAE;QAClC,KAAK,CAAC,GAAG,EAAE,iCAAiC,CAAC,CAAC;IAChD,CAAC;CACF;AAJD,0EAIC;AAED;;;GAGG;AACH,MAAa,kCAAmC,SAAQ,gBAAgB;IACtE,YAAY,MAAsB,EAAE;QAClC,KAAK,CAAC,GAAG,EAAE,oCAAoC,CAAC,CAAC;IACnD,CAAC;CACF;AAJD,gFAIC;AAED,iFAAiF;AACjF,MAAa,cAAe,SAAQ,WAAW;IAC7C,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;IAC1C,CAAC;CACF;AAJD,wCAIC;AACD,MAAa,4BAA6B,SAAQ,WAAW;IAC3D,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,8BAA8B,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,oEAIC;AACD,2EAA2E"}
@@ -13,6 +13,7 @@ export declare class RequestSender {
13
13
  _addHeadersDirectlyToObject(obj: any, headers: RequestHeaders): void;
14
14
  _makeResponseEvent(requestEvent: RequestEvent, statusCode: number, headers: RequestHeaders): ResponseEvent;
15
15
  _getRequestId(headers: RequestHeaders): string;
16
+ private _emitStripeNotice;
16
17
  /**
17
18
  * Used by methods with spec.streaming === true. For these methods, we do not
18
19
  * buffer successful responses into memory or do parse them into stripe
@@ -32,7 +33,7 @@ export declare class RequestSender {
32
33
  _jsonResponseHandler(requestEvent: RequestEvent, apiMode: 'v1' | 'v2', usage: Array<string>, callback: RequestCallback): (res: HttpClientResponseInterface) => void;
33
34
  static _generateConnectionErrorMessage(requestRetries: number): string;
34
35
  static _shouldRetry(res: null | HttpClientResponseInterface, numRetries: number, maxRetries: number, error?: HttpClientResponseError): boolean;
35
- _getSleepTimeInMS(numRetries: number, retryAfter?: number | null): number;
36
+ _getSleepTimeInMS(numRetries: number): number;
36
37
  _getMaxNetworkRetries(settings?: RequestSettings): number;
37
38
  _defaultIdempotencyKey(method: string, settings: RequestSettings, apiMode: ApiMode): string | null;
38
39
  _makeHeaders({ contentType, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings, stripeAccount, stripeContext, apiMode, }: {