stripe 22.4.0-beta.1 → 22.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (619) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.d.ts +61 -7
  5. package/cjs/Error.js +12 -3
  6. package/cjs/Error.js.map +1 -1
  7. package/cjs/RequestSender.d.ts +1 -1
  8. package/cjs/RequestSender.js +4 -9
  9. package/cjs/RequestSender.js.map +1 -1
  10. package/cjs/Types.d.ts +70 -11
  11. package/cjs/Types.js.map +1 -1
  12. package/cjs/Webhooks.d.ts +2 -2
  13. package/cjs/apiVersion.d.ts +1 -1
  14. package/cjs/apiVersion.js +1 -1
  15. package/cjs/platform/NodePlatformFunctions.d.ts +3 -2
  16. package/cjs/platform/NodePlatformFunctions.js +46 -24
  17. package/cjs/platform/NodePlatformFunctions.js.map +1 -1
  18. package/cjs/platform/PlatformFunctions.d.ts +1 -1
  19. package/cjs/platform/PlatformFunctions.js +1 -1
  20. package/cjs/platform/PlatformFunctions.js.map +1 -1
  21. package/cjs/resources/AccountLinks.d.ts +2 -1
  22. package/cjs/resources/AccountLinks.js.map +1 -1
  23. package/cjs/resources/AccountNotices.d.ts +2 -2
  24. package/cjs/resources/AccountNotices.js.map +1 -1
  25. package/cjs/resources/AccountSessions.d.ts +32 -0
  26. package/cjs/resources/Accounts.d.ts +96 -65
  27. package/cjs/resources/Accounts.js +13 -3
  28. package/cjs/resources/Accounts.js.map +1 -1
  29. package/cjs/resources/ApplicationFees.d.ts +2 -2
  30. package/cjs/resources/ApplicationFees.js.map +1 -1
  31. package/cjs/resources/Apps/Secrets.d.ts +6 -6
  32. package/cjs/resources/BalanceSettings.d.ts +8 -8
  33. package/cjs/resources/BalanceTransactions.d.ts +3 -3
  34. package/cjs/resources/BankAccounts.d.ts +2 -2
  35. package/cjs/resources/Billing/Alerts.d.ts +3 -3
  36. package/cjs/resources/Billing/CreditBalanceSummary.d.ts +2 -1
  37. package/cjs/resources/Billing/CreditBalanceSummary.js.map +1 -1
  38. package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +4 -4
  39. package/cjs/resources/Billing/CreditGrants.d.ts +3 -3
  40. package/cjs/resources/Billing/CreditGrants.js.map +1 -1
  41. package/cjs/resources/Billing/MeterEventAdjustments.d.ts +2 -1
  42. package/cjs/resources/Billing/MeterEventAdjustments.js.map +1 -1
  43. package/cjs/resources/Billing/Meters.d.ts +8 -8
  44. package/cjs/resources/BillingPortal/Configurations.d.ts +22 -22
  45. package/cjs/resources/BillingPortal/Configurations.js.map +1 -1
  46. package/cjs/resources/BillingPortal/Sessions.d.ts +7 -6
  47. package/cjs/resources/BillingPortal/Sessions.js.map +1 -1
  48. package/cjs/resources/Capabilities.d.ts +6 -5
  49. package/cjs/resources/Capital/FinancingOffers.d.ts +5 -5
  50. package/cjs/resources/Capital/FinancingOffers.js.map +1 -1
  51. package/cjs/resources/Capital/FinancingSummary.d.ts +2 -1
  52. package/cjs/resources/Capital/FinancingSummary.js.map +1 -1
  53. package/cjs/resources/Capital/FinancingTransactions.d.ts +6 -6
  54. package/cjs/resources/Cards.d.ts +4 -4
  55. package/cjs/resources/Charges.d.ts +98 -98
  56. package/cjs/resources/Charges.js.map +1 -1
  57. package/cjs/resources/Checkout/Sessions.d.ts +210 -174
  58. package/cjs/resources/Checkout/Sessions.js.map +1 -1
  59. package/cjs/resources/Climate/Orders.d.ts +3 -3
  60. package/cjs/resources/Climate/Orders.js.map +1 -1
  61. package/cjs/resources/Climate/Suppliers.d.ts +2 -2
  62. package/cjs/resources/ConfirmationTokens.d.ts +22 -22
  63. package/cjs/resources/Coupons.d.ts +4 -4
  64. package/cjs/resources/Coupons.js.map +1 -1
  65. package/cjs/resources/CreditNoteLineItems.d.ts +3 -3
  66. package/cjs/resources/CreditNotes.d.ts +16 -16
  67. package/cjs/resources/CreditNotes.js.map +1 -1
  68. package/cjs/resources/CustomerBalanceTransactions.d.ts +2 -2
  69. package/cjs/resources/CustomerCashBalanceTransactions.d.ts +4 -3
  70. package/cjs/resources/CustomerSessions.d.ts +29 -28
  71. package/cjs/resources/CustomerSessions.js.map +1 -1
  72. package/cjs/resources/Customers.d.ts +15 -15
  73. package/cjs/resources/Customers.js.map +1 -1
  74. package/cjs/resources/Disputes.d.ts +17 -13
  75. package/cjs/resources/Disputes.js +1 -1
  76. package/cjs/resources/Disputes.js.map +1 -1
  77. package/cjs/resources/Events.d.ts +69 -4
  78. package/cjs/resources/Files.d.ts +3 -3
  79. package/cjs/resources/Files.js.map +1 -1
  80. package/cjs/resources/FinancialConnections/Accounts.d.ts +22 -22
  81. package/cjs/resources/FinancialConnections/Authorizations.d.ts +5 -4
  82. package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
  83. package/cjs/resources/FinancialConnections/Institutions.d.ts +2 -2
  84. package/cjs/resources/FinancialConnections/Sessions.d.ts +55 -14
  85. package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
  86. package/cjs/resources/FinancialConnections/Transactions.d.ts +2 -2
  87. package/cjs/resources/Forwarding/Requests.d.ts +3 -3
  88. package/cjs/resources/Forwarding/Requests.js.map +1 -1
  89. package/cjs/resources/FundingInstructions.d.ts +4 -4
  90. package/cjs/resources/FxQuotes.d.ts +8 -8
  91. package/cjs/resources/FxQuotes.js +1 -1
  92. package/cjs/resources/Identity/VerificationReports.d.ts +17 -17
  93. package/cjs/resources/Identity/VerificationReports.js.map +1 -1
  94. package/cjs/resources/Identity/VerificationSessions.d.ts +15 -15
  95. package/cjs/resources/Identity/VerificationSessions.js.map +1 -1
  96. package/cjs/resources/InvoiceItems.d.ts +5 -5
  97. package/cjs/resources/InvoiceItems.js.map +1 -1
  98. package/cjs/resources/InvoiceLineItems.d.ts +4 -4
  99. package/cjs/resources/InvoicePayments.d.ts +3 -3
  100. package/cjs/resources/Invoices.d.ts +139 -135
  101. package/cjs/resources/Invoices.js.map +1 -1
  102. package/cjs/resources/Issuing/Authorizations.d.ts +20 -20
  103. package/cjs/resources/Issuing/Authorizations.js.map +1 -1
  104. package/cjs/resources/Issuing/Cardholders.d.ts +21 -17
  105. package/cjs/resources/Issuing/Cardholders.js.map +1 -1
  106. package/cjs/resources/Issuing/Cards.d.ts +39 -27
  107. package/cjs/resources/Issuing/Cards.js.map +1 -1
  108. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +25 -25
  109. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -1
  110. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +3 -3
  111. package/cjs/resources/Issuing/Disputes.d.ts +23 -23
  112. package/cjs/resources/Issuing/Disputes.js.map +1 -1
  113. package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +5 -5
  114. package/cjs/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  115. package/cjs/resources/Issuing/PhysicalBundles.d.ts +8 -8
  116. package/cjs/resources/Issuing/Settlements.d.ts +2 -2
  117. package/cjs/resources/Issuing/Tokens.d.ts +11 -11
  118. package/cjs/resources/Issuing/Transactions.d.ts +6 -6
  119. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  120. package/cjs/resources/LineItems.d.ts +2 -2
  121. package/cjs/resources/Mandates.d.ts +15 -15
  122. package/cjs/resources/Orders.d.ts +119 -119
  123. package/cjs/resources/Orders.js.map +1 -1
  124. package/cjs/resources/PaymentAttemptRecords.d.ts +31 -31
  125. package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -1
  126. package/cjs/resources/PaymentIntents.d.ts +634 -526
  127. package/cjs/resources/PaymentIntents.js.map +1 -1
  128. package/cjs/resources/PaymentLinks.d.ts +112 -50
  129. package/cjs/resources/PaymentLinks.js.map +1 -1
  130. package/cjs/resources/PaymentMethodConfigurations.d.ts +257 -257
  131. package/cjs/resources/PaymentMethodDomains.d.ts +7 -7
  132. package/cjs/resources/PaymentMethods.d.ts +39 -39
  133. package/cjs/resources/PaymentMethods.js +1 -1
  134. package/cjs/resources/PaymentMethods.js.map +1 -1
  135. package/cjs/resources/PaymentRecords.d.ts +53 -35
  136. package/cjs/resources/PaymentRecords.js +8 -0
  137. package/cjs/resources/PaymentRecords.js.map +1 -1
  138. package/cjs/resources/Payouts.d.ts +3 -3
  139. package/cjs/resources/Payouts.js.map +1 -1
  140. package/cjs/resources/Persons.d.ts +6 -6
  141. package/cjs/resources/Plans.d.ts +6 -6
  142. package/cjs/resources/Plans.js.map +1 -1
  143. package/cjs/resources/Prices.d.ts +6 -6
  144. package/cjs/resources/Prices.js.map +1 -1
  145. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +2 -1
  146. package/cjs/resources/Privacy/RedactionJobs.d.ts +6 -6
  147. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +36 -3
  148. package/cjs/resources/ProductCatalog/TrialOffers.js +14 -0
  149. package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -1
  150. package/cjs/resources/ProductCatalog/index.d.ts +2 -0
  151. package/cjs/resources/PromotionCodes.d.ts +2 -2
  152. package/cjs/resources/QuoteLines.d.ts +14 -14
  153. package/cjs/resources/QuotePreviewInvoices.d.ts +27 -27
  154. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +64 -16
  155. package/cjs/resources/Quotes.d.ts +154 -88
  156. package/cjs/resources/Quotes.js.map +1 -1
  157. package/cjs/resources/Radar/PaymentEvaluations.d.ts +21 -21
  158. package/cjs/resources/Radar/PaymentEvaluations.js.map +1 -1
  159. package/cjs/resources/Radar/ValueListItems.d.ts +3 -3
  160. package/cjs/resources/Radar/ValueLists.d.ts +2 -2
  161. package/cjs/resources/Radar/ValueLists.js.map +1 -1
  162. package/cjs/resources/Refunds.d.ts +18 -4
  163. package/cjs/resources/Refunds.js.map +1 -1
  164. package/cjs/resources/Reserve/Holds.d.ts +5 -5
  165. package/cjs/resources/Reserve/Plans.d.ts +4 -4
  166. package/cjs/resources/Reserve/Releases.d.ts +4 -4
  167. package/cjs/resources/SetupAttempts.d.ts +7 -7
  168. package/cjs/resources/SetupIntents.d.ts +151 -131
  169. package/cjs/resources/SetupIntents.js.map +1 -1
  170. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +3 -690
  171. package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -1
  172. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +27 -3
  173. package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -1
  174. package/cjs/resources/ShippingRates.d.ts +5 -5
  175. package/cjs/resources/ShippingRates.js.map +1 -1
  176. package/cjs/resources/Sources.d.ts +3 -3
  177. package/cjs/resources/Sources.js.map +1 -1
  178. package/cjs/resources/SubscriptionItems.d.ts +10 -10
  179. package/cjs/resources/SubscriptionItems.js.map +1 -1
  180. package/cjs/resources/SubscriptionSchedules.d.ts +203 -85
  181. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  182. package/cjs/resources/Subscriptions.d.ts +94 -94
  183. package/cjs/resources/Subscriptions.js.map +1 -1
  184. package/cjs/resources/Tax/Associations.d.ts +2 -1
  185. package/cjs/resources/Tax/Associations.js.map +1 -1
  186. package/cjs/resources/Tax/CalculationLineItems.d.ts +5 -5
  187. package/cjs/resources/Tax/Calculations.d.ts +19 -19
  188. package/cjs/resources/Tax/Calculations.js.map +1 -1
  189. package/cjs/resources/Tax/Forms.d.ts +6 -6
  190. package/cjs/resources/Tax/Locations.d.ts +4 -0
  191. package/cjs/resources/Tax/Registrations.d.ts +189 -155
  192. package/cjs/resources/Tax/Settings.d.ts +4 -4
  193. package/cjs/resources/Tax/TransactionLineItems.d.ts +3 -3
  194. package/cjs/resources/Tax/Transactions.d.ts +11 -11
  195. package/cjs/resources/Tax/Transactions.js.map +1 -1
  196. package/cjs/resources/TaxCodes.d.ts +2 -2
  197. package/cjs/resources/TaxIds.d.ts +8 -8
  198. package/cjs/resources/TaxRates.d.ts +5 -5
  199. package/cjs/resources/TaxRates.js.map +1 -1
  200. package/cjs/resources/Terminal/Configurations.d.ts +4 -4
  201. package/cjs/resources/Terminal/Readers.d.ts +17 -17
  202. package/cjs/resources/Terminal/Readers.js.map +1 -1
  203. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +13 -13
  204. package/cjs/resources/TestHelpers/ConfirmationTokens.js.map +1 -1
  205. package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +17 -17
  206. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.d.ts +3 -2
  207. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  208. package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +2 -2
  209. package/cjs/resources/TestHelpers/Terminal/Readers.d.ts +3 -2
  210. package/cjs/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  211. package/cjs/resources/TestHelpers/TestClocks.d.ts +2 -2
  212. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.d.ts +2 -1
  213. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  214. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.d.ts +3 -2
  215. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  216. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.d.ts +3 -2
  217. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  218. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +2 -1
  219. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.js.map +1 -1
  220. package/cjs/resources/Tokens.d.ts +20 -10
  221. package/cjs/resources/Tokens.js.map +1 -1
  222. package/cjs/resources/Topups.d.ts +28 -0
  223. package/cjs/resources/Topups.js.map +1 -1
  224. package/cjs/resources/Treasury/CreditReversals.d.ts +4 -4
  225. package/cjs/resources/Treasury/CreditReversals.js.map +1 -1
  226. package/cjs/resources/Treasury/DebitReversals.d.ts +5 -5
  227. package/cjs/resources/Treasury/DebitReversals.js.map +1 -1
  228. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +38 -37
  229. package/cjs/resources/Treasury/FinancialAccounts.d.ts +19 -19
  230. package/cjs/resources/Treasury/FinancialAccounts.js.map +1 -1
  231. package/cjs/resources/Treasury/InboundTransfers.d.ts +6 -6
  232. package/cjs/resources/Treasury/InboundTransfers.js.map +1 -1
  233. package/cjs/resources/Treasury/OutboundPayments.d.ts +13 -13
  234. package/cjs/resources/Treasury/OutboundPayments.js.map +1 -1
  235. package/cjs/resources/Treasury/OutboundTransfers.d.ts +10 -10
  236. package/cjs/resources/Treasury/OutboundTransfers.js.map +1 -1
  237. package/cjs/resources/Treasury/ReceivedCredits.d.ts +9 -9
  238. package/cjs/resources/Treasury/ReceivedDebits.d.ts +7 -7
  239. package/cjs/resources/Treasury/TransactionEntries.d.ts +5 -5
  240. package/cjs/resources/Treasury/Transactions.d.ts +6 -6
  241. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +2 -1
  242. package/cjs/resources/V2/Billing/BillSettings.d.ts +4 -3
  243. package/cjs/resources/V2/Billing/BillSettings.js.map +1 -1
  244. package/cjs/resources/V2/Billing/Cadences.d.ts +16 -16
  245. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +12 -11
  246. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +34 -33
  247. package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -1
  248. package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +2 -1
  249. package/cjs/resources/V2/Billing/MeterEventAdjustments.js.map +1 -1
  250. package/cjs/resources/V2/Billing/Profiles.d.ts +3 -3
  251. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +4 -4
  252. package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +5 -5
  253. package/cjs/resources/V2/Core/AccountLinks.d.ts +15 -14
  254. package/cjs/resources/V2/Core/AccountLinks.js.map +1 -1
  255. package/cjs/resources/V2/Core/AccountPersons.d.ts +4 -4
  256. package/cjs/resources/V2/Core/AccountTokens.d.ts +48 -7
  257. package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
  258. package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +4 -4
  259. package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  260. package/cjs/resources/V2/Core/Accounts/Persons.d.ts +7 -7
  261. package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
  262. package/cjs/resources/V2/Core/Accounts.d.ts +153 -30
  263. package/cjs/resources/V2/Core/Accounts.js.map +1 -1
  264. package/cjs/resources/V2/Core/EventDestinations.d.ts +6 -6
  265. package/cjs/resources/V2/Core/Events.d.ts +8 -8
  266. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +2 -1
  267. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  268. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +4 -1
  269. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +2 -0
  270. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  271. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +3 -2
  272. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -1
  273. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +4 -3
  274. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -1
  275. package/cjs/resources/V2/Extend/Workflows.d.ts +4 -3
  276. package/cjs/resources/V2/Extend/Workflows.js.map +1 -1
  277. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +12 -4
  278. package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -1
  279. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +5 -5
  280. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +6 -5
  281. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -1
  282. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +6 -5
  283. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -1
  284. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +6 -6
  285. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +3 -2
  286. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -1
  287. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +6 -6
  288. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +3 -2
  289. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  290. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +9 -8
  291. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -1
  292. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +7 -5
  293. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -1
  294. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +3 -2
  295. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -1
  296. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +3 -2
  297. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -1
  298. package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +2 -1
  299. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -1
  300. package/cjs/resources/WebhookEndpoints.d.ts +4 -4
  301. package/cjs/resources/WebhookEndpoints.js.map +1 -1
  302. package/cjs/shared.d.ts +5 -0
  303. package/cjs/stripe.cjs.node.d.ts +109 -142
  304. package/cjs/stripe.cjs.node.js.map +1 -1
  305. package/cjs/stripe.core.d.ts +18 -7
  306. package/cjs/stripe.core.js +6 -5
  307. package/cjs/stripe.core.js.map +1 -1
  308. package/cjs/utils.d.ts +0 -1
  309. package/cjs/utils.js +1 -17
  310. package/cjs/utils.js.map +1 -1
  311. package/esm/Error.d.ts +61 -7
  312. package/esm/Error.js +12 -3
  313. package/esm/Error.js.map +1 -1
  314. package/esm/RequestSender.d.ts +1 -1
  315. package/esm/RequestSender.js +5 -10
  316. package/esm/RequestSender.js.map +1 -1
  317. package/esm/Types.d.ts +70 -11
  318. package/esm/Types.js.map +1 -1
  319. package/esm/Webhooks.d.ts +2 -2
  320. package/esm/apiVersion.d.ts +1 -1
  321. package/esm/apiVersion.js +1 -1
  322. package/esm/platform/NodePlatformFunctions.d.ts +3 -2
  323. package/esm/platform/NodePlatformFunctions.js +46 -24
  324. package/esm/platform/NodePlatformFunctions.js.map +1 -1
  325. package/esm/platform/PlatformFunctions.d.ts +1 -1
  326. package/esm/platform/PlatformFunctions.js +1 -1
  327. package/esm/platform/PlatformFunctions.js.map +1 -1
  328. package/esm/resources/AccountLinks.d.ts +2 -1
  329. package/esm/resources/AccountLinks.js.map +1 -1
  330. package/esm/resources/AccountNotices.d.ts +2 -2
  331. package/esm/resources/AccountNotices.js.map +1 -1
  332. package/esm/resources/AccountSessions.d.ts +32 -0
  333. package/esm/resources/Accounts.d.ts +96 -65
  334. package/esm/resources/Accounts.js +13 -3
  335. package/esm/resources/Accounts.js.map +1 -1
  336. package/esm/resources/ApplicationFees.d.ts +2 -2
  337. package/esm/resources/ApplicationFees.js.map +1 -1
  338. package/esm/resources/Apps/Secrets.d.ts +6 -6
  339. package/esm/resources/BalanceSettings.d.ts +8 -8
  340. package/esm/resources/BalanceTransactions.d.ts +3 -3
  341. package/esm/resources/BankAccounts.d.ts +2 -2
  342. package/esm/resources/Billing/Alerts.d.ts +3 -3
  343. package/esm/resources/Billing/CreditBalanceSummary.d.ts +2 -1
  344. package/esm/resources/Billing/CreditBalanceSummary.js.map +1 -1
  345. package/esm/resources/Billing/CreditBalanceTransactions.d.ts +4 -4
  346. package/esm/resources/Billing/CreditGrants.d.ts +3 -3
  347. package/esm/resources/Billing/CreditGrants.js.map +1 -1
  348. package/esm/resources/Billing/MeterEventAdjustments.d.ts +2 -1
  349. package/esm/resources/Billing/MeterEventAdjustments.js.map +1 -1
  350. package/esm/resources/Billing/Meters.d.ts +8 -8
  351. package/esm/resources/BillingPortal/Configurations.d.ts +22 -22
  352. package/esm/resources/BillingPortal/Configurations.js.map +1 -1
  353. package/esm/resources/BillingPortal/Sessions.d.ts +7 -6
  354. package/esm/resources/BillingPortal/Sessions.js.map +1 -1
  355. package/esm/resources/Capabilities.d.ts +6 -5
  356. package/esm/resources/Capital/FinancingOffers.d.ts +5 -5
  357. package/esm/resources/Capital/FinancingOffers.js.map +1 -1
  358. package/esm/resources/Capital/FinancingSummary.d.ts +2 -1
  359. package/esm/resources/Capital/FinancingSummary.js.map +1 -1
  360. package/esm/resources/Capital/FinancingTransactions.d.ts +6 -6
  361. package/esm/resources/Cards.d.ts +4 -4
  362. package/esm/resources/Charges.d.ts +98 -98
  363. package/esm/resources/Charges.js.map +1 -1
  364. package/esm/resources/Checkout/Sessions.d.ts +210 -174
  365. package/esm/resources/Checkout/Sessions.js.map +1 -1
  366. package/esm/resources/Climate/Orders.d.ts +3 -3
  367. package/esm/resources/Climate/Orders.js.map +1 -1
  368. package/esm/resources/Climate/Suppliers.d.ts +2 -2
  369. package/esm/resources/ConfirmationTokens.d.ts +22 -22
  370. package/esm/resources/Coupons.d.ts +4 -4
  371. package/esm/resources/Coupons.js.map +1 -1
  372. package/esm/resources/CreditNoteLineItems.d.ts +3 -3
  373. package/esm/resources/CreditNotes.d.ts +16 -16
  374. package/esm/resources/CreditNotes.js.map +1 -1
  375. package/esm/resources/CustomerBalanceTransactions.d.ts +2 -2
  376. package/esm/resources/CustomerCashBalanceTransactions.d.ts +4 -3
  377. package/esm/resources/CustomerSessions.d.ts +29 -28
  378. package/esm/resources/CustomerSessions.js.map +1 -1
  379. package/esm/resources/Customers.d.ts +15 -15
  380. package/esm/resources/Customers.js.map +1 -1
  381. package/esm/resources/Disputes.d.ts +17 -13
  382. package/esm/resources/Disputes.js +1 -1
  383. package/esm/resources/Disputes.js.map +1 -1
  384. package/esm/resources/Events.d.ts +69 -4
  385. package/esm/resources/Files.d.ts +3 -3
  386. package/esm/resources/Files.js.map +1 -1
  387. package/esm/resources/FinancialConnections/Accounts.d.ts +22 -22
  388. package/esm/resources/FinancialConnections/Authorizations.d.ts +5 -4
  389. package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
  390. package/esm/resources/FinancialConnections/Institutions.d.ts +2 -2
  391. package/esm/resources/FinancialConnections/Sessions.d.ts +55 -14
  392. package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
  393. package/esm/resources/FinancialConnections/Transactions.d.ts +2 -2
  394. package/esm/resources/Forwarding/Requests.d.ts +3 -3
  395. package/esm/resources/Forwarding/Requests.js.map +1 -1
  396. package/esm/resources/FundingInstructions.d.ts +4 -4
  397. package/esm/resources/FxQuotes.d.ts +8 -8
  398. package/esm/resources/FxQuotes.js +1 -1
  399. package/esm/resources/Identity/VerificationReports.d.ts +17 -17
  400. package/esm/resources/Identity/VerificationReports.js.map +1 -1
  401. package/esm/resources/Identity/VerificationSessions.d.ts +15 -15
  402. package/esm/resources/Identity/VerificationSessions.js.map +1 -1
  403. package/esm/resources/InvoiceItems.d.ts +5 -5
  404. package/esm/resources/InvoiceItems.js.map +1 -1
  405. package/esm/resources/InvoiceLineItems.d.ts +4 -4
  406. package/esm/resources/InvoicePayments.d.ts +3 -3
  407. package/esm/resources/Invoices.d.ts +139 -135
  408. package/esm/resources/Invoices.js.map +1 -1
  409. package/esm/resources/Issuing/Authorizations.d.ts +20 -20
  410. package/esm/resources/Issuing/Authorizations.js.map +1 -1
  411. package/esm/resources/Issuing/Cardholders.d.ts +21 -17
  412. package/esm/resources/Issuing/Cardholders.js.map +1 -1
  413. package/esm/resources/Issuing/Cards.d.ts +39 -27
  414. package/esm/resources/Issuing/Cards.js.map +1 -1
  415. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +25 -25
  416. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -1
  417. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +3 -3
  418. package/esm/resources/Issuing/Disputes.d.ts +23 -23
  419. package/esm/resources/Issuing/Disputes.js.map +1 -1
  420. package/esm/resources/Issuing/PersonalizationDesigns.d.ts +5 -5
  421. package/esm/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  422. package/esm/resources/Issuing/PhysicalBundles.d.ts +8 -8
  423. package/esm/resources/Issuing/Settlements.d.ts +2 -2
  424. package/esm/resources/Issuing/Tokens.d.ts +11 -11
  425. package/esm/resources/Issuing/Transactions.d.ts +6 -6
  426. package/esm/resources/Issuing/Transactions.js.map +1 -1
  427. package/esm/resources/LineItems.d.ts +2 -2
  428. package/esm/resources/Mandates.d.ts +15 -15
  429. package/esm/resources/Orders.d.ts +119 -119
  430. package/esm/resources/Orders.js.map +1 -1
  431. package/esm/resources/PaymentAttemptRecords.d.ts +31 -31
  432. package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -1
  433. package/esm/resources/PaymentIntents.d.ts +634 -526
  434. package/esm/resources/PaymentIntents.js.map +1 -1
  435. package/esm/resources/PaymentLinks.d.ts +112 -50
  436. package/esm/resources/PaymentLinks.js.map +1 -1
  437. package/esm/resources/PaymentMethodConfigurations.d.ts +257 -257
  438. package/esm/resources/PaymentMethodDomains.d.ts +7 -7
  439. package/esm/resources/PaymentMethods.d.ts +39 -39
  440. package/esm/resources/PaymentMethods.js +1 -1
  441. package/esm/resources/PaymentMethods.js.map +1 -1
  442. package/esm/resources/PaymentRecords.d.ts +53 -35
  443. package/esm/resources/PaymentRecords.js +8 -0
  444. package/esm/resources/PaymentRecords.js.map +1 -1
  445. package/esm/resources/Payouts.d.ts +3 -3
  446. package/esm/resources/Payouts.js.map +1 -1
  447. package/esm/resources/Persons.d.ts +6 -6
  448. package/esm/resources/Plans.d.ts +6 -6
  449. package/esm/resources/Plans.js.map +1 -1
  450. package/esm/resources/Prices.d.ts +6 -6
  451. package/esm/resources/Prices.js.map +1 -1
  452. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +2 -1
  453. package/esm/resources/Privacy/RedactionJobs.d.ts +6 -6
  454. package/esm/resources/ProductCatalog/TrialOffers.d.ts +36 -3
  455. package/esm/resources/ProductCatalog/TrialOffers.js +14 -0
  456. package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -1
  457. package/esm/resources/ProductCatalog/index.d.ts +2 -0
  458. package/esm/resources/PromotionCodes.d.ts +2 -2
  459. package/esm/resources/QuoteLines.d.ts +14 -14
  460. package/esm/resources/QuotePreviewInvoices.d.ts +27 -27
  461. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +64 -16
  462. package/esm/resources/Quotes.d.ts +154 -88
  463. package/esm/resources/Quotes.js.map +1 -1
  464. package/esm/resources/Radar/PaymentEvaluations.d.ts +21 -21
  465. package/esm/resources/Radar/PaymentEvaluations.js.map +1 -1
  466. package/esm/resources/Radar/ValueListItems.d.ts +3 -3
  467. package/esm/resources/Radar/ValueLists.d.ts +2 -2
  468. package/esm/resources/Radar/ValueLists.js.map +1 -1
  469. package/esm/resources/Refunds.d.ts +18 -4
  470. package/esm/resources/Refunds.js.map +1 -1
  471. package/esm/resources/Reserve/Holds.d.ts +5 -5
  472. package/esm/resources/Reserve/Plans.d.ts +4 -4
  473. package/esm/resources/Reserve/Releases.d.ts +4 -4
  474. package/esm/resources/SetupAttempts.d.ts +7 -7
  475. package/esm/resources/SetupIntents.d.ts +151 -131
  476. package/esm/resources/SetupIntents.js.map +1 -1
  477. package/esm/resources/SharedPayment/GrantedTokens.d.ts +3 -690
  478. package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -1
  479. package/esm/resources/SharedPayment/IssuedTokens.d.ts +27 -3
  480. package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -1
  481. package/esm/resources/ShippingRates.d.ts +5 -5
  482. package/esm/resources/ShippingRates.js.map +1 -1
  483. package/esm/resources/Sources.d.ts +3 -3
  484. package/esm/resources/Sources.js.map +1 -1
  485. package/esm/resources/SubscriptionItems.d.ts +10 -10
  486. package/esm/resources/SubscriptionItems.js.map +1 -1
  487. package/esm/resources/SubscriptionSchedules.d.ts +203 -85
  488. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  489. package/esm/resources/Subscriptions.d.ts +94 -94
  490. package/esm/resources/Subscriptions.js.map +1 -1
  491. package/esm/resources/Tax/Associations.d.ts +2 -1
  492. package/esm/resources/Tax/Associations.js.map +1 -1
  493. package/esm/resources/Tax/CalculationLineItems.d.ts +5 -5
  494. package/esm/resources/Tax/Calculations.d.ts +19 -19
  495. package/esm/resources/Tax/Calculations.js.map +1 -1
  496. package/esm/resources/Tax/Forms.d.ts +6 -6
  497. package/esm/resources/Tax/Locations.d.ts +4 -0
  498. package/esm/resources/Tax/Registrations.d.ts +189 -155
  499. package/esm/resources/Tax/Settings.d.ts +4 -4
  500. package/esm/resources/Tax/TransactionLineItems.d.ts +3 -3
  501. package/esm/resources/Tax/Transactions.d.ts +11 -11
  502. package/esm/resources/Tax/Transactions.js.map +1 -1
  503. package/esm/resources/TaxCodes.d.ts +2 -2
  504. package/esm/resources/TaxIds.d.ts +8 -8
  505. package/esm/resources/TaxRates.d.ts +5 -5
  506. package/esm/resources/TaxRates.js.map +1 -1
  507. package/esm/resources/Terminal/Configurations.d.ts +4 -4
  508. package/esm/resources/Terminal/Readers.d.ts +17 -17
  509. package/esm/resources/Terminal/Readers.js.map +1 -1
  510. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +13 -13
  511. package/esm/resources/TestHelpers/ConfirmationTokens.js.map +1 -1
  512. package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +17 -17
  513. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.d.ts +3 -2
  514. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  515. package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +2 -2
  516. package/esm/resources/TestHelpers/Terminal/Readers.d.ts +3 -2
  517. package/esm/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  518. package/esm/resources/TestHelpers/TestClocks.d.ts +2 -2
  519. package/esm/resources/TestHelpers/Treasury/InboundTransfers.d.ts +2 -1
  520. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  521. package/esm/resources/TestHelpers/Treasury/OutboundPayments.d.ts +3 -2
  522. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  523. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.d.ts +3 -2
  524. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  525. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +2 -1
  526. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.js.map +1 -1
  527. package/esm/resources/Tokens.d.ts +20 -10
  528. package/esm/resources/Tokens.js.map +1 -1
  529. package/esm/resources/Topups.d.ts +28 -0
  530. package/esm/resources/Topups.js.map +1 -1
  531. package/esm/resources/Treasury/CreditReversals.d.ts +4 -4
  532. package/esm/resources/Treasury/CreditReversals.js.map +1 -1
  533. package/esm/resources/Treasury/DebitReversals.d.ts +5 -5
  534. package/esm/resources/Treasury/DebitReversals.js.map +1 -1
  535. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +38 -37
  536. package/esm/resources/Treasury/FinancialAccounts.d.ts +19 -19
  537. package/esm/resources/Treasury/FinancialAccounts.js.map +1 -1
  538. package/esm/resources/Treasury/InboundTransfers.d.ts +6 -6
  539. package/esm/resources/Treasury/InboundTransfers.js.map +1 -1
  540. package/esm/resources/Treasury/OutboundPayments.d.ts +13 -13
  541. package/esm/resources/Treasury/OutboundPayments.js.map +1 -1
  542. package/esm/resources/Treasury/OutboundTransfers.d.ts +10 -10
  543. package/esm/resources/Treasury/OutboundTransfers.js.map +1 -1
  544. package/esm/resources/Treasury/ReceivedCredits.d.ts +9 -9
  545. package/esm/resources/Treasury/ReceivedDebits.d.ts +7 -7
  546. package/esm/resources/Treasury/TransactionEntries.d.ts +5 -5
  547. package/esm/resources/Treasury/Transactions.d.ts +6 -6
  548. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +2 -1
  549. package/esm/resources/V2/Billing/BillSettings.d.ts +4 -3
  550. package/esm/resources/V2/Billing/BillSettings.js.map +1 -1
  551. package/esm/resources/V2/Billing/Cadences.d.ts +16 -16
  552. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +12 -11
  553. package/esm/resources/V2/Billing/CollectionSettings.d.ts +34 -33
  554. package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -1
  555. package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +2 -1
  556. package/esm/resources/V2/Billing/MeterEventAdjustments.js.map +1 -1
  557. package/esm/resources/V2/Billing/Profiles.d.ts +3 -3
  558. package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +4 -4
  559. package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +5 -5
  560. package/esm/resources/V2/Core/AccountLinks.d.ts +15 -14
  561. package/esm/resources/V2/Core/AccountLinks.js.map +1 -1
  562. package/esm/resources/V2/Core/AccountPersons.d.ts +4 -4
  563. package/esm/resources/V2/Core/AccountTokens.d.ts +48 -7
  564. package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
  565. package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +4 -4
  566. package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  567. package/esm/resources/V2/Core/Accounts/Persons.d.ts +7 -7
  568. package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
  569. package/esm/resources/V2/Core/Accounts.d.ts +153 -30
  570. package/esm/resources/V2/Core/Accounts.js.map +1 -1
  571. package/esm/resources/V2/Core/EventDestinations.d.ts +6 -6
  572. package/esm/resources/V2/Core/Events.d.ts +8 -8
  573. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +2 -1
  574. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
  575. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +4 -1
  576. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +2 -0
  577. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
  578. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +3 -2
  579. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -1
  580. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +4 -3
  581. package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -1
  582. package/esm/resources/V2/Extend/Workflows.d.ts +4 -3
  583. package/esm/resources/V2/Extend/Workflows.js.map +1 -1
  584. package/esm/resources/V2/Iam/ActivityLogs.d.ts +12 -4
  585. package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -1
  586. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +5 -5
  587. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +6 -5
  588. package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -1
  589. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +6 -5
  590. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -1
  591. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +6 -6
  592. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +3 -2
  593. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -1
  594. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +6 -6
  595. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +3 -2
  596. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  597. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +9 -8
  598. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -1
  599. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +7 -5
  600. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -1
  601. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +3 -2
  602. package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -1
  603. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +3 -2
  604. package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -1
  605. package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +2 -1
  606. package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -1
  607. package/esm/resources/WebhookEndpoints.d.ts +4 -4
  608. package/esm/resources/WebhookEndpoints.js.map +1 -1
  609. package/esm/shared.d.ts +5 -0
  610. package/esm/stripe.core.d.ts +18 -7
  611. package/esm/stripe.core.js +6 -5
  612. package/esm/stripe.core.js.map +1 -1
  613. package/esm/stripe.esm.node.d.ts +18 -6
  614. package/esm/stripe.esm.node.js +1 -1
  615. package/esm/stripe.esm.node.js.map +1 -1
  616. package/esm/utils.d.ts +0 -1
  617. package/esm/utils.js +0 -15
  618. package/esm/utils.js.map +1 -1
  619. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## 22.5.0-beta.1 - 2026-07-29
4
+ This release changes the pinned API version to 2026-07-29.preview.
5
+
6
+ * [#2772](https://github.com/stripe/stripe-node/pull/2772) Update generated code for beta
7
+ * Add support for `list` and `retrieve` methods on resource `ProductCatalog.TrialOffer`
8
+ * Add support for `tax_items` on `ChargeCaptureParams.payment_details.car_rental_data[].total.tax`, `ChargeCaptureParams.payment_details.flight_data[].total.tax`, `ChargeCaptureParams.payment_details.lodging_data[].total.tax`, `ChargeUpdateParams.payment_details.car_rental_data[].total.tax`, `ChargeUpdateParams.payment_details.flight_data[].total.tax`, `ChargeUpdateParams.payment_details.lodging_data[].total.tax`, `PaymentIntent.payment_details.car_rental_data[].total.tax`, `PaymentIntent.payment_details.flight_data[].total.tax`, `PaymentIntent.payment_details.lodging_data[].total.tax`, `PaymentIntentCaptureParams.payment_details.car_rental_data[].total.tax`, `PaymentIntentCaptureParams.payment_details.flight_data[].total.tax`, `PaymentIntentCaptureParams.payment_details.lodging_data[].total.tax`, `PaymentIntentConfirmParams.payment_details.car_rental_data[].total.tax`, `PaymentIntentConfirmParams.payment_details.flight_data[].total.tax`, `PaymentIntentConfirmParams.payment_details.lodging_data[].total.tax`, `PaymentIntentCreateParams.payment_details.car_rental_data[].total.tax`, `PaymentIntentCreateParams.payment_details.flight_data[].total.tax`, `PaymentIntentCreateParams.payment_details.lodging_data[].total.tax`, `PaymentIntentUpdateParams.payment_details.car_rental_data[].total.tax`, `PaymentIntentUpdateParams.payment_details.flight_data[].total.tax`, and `PaymentIntentUpdateParams.payment_details.lodging_data[].total.tax`
9
+ * ⚠️ Remove support for `taxes` on `ChargeCaptureParams.payment_details.car_rental_data[].total.tax`, `ChargeCaptureParams.payment_details.flight_data[].total.tax`, `ChargeCaptureParams.payment_details.lodging_data[].total.tax`, `ChargeUpdateParams.payment_details.car_rental_data[].total.tax`, `ChargeUpdateParams.payment_details.flight_data[].total.tax`, `ChargeUpdateParams.payment_details.lodging_data[].total.tax`, `PaymentIntent.payment_details.car_rental_data[].total.tax`, `PaymentIntent.payment_details.flight_data[].total.tax`, `PaymentIntent.payment_details.lodging_data[].total.tax`, `PaymentIntentCaptureParams.payment_details.car_rental_data[].total.tax`, `PaymentIntentCaptureParams.payment_details.flight_data[].total.tax`, `PaymentIntentCaptureParams.payment_details.lodging_data[].total.tax`, `PaymentIntentConfirmParams.payment_details.car_rental_data[].total.tax`, `PaymentIntentConfirmParams.payment_details.flight_data[].total.tax`, `PaymentIntentConfirmParams.payment_details.lodging_data[].total.tax`, `PaymentIntentCreateParams.payment_details.car_rental_data[].total.tax`, `PaymentIntentCreateParams.payment_details.flight_data[].total.tax`, `PaymentIntentCreateParams.payment_details.lodging_data[].total.tax`, `PaymentIntentUpdateParams.payment_details.car_rental_data[].total.tax`, `PaymentIntentUpdateParams.payment_details.flight_data[].total.tax`, and `PaymentIntentUpdateParams.payment_details.lodging_data[].total.tax`
10
+ * Add support for `tax_id` on `Checkout.Session.collected_information`
11
+ * ⚠️ Remove support for `tax_ids` on `Checkout.Session.collected_information`
12
+ * Add support for new value `disabled` on enum `FinancialConnections.SessionCreateParams.manual_entry.mode`
13
+ * Add support for `mode` on `FinancialConnections.Session.manual_entry`
14
+ * Add support for `name` on `Issuing.CardholderUpdateParams`
15
+ * Add support for new value `ic_nif` on enums `OrderCreateParams.tax_details.tax_ids[].type` and `OrderUpdateParams.tax_details.tax_ids[].type`
16
+ * ⚠️ Add support for new value `ic_nif` on enums `Order.tax_details.tax_ids[].type` and `QuotePreviewInvoice.customer_tax_ids[].type`
17
+ * Add support for new values `alipay` and `mb_way` on enum `QuotePreviewInvoice.payment_settings.payment_method_types`
18
+ * Add support for `custom_fields`, `description`, and `footer` on `QuotePreviewSubscriptionSchedule.default_settings.invoice_settings` and `QuotePreviewSubscriptionSchedule.phases[].invoice_settings`
19
+ * Add support for `trial` on `QuotePreviewSubscriptionSchedule.phases[]`
20
+ * ⚠️ Remove support for `acss_debit`, `afterpay_clearpay`, `alipay`, `alma`, `amazon_pay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `billie`, `bizum`, `blik`, `boleto`, `card_present`, `cashapp`, `crypto`, `customer_balance`, `eps`, `fpx`, `giropay`, `gopay`, `grabpay`, `id_bank_transfer`, `ideal`, `interac_present`, `kakao_pay`, `konbini`, `kr_card`, `mb_way`, `mobilepay`, `multibanco`, `naver_pay`, `nz_bank_account`, `oxxo`, `p24`, `pay_by_bank`, `payco`, `paynow`, `paypal`, `paypay`, `payto`, `pix`, `promptpay`, `qris`, `rechnung`, `revolut_pay`, `samsung_pay`, `satispay`, `scalapay`, `sepa_debit`, `shopeepay`, `sofort`, `stripe_balance`, `sunbit`, `swish`, `twint`, `upi`, `us_bank_account`, `wechat_pay`, and `zip` on `SharedPayment.GrantedToken.payment_method_details`
21
+ * ⚠️ Remove support for values `acss_debit`, `afterpay_clearpay`, `alipay`, `alma`, `amazon_pay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `billie`, `bizum`, `blik`, `boleto`, `card_present`, `cashapp`, `crypto`, `custom`, `customer_balance`, `eps`, `fpx`, `giropay`, `gopay`, `grabpay`, `id_bank_transfer`, `ideal`, `interac_present`, `kakao_pay`, `konbini`, `kr_card`, `mb_way`, `mobilepay`, `multibanco`, `naver_pay`, `nz_bank_account`, `oxxo`, `p24`, `pay_by_bank`, `payco`, `paynow`, `paypal`, `paypay`, `payto`, `pix`, `promptpay`, `qris`, `rechnung`, `revolut_pay`, `samsung_pay`, `satispay`, `scalapay`, `sepa_debit`, `shopeepay`, `sofort`, `stripe_balance`, `sunbit`, `swish`, `twint`, `upi`, `us_bank_account`, `wechat_pay`, and `zip` from enum `SharedPayment.GrantedToken.payment_method_details.type`
22
+ * Add support for `use_stripe_sdk` on `SharedPayment.IssuedTokenCreateParams` and `SharedPayment.IssuedToken`
23
+ * Add support for `redirect_to_url` on `SharedPayment.IssuedToken.next_action`
24
+ * ⚠️ Change type of `SharedPayment.IssuedToken.next_action.type` from `literal('use_stripe_sdk')` to `enum('redirect_to_url'|'use_stripe_sdk')`
25
+ * Add support for `livemode` on `Tax.Location`
26
+ * Add support for `source` on `V2.Iam.ActivityLog.details.user_roles`
27
+ * Add support for `payout` on `V2.MoneyManagement.ReceivedCredit.balance_transfer`
28
+ * ⚠️ Remove support for `payout_v1` on `V2.MoneyManagement.ReceivedCredit.balance_transfer`
29
+ * Add support for new value `payout` on enum `V2.MoneyManagement.ReceivedCredit.balance_transfer.type`
30
+ * ⚠️ Change `V2.MoneyManagement.ReceivedDebit.bank_transfer.us_bank_account` to be optional
31
+ * Add support for error codes `us_bank_account_microdeposits_cannot_be_confirmed` and `us_bank_account_microdeposits_cannot_be_sent` on `ControlledByAlternateResourceError`
32
+
3
33
  ## 22.4.0-beta.1 - 2026-06-24
4
34
  This release changes the pinned API version to 2026-06-24.preview.
5
35
 
@@ -43,6 +73,61 @@ This release changes the pinned API version to 2026-06-24.preview.
43
73
  * 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 `QuotePreviewInvoice.last_finalization_error`
44
74
  * Add support for error code `default_us_bank_account_cannot_be_archived` on `CannotProceedError`
45
75
 
76
+ ## 22.3.2 - 2026-07-15
77
+ * [#2784](https://github.com/stripe/stripe-node/pull/2784) Replace source hash with Telemetry UUID
78
+ * [#2783](https://github.com/stripe/stripe-node/pull/2783) Make Error fields generated
79
+
80
+ ## 22.3.1 - 2026-07-09
81
+ * [#2781](https://github.com/stripe/stripe-node/pull/2781) Remove unused Retry-After header support
82
+ * [#2779](https://github.com/stripe/stripe-node/pull/2779) Export HttpClient types as interfaces instead of classes
83
+ - `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.
84
+ * [#2778](https://github.com/stripe/stripe-node/pull/2778) Restore missing public type exports from v21 Stripe namespace
85
+ - 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.
86
+
87
+ ## 22.3.0 - 2026-06-24
88
+ This release changes the pinned API version to 2026-06-24.dahlia.
89
+
90
+ * [#2748](https://github.com/stripe/stripe-node/pull/2748) Update generated code
91
+ * Add support for `release_details` on `Reserve.Hold`
92
+ * ⚠️ Add support for new value `tax_fund` on enum `BalanceTransaction.type`
93
+ * Change `Billing.CreditGrant.priority` to be required
94
+ * 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`
95
+ * Add support for `transaction_link_id` on `Charge.payment_method_details.card`
96
+ * ⚠️ 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`
97
+ * ⚠️ 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`
98
+ * Add support for `fingerprint` on `Charge.payment_method_details.pix`, `ConfirmationToken.payment_method_preview.pix`, `PaymentMethod.pix`, and `SetupAttempt.payment_method_details.pix`
99
+ * 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`
100
+ * Add support for `billing_cycle_anchor_config` on `Checkout.SessionCreateParams.subscription_data`
101
+ * Add support for `wechat_pay` on `Checkout.Session.payment_method_options`
102
+ * Add support for `mastercard_compliance` on `Dispute.evidence.enhanced_evidence`, `Dispute.evidence_details.enhanced_eligibility`, and `DisputeUpdateParams.evidence.enhanced_evidence`
103
+ * ⚠️ Add support for new value `mastercard_compliance` on enum `Dispute.enhanced_eligibility_types`
104
+ * Add support for `status_details` on `FinancialConnections.Account`
105
+ * ⚠️ Add support for new value `validated` on enum `Identity.VerificationSession.redaction.status`
106
+ * 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`
107
+ * ⚠️ Add support for new value `satispay` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
108
+ * ⚠️ Remove support for `stored_credential_usage` on `PaymentAttemptRecord.payment_method_details.card` and `PaymentRecord.payment_method_details.card`
109
+ * ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.description` and `PaymentRecord.payment_method_details.card.description` to be optional
110
+ * ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.iin` and `PaymentRecord.payment_method_details.card.iin` to be optional
111
+ * ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.issuer` and `PaymentRecord.payment_method_details.card.issuer` to be optional
112
+ * 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`
113
+ * Change `PaymentRecordReportRefundParams.refunded` to be optional
114
+ * Add support for `satispay` on `SetupAttempt.payment_method_details`
115
+ * Add support for `custom_fields`, `description`, and `footer` on `Subscription.invoice_settings`, `SubscriptionCreateParams.invoice_settings`, and `SubscriptionUpdateParams.invoice_settings`
116
+ * Add support for `payment_method_options` and `payment_method` on `TopupCreateParams`
117
+ * Add support for new value `2026-06-24.dahlia` on enum `WebhookEndpointCreateParams.api_version`
118
+ * Add support for `mode` on `V2.Commerce.ProductCatalogImport`
119
+ * ⚠️ Add support for new value `promotion` on enum `V2.Commerce.ProductCatalogImport.feed_type`
120
+ * 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`
121
+ * Add support for `crypto_money_manager` and `money_manager` on `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
122
+ * ⚠️ Remove support for `crypto_storer` and `storer` on `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
123
+ * Add support for new value `promotion` on enum `V2.Commerce.ProductCatalogImportCreateParams.feed_type`
124
+ * ⚠️ Add support for new value `sunbit_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability`
125
+ * 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`
126
+ * [#2765](https://github.com/stripe/stripe-node/pull/2765) fix: CJS companion namespace access for resource types at all depths
127
+
128
+ - Fixes TypeScript type access for nested namespaces in CJS mode (e.g. `Stripe.Price.Recurring`, `Stripe.Subscription.BillingMode`)
129
+ - Fixes TypeScript type access for nested resource types e.g. `Stripe.Billing.Alert.Status`, `Stripe.Terminal.Configuration.Tipping` in both ESM and CJS modes.
130
+
46
131
  ## 22.3.0-beta.1 - 2026-05-27
47
132
  This release changes the pinned API version to 2026-05-27.private.
48
133
 
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v2324
1
+ v2349
package/VERSION CHANGED
@@ -1 +1 @@
1
- 22.4.0-beta.1
1
+ 22.5.0-beta.1
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.RecipientNotNotifiableError = exports.RateLimitError = exports.QuotaExceededError = exports.NotCancelableError = exports.NonZeroBalanceError = exports.InvalidPayoutMethodError = exports.InvalidPaymentMethodError = exports.InsufficientFundsError = exports.FinancialAccountNotOpenError = exports.FeatureNotEnabledError = exports.ControlledByDashboardError = exports.ControlledByAlternateResourceError = exports.CannotProceedError = exports.BlockedByStripeError = exports.AlreadyExistsError = exports.AlreadyCanceledError = 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 ||
@@ -102,27 +103,35 @@ exports.generateV2Error = generateV2Error;
102
103
  * Specifically for errors returned from Stripe's REST API.
103
104
  */
104
105
  class StripeError extends Error {
106
+ // errorProperties: The end of the section generated from our OpenAPI spec
105
107
  constructor(raw = {}, type = null) {
106
108
  super(raw.message);
107
109
  this.type = type || this.constructor.name;
108
110
  this.raw = raw;
109
111
  this.rawType = raw.type;
110
- this.code = raw.code;
111
- this.doc_url = raw.doc_url;
112
- this.param = raw.param;
113
112
  this.detail = raw.detail;
114
113
  this.headers = raw.headers;
115
114
  this.requestId = raw.requestId;
116
115
  this.statusCode = raw.statusCode;
117
116
  this.message = raw.message ?? '';
118
117
  this.userMessage = raw.user_message;
118
+ // errorAssignments: The beginning of the section generated from our OpenAPI spec
119
+ this.advice_code = raw.advice_code;
119
120
  this.charge = raw.charge;
121
+ this.code = raw.code;
120
122
  this.decline_code = raw.decline_code;
123
+ this.doc_url = raw.doc_url;
124
+ this.network_advice_code = raw.network_advice_code;
125
+ this.network_decline_code = raw.network_decline_code;
126
+ this.param = raw.param;
121
127
  this.payment_intent = raw.payment_intent;
122
128
  this.payment_method = raw.payment_method;
123
129
  this.payment_method_type = raw.payment_method_type;
130
+ this.request_log_url = raw.request_log_url;
124
131
  this.setup_intent = raw.setup_intent;
125
132
  this.source = raw.source;
133
+ this.user_message = raw.user_message;
134
+ // errorAssignments: The end of the section generated from our OpenAPI spec
126
135
  }
127
136
  }
128
137
  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,YAAY,CAAC,EAC5D;QACA,OAAO,IAAI,oBAAoB,CAAC,cAAc,CAAC,CAAC;KACjD;IAED,IAAI,UAAU,KAAK,GAAG,IAAI,UAAU,KAAK,GAAG,EAAE;QAC5C,IAAI,cAAc,CAAC,IAAI,KAAK,mBAAmB,EAAE;YAC/C,OAAO,IAAI,sBAAsB,CAAC,cAAc,CAAC,CAAC;SACnD;QACD,OAAO,IAAI,yBAAyB,CAAC,cAAc,CAAC,CAAC;KACtD;IAED,IAAI,UAAU,KAAK,GAAG,EAAE;QACtB,OAAO,IAAI,yBAAyB,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cAAc,EAAE,qBAAqB,CAAC,CAAC;IAC/C,CAAC;CACF;AAJD,kDAIC;AACD,MAAa,kBAAmB,SAAQ,WAAW;IACjD,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC;IAC9C,CAAC;CACF;AAJD,gDAIC;AACD,MAAa,kBAAmB,SAAQ,WAAW;IACjD,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAC;IAC9C,CAAC;CACF;AAJD,gDAIC;AACD,MAAa,cAAe,SAAQ,WAAW;IAC7C,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;IAC1C,CAAC;CACF;AAJD,wCAIC;AACD,MAAa,2BAA4B,SAAQ,WAAW;IAC1D,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,6BAA6B,CAAC,CAAC;IACvD,CAAC;CACF;AAJD,kEAIC;AACD,MAAa,4BAA6B,SAAQ,WAAW;IAC3D,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,8BAA8B,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,oEAIC;AACD,2EAA2E"}
@@ -33,7 +33,7 @@ export declare class RequestSender {
33
33
  _jsonResponseHandler(requestEvent: RequestEvent, apiMode: 'v1' | 'v2', usage: Array<string>, callback: RequestCallback): (res: HttpClientResponseInterface) => void;
34
34
  static _generateConnectionErrorMessage(requestRetries: number): string;
35
35
  static _shouldRetry(res: null | HttpClientResponseInterface, numRetries: number, maxRetries: number, error?: HttpClientResponseError): boolean;
36
- _getSleepTimeInMS(numRetries: number, retryAfter?: number): number;
36
+ _getSleepTimeInMS(numRetries: number): number;
37
37
  _getMaxNetworkRetries(settings?: RequestSettings): number;
38
38
  _defaultIdempotencyKey(method: string, settings: RequestSettings, apiMode: ApiMode): string | null;
39
39
  _makeHeaders({ contentType, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings, stripeAccount, stripeContext, apiMode, }: {
@@ -4,7 +4,6 @@ exports.RequestSender = void 0;
4
4
  const Error_js_1 = require("./Error.js");
5
5
  const HttpClient_js_1 = require("./net/HttpClient.js");
6
6
  const utils_js_1 = require("./utils.js");
7
- const MAX_RETRY_AFTER_WAIT = 60;
8
7
  class RequestSender {
9
8
  constructor(stripe, maxBufferedRequestMetric) {
10
9
  this._stripe = stripe;
@@ -188,7 +187,7 @@ class RequestSender {
188
187
  }
189
188
  return false;
190
189
  }
191
- _getSleepTimeInMS(numRetries, retryAfter) {
190
+ _getSleepTimeInMS(numRetries) {
192
191
  const initialNetworkRetryDelay = this._stripe.getInitialNetworkRetryDelay();
193
192
  const maxNetworkRetryDelay = this._stripe.getMaxNetworkRetryDelay();
194
193
  // Apply exponential backoff with initialNetworkRetryDelay on the
@@ -200,10 +199,6 @@ class RequestSender {
200
199
  sleepSeconds *= 0.5 * (1 + Math.random());
201
200
  // But never sleep less than the base sleep seconds.
202
201
  sleepSeconds = Math.max(initialNetworkRetryDelay, sleepSeconds);
203
- // And never sleep less than the time the API asks us to wait, assuming it's a reasonable ask.
204
- if (Number.isInteger(retryAfter) && retryAfter <= MAX_RETRY_AFTER_WAIT) {
205
- sleepSeconds = Math.max(sleepSeconds, retryAfter);
206
- }
207
202
  return sleepSeconds * 1000;
208
203
  }
209
204
  // Max retries can be set on a per request basis. Favor those over the global setting
@@ -360,8 +355,8 @@ class RequestSender {
360
355
  let requestData;
361
356
  authenticator = authenticator ?? this._stripe._authenticator;
362
357
  const apiMode = (0, utils_js_1.getAPIMode)(path);
363
- const retryRequest = (requestFn, apiVersion, headers, requestRetries, retryAfter) => {
364
- return setTimeout(requestFn, this._getSleepTimeInMS(requestRetries, retryAfter), apiVersion, headers, requestRetries + 1);
358
+ const retryRequest = (requestFn, apiVersion, headers, requestRetries) => {
359
+ return setTimeout(requestFn, this._getSleepTimeInMS(requestRetries), apiVersion, headers, requestRetries + 1);
365
360
  };
366
361
  const makeRequest = (apiVersion, headers, numRetries) => {
367
362
  // timeout can be set on a per-request basis. Favor that over the global setting
@@ -406,7 +401,7 @@ class RequestSender {
406
401
  req
407
402
  .then((res) => {
408
403
  if (RequestSender._shouldRetry(res, requestRetries, maxRetries)) {
409
- return retryRequest(makeRequest, apiVersion, headers, requestRetries, (0, utils_js_1.parseHttpHeaderAsNumber)(res.getHeaders()['retry-after']));
404
+ return retryRequest(makeRequest, apiVersion, headers, requestRetries);
410
405
  }
411
406
  else if (options.streaming && res.getStatusCode() < 400) {
412
407
  return this._streamingResponseHandler(requestEvent, usage, callback)(res);
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSender.js","sourceRoot":"","sources":["../src/RequestSender.ts"],"names":[],"mappings":";;;AAAA,yCAOoB;AAkBpB,uDAA4E;AAE5E,yCASoB;AAIpB,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,MAAa,aAAa;IAIxB,YAAY,MAAc,EAAE,wBAAgC;QAC1D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,yBAAyB,GAAG,wBAAwB,CAAC;IAC5D,CAAC;IAEO,uBAAuB,CAC7B,WAA2C,EAC3C,aAA6C;QAE7C,IAAI,WAAW,EAAE;YACf,OAAO,WAAW,CAAC,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,gCAAgC;SACxE;QAED,OAAO,aAAa,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,gCAAgC;IAC5E,CAAC;IAED,2BAA2B,CAAC,GAAQ,EAAE,OAAuB;QAC3D,0DAA0D;QAC1D,gBAAgB;QAEhB,0DAA0D;QAC1D,GAAG,CAAC,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;QACtC,GAAG,CAAC,aAAa,GAAG,GAAG,CAAC,aAAa,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;QACnE,GAAG,CAAC,UAAU,GAAG,GAAG,CAA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C,CAAC,CAAC,IAAA,mCAAwB,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;aAC9D;iBAAM;gBACL,eAAe,GAAG,IAAA,oCAAyB,EAAC,IAAI,IAAI,EAAE,CAAC,CAAC;aACzD;YAED,qBAAqB,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;SAC9C;IACH,CAAC;CACF;AAluBD,sCAkuBC"}
package/cjs/Types.d.ts CHANGED
@@ -5,6 +5,10 @@ import { HttpClientResponseError } from './RequestSender.js';
5
5
  import { StripeContext } from './StripeContext.js';
6
6
  import { Stripe } from './stripe.core.js';
7
7
  import { AppInfo } from './lib.js';
8
+ import { PaymentIntent } from './resources/PaymentIntents.js';
9
+ import { PaymentMethod } from './resources/PaymentMethods.js';
10
+ import { SetupIntent } from './resources/SetupIntents.js';
11
+ import { CustomerSource } from './resources/CustomerSources.js';
8
12
  export type ApiMode = 'v1' | 'v2';
9
13
  export type BaseAddress = 'api' | 'files' | 'connect' | 'meter_events';
10
14
  export declare const DEFAULT_BASE_ADDRESSES: Record<BaseAddress, string>;
@@ -125,25 +129,80 @@ export type StreamingFile = {
125
129
  };
126
130
  };
127
131
  export type StripeRawError = {
132
+ /**
133
+ * 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.
134
+ */
135
+ advice_code?: string;
136
+ /**
137
+ * For card errors, the ID of the failed charge.
138
+ */
139
+ charge?: string;
140
+ /**
141
+ * For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
142
+ */
143
+ code?: string;
144
+ /**
145
+ * 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.
146
+ */
147
+ decline_code?: string;
148
+ /**
149
+ * A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
150
+ */
151
+ doc_url?: string;
152
+ /**
153
+ * A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
154
+ */
128
155
  message?: string;
129
- user_message?: string;
156
+ /**
157
+ * 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.
158
+ */
159
+ network_advice_code?: string;
160
+ /**
161
+ * For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
162
+ */
163
+ network_decline_code?: string;
164
+ /**
165
+ * 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.
166
+ */
167
+ param?: string;
168
+ /**
169
+ * The PaymentIntent object for errors returned on a request involving a PaymentIntent.
170
+ */
171
+ payment_intent?: PaymentIntent;
172
+ /**
173
+ * The PaymentMethod object for errors returned on a request involving a PaymentMethod.
174
+ */
175
+ payment_method?: PaymentMethod;
176
+ /**
177
+ * 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.
178
+ */
179
+ payment_method_type?: string;
180
+ /**
181
+ * A URL to the request log entry in your dashboard.
182
+ */
183
+ request_log_url?: string;
184
+ /**
185
+ * The SetupIntent object for errors returned on a request involving a SetupIntent.
186
+ */
187
+ setup_intent?: SetupIntent;
188
+ /**
189
+ * The CustomerSource object for errors returned on a request involving a CustomerSource.
190
+ */
191
+ source?: CustomerSource;
192
+ /**
193
+ * The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
194
+ */
130
195
  type?: RawErrorType;
196
+ /**
197
+ * The user message associated with the error.
198
+ */
199
+ user_message?: string;
131
200
  headers?: {
132
201
  [header: string]: string;
133
202
  };
134
203
  statusCode?: number;
135
204
  requestId?: string;
136
- code?: string;
137
- doc_url?: string;
138
- decline_code?: string;
139
- param?: string;
140
205
  detail?: string | Error | HttpClientResponseError;
141
- charge?: string;
142
- payment_method_type?: string;
143
- payment_intent?: any;
144
- payment_method?: any;
145
- setup_intent?: any;
146
- source?: any;
147
206
  exception?: any;
148
207
  };
149
208
  /**
package/cjs/Types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Types.js","sourceRoot":"","sources":["../src/Types.ts"],"names":[],"mappings":";;;AAiBa,QAAA,sBAAsB,GAAgC;IACjE,GAAG,EAAE,gBAAgB;IACrB,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE,oBAAoB;IAC7B,YAAY,EAAE,yBAAyB;CACxC,CAAC"}
1
+ {"version":3,"file":"Types.js","sourceRoot":"","sources":["../src/Types.ts"],"names":[],"mappings":";;;AAsBa,QAAA,sBAAsB,GAAgC;IACjE,GAAG,EAAE,gBAAgB;IACrB,KAAK,EAAE,kBAAkB;IACzB,OAAO,EAAE,oBAAoB;IAC7B,YAAY,EAAE,yBAAyB;CACxC,CAAC"}
package/cjs/Webhooks.d.ts CHANGED
@@ -12,7 +12,7 @@ import { Event } from './resources/Events.js';
12
12
  * only a string.
13
13
  */
14
14
  type WebhookHeader = string | string[] | Uint8Array;
15
- type WebhookTestHeaderOptions = {
15
+ export type WebhookTestHeaderOptions = {
16
16
  timestamp?: number;
17
17
  payload: string;
18
18
  secret: string;
@@ -21,7 +21,7 @@ type WebhookTestHeaderOptions = {
21
21
  cryptoProvider?: CryptoProvider;
22
22
  };
23
23
  type WebhookPayload = string | Uint8Array;
24
- type WebhookSignatureObject = {
24
+ export type WebhookSignatureObject = {
25
25
  verifyHeader: (encodedPayload: WebhookPayload, encodedHeader: WebhookHeader, secret: string, tolerance?: number, cryptoProvider?: CryptoProvider, receivedAt?: number) => boolean;
26
26
  verifyHeaderAsync: (encodedPayload: WebhookPayload, encodedHeader: WebhookHeader, secret: string, tolerance?: number, cryptoProvider?: CryptoProvider, receivedAt?: number) => Promise<boolean>;
27
27
  };
@@ -1 +1 @@
1
- export declare const ApiVersion = "2026-06-24.preview";
1
+ export declare const ApiVersion = "2026-07-29.preview";
package/cjs/apiVersion.js CHANGED
@@ -2,5 +2,5 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2026-06-24.preview';
5
+ exports.ApiVersion = '2026-07-29.preview';
6
6
  //# sourceMappingURL=apiVersion.js.map
@@ -20,9 +20,10 @@ export declare class NodePlatformFunctions extends PlatformFunctions {
20
20
  getEnv(): Record<string, string | undefined>;
21
21
  /** @override */
22
22
  getRuntimeVersion(): string;
23
- private getUname;
23
+ private _telemetryId;
24
24
  /** @override */
25
- getSourceHash(): string | null;
25
+ getTelemetryId(): string | null;
26
+ private _getTelemetryIdPath;
26
27
  /**
27
28
  * @override
28
29
  * Secure compare, from https://github.com/freewil/scmp