stripe 22.3.0-beta.1 → 22.3.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 (1337) hide show
  1. package/CHANGELOG.md +151 -1770
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +73 -58
  4. package/VERSION +1 -1
  5. package/cjs/Error.d.ts +0 -50
  6. package/cjs/Error.js +1 -125
  7. package/cjs/Error.js.map +1 -1
  8. package/cjs/RequestSender.d.ts +2 -1
  9. package/cjs/RequestSender.js +10 -2
  10. package/cjs/RequestSender.js.map +1 -1
  11. package/cjs/Types.d.ts +2 -4
  12. package/cjs/Types.js.map +1 -1
  13. package/cjs/apiVersion.d.ts +2 -1
  14. package/cjs/apiVersion.js +3 -2
  15. package/cjs/apiVersion.js.map +1 -1
  16. package/cjs/autoPagination.js +27 -2
  17. package/cjs/autoPagination.js.map +1 -1
  18. package/cjs/platform/NodePlatformFunctions.d.ts +3 -0
  19. package/cjs/platform/NodePlatformFunctions.js +36 -2
  20. package/cjs/platform/NodePlatformFunctions.js.map +1 -1
  21. package/cjs/platform/PlatformFunctions.d.ts +1 -0
  22. package/cjs/platform/PlatformFunctions.js +3 -0
  23. package/cjs/platform/PlatformFunctions.js.map +1 -1
  24. package/cjs/resources/AccountLinks.d.ts +1 -1
  25. package/cjs/resources/AccountSessions.d.ts +0 -262
  26. package/cjs/resources/AccountSessions.js.map +1 -1
  27. package/cjs/resources/Accounts.d.ts +5 -829
  28. package/cjs/resources/Accounts.js +18 -32
  29. package/cjs/resources/Accounts.js.map +1 -1
  30. package/cjs/resources/ApplePayDomains.js +2 -2
  31. package/cjs/resources/ApplePayDomains.js.map +1 -1
  32. package/cjs/resources/ApplicationFees.js +5 -5
  33. package/cjs/resources/ApplicationFees.js.map +1 -1
  34. package/cjs/resources/Apps/Secrets.d.ts +14 -16
  35. package/cjs/resources/Apps/index.d.ts +1 -1
  36. package/cjs/resources/Balance.d.ts +0 -67
  37. package/cjs/resources/BalanceTransactions.d.ts +5 -5
  38. package/cjs/resources/BalanceTransactions.js +3 -3
  39. package/cjs/resources/BalanceTransactions.js.map +1 -1
  40. package/cjs/resources/BankAccounts.d.ts +2 -2
  41. package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
  42. package/cjs/resources/Billing/Alerts.d.ts +27 -29
  43. package/cjs/resources/Billing/Alerts.js +4 -4
  44. package/cjs/resources/Billing/Alerts.js.map +1 -1
  45. package/cjs/resources/Billing/CreditBalanceSummary.d.ts +40 -42
  46. package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +74 -76
  47. package/cjs/resources/Billing/CreditBalanceTransactions.js +1 -1
  48. package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  49. package/cjs/resources/Billing/CreditGrants.d.ts +41 -43
  50. package/cjs/resources/Billing/CreditGrants.js +4 -4
  51. package/cjs/resources/Billing/CreditGrants.js.map +1 -1
  52. package/cjs/resources/Billing/MeterEventAdjustments.d.ts +9 -11
  53. package/cjs/resources/Billing/Meters.d.ts +39 -41
  54. package/cjs/resources/Billing/Meters.js +5 -5
  55. package/cjs/resources/Billing/Meters.js.map +1 -1
  56. package/cjs/resources/Billing/index.d.ts +7 -10
  57. package/cjs/resources/Billing/index.js +0 -2
  58. package/cjs/resources/Billing/index.js.map +1 -1
  59. package/cjs/resources/BillingPortal/Configurations.d.ts +132 -134
  60. package/cjs/resources/BillingPortal/Configurations.js +2 -2
  61. package/cjs/resources/BillingPortal/Configurations.js.map +1 -1
  62. package/cjs/resources/BillingPortal/Sessions.d.ts +100 -102
  63. package/cjs/resources/BillingPortal/index.d.ts +2 -2
  64. package/cjs/resources/Capabilities.d.ts +2 -2
  65. package/cjs/resources/Cards.d.ts +0 -4
  66. package/cjs/resources/Charges.d.ts +84 -3066
  67. package/cjs/resources/Charges.js +3 -3
  68. package/cjs/resources/Charges.js.map +1 -1
  69. package/cjs/resources/Checkout/Sessions.d.ts +1598 -1900
  70. package/cjs/resources/Checkout/Sessions.js +4 -4
  71. package/cjs/resources/Checkout/Sessions.js.map +1 -1
  72. package/cjs/resources/Checkout/index.d.ts +1 -1
  73. package/cjs/resources/Climate/Orders.d.ts +47 -49
  74. package/cjs/resources/Climate/Orders.js +3 -3
  75. package/cjs/resources/Climate/Orders.js.map +1 -1
  76. package/cjs/resources/Climate/Products.d.ts +15 -17
  77. package/cjs/resources/Climate/Products.js +1 -1
  78. package/cjs/resources/Climate/Products.js.map +1 -1
  79. package/cjs/resources/Climate/Suppliers.d.ts +25 -27
  80. package/cjs/resources/Climate/Suppliers.js +1 -1
  81. package/cjs/resources/Climate/Suppliers.js.map +1 -1
  82. package/cjs/resources/Climate/index.d.ts +3 -3
  83. package/cjs/resources/ConfirmationTokens.d.ts +13 -67
  84. package/cjs/resources/ConfirmationTokens.js +1 -1
  85. package/cjs/resources/ConfirmationTokens.js.map +1 -1
  86. package/cjs/resources/CountrySpecs.js +1 -1
  87. package/cjs/resources/CountrySpecs.js.map +1 -1
  88. package/cjs/resources/Coupons.d.ts +0 -53
  89. package/cjs/resources/Coupons.js +3 -16
  90. package/cjs/resources/Coupons.js.map +1 -1
  91. package/cjs/resources/CreditNoteLineItems.d.ts +1 -15
  92. package/cjs/resources/CreditNotes.d.ts +8 -5
  93. package/cjs/resources/CreditNotes.js +6 -4
  94. package/cjs/resources/CreditNotes.js.map +1 -1
  95. package/cjs/resources/CustomerSessions.d.ts +0 -68
  96. package/cjs/resources/Customers.d.ts +1 -7
  97. package/cjs/resources/Customers.js +31 -41
  98. package/cjs/resources/Customers.js.map +1 -1
  99. package/cjs/resources/Disputes.d.ts +28 -30
  100. package/cjs/resources/Disputes.js +3 -3
  101. package/cjs/resources/Disputes.js.map +1 -1
  102. package/cjs/resources/Entitlements/ActiveEntitlements.js +1 -1
  103. package/cjs/resources/Entitlements/ActiveEntitlements.js.map +1 -1
  104. package/cjs/resources/Entitlements/Features.js +2 -2
  105. package/cjs/resources/Entitlements/Features.js.map +1 -1
  106. package/cjs/resources/Entitlements/index.d.ts +2 -2
  107. package/cjs/resources/EphemeralKeys.js +1 -1
  108. package/cjs/resources/EphemeralKeys.js.map +1 -1
  109. package/cjs/resources/Events.d.ts +3 -548
  110. package/cjs/resources/Events.js +1 -1
  111. package/cjs/resources/Events.js.map +1 -1
  112. package/cjs/resources/ExchangeRates.js +1 -1
  113. package/cjs/resources/ExchangeRates.js.map +1 -1
  114. package/cjs/resources/ExternalAccounts.d.ts +1 -212
  115. package/cjs/resources/ExternalAccounts.js +0 -44
  116. package/cjs/resources/ExternalAccounts.js.map +1 -1
  117. package/cjs/resources/FileLinks.js +2 -2
  118. package/cjs/resources/FileLinks.js.map +1 -1
  119. package/cjs/resources/Files.js +1 -1
  120. package/cjs/resources/Files.js.map +1 -1
  121. package/cjs/resources/FinancialConnections/Accounts.d.ts +169 -217
  122. package/cjs/resources/FinancialConnections/Accounts.js +6 -14
  123. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  124. package/cjs/resources/FinancialConnections/Sessions.d.ts +43 -193
  125. package/cjs/resources/FinancialConnections/Sessions.js +1 -1
  126. package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
  127. package/cjs/resources/FinancialConnections/Transactions.d.ts +13 -15
  128. package/cjs/resources/FinancialConnections/Transactions.js +1 -1
  129. package/cjs/resources/FinancialConnections/Transactions.js.map +1 -1
  130. package/cjs/resources/FinancialConnections/index.d.ts +9 -24
  131. package/cjs/resources/FinancialConnections/index.js +0 -4
  132. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  133. package/cjs/resources/Forwarding/Requests.d.ts +57 -59
  134. package/cjs/resources/Forwarding/Requests.js +1 -1
  135. package/cjs/resources/Forwarding/Requests.js.map +1 -1
  136. package/cjs/resources/Forwarding/index.d.ts +1 -1
  137. package/cjs/resources/Identity/VerificationReports.d.ts +255 -257
  138. package/cjs/resources/Identity/VerificationReports.js +1 -1
  139. package/cjs/resources/Identity/VerificationReports.js.map +1 -1
  140. package/cjs/resources/Identity/VerificationSessions.d.ts +148 -150
  141. package/cjs/resources/Identity/VerificationSessions.js +4 -4
  142. package/cjs/resources/Identity/VerificationSessions.js.map +1 -1
  143. package/cjs/resources/Identity/index.d.ts +2 -2
  144. package/cjs/resources/InvoiceItems.d.ts +0 -85
  145. package/cjs/resources/InvoiceItems.js +3 -3
  146. package/cjs/resources/InvoiceItems.js.map +1 -1
  147. package/cjs/resources/InvoiceLineItems.d.ts +2 -40
  148. package/cjs/resources/InvoicePayments.js +1 -1
  149. package/cjs/resources/InvoicePayments.js.map +1 -1
  150. package/cjs/resources/InvoiceRenderingTemplates.js +3 -3
  151. package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
  152. package/cjs/resources/Invoices.d.ts +23 -1341
  153. package/cjs/resources/Invoices.js +14 -55
  154. package/cjs/resources/Invoices.js.map +1 -1
  155. package/cjs/resources/Issuing/Authorizations.d.ts +354 -356
  156. package/cjs/resources/Issuing/Authorizations.js +4 -4
  157. package/cjs/resources/Issuing/Authorizations.js.map +1 -1
  158. package/cjs/resources/Issuing/Cardholders.d.ts +144 -147
  159. package/cjs/resources/Issuing/Cardholders.js +2 -2
  160. package/cjs/resources/Issuing/Cardholders.js.map +1 -1
  161. package/cjs/resources/Issuing/Cards.d.ts +183 -185
  162. package/cjs/resources/Issuing/Cards.js +2 -2
  163. package/cjs/resources/Issuing/Cards.js.map +1 -1
  164. package/cjs/resources/Issuing/Disputes.d.ts +215 -217
  165. package/cjs/resources/Issuing/Disputes.js +3 -3
  166. package/cjs/resources/Issuing/Disputes.js.map +1 -1
  167. package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +47 -49
  168. package/cjs/resources/Issuing/PersonalizationDesigns.js +2 -2
  169. package/cjs/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  170. package/cjs/resources/Issuing/PhysicalBundles.d.ts +24 -26
  171. package/cjs/resources/Issuing/PhysicalBundles.js +1 -1
  172. package/cjs/resources/Issuing/PhysicalBundles.js.map +1 -1
  173. package/cjs/resources/Issuing/Tokens.d.ts +130 -132
  174. package/cjs/resources/Issuing/Tokens.js +2 -2
  175. package/cjs/resources/Issuing/Tokens.js.map +1 -1
  176. package/cjs/resources/Issuing/Transactions.d.ts +223 -234
  177. package/cjs/resources/Issuing/Transactions.js +2 -2
  178. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  179. package/cjs/resources/Issuing/index.d.ts +30 -55
  180. package/cjs/resources/Issuing/index.js +0 -6
  181. package/cjs/resources/Issuing/index.js.map +1 -1
  182. package/cjs/resources/LineItems.d.ts +4 -30
  183. package/cjs/resources/Mandates.d.ts +1 -33
  184. package/cjs/resources/Mandates.js +1 -9
  185. package/cjs/resources/Mandates.js.map +1 -1
  186. package/cjs/resources/PaymentAttemptRecords.d.ts +9 -92
  187. package/cjs/resources/PaymentAttemptRecords.js +1 -1
  188. package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
  189. package/cjs/resources/PaymentIntents.d.ts +6495 -17272
  190. package/cjs/resources/PaymentIntents.js +9 -36
  191. package/cjs/resources/PaymentIntents.js.map +1 -1
  192. package/cjs/resources/PaymentLinks.d.ts +6 -19
  193. package/cjs/resources/PaymentLinks.js +3 -3
  194. package/cjs/resources/PaymentLinks.js.map +1 -1
  195. package/cjs/resources/PaymentMethodConfigurations.d.ts +0 -350
  196. package/cjs/resources/PaymentMethodConfigurations.js +2 -2
  197. package/cjs/resources/PaymentMethodConfigurations.js.map +1 -1
  198. package/cjs/resources/PaymentMethodDomains.js +3 -3
  199. package/cjs/resources/PaymentMethodDomains.js.map +1 -1
  200. package/cjs/resources/PaymentMethods.d.ts +16 -152
  201. package/cjs/resources/PaymentMethods.js +4 -4
  202. package/cjs/resources/PaymentMethods.js.map +1 -1
  203. package/cjs/resources/PaymentRecords.d.ts +19 -102
  204. package/cjs/resources/PaymentRecords.js +7 -7
  205. package/cjs/resources/PaymentRecords.js.map +1 -1
  206. package/cjs/resources/Payouts.js +4 -4
  207. package/cjs/resources/Payouts.js.map +1 -1
  208. package/cjs/resources/Persons.d.ts +2 -2
  209. package/cjs/resources/Plans.d.ts +0 -16
  210. package/cjs/resources/Plans.js +3 -3
  211. package/cjs/resources/Plans.js.map +1 -1
  212. package/cjs/resources/Prices.d.ts +0 -52
  213. package/cjs/resources/Prices.js +2 -2
  214. package/cjs/resources/Prices.js.map +1 -1
  215. package/cjs/resources/Products.d.ts +0 -42
  216. package/cjs/resources/Products.js +7 -7
  217. package/cjs/resources/Products.js.map +1 -1
  218. package/cjs/resources/PromotionCodes.d.ts +0 -12
  219. package/cjs/resources/PromotionCodes.js +2 -29
  220. package/cjs/resources/PromotionCodes.js.map +1 -1
  221. package/cjs/resources/Quotes.d.ts +165 -2374
  222. package/cjs/resources/Quotes.js +20 -1180
  223. package/cjs/resources/Quotes.js.map +1 -1
  224. package/cjs/resources/Radar/EarlyFraudWarnings.js +1 -1
  225. package/cjs/resources/Radar/EarlyFraudWarnings.js.map +1 -1
  226. package/cjs/resources/Radar/PaymentEvaluations.d.ts +294 -296
  227. package/cjs/resources/Radar/ValueListItems.d.ts +14 -16
  228. package/cjs/resources/Radar/ValueListItems.js +2 -2
  229. package/cjs/resources/Radar/ValueListItems.js.map +1 -1
  230. package/cjs/resources/Radar/ValueLists.d.ts +18 -20
  231. package/cjs/resources/Radar/ValueLists.js +3 -3
  232. package/cjs/resources/Radar/ValueLists.js.map +1 -1
  233. package/cjs/resources/Radar/index.d.ts +8 -6
  234. package/cjs/resources/Radar/index.js.map +1 -1
  235. package/cjs/resources/Refunds.d.ts +0 -11
  236. package/cjs/resources/Refunds.js +3 -3
  237. package/cjs/resources/Refunds.js.map +1 -1
  238. package/cjs/resources/Reporting/ReportRuns.d.ts +35 -37
  239. package/cjs/resources/Reporting/ReportRuns.js +1 -1
  240. package/cjs/resources/Reporting/ReportRuns.js.map +1 -1
  241. package/cjs/resources/Reporting/ReportTypes.js +1 -1
  242. package/cjs/resources/Reporting/ReportTypes.js.map +1 -1
  243. package/cjs/resources/Reporting/index.d.ts +2 -2
  244. package/cjs/resources/Reserve/Holds.d.ts +24 -64
  245. package/cjs/resources/Reserve/Holds.js +0 -19
  246. package/cjs/resources/Reserve/Holds.js.map +1 -1
  247. package/cjs/resources/Reserve/Plans.d.ts +25 -43
  248. package/cjs/resources/Reserve/Plans.js +0 -11
  249. package/cjs/resources/Reserve/Plans.js.map +1 -1
  250. package/cjs/resources/Reserve/Releases.d.ts +17 -59
  251. package/cjs/resources/Reserve/Releases.js +0 -19
  252. package/cjs/resources/Reserve/Releases.js.map +1 -1
  253. package/cjs/resources/Reserve/index.d.ts +3 -14
  254. package/cjs/resources/Reserve/index.js +0 -9
  255. package/cjs/resources/Reserve/index.js.map +1 -1
  256. package/cjs/resources/Reviews.js +2 -2
  257. package/cjs/resources/Reviews.js.map +1 -1
  258. package/cjs/resources/SetupAttempts.d.ts +8 -26
  259. package/cjs/resources/SetupIntents.d.ts +14 -333
  260. package/cjs/resources/SetupIntents.js +5 -5
  261. package/cjs/resources/SetupIntents.js.map +1 -1
  262. package/cjs/resources/ShippingRates.js +2 -2
  263. package/cjs/resources/ShippingRates.js.map +1 -1
  264. package/cjs/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
  265. package/cjs/resources/Sigma/ScheduledQueryRuns.js +1 -1
  266. package/cjs/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
  267. package/cjs/resources/Sigma/index.d.ts +1 -1
  268. package/cjs/resources/Sources.d.ts +1 -16
  269. package/cjs/resources/Sources.js +4 -4
  270. package/cjs/resources/Sources.js.map +1 -1
  271. package/cjs/resources/SubscriptionItems.d.ts +0 -143
  272. package/cjs/resources/SubscriptionItems.js +3 -3
  273. package/cjs/resources/SubscriptionItems.js.map +1 -1
  274. package/cjs/resources/SubscriptionSchedules.d.ts +4 -1155
  275. package/cjs/resources/SubscriptionSchedules.js +4 -10
  276. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  277. package/cjs/resources/Subscriptions.d.ts +61 -560
  278. package/cjs/resources/Subscriptions.js +7 -152
  279. package/cjs/resources/Subscriptions.js.map +1 -1
  280. package/cjs/resources/Tax/Associations.d.ts +24 -26
  281. package/cjs/resources/Tax/CalculationLineItems.d.ts +56 -62
  282. package/cjs/resources/Tax/Calculations.d.ts +158 -164
  283. package/cjs/resources/Tax/Calculations.js +2 -2
  284. package/cjs/resources/Tax/Calculations.js.map +1 -1
  285. package/cjs/resources/Tax/Registrations.d.ts +1095 -1233
  286. package/cjs/resources/Tax/Registrations.js +2 -2
  287. package/cjs/resources/Tax/Registrations.js.map +1 -1
  288. package/cjs/resources/Tax/Settings.d.ts +37 -39
  289. package/cjs/resources/Tax/TransactionLineItems.d.ts +11 -13
  290. package/cjs/resources/Tax/Transactions.d.ts +113 -115
  291. package/cjs/resources/Tax/Transactions.js +2 -2
  292. package/cjs/resources/Tax/Transactions.js.map +1 -1
  293. package/cjs/resources/Tax/index.d.ts +18 -32
  294. package/cjs/resources/Tax/index.js +0 -4
  295. package/cjs/resources/Tax/index.js.map +1 -1
  296. package/cjs/resources/TaxCodes.d.ts +0 -15
  297. package/cjs/resources/TaxCodes.js +1 -1
  298. package/cjs/resources/TaxCodes.js.map +1 -1
  299. package/cjs/resources/TaxIds.js +2 -2
  300. package/cjs/resources/TaxIds.js.map +1 -1
  301. package/cjs/resources/TaxRates.js +2 -2
  302. package/cjs/resources/TaxRates.js.map +1 -1
  303. package/cjs/resources/Terminal/Configurations.d.ts +479 -508
  304. package/cjs/resources/Terminal/Configurations.js +3 -3
  305. package/cjs/resources/Terminal/Configurations.js.map +1 -1
  306. package/cjs/resources/Terminal/Locations.d.ts +72 -74
  307. package/cjs/resources/Terminal/Locations.js +3 -3
  308. package/cjs/resources/Terminal/Locations.js.map +1 -1
  309. package/cjs/resources/Terminal/OnboardingLinks.d.ts +16 -18
  310. package/cjs/resources/Terminal/Readers.d.ts +479 -497
  311. package/cjs/resources/Terminal/Readers.js +11 -11
  312. package/cjs/resources/Terminal/Readers.js.map +1 -1
  313. package/cjs/resources/Terminal/index.d.ts +11 -13
  314. package/cjs/resources/Terminal/index.js +0 -2
  315. package/cjs/resources/Terminal/index.js.map +1 -1
  316. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +2 -79
  317. package/cjs/resources/TestHelpers/Customers.js +1 -1
  318. package/cjs/resources/TestHelpers/Customers.js.map +1 -1
  319. package/cjs/resources/TestHelpers/Issuing/Authorizations.js +6 -6
  320. package/cjs/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  321. package/cjs/resources/TestHelpers/Issuing/Cards.js +5 -5
  322. package/cjs/resources/TestHelpers/Issuing/Cards.js.map +1 -1
  323. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
  324. package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  325. package/cjs/resources/TestHelpers/Issuing/Transactions.js +1 -1
  326. package/cjs/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  327. package/cjs/resources/TestHelpers/Refunds.js +1 -1
  328. package/cjs/resources/TestHelpers/Refunds.js.map +1 -1
  329. package/cjs/resources/TestHelpers/Terminal/Readers.js +3 -3
  330. package/cjs/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  331. package/cjs/resources/TestHelpers/TestClocks.d.ts +27 -29
  332. package/cjs/resources/TestHelpers/TestClocks.js +3 -3
  333. package/cjs/resources/TestHelpers/TestClocks.js.map +1 -1
  334. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
  335. package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  336. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
  337. package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  338. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
  339. package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  340. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  341. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  342. package/cjs/resources/TestHelpers/index.d.ts +3 -5
  343. package/cjs/resources/TestHelpers/index.js +4 -6
  344. package/cjs/resources/TestHelpers/index.js.map +1 -1
  345. package/cjs/resources/Tokens.js +1 -1
  346. package/cjs/resources/Tokens.js.map +1 -1
  347. package/cjs/resources/Topups.d.ts +18 -0
  348. package/cjs/resources/Topups.js +3 -3
  349. package/cjs/resources/Topups.js.map +1 -1
  350. package/cjs/resources/Transfers.d.ts +0 -8
  351. package/cjs/resources/Transfers.js +6 -6
  352. package/cjs/resources/Transfers.js.map +1 -1
  353. package/cjs/resources/Treasury/CreditReversals.d.ts +11 -13
  354. package/cjs/resources/Treasury/CreditReversals.js +1 -1
  355. package/cjs/resources/Treasury/CreditReversals.js.map +1 -1
  356. package/cjs/resources/Treasury/DebitReversals.d.ts +18 -20
  357. package/cjs/resources/Treasury/DebitReversals.js +1 -1
  358. package/cjs/resources/Treasury/DebitReversals.js.map +1 -1
  359. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +252 -259
  360. package/cjs/resources/Treasury/FinancialAccounts.d.ts +88 -123
  361. package/cjs/resources/Treasury/FinancialAccounts.js +5 -5
  362. package/cjs/resources/Treasury/FinancialAccounts.js.map +1 -1
  363. package/cjs/resources/Treasury/InboundTransfers.d.ts +79 -81
  364. package/cjs/resources/Treasury/InboundTransfers.js +2 -2
  365. package/cjs/resources/Treasury/InboundTransfers.js.map +1 -1
  366. package/cjs/resources/Treasury/OutboundPayments.d.ts +125 -135
  367. package/cjs/resources/Treasury/OutboundPayments.js +2 -2
  368. package/cjs/resources/Treasury/OutboundPayments.js.map +1 -1
  369. package/cjs/resources/Treasury/OutboundTransfers.d.ts +114 -160
  370. package/cjs/resources/Treasury/OutboundTransfers.js +2 -2
  371. package/cjs/resources/Treasury/OutboundTransfers.js.map +1 -1
  372. package/cjs/resources/Treasury/ReceivedCredits.d.ts +118 -142
  373. package/cjs/resources/Treasury/ReceivedCredits.js +1 -1
  374. package/cjs/resources/Treasury/ReceivedCredits.js.map +1 -1
  375. package/cjs/resources/Treasury/ReceivedDebits.d.ts +86 -114
  376. package/cjs/resources/Treasury/ReceivedDebits.js +1 -1
  377. package/cjs/resources/Treasury/ReceivedDebits.js.map +1 -1
  378. package/cjs/resources/Treasury/TransactionEntries.d.ts +75 -77
  379. package/cjs/resources/Treasury/TransactionEntries.js +1 -1
  380. package/cjs/resources/Treasury/TransactionEntries.js.map +1 -1
  381. package/cjs/resources/Treasury/Transactions.d.ts +86 -88
  382. package/cjs/resources/Treasury/Transactions.js +1 -1
  383. package/cjs/resources/Treasury/Transactions.js.map +1 -1
  384. package/cjs/resources/Treasury/index.d.ts +10 -10
  385. package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +9 -13
  386. package/cjs/resources/V2/Billing/index.d.ts +9 -48
  387. package/cjs/resources/V2/Billing/index.js +0 -8
  388. package/cjs/resources/V2/Billing/index.js.map +1 -1
  389. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  390. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js +1 -1
  391. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -1
  392. package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +132 -131
  393. package/cjs/resources/V2/Core/AccountLinks.d.ts +81 -85
  394. package/cjs/resources/V2/Core/AccountPersons.d.ts +369 -373
  395. package/cjs/resources/V2/Core/AccountTokens.d.ts +0 -10
  396. package/cjs/resources/V2/Core/AccountTokens.js +1 -1
  397. package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
  398. package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
  399. package/cjs/resources/V2/Core/Accounts/PersonTokens.js +3 -3
  400. package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  401. package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  402. package/cjs/resources/V2/Core/Accounts/Persons.js +7 -7
  403. package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
  404. package/cjs/resources/V2/Core/Accounts.d.ts +3043 -4006
  405. package/cjs/resources/V2/Core/Accounts.js +3 -3
  406. package/cjs/resources/V2/Core/Accounts.js.map +1 -1
  407. package/cjs/resources/V2/Core/EventDestinations.d.ts +78 -82
  408. package/cjs/resources/V2/Core/EventDestinations.js +6 -6
  409. package/cjs/resources/V2/Core/EventDestinations.js.map +1 -1
  410. package/cjs/resources/V2/Core/Events.d.ts +31 -1154
  411. package/cjs/resources/V2/Core/Events.js +1 -1
  412. package/cjs/resources/V2/Core/Events.js.map +1 -1
  413. package/cjs/resources/V2/Core/index.d.ts +14 -24
  414. package/cjs/resources/V2/Core/index.js +0 -4
  415. package/cjs/resources/V2/Core/index.js.map +1 -1
  416. package/cjs/resources/V2/index.d.ts +0 -27
  417. package/cjs/resources/V2/index.js +0 -14
  418. package/cjs/resources/V2/index.js.map +1 -1
  419. package/cjs/resources/WebhookEndpoints.d.ts +3 -3
  420. package/cjs/resources/WebhookEndpoints.js +3 -3
  421. package/cjs/resources/WebhookEndpoints.js.map +1 -1
  422. package/cjs/resources.d.ts +0 -10
  423. package/cjs/resources.js +10 -146
  424. package/cjs/resources.js.map +1 -1
  425. package/cjs/stripe.cjs.node.d.ts +14384 -3
  426. package/cjs/stripe.cjs.node.js +1 -4
  427. package/cjs/stripe.cjs.node.js.map +1 -1
  428. package/cjs/stripe.core.d.ts +69 -62
  429. package/cjs/stripe.core.js +37 -55
  430. package/cjs/stripe.core.js.map +1 -1
  431. package/cjs/utils.d.ts +1 -1
  432. package/cjs/utils.js +13 -2
  433. package/cjs/utils.js.map +1 -1
  434. package/esm/Error.d.ts +0 -50
  435. package/esm/Error.js +0 -109
  436. package/esm/Error.js.map +1 -1
  437. package/esm/RequestSender.d.ts +2 -1
  438. package/esm/RequestSender.js +10 -2
  439. package/esm/RequestSender.js.map +1 -1
  440. package/esm/Types.d.ts +2 -4
  441. package/esm/Types.js.map +1 -1
  442. package/esm/apiVersion.d.ts +2 -1
  443. package/esm/apiVersion.js +2 -1
  444. package/esm/apiVersion.js.map +1 -1
  445. package/esm/autoPagination.js +27 -2
  446. package/esm/autoPagination.js.map +1 -1
  447. package/esm/platform/NodePlatformFunctions.d.ts +3 -0
  448. package/esm/platform/NodePlatformFunctions.js +36 -2
  449. package/esm/platform/NodePlatformFunctions.js.map +1 -1
  450. package/esm/platform/PlatformFunctions.d.ts +1 -0
  451. package/esm/platform/PlatformFunctions.js +3 -0
  452. package/esm/platform/PlatformFunctions.js.map +1 -1
  453. package/esm/resources/AccountLinks.d.ts +1 -1
  454. package/esm/resources/AccountSessions.d.ts +0 -262
  455. package/esm/resources/AccountSessions.js.map +1 -1
  456. package/esm/resources/Accounts.d.ts +5 -829
  457. package/esm/resources/Accounts.js +18 -32
  458. package/esm/resources/Accounts.js.map +1 -1
  459. package/esm/resources/ApplePayDomains.js +2 -2
  460. package/esm/resources/ApplePayDomains.js.map +1 -1
  461. package/esm/resources/ApplicationFees.js +5 -5
  462. package/esm/resources/ApplicationFees.js.map +1 -1
  463. package/esm/resources/Apps/Secrets.d.ts +14 -16
  464. package/esm/resources/Apps/index.d.ts +1 -1
  465. package/esm/resources/Balance.d.ts +0 -67
  466. package/esm/resources/BalanceTransactions.d.ts +5 -5
  467. package/esm/resources/BalanceTransactions.js +3 -3
  468. package/esm/resources/BalanceTransactions.js.map +1 -1
  469. package/esm/resources/BankAccounts.d.ts +2 -2
  470. package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
  471. package/esm/resources/Billing/Alerts.d.ts +27 -29
  472. package/esm/resources/Billing/Alerts.js +4 -4
  473. package/esm/resources/Billing/Alerts.js.map +1 -1
  474. package/esm/resources/Billing/CreditBalanceSummary.d.ts +40 -42
  475. package/esm/resources/Billing/CreditBalanceTransactions.d.ts +74 -76
  476. package/esm/resources/Billing/CreditBalanceTransactions.js +1 -1
  477. package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
  478. package/esm/resources/Billing/CreditGrants.d.ts +41 -43
  479. package/esm/resources/Billing/CreditGrants.js +4 -4
  480. package/esm/resources/Billing/CreditGrants.js.map +1 -1
  481. package/esm/resources/Billing/MeterEventAdjustments.d.ts +9 -11
  482. package/esm/resources/Billing/Meters.d.ts +39 -41
  483. package/esm/resources/Billing/Meters.js +5 -5
  484. package/esm/resources/Billing/Meters.js.map +1 -1
  485. package/esm/resources/Billing/index.d.ts +7 -10
  486. package/esm/resources/Billing/index.js +0 -2
  487. package/esm/resources/Billing/index.js.map +1 -1
  488. package/esm/resources/BillingPortal/Configurations.d.ts +132 -134
  489. package/esm/resources/BillingPortal/Configurations.js +2 -2
  490. package/esm/resources/BillingPortal/Configurations.js.map +1 -1
  491. package/esm/resources/BillingPortal/Sessions.d.ts +100 -102
  492. package/esm/resources/BillingPortal/index.d.ts +2 -2
  493. package/esm/resources/Capabilities.d.ts +2 -2
  494. package/esm/resources/Cards.d.ts +0 -4
  495. package/esm/resources/Charges.d.ts +84 -3066
  496. package/esm/resources/Charges.js +3 -3
  497. package/esm/resources/Charges.js.map +1 -1
  498. package/esm/resources/Checkout/Sessions.d.ts +1598 -1900
  499. package/esm/resources/Checkout/Sessions.js +4 -4
  500. package/esm/resources/Checkout/Sessions.js.map +1 -1
  501. package/esm/resources/Checkout/index.d.ts +1 -1
  502. package/esm/resources/Climate/Orders.d.ts +47 -49
  503. package/esm/resources/Climate/Orders.js +3 -3
  504. package/esm/resources/Climate/Orders.js.map +1 -1
  505. package/esm/resources/Climate/Products.d.ts +15 -17
  506. package/esm/resources/Climate/Products.js +1 -1
  507. package/esm/resources/Climate/Products.js.map +1 -1
  508. package/esm/resources/Climate/Suppliers.d.ts +25 -27
  509. package/esm/resources/Climate/Suppliers.js +1 -1
  510. package/esm/resources/Climate/Suppliers.js.map +1 -1
  511. package/esm/resources/Climate/index.d.ts +3 -3
  512. package/esm/resources/ConfirmationTokens.d.ts +13 -67
  513. package/esm/resources/ConfirmationTokens.js +1 -1
  514. package/esm/resources/ConfirmationTokens.js.map +1 -1
  515. package/esm/resources/CountrySpecs.js +1 -1
  516. package/esm/resources/CountrySpecs.js.map +1 -1
  517. package/esm/resources/Coupons.d.ts +0 -53
  518. package/esm/resources/Coupons.js +3 -16
  519. package/esm/resources/Coupons.js.map +1 -1
  520. package/esm/resources/CreditNoteLineItems.d.ts +1 -15
  521. package/esm/resources/CreditNotes.d.ts +8 -5
  522. package/esm/resources/CreditNotes.js +6 -4
  523. package/esm/resources/CreditNotes.js.map +1 -1
  524. package/esm/resources/CustomerSessions.d.ts +0 -68
  525. package/esm/resources/Customers.d.ts +1 -7
  526. package/esm/resources/Customers.js +31 -41
  527. package/esm/resources/Customers.js.map +1 -1
  528. package/esm/resources/Disputes.d.ts +28 -30
  529. package/esm/resources/Disputes.js +3 -3
  530. package/esm/resources/Disputes.js.map +1 -1
  531. package/esm/resources/Entitlements/ActiveEntitlements.js +1 -1
  532. package/esm/resources/Entitlements/ActiveEntitlements.js.map +1 -1
  533. package/esm/resources/Entitlements/Features.js +2 -2
  534. package/esm/resources/Entitlements/Features.js.map +1 -1
  535. package/esm/resources/Entitlements/index.d.ts +2 -2
  536. package/esm/resources/EphemeralKeys.js +1 -1
  537. package/esm/resources/EphemeralKeys.js.map +1 -1
  538. package/esm/resources/Events.d.ts +3 -548
  539. package/esm/resources/Events.js +1 -1
  540. package/esm/resources/Events.js.map +1 -1
  541. package/esm/resources/ExchangeRates.js +1 -1
  542. package/esm/resources/ExchangeRates.js.map +1 -1
  543. package/esm/resources/ExternalAccounts.d.ts +1 -212
  544. package/esm/resources/ExternalAccounts.js +1 -42
  545. package/esm/resources/ExternalAccounts.js.map +1 -1
  546. package/esm/resources/FileLinks.js +2 -2
  547. package/esm/resources/FileLinks.js.map +1 -1
  548. package/esm/resources/Files.js +1 -1
  549. package/esm/resources/Files.js.map +1 -1
  550. package/esm/resources/FinancialConnections/Accounts.d.ts +169 -217
  551. package/esm/resources/FinancialConnections/Accounts.js +6 -14
  552. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  553. package/esm/resources/FinancialConnections/Sessions.d.ts +43 -193
  554. package/esm/resources/FinancialConnections/Sessions.js +1 -1
  555. package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
  556. package/esm/resources/FinancialConnections/Transactions.d.ts +13 -15
  557. package/esm/resources/FinancialConnections/Transactions.js +1 -1
  558. package/esm/resources/FinancialConnections/Transactions.js.map +1 -1
  559. package/esm/resources/FinancialConnections/index.d.ts +9 -24
  560. package/esm/resources/FinancialConnections/index.js +0 -4
  561. package/esm/resources/FinancialConnections/index.js.map +1 -1
  562. package/esm/resources/Forwarding/Requests.d.ts +57 -59
  563. package/esm/resources/Forwarding/Requests.js +1 -1
  564. package/esm/resources/Forwarding/Requests.js.map +1 -1
  565. package/esm/resources/Forwarding/index.d.ts +1 -1
  566. package/esm/resources/Identity/VerificationReports.d.ts +255 -257
  567. package/esm/resources/Identity/VerificationReports.js +1 -1
  568. package/esm/resources/Identity/VerificationReports.js.map +1 -1
  569. package/esm/resources/Identity/VerificationSessions.d.ts +148 -150
  570. package/esm/resources/Identity/VerificationSessions.js +4 -4
  571. package/esm/resources/Identity/VerificationSessions.js.map +1 -1
  572. package/esm/resources/Identity/index.d.ts +2 -2
  573. package/esm/resources/InvoiceItems.d.ts +0 -85
  574. package/esm/resources/InvoiceItems.js +3 -3
  575. package/esm/resources/InvoiceItems.js.map +1 -1
  576. package/esm/resources/InvoiceLineItems.d.ts +2 -40
  577. package/esm/resources/InvoicePayments.js +1 -1
  578. package/esm/resources/InvoicePayments.js.map +1 -1
  579. package/esm/resources/InvoiceRenderingTemplates.js +3 -3
  580. package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
  581. package/esm/resources/Invoices.d.ts +23 -1341
  582. package/esm/resources/Invoices.js +14 -55
  583. package/esm/resources/Invoices.js.map +1 -1
  584. package/esm/resources/Issuing/Authorizations.d.ts +354 -356
  585. package/esm/resources/Issuing/Authorizations.js +4 -4
  586. package/esm/resources/Issuing/Authorizations.js.map +1 -1
  587. package/esm/resources/Issuing/Cardholders.d.ts +144 -147
  588. package/esm/resources/Issuing/Cardholders.js +2 -2
  589. package/esm/resources/Issuing/Cardholders.js.map +1 -1
  590. package/esm/resources/Issuing/Cards.d.ts +183 -185
  591. package/esm/resources/Issuing/Cards.js +2 -2
  592. package/esm/resources/Issuing/Cards.js.map +1 -1
  593. package/esm/resources/Issuing/Disputes.d.ts +215 -217
  594. package/esm/resources/Issuing/Disputes.js +3 -3
  595. package/esm/resources/Issuing/Disputes.js.map +1 -1
  596. package/esm/resources/Issuing/PersonalizationDesigns.d.ts +47 -49
  597. package/esm/resources/Issuing/PersonalizationDesigns.js +2 -2
  598. package/esm/resources/Issuing/PersonalizationDesigns.js.map +1 -1
  599. package/esm/resources/Issuing/PhysicalBundles.d.ts +24 -26
  600. package/esm/resources/Issuing/PhysicalBundles.js +1 -1
  601. package/esm/resources/Issuing/PhysicalBundles.js.map +1 -1
  602. package/esm/resources/Issuing/Tokens.d.ts +130 -132
  603. package/esm/resources/Issuing/Tokens.js +2 -2
  604. package/esm/resources/Issuing/Tokens.js.map +1 -1
  605. package/esm/resources/Issuing/Transactions.d.ts +223 -234
  606. package/esm/resources/Issuing/Transactions.js +2 -2
  607. package/esm/resources/Issuing/Transactions.js.map +1 -1
  608. package/esm/resources/Issuing/index.d.ts +30 -55
  609. package/esm/resources/Issuing/index.js +0 -6
  610. package/esm/resources/Issuing/index.js.map +1 -1
  611. package/esm/resources/LineItems.d.ts +4 -30
  612. package/esm/resources/Mandates.d.ts +1 -33
  613. package/esm/resources/Mandates.js +1 -9
  614. package/esm/resources/Mandates.js.map +1 -1
  615. package/esm/resources/PaymentAttemptRecords.d.ts +9 -92
  616. package/esm/resources/PaymentAttemptRecords.js +1 -1
  617. package/esm/resources/PaymentAttemptRecords.js.map +1 -1
  618. package/esm/resources/PaymentIntents.d.ts +6495 -17272
  619. package/esm/resources/PaymentIntents.js +9 -36
  620. package/esm/resources/PaymentIntents.js.map +1 -1
  621. package/esm/resources/PaymentLinks.d.ts +6 -19
  622. package/esm/resources/PaymentLinks.js +3 -3
  623. package/esm/resources/PaymentLinks.js.map +1 -1
  624. package/esm/resources/PaymentMethodConfigurations.d.ts +0 -350
  625. package/esm/resources/PaymentMethodConfigurations.js +2 -2
  626. package/esm/resources/PaymentMethodConfigurations.js.map +1 -1
  627. package/esm/resources/PaymentMethodDomains.js +3 -3
  628. package/esm/resources/PaymentMethodDomains.js.map +1 -1
  629. package/esm/resources/PaymentMethods.d.ts +16 -152
  630. package/esm/resources/PaymentMethods.js +4 -4
  631. package/esm/resources/PaymentMethods.js.map +1 -1
  632. package/esm/resources/PaymentRecords.d.ts +19 -102
  633. package/esm/resources/PaymentRecords.js +7 -7
  634. package/esm/resources/PaymentRecords.js.map +1 -1
  635. package/esm/resources/Payouts.js +4 -4
  636. package/esm/resources/Payouts.js.map +1 -1
  637. package/esm/resources/Persons.d.ts +2 -2
  638. package/esm/resources/Plans.d.ts +0 -16
  639. package/esm/resources/Plans.js +3 -3
  640. package/esm/resources/Plans.js.map +1 -1
  641. package/esm/resources/Prices.d.ts +0 -52
  642. package/esm/resources/Prices.js +2 -2
  643. package/esm/resources/Prices.js.map +1 -1
  644. package/esm/resources/Products.d.ts +0 -42
  645. package/esm/resources/Products.js +7 -7
  646. package/esm/resources/Products.js.map +1 -1
  647. package/esm/resources/PromotionCodes.d.ts +0 -12
  648. package/esm/resources/PromotionCodes.js +2 -29
  649. package/esm/resources/PromotionCodes.js.map +1 -1
  650. package/esm/resources/Quotes.d.ts +165 -2374
  651. package/esm/resources/Quotes.js +20 -1180
  652. package/esm/resources/Quotes.js.map +1 -1
  653. package/esm/resources/Radar/EarlyFraudWarnings.js +1 -1
  654. package/esm/resources/Radar/EarlyFraudWarnings.js.map +1 -1
  655. package/esm/resources/Radar/PaymentEvaluations.d.ts +294 -296
  656. package/esm/resources/Radar/ValueListItems.d.ts +14 -16
  657. package/esm/resources/Radar/ValueListItems.js +2 -2
  658. package/esm/resources/Radar/ValueListItems.js.map +1 -1
  659. package/esm/resources/Radar/ValueLists.d.ts +18 -20
  660. package/esm/resources/Radar/ValueLists.js +3 -3
  661. package/esm/resources/Radar/ValueLists.js.map +1 -1
  662. package/esm/resources/Radar/index.d.ts +8 -6
  663. package/esm/resources/Radar/index.js.map +1 -1
  664. package/esm/resources/Refunds.d.ts +0 -11
  665. package/esm/resources/Refunds.js +3 -3
  666. package/esm/resources/Refunds.js.map +1 -1
  667. package/esm/resources/Reporting/ReportRuns.d.ts +35 -37
  668. package/esm/resources/Reporting/ReportRuns.js +1 -1
  669. package/esm/resources/Reporting/ReportRuns.js.map +1 -1
  670. package/esm/resources/Reporting/ReportTypes.js +1 -1
  671. package/esm/resources/Reporting/ReportTypes.js.map +1 -1
  672. package/esm/resources/Reporting/index.d.ts +2 -2
  673. package/esm/resources/Reserve/Holds.d.ts +24 -64
  674. package/esm/resources/Reserve/Holds.js +1 -17
  675. package/esm/resources/Reserve/Holds.js.map +1 -1
  676. package/esm/resources/Reserve/Plans.d.ts +25 -43
  677. package/esm/resources/Reserve/Plans.js +1 -9
  678. package/esm/resources/Reserve/Plans.js.map +1 -1
  679. package/esm/resources/Reserve/Releases.d.ts +17 -59
  680. package/esm/resources/Reserve/Releases.js +1 -17
  681. package/esm/resources/Reserve/Releases.js.map +1 -1
  682. package/esm/resources/Reserve/index.d.ts +3 -14
  683. package/esm/resources/Reserve/index.js +0 -9
  684. package/esm/resources/Reserve/index.js.map +1 -1
  685. package/esm/resources/Reviews.js +2 -2
  686. package/esm/resources/Reviews.js.map +1 -1
  687. package/esm/resources/SetupAttempts.d.ts +8 -26
  688. package/esm/resources/SetupIntents.d.ts +14 -333
  689. package/esm/resources/SetupIntents.js +5 -5
  690. package/esm/resources/SetupIntents.js.map +1 -1
  691. package/esm/resources/ShippingRates.js +2 -2
  692. package/esm/resources/ShippingRates.js.map +1 -1
  693. package/esm/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
  694. package/esm/resources/Sigma/ScheduledQueryRuns.js +1 -1
  695. package/esm/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
  696. package/esm/resources/Sigma/index.d.ts +1 -1
  697. package/esm/resources/Sources.d.ts +1 -16
  698. package/esm/resources/Sources.js +4 -4
  699. package/esm/resources/Sources.js.map +1 -1
  700. package/esm/resources/SubscriptionItems.d.ts +0 -143
  701. package/esm/resources/SubscriptionItems.js +3 -3
  702. package/esm/resources/SubscriptionItems.js.map +1 -1
  703. package/esm/resources/SubscriptionSchedules.d.ts +4 -1155
  704. package/esm/resources/SubscriptionSchedules.js +4 -10
  705. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  706. package/esm/resources/Subscriptions.d.ts +61 -560
  707. package/esm/resources/Subscriptions.js +7 -152
  708. package/esm/resources/Subscriptions.js.map +1 -1
  709. package/esm/resources/Tax/Associations.d.ts +24 -26
  710. package/esm/resources/Tax/CalculationLineItems.d.ts +56 -62
  711. package/esm/resources/Tax/Calculations.d.ts +158 -164
  712. package/esm/resources/Tax/Calculations.js +2 -2
  713. package/esm/resources/Tax/Calculations.js.map +1 -1
  714. package/esm/resources/Tax/Registrations.d.ts +1095 -1233
  715. package/esm/resources/Tax/Registrations.js +2 -2
  716. package/esm/resources/Tax/Registrations.js.map +1 -1
  717. package/esm/resources/Tax/Settings.d.ts +37 -39
  718. package/esm/resources/Tax/TransactionLineItems.d.ts +11 -13
  719. package/esm/resources/Tax/Transactions.d.ts +113 -115
  720. package/esm/resources/Tax/Transactions.js +2 -2
  721. package/esm/resources/Tax/Transactions.js.map +1 -1
  722. package/esm/resources/Tax/index.d.ts +18 -32
  723. package/esm/resources/Tax/index.js +0 -4
  724. package/esm/resources/Tax/index.js.map +1 -1
  725. package/esm/resources/TaxCodes.d.ts +0 -15
  726. package/esm/resources/TaxCodes.js +1 -1
  727. package/esm/resources/TaxCodes.js.map +1 -1
  728. package/esm/resources/TaxIds.js +2 -2
  729. package/esm/resources/TaxIds.js.map +1 -1
  730. package/esm/resources/TaxRates.js +2 -2
  731. package/esm/resources/TaxRates.js.map +1 -1
  732. package/esm/resources/Terminal/Configurations.d.ts +479 -508
  733. package/esm/resources/Terminal/Configurations.js +3 -3
  734. package/esm/resources/Terminal/Configurations.js.map +1 -1
  735. package/esm/resources/Terminal/Locations.d.ts +72 -74
  736. package/esm/resources/Terminal/Locations.js +3 -3
  737. package/esm/resources/Terminal/Locations.js.map +1 -1
  738. package/esm/resources/Terminal/OnboardingLinks.d.ts +16 -18
  739. package/esm/resources/Terminal/Readers.d.ts +479 -497
  740. package/esm/resources/Terminal/Readers.js +11 -11
  741. package/esm/resources/Terminal/Readers.js.map +1 -1
  742. package/esm/resources/Terminal/index.d.ts +11 -13
  743. package/esm/resources/Terminal/index.js +0 -2
  744. package/esm/resources/Terminal/index.js.map +1 -1
  745. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +2 -79
  746. package/esm/resources/TestHelpers/Customers.js +1 -1
  747. package/esm/resources/TestHelpers/Customers.js.map +1 -1
  748. package/esm/resources/TestHelpers/Issuing/Authorizations.js +6 -6
  749. package/esm/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
  750. package/esm/resources/TestHelpers/Issuing/Cards.js +5 -5
  751. package/esm/resources/TestHelpers/Issuing/Cards.js.map +1 -1
  752. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
  753. package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
  754. package/esm/resources/TestHelpers/Issuing/Transactions.js +1 -1
  755. package/esm/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
  756. package/esm/resources/TestHelpers/Refunds.js +1 -1
  757. package/esm/resources/TestHelpers/Refunds.js.map +1 -1
  758. package/esm/resources/TestHelpers/Terminal/Readers.js +3 -3
  759. package/esm/resources/TestHelpers/Terminal/Readers.js.map +1 -1
  760. package/esm/resources/TestHelpers/TestClocks.d.ts +27 -29
  761. package/esm/resources/TestHelpers/TestClocks.js +3 -3
  762. package/esm/resources/TestHelpers/TestClocks.js.map +1 -1
  763. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
  764. package/esm/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
  765. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
  766. package/esm/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
  767. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
  768. package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
  769. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  770. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  771. package/esm/resources/TestHelpers/index.d.ts +3 -5
  772. package/esm/resources/TestHelpers/index.js +0 -2
  773. package/esm/resources/TestHelpers/index.js.map +1 -1
  774. package/esm/resources/Tokens.js +1 -1
  775. package/esm/resources/Tokens.js.map +1 -1
  776. package/esm/resources/Topups.d.ts +18 -0
  777. package/esm/resources/Topups.js +3 -3
  778. package/esm/resources/Topups.js.map +1 -1
  779. package/esm/resources/Transfers.d.ts +0 -8
  780. package/esm/resources/Transfers.js +6 -6
  781. package/esm/resources/Transfers.js.map +1 -1
  782. package/esm/resources/Treasury/CreditReversals.d.ts +11 -13
  783. package/esm/resources/Treasury/CreditReversals.js +1 -1
  784. package/esm/resources/Treasury/CreditReversals.js.map +1 -1
  785. package/esm/resources/Treasury/DebitReversals.d.ts +18 -20
  786. package/esm/resources/Treasury/DebitReversals.js +1 -1
  787. package/esm/resources/Treasury/DebitReversals.js.map +1 -1
  788. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +252 -259
  789. package/esm/resources/Treasury/FinancialAccounts.d.ts +88 -123
  790. package/esm/resources/Treasury/FinancialAccounts.js +5 -5
  791. package/esm/resources/Treasury/FinancialAccounts.js.map +1 -1
  792. package/esm/resources/Treasury/InboundTransfers.d.ts +79 -81
  793. package/esm/resources/Treasury/InboundTransfers.js +2 -2
  794. package/esm/resources/Treasury/InboundTransfers.js.map +1 -1
  795. package/esm/resources/Treasury/OutboundPayments.d.ts +125 -135
  796. package/esm/resources/Treasury/OutboundPayments.js +2 -2
  797. package/esm/resources/Treasury/OutboundPayments.js.map +1 -1
  798. package/esm/resources/Treasury/OutboundTransfers.d.ts +114 -160
  799. package/esm/resources/Treasury/OutboundTransfers.js +2 -2
  800. package/esm/resources/Treasury/OutboundTransfers.js.map +1 -1
  801. package/esm/resources/Treasury/ReceivedCredits.d.ts +118 -142
  802. package/esm/resources/Treasury/ReceivedCredits.js +1 -1
  803. package/esm/resources/Treasury/ReceivedCredits.js.map +1 -1
  804. package/esm/resources/Treasury/ReceivedDebits.d.ts +86 -114
  805. package/esm/resources/Treasury/ReceivedDebits.js +1 -1
  806. package/esm/resources/Treasury/ReceivedDebits.js.map +1 -1
  807. package/esm/resources/Treasury/TransactionEntries.d.ts +75 -77
  808. package/esm/resources/Treasury/TransactionEntries.js +1 -1
  809. package/esm/resources/Treasury/TransactionEntries.js.map +1 -1
  810. package/esm/resources/Treasury/Transactions.d.ts +86 -88
  811. package/esm/resources/Treasury/Transactions.js +1 -1
  812. package/esm/resources/Treasury/Transactions.js.map +1 -1
  813. package/esm/resources/Treasury/index.d.ts +10 -10
  814. package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +9 -13
  815. package/esm/resources/V2/Billing/index.d.ts +9 -48
  816. package/esm/resources/V2/Billing/index.js +0 -8
  817. package/esm/resources/V2/Billing/index.js.map +1 -1
  818. package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  819. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js +1 -1
  820. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -1
  821. package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +132 -131
  822. package/esm/resources/V2/Core/AccountLinks.d.ts +81 -85
  823. package/esm/resources/V2/Core/AccountPersons.d.ts +369 -373
  824. package/esm/resources/V2/Core/AccountTokens.d.ts +0 -10
  825. package/esm/resources/V2/Core/AccountTokens.js +1 -1
  826. package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
  827. package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
  828. package/esm/resources/V2/Core/Accounts/PersonTokens.js +3 -3
  829. package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  830. package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  831. package/esm/resources/V2/Core/Accounts/Persons.js +7 -7
  832. package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
  833. package/esm/resources/V2/Core/Accounts.d.ts +3043 -4006
  834. package/esm/resources/V2/Core/Accounts.js +3 -3
  835. package/esm/resources/V2/Core/Accounts.js.map +1 -1
  836. package/esm/resources/V2/Core/EventDestinations.d.ts +78 -82
  837. package/esm/resources/V2/Core/EventDestinations.js +6 -6
  838. package/esm/resources/V2/Core/EventDestinations.js.map +1 -1
  839. package/esm/resources/V2/Core/Events.d.ts +31 -1154
  840. package/esm/resources/V2/Core/Events.js +1 -1
  841. package/esm/resources/V2/Core/Events.js.map +1 -1
  842. package/esm/resources/V2/Core/index.d.ts +14 -24
  843. package/esm/resources/V2/Core/index.js +0 -4
  844. package/esm/resources/V2/Core/index.js.map +1 -1
  845. package/esm/resources/V2/index.d.ts +0 -27
  846. package/esm/resources/V2/index.js +0 -14
  847. package/esm/resources/V2/index.js.map +1 -1
  848. package/esm/resources/WebhookEndpoints.d.ts +3 -3
  849. package/esm/resources/WebhookEndpoints.js +3 -3
  850. package/esm/resources/WebhookEndpoints.js.map +1 -1
  851. package/esm/resources.d.ts +0 -10
  852. package/esm/resources.js +0 -131
  853. package/esm/resources.js.map +1 -1
  854. package/esm/stripe.core.d.ts +69 -62
  855. package/esm/stripe.core.js +7 -25
  856. package/esm/stripe.core.js.map +1 -1
  857. package/esm/stripe.esm.node.d.ts +68 -63
  858. package/esm/stripe.esm.node.js +2 -25
  859. package/esm/stripe.esm.node.js.map +1 -1
  860. package/esm/utils.d.ts +1 -1
  861. package/esm/utils.js +13 -2
  862. package/esm/utils.js.map +1 -1
  863. package/package.json +1 -1
  864. package/cjs/StripeEventNotificationHandler.d.ts +0 -19
  865. package/cjs/StripeEventNotificationHandler.js +0 -148
  866. package/cjs/StripeEventNotificationHandler.js.map +0 -1
  867. package/cjs/resources/AccountNotices.d.ts +0 -140
  868. package/cjs/resources/AccountNotices.js +0 -29
  869. package/cjs/resources/AccountNotices.js.map +0 -1
  870. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  871. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -15
  872. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  873. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  874. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +0 -4
  875. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  876. package/cjs/resources/Billing/Analytics/index.d.ts +0 -15
  877. package/cjs/resources/Billing/Analytics/index.js +0 -13
  878. package/cjs/resources/Billing/Analytics/index.js.map +0 -1
  879. package/cjs/resources/Capital/FinancingOffers.d.ts +0 -191
  880. package/cjs/resources/Capital/FinancingOffers.js +0 -30
  881. package/cjs/resources/Capital/FinancingOffers.js.map +0 -1
  882. package/cjs/resources/Capital/FinancingSummary.d.ts +0 -98
  883. package/cjs/resources/Capital/FinancingSummary.js +0 -15
  884. package/cjs/resources/Capital/FinancingSummary.js.map +0 -1
  885. package/cjs/resources/Capital/FinancingTransactions.d.ts +0 -143
  886. package/cjs/resources/Capital/FinancingTransactions.js +0 -24
  887. package/cjs/resources/Capital/FinancingTransactions.js.map +0 -1
  888. package/cjs/resources/Capital/index.d.ts +0 -25
  889. package/cjs/resources/Capital/index.js +0 -17
  890. package/cjs/resources/Capital/index.js.map +0 -1
  891. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  892. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +0 -4
  893. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  894. package/cjs/resources/FinancialConnections/Authorizations.d.ts +0 -87
  895. package/cjs/resources/FinancialConnections/Authorizations.js +0 -15
  896. package/cjs/resources/FinancialConnections/Authorizations.js.map +0 -1
  897. package/cjs/resources/FinancialConnections/Institutions.d.ts +0 -101
  898. package/cjs/resources/FinancialConnections/Institutions.js +0 -23
  899. package/cjs/resources/FinancialConnections/Institutions.js.map +0 -1
  900. package/cjs/resources/FxQuotes.d.ts +0 -212
  901. package/cjs/resources/FxQuotes.js +0 -29
  902. package/cjs/resources/FxQuotes.js.map +0 -1
  903. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  904. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -47
  905. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  906. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  907. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -23
  908. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  909. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  910. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -23
  911. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  912. package/cjs/resources/Issuing/Settlements.d.ts +0 -85
  913. package/cjs/resources/Issuing/Settlements.js +0 -4
  914. package/cjs/resources/Issuing/Settlements.js.map +0 -1
  915. package/cjs/resources/Margins.d.ts +0 -115
  916. package/cjs/resources/Margins.js +0 -35
  917. package/cjs/resources/Margins.js.map +0 -1
  918. package/cjs/resources/Orders.d.ts +0 -4693
  919. package/cjs/resources/Orders.js +0 -457
  920. package/cjs/resources/Orders.js.map +0 -1
  921. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  922. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +0 -4
  923. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  924. package/cjs/resources/Privacy/RedactionJobs.d.ts +0 -229
  925. package/cjs/resources/Privacy/RedactionJobs.js +0 -73
  926. package/cjs/resources/Privacy/RedactionJobs.js.map +0 -1
  927. package/cjs/resources/Privacy/index.d.ts +0 -22
  928. package/cjs/resources/Privacy/index.js +0 -13
  929. package/cjs/resources/Privacy/index.js.map +0 -1
  930. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  931. package/cjs/resources/ProductCatalog/TrialOffers.js +0 -15
  932. package/cjs/resources/ProductCatalog/TrialOffers.js.map +0 -1
  933. package/cjs/resources/ProductCatalog/index.d.ts +0 -12
  934. package/cjs/resources/ProductCatalog/index.js +0 -13
  935. package/cjs/resources/ProductCatalog/index.js.map +0 -1
  936. package/cjs/resources/QuoteLines.d.ts +0 -507
  937. package/cjs/resources/QuoteLines.js +0 -4
  938. package/cjs/resources/QuoteLines.js.map +0 -1
  939. package/cjs/resources/QuotePreviewInvoices.d.ts +0 -1120
  940. package/cjs/resources/QuotePreviewInvoices.js +0 -4
  941. package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
  942. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -737
  943. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
  944. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  945. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -1095
  946. package/cjs/resources/SharedPayment/GrantedTokens.js +0 -15
  947. package/cjs/resources/SharedPayment/GrantedTokens.js.map +0 -1
  948. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  949. package/cjs/resources/SharedPayment/IssuedTokens.js +0 -27
  950. package/cjs/resources/SharedPayment/IssuedTokens.js.map +0 -1
  951. package/cjs/resources/SharedPayment/index.d.ts +0 -19
  952. package/cjs/resources/SharedPayment/index.js +0 -15
  953. package/cjs/resources/SharedPayment/index.js.map +0 -1
  954. package/cjs/resources/Tax/Forms.d.ts +0 -230
  955. package/cjs/resources/Tax/Forms.js +0 -32
  956. package/cjs/resources/Tax/Forms.js.map +0 -1
  957. package/cjs/resources/Tax/Locations.d.ts +0 -108
  958. package/cjs/resources/Tax/Locations.js +0 -33
  959. package/cjs/resources/Tax/Locations.js.map +0 -1
  960. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  961. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -15
  962. package/cjs/resources/Terminal/ReaderCollectedData.js.map +0 -1
  963. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  964. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -21
  965. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  966. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  967. package/cjs/resources/TestHelpers/SharedPayment/index.js +0 -13
  968. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  969. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  970. package/cjs/resources/V2/Billing/BillSettingVersions.js +0 -4
  971. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  972. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  973. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -23
  974. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  975. package/cjs/resources/V2/Billing/BillSettings.d.ts +0 -284
  976. package/cjs/resources/V2/Billing/BillSettings.js +0 -41
  977. package/cjs/resources/V2/Billing/BillSettings.js.map +0 -1
  978. package/cjs/resources/V2/Billing/Cadences.d.ts +0 -951
  979. package/cjs/resources/V2/Billing/Cadences.js +0 -198
  980. package/cjs/resources/V2/Billing/Cadences.js.map +0 -1
  981. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  982. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +0 -4
  983. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  984. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  985. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -70
  986. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  987. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  988. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -166
  989. package/cjs/resources/V2/Billing/CollectionSettings.js.map +0 -1
  990. package/cjs/resources/V2/Billing/Profiles.d.ts +0 -166
  991. package/cjs/resources/V2/Billing/Profiles.js +0 -35
  992. package/cjs/resources/V2/Billing/Profiles.js.map +0 -1
  993. package/cjs/resources/V2/Core/BatchJobs.d.ts +0 -373
  994. package/cjs/resources/V2/Core/BatchJobs.js +0 -225
  995. package/cjs/resources/V2/Core/BatchJobs.js.map +0 -1
  996. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  997. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -54
  998. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  999. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  1000. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -62
  1001. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  1002. package/cjs/resources/V2/Core/Vault/index.d.ts +0 -28
  1003. package/cjs/resources/V2/Core/Vault/index.js +0 -15
  1004. package/cjs/resources/V2/Core/Vault/index.js.map +0 -1
  1005. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  1006. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +0 -46
  1007. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  1008. package/cjs/resources/V2/Data/Reporting/index.d.ts +0 -13
  1009. package/cjs/resources/V2/Data/Reporting/index.js +0 -13
  1010. package/cjs/resources/V2/Data/Reporting/index.js.map +0 -1
  1011. package/cjs/resources/V2/Data/index.d.ts +0 -10
  1012. package/cjs/resources/V2/Data/index.js +0 -13
  1013. package/cjs/resources/V2/Data/index.js.map +0 -1
  1014. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  1015. package/cjs/resources/V2/EventMisc.js +0 -2
  1016. package/cjs/resources/V2/EventMisc.js.map +0 -1
  1017. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  1018. package/cjs/resources/V2/Extend/WorkflowRuns.js +0 -23
  1019. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  1020. package/cjs/resources/V2/Extend/Workflows.d.ts +0 -123
  1021. package/cjs/resources/V2/Extend/Workflows.js +0 -30
  1022. package/cjs/resources/V2/Extend/Workflows.js.map +0 -1
  1023. package/cjs/resources/V2/Extend/index.d.ts +0 -20
  1024. package/cjs/resources/V2/Extend/index.js +0 -15
  1025. package/cjs/resources/V2/Extend/index.js.map +0 -1
  1026. package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  1027. package/cjs/resources/V2/FinancialAddressCreditSimulations.js +0 -4
  1028. package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  1029. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  1030. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -4
  1031. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  1032. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +0 -214
  1033. package/cjs/resources/V2/Iam/ActivityLogs.js +0 -23
  1034. package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
  1035. package/cjs/resources/V2/Iam/index.d.ts +0 -13
  1036. package/cjs/resources/V2/Iam/index.js +0 -13
  1037. package/cjs/resources/V2/Iam/index.js.map +0 -1
  1038. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  1039. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -23
  1040. package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  1041. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  1042. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -44
  1043. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  1044. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  1045. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -31
  1046. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  1047. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  1048. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -30
  1049. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  1050. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  1051. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -22
  1052. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  1053. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  1054. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -41
  1055. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  1056. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -300
  1057. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -49
  1058. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  1059. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  1060. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -39
  1061. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  1062. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  1063. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -44
  1064. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  1065. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  1066. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -17
  1067. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  1068. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
  1069. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -23
  1070. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  1071. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  1072. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -23
  1073. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  1074. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  1075. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -23
  1076. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  1077. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  1078. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -23
  1079. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  1080. package/cjs/resources/V2/MoneyManagement/index.d.ts +0 -104
  1081. package/cjs/resources/V2/MoneyManagement/index.js +0 -39
  1082. package/cjs/resources/V2/MoneyManagement/index.js.map +0 -1
  1083. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  1084. package/cjs/resources/V2/Network/BusinessProfiles.js +0 -21
  1085. package/cjs/resources/V2/Network/BusinessProfiles.js.map +0 -1
  1086. package/cjs/resources/V2/Network/index.d.ts +0 -13
  1087. package/cjs/resources/V2/Network/index.js +0 -13
  1088. package/cjs/resources/V2/Network/index.js.map +0 -1
  1089. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  1090. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +0 -41
  1091. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  1092. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  1093. package/cjs/resources/V2/OrchestratedCommerce/index.js +0 -13
  1094. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  1095. package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  1096. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -23
  1097. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  1098. package/cjs/resources/V2/TestHelpers/index.d.ts +0 -8
  1099. package/cjs/resources/V2/TestHelpers/index.js +0 -13
  1100. package/cjs/resources/V2/TestHelpers/index.js.map +0 -1
  1101. package/esm/StripeEventNotificationHandler.d.ts +0 -19
  1102. package/esm/StripeEventNotificationHandler.js +0 -144
  1103. package/esm/StripeEventNotificationHandler.js.map +0 -1
  1104. package/esm/resources/AccountNotices.d.ts +0 -140
  1105. package/esm/resources/AccountNotices.js +0 -25
  1106. package/esm/resources/AccountNotices.js.map +0 -1
  1107. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  1108. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -11
  1109. package/esm/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  1110. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  1111. package/esm/resources/Billing/Analytics/MeterUsageRows.js +0 -3
  1112. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  1113. package/esm/resources/Billing/Analytics/index.d.ts +0 -15
  1114. package/esm/resources/Billing/Analytics/index.js +0 -9
  1115. package/esm/resources/Billing/Analytics/index.js.map +0 -1
  1116. package/esm/resources/Capital/FinancingOffers.d.ts +0 -191
  1117. package/esm/resources/Capital/FinancingOffers.js +0 -26
  1118. package/esm/resources/Capital/FinancingOffers.js.map +0 -1
  1119. package/esm/resources/Capital/FinancingSummary.d.ts +0 -98
  1120. package/esm/resources/Capital/FinancingSummary.js +0 -11
  1121. package/esm/resources/Capital/FinancingSummary.js.map +0 -1
  1122. package/esm/resources/Capital/FinancingTransactions.d.ts +0 -143
  1123. package/esm/resources/Capital/FinancingTransactions.js +0 -20
  1124. package/esm/resources/Capital/FinancingTransactions.js.map +0 -1
  1125. package/esm/resources/Capital/index.d.ts +0 -25
  1126. package/esm/resources/Capital/index.js +0 -13
  1127. package/esm/resources/Capital/index.js.map +0 -1
  1128. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  1129. package/esm/resources/FinancialConnections/AccountInferredBalances.js +0 -3
  1130. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  1131. package/esm/resources/FinancialConnections/Authorizations.d.ts +0 -87
  1132. package/esm/resources/FinancialConnections/Authorizations.js +0 -11
  1133. package/esm/resources/FinancialConnections/Authorizations.js.map +0 -1
  1134. package/esm/resources/FinancialConnections/Institutions.d.ts +0 -101
  1135. package/esm/resources/FinancialConnections/Institutions.js +0 -19
  1136. package/esm/resources/FinancialConnections/Institutions.js.map +0 -1
  1137. package/esm/resources/FxQuotes.d.ts +0 -212
  1138. package/esm/resources/FxQuotes.js +0 -25
  1139. package/esm/resources/FxQuotes.js.map +0 -1
  1140. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  1141. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -43
  1142. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  1143. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  1144. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -19
  1145. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  1146. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  1147. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -19
  1148. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  1149. package/esm/resources/Issuing/Settlements.d.ts +0 -85
  1150. package/esm/resources/Issuing/Settlements.js +0 -3
  1151. package/esm/resources/Issuing/Settlements.js.map +0 -1
  1152. package/esm/resources/Margins.d.ts +0 -115
  1153. package/esm/resources/Margins.js +0 -31
  1154. package/esm/resources/Margins.js.map +0 -1
  1155. package/esm/resources/Orders.d.ts +0 -4693
  1156. package/esm/resources/Orders.js +0 -453
  1157. package/esm/resources/Orders.js.map +0 -1
  1158. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  1159. package/esm/resources/Privacy/RedactionJobValidationErrors.js +0 -3
  1160. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  1161. package/esm/resources/Privacy/RedactionJobs.d.ts +0 -229
  1162. package/esm/resources/Privacy/RedactionJobs.js +0 -69
  1163. package/esm/resources/Privacy/RedactionJobs.js.map +0 -1
  1164. package/esm/resources/Privacy/index.d.ts +0 -22
  1165. package/esm/resources/Privacy/index.js +0 -9
  1166. package/esm/resources/Privacy/index.js.map +0 -1
  1167. package/esm/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  1168. package/esm/resources/ProductCatalog/TrialOffers.js +0 -11
  1169. package/esm/resources/ProductCatalog/TrialOffers.js.map +0 -1
  1170. package/esm/resources/ProductCatalog/index.d.ts +0 -12
  1171. package/esm/resources/ProductCatalog/index.js +0 -9
  1172. package/esm/resources/ProductCatalog/index.js.map +0 -1
  1173. package/esm/resources/QuoteLines.d.ts +0 -507
  1174. package/esm/resources/QuoteLines.js +0 -3
  1175. package/esm/resources/QuoteLines.js.map +0 -1
  1176. package/esm/resources/QuotePreviewInvoices.d.ts +0 -1120
  1177. package/esm/resources/QuotePreviewInvoices.js +0 -3
  1178. package/esm/resources/QuotePreviewInvoices.js.map +0 -1
  1179. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -737
  1180. package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
  1181. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  1182. package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -1095
  1183. package/esm/resources/SharedPayment/GrantedTokens.js +0 -11
  1184. package/esm/resources/SharedPayment/GrantedTokens.js.map +0 -1
  1185. package/esm/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  1186. package/esm/resources/SharedPayment/IssuedTokens.js +0 -23
  1187. package/esm/resources/SharedPayment/IssuedTokens.js.map +0 -1
  1188. package/esm/resources/SharedPayment/index.d.ts +0 -19
  1189. package/esm/resources/SharedPayment/index.js +0 -11
  1190. package/esm/resources/SharedPayment/index.js.map +0 -1
  1191. package/esm/resources/Tax/Forms.d.ts +0 -230
  1192. package/esm/resources/Tax/Forms.js +0 -28
  1193. package/esm/resources/Tax/Forms.js.map +0 -1
  1194. package/esm/resources/Tax/Locations.d.ts +0 -108
  1195. package/esm/resources/Tax/Locations.js +0 -29
  1196. package/esm/resources/Tax/Locations.js.map +0 -1
  1197. package/esm/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  1198. package/esm/resources/Terminal/ReaderCollectedData.js +0 -11
  1199. package/esm/resources/Terminal/ReaderCollectedData.js.map +0 -1
  1200. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  1201. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -17
  1202. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  1203. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  1204. package/esm/resources/TestHelpers/SharedPayment/index.js +0 -9
  1205. package/esm/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  1206. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  1207. package/esm/resources/V2/Billing/BillSettingVersions.js +0 -3
  1208. package/esm/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  1209. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  1210. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -19
  1211. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  1212. package/esm/resources/V2/Billing/BillSettings.d.ts +0 -284
  1213. package/esm/resources/V2/Billing/BillSettings.js +0 -37
  1214. package/esm/resources/V2/Billing/BillSettings.js.map +0 -1
  1215. package/esm/resources/V2/Billing/Cadences.d.ts +0 -951
  1216. package/esm/resources/V2/Billing/Cadences.js +0 -194
  1217. package/esm/resources/V2/Billing/Cadences.js.map +0 -1
  1218. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  1219. package/esm/resources/V2/Billing/CollectionSettingVersions.js +0 -3
  1220. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  1221. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  1222. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -66
  1223. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  1224. package/esm/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  1225. package/esm/resources/V2/Billing/CollectionSettings.js +0 -162
  1226. package/esm/resources/V2/Billing/CollectionSettings.js.map +0 -1
  1227. package/esm/resources/V2/Billing/Profiles.d.ts +0 -166
  1228. package/esm/resources/V2/Billing/Profiles.js +0 -31
  1229. package/esm/resources/V2/Billing/Profiles.js.map +0 -1
  1230. package/esm/resources/V2/Core/BatchJobs.d.ts +0 -373
  1231. package/esm/resources/V2/Core/BatchJobs.js +0 -221
  1232. package/esm/resources/V2/Core/BatchJobs.js.map +0 -1
  1233. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  1234. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -50
  1235. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  1236. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  1237. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -58
  1238. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  1239. package/esm/resources/V2/Core/Vault/index.d.ts +0 -28
  1240. package/esm/resources/V2/Core/Vault/index.js +0 -11
  1241. package/esm/resources/V2/Core/Vault/index.js.map +0 -1
  1242. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  1243. package/esm/resources/V2/Data/Reporting/QueryRuns.js +0 -42
  1244. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  1245. package/esm/resources/V2/Data/Reporting/index.d.ts +0 -13
  1246. package/esm/resources/V2/Data/Reporting/index.js +0 -9
  1247. package/esm/resources/V2/Data/Reporting/index.js.map +0 -1
  1248. package/esm/resources/V2/Data/index.d.ts +0 -10
  1249. package/esm/resources/V2/Data/index.js +0 -9
  1250. package/esm/resources/V2/Data/index.js.map +0 -1
  1251. package/esm/resources/V2/EventMisc.d.ts +0 -0
  1252. package/esm/resources/V2/EventMisc.js +0 -2
  1253. package/esm/resources/V2/EventMisc.js.map +0 -1
  1254. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  1255. package/esm/resources/V2/Extend/WorkflowRuns.js +0 -19
  1256. package/esm/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  1257. package/esm/resources/V2/Extend/Workflows.d.ts +0 -123
  1258. package/esm/resources/V2/Extend/Workflows.js +0 -26
  1259. package/esm/resources/V2/Extend/Workflows.js.map +0 -1
  1260. package/esm/resources/V2/Extend/index.d.ts +0 -20
  1261. package/esm/resources/V2/Extend/index.js +0 -11
  1262. package/esm/resources/V2/Extend/index.js.map +0 -1
  1263. package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  1264. package/esm/resources/V2/FinancialAddressCreditSimulations.js +0 -3
  1265. package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  1266. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  1267. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -3
  1268. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  1269. package/esm/resources/V2/Iam/ActivityLogs.d.ts +0 -214
  1270. package/esm/resources/V2/Iam/ActivityLogs.js +0 -19
  1271. package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
  1272. package/esm/resources/V2/Iam/index.d.ts +0 -13
  1273. package/esm/resources/V2/Iam/index.js +0 -9
  1274. package/esm/resources/V2/Iam/index.js.map +0 -1
  1275. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  1276. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -19
  1277. package/esm/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  1278. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  1279. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -40
  1280. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  1281. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  1282. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -27
  1283. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  1284. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  1285. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -26
  1286. package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  1287. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  1288. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -18
  1289. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  1290. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  1291. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -37
  1292. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  1293. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -300
  1294. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -45
  1295. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  1296. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  1297. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -35
  1298. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  1299. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  1300. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -40
  1301. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  1302. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  1303. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -13
  1304. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  1305. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -295
  1306. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -19
  1307. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  1308. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  1309. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -19
  1310. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  1311. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  1312. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -19
  1313. package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  1314. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  1315. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -19
  1316. package/esm/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  1317. package/esm/resources/V2/MoneyManagement/index.d.ts +0 -104
  1318. package/esm/resources/V2/MoneyManagement/index.js +0 -35
  1319. package/esm/resources/V2/MoneyManagement/index.js.map +0 -1
  1320. package/esm/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  1321. package/esm/resources/V2/Network/BusinessProfiles.js +0 -17
  1322. package/esm/resources/V2/Network/BusinessProfiles.js.map +0 -1
  1323. package/esm/resources/V2/Network/index.d.ts +0 -13
  1324. package/esm/resources/V2/Network/index.js +0 -9
  1325. package/esm/resources/V2/Network/index.js.map +0 -1
  1326. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  1327. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +0 -37
  1328. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  1329. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  1330. package/esm/resources/V2/OrchestratedCommerce/index.js +0 -9
  1331. package/esm/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  1332. package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  1333. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -19
  1334. package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  1335. package/esm/resources/V2/TestHelpers/index.d.ts +0 -8
  1336. package/esm/resources/V2/TestHelpers/index.js +0 -9
  1337. package/esm/resources/V2/TestHelpers/index.js.map +0 -1
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v2277
1
+ v2324
package/README.md CHANGED
@@ -40,26 +40,28 @@ value:
40
40
 
41
41
  <!-- prettier-ignore -->
42
42
  ```js
43
- const stripe = require('stripe')('sk_test_...');
43
+ import Stripe from 'stripe';
44
+ const stripeClient = new Stripe('sk_test_...');
44
45
 
45
- stripe.customers.create({
46
+ const customer = await stripeClient.customers.create({
46
47
  email: 'customer@example.com',
47
- })
48
- .then(customer => console.log(customer.id))
49
- .catch(error => console.error(error));
48
+ });
49
+
50
+ console.log(customer.id);
50
51
  ```
51
52
 
52
- Or using ES modules and `async`/`await`:
53
+ Or using CJS:
53
54
 
54
55
  ```js
55
- import Stripe from 'stripe';
56
- const stripe = new Stripe('sk_test_...');
56
+ const Stripe = require('stripe');
57
+ const stripeClient = Stripe('sk_test_...');
57
58
 
58
- const customer = await stripe.customers.create({
59
- email: 'customer@example.com',
60
- });
61
-
62
- console.log(customer.id);
59
+ stripeClient.customers
60
+ .create({
61
+ email: 'customer@example.com',
62
+ })
63
+ .then((customer) => console.log(customer.id))
64
+ .catch((error) => console.error(error));
63
65
  ```
64
66
 
65
67
  > [!WARNING]
@@ -70,7 +72,7 @@ console.log(customer.id);
70
72
  > import Stripe from 'stripe';
71
73
  >
72
74
  > let _stripe: Stripe | null = null;
73
- > const getStripe = (): Stripe => {
75
+ > const getStripeClient = (): Stripe => {
74
76
  > if (!_stripe) {
75
77
  > _stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string, {
76
78
  > // ...
@@ -79,7 +81,7 @@ console.log(customer.id);
79
81
  > return _stripe;
80
82
  > };
81
83
  >
82
- > const getCustomers = () => getStripe().customers.list();
84
+ > const getCustomers = () => getStripeClient().customers.list();
83
85
  > ```
84
86
  >
85
87
  > Alternatively, you can provide a placeholder for the real key (which will be enough to get the code through a build step):
@@ -87,7 +89,7 @@ console.log(customer.id);
87
89
  > ```ts
88
90
  > import Stripe from 'stripe';
89
91
  >
90
- > export const stripe = new Stripe(
92
+ > export const stripeClient = new Stripe(
91
93
  > process.env.STRIPE_SECRET_KEY || 'api_key_placeholder',
92
94
  > {
93
95
  > // ...
@@ -104,14 +106,14 @@ and instantiate it as `new Stripe()` with the latest API version.
104
106
 
105
107
  ```ts
106
108
  import Stripe from 'stripe';
107
- const stripe = new Stripe('sk_test_...');
109
+ const stripeClient = new Stripe('sk_test_...');
108
110
 
109
111
  const createCustomer = async () => {
110
112
  const params: Stripe.CustomerCreateParams = {
111
113
  description: 'test customer',
112
114
  };
113
115
 
114
- const customer: Stripe.Customer = await stripe.customers.create(params);
116
+ const customer: Stripe.Customer = await stripeClient.customers.create(params);
115
117
 
116
118
  console.log(customer.id);
117
119
  };
@@ -141,7 +143,7 @@ We also recommend using `// @ts-ignore` if you have access to a beta feature and
141
143
  so you must cast them appropriately, e.g.,
142
144
 
143
145
  ```ts
144
- const paymentIntent: Stripe.PaymentIntent = await stripe.paymentIntents.retrieve(
146
+ const paymentIntent: Stripe.PaymentIntent = await stripeClient.paymentIntents.retrieve(
145
147
  'pi_123456789',
146
148
  {
147
149
  expand: ['customer'],
@@ -170,7 +172,7 @@ callback:
170
172
 
171
173
  ```js
172
174
  // Create a new customer and then create an invoice item then invoice it:
173
- stripe.customers
175
+ stripeClient.customers
174
176
  .create({
175
177
  email: 'customer@example.com',
176
178
  })
@@ -248,7 +250,7 @@ const stripe = Stripe('sk_test_...', {
248
250
  Timeout can be set globally via the config object:
249
251
 
250
252
  ```js
251
- const stripe = Stripe('sk_test_...', {
253
+ const stripeClient = Stripe('sk_test_...', {
252
254
  timeout: 20 * 1000, // 20 seconds
253
255
  });
254
256
  ```
@@ -256,7 +258,7 @@ const stripe = Stripe('sk_test_...', {
256
258
  And overridden on a per-request basis:
257
259
 
258
260
  ```js
259
- stripe.customers.create(
261
+ stripeClient.customers.create(
260
262
  {
261
263
  email: 'customer@example.com',
262
264
  },
@@ -273,7 +275,7 @@ can be added to any method:
273
275
 
274
276
  ```js
275
277
  // List the balance transactions for a connected account:
276
- stripe.balanceTransactions.list(
278
+ stripeClient.balanceTransactions.list(
277
279
  {
278
280
  limit: 10,
279
281
  },
@@ -302,13 +304,13 @@ if (process.env.http_proxy) {
302
304
  As of [v13](https://github.com/stripe/stripe-node/releases/tag/v13.0.0) stripe-node will automatically do one reattempt for failed requests that are safe to retry. Automatic network retries can be disabled by setting the `maxNetworkRetries` config option to `0`. You can also set a higher number to reattempt multiple times, with exponential backoff. [Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication.
303
305
 
304
306
  ```js
305
- const stripe = Stripe('sk_test_...', {
307
+ const stripeClient = Stripe('sk_test_...', {
306
308
  maxNetworkRetries: 0, // Disable retries
307
309
  });
308
310
  ```
309
311
 
310
312
  ```js
311
- const stripe = Stripe('sk_test_...', {
313
+ const stripeClient = Stripe('sk_test_...', {
312
314
  maxNetworkRetries: 2, // Retry a request twice before giving up
313
315
  });
314
316
  ```
@@ -316,7 +318,7 @@ const stripe = Stripe('sk_test_...', {
316
318
  Network retries can also be set on a per-request basis:
317
319
 
318
320
  ```js
319
- stripe.customers.create(
321
+ stripeClient.customers.create(
320
322
  {
321
323
  email: 'customer@example.com',
322
324
  },
@@ -341,17 +343,18 @@ customer.lastResponse.statusCode;
341
343
  The Stripe object emits `request` and `response` events. You can use them like this:
342
344
 
343
345
  ```js
344
- const stripe = require('stripe')('sk_test_...');
346
+ const Stripe = require('stripe');
347
+ const stripeClient = Stripe('sk_test_...');
345
348
 
346
349
  const onRequest = (request) => {
347
350
  // Do something.
348
351
  };
349
352
 
350
353
  // Add the event handler function:
351
- stripe.on('request', onRequest);
354
+ stripeClient.on('request', onRequest);
352
355
 
353
356
  // Remove the event handler function:
354
- stripe.off('request', onRequest);
357
+ stripeClient.off('request', onRequest);
355
358
  ```
356
359
 
357
360
  #### `request` object
@@ -395,7 +398,7 @@ Please note that you must pass the _raw_ request body, exactly as received from
395
398
  You can find an example of how to use this with various JavaScript frameworks in [`examples/webhook-signing`](examples/webhook-signing) folder, but here's what it looks like:
396
399
 
397
400
  ```js
398
- const event = stripe.webhooks.constructEvent(
401
+ const event = stripeClient.webhooks.constructEvent(
399
402
  webhookRawBody,
400
403
  webhookStripeSignatureHeader,
401
404
  webhookSecret
@@ -404,7 +407,7 @@ const event = stripe.webhooks.constructEvent(
404
407
 
405
408
  #### Testing Webhook signing
406
409
 
407
- You can use `stripe.webhooks.generateTestHeaderString` to mock webhook events that come from Stripe:
410
+ You can use `stripeClient.webhooks.generateTestHeaderString` to mock webhook events that come from Stripe:
408
411
 
409
412
  ```js
410
413
  const payload = {
@@ -415,12 +418,16 @@ const payload = {
415
418
  const payloadString = JSON.stringify(payload, null, 2);
416
419
  const secret = 'whsec_test_secret';
417
420
 
418
- const header = stripe.webhooks.generateTestHeaderString({
421
+ const header = stripeClient.webhooks.generateTestHeaderString({
419
422
  payload: payloadString,
420
423
  secret,
421
424
  });
422
425
 
423
- const event = stripe.webhooks.constructEvent(payloadString, header, secret);
426
+ const event = stripeClient.webhooks.constructEvent(
427
+ payloadString,
428
+ header,
429
+ secret
430
+ );
424
431
 
425
432
  // Do something with mocked signed event
426
433
  expect(event.id).to.equal(payload.id);
@@ -436,8 +443,11 @@ See [undocumented params and properties](https://docs.stripe.com/sdks/server-sid
436
443
 
437
444
  If you're writing a plugin that uses the library, we'd appreciate it if you instantiated your stripe client with `appInfo`, eg;
438
445
 
446
+ With ES modules or TypeScript:
447
+
439
448
  ```js
440
- const stripe = require('stripe')('sk_test_...', {
449
+ import Stripe from 'stripe';
450
+ const stripeClient = new Stripe(apiKey, {
441
451
  appInfo: {
442
452
  name: 'MyAwesomePlugin',
443
453
  version: '1.2.34', // Optional
@@ -446,10 +456,11 @@ const stripe = require('stripe')('sk_test_...', {
446
456
  });
447
457
  ```
448
458
 
449
- Or using ES modules or TypeScript:
459
+ Or using CJS:
450
460
 
451
461
  ```js
452
- const stripe = new Stripe(apiKey, {
462
+ const Stripe = require('stripe');
463
+ const stripeClient = Stripe('sk_test_...', {
453
464
  appInfo: {
454
465
  name: 'MyAwesomePlugin',
455
466
  version: '1.2.34', // Optional
@@ -471,7 +482,7 @@ such as Node 10+ or [babel](https://babeljs.io/docs/en/babel-plugin-transform-as
471
482
  the following will auto-paginate:
472
483
 
473
484
  ```js
474
- for await (const customer of stripe.customers.list()) {
485
+ for await (const customer of stripeClient.customers.list()) {
475
486
  doSomething(customer);
476
487
  if (shouldStop()) {
477
488
  break;
@@ -485,7 +496,7 @@ If you are in a Node environment that has support for `await`, such as Node 7.9
485
496
  you may pass an async function to `.autoPagingEach`:
486
497
 
487
498
  ```js
488
- await stripe.customers.list().autoPagingEach(async (customer) => {
499
+ await stripeClient.customers.list().autoPagingEach(async (customer) => {
489
500
  await doSomething(customer);
490
501
  if (shouldBreak()) {
491
502
  return false;
@@ -497,7 +508,7 @@ console.log('Done iterating.');
497
508
  Equivalently, without `await`, you may return a Promise, which can resolve to `false` to break:
498
509
 
499
510
  ```js
500
- stripe.customers
511
+ stripeClient.customers
501
512
  .list()
502
513
  .autoPagingEach((customer) => {
503
514
  return doSomething(customer).then(() => {
@@ -522,7 +533,7 @@ to prevent runaway list growth from consuming too much memory. Once the
522
533
  Returns a promise of an array of all items across pages for a list request.
523
534
 
524
535
  ```js
525
- const allNewCustomers = await stripe.customers
536
+ const allNewCustomers = await stripeClient.customers
526
537
  .list({created: {gt: lastMonth}, limit: 100}) // 100 items per page
527
538
  .autoPagingToArray({limit: 10000}); // Stop after 10000 items total
528
539
  ```
@@ -537,7 +548,7 @@ improve popular features.
537
548
  You can disable this behavior if you prefer:
538
549
 
539
550
  ```js
540
- const stripe = new Stripe('sk_test_...', {
551
+ const stripeClient = new Stripe('sk_test_...', {
541
552
  telemetry: false,
542
553
  });
543
554
  ```
@@ -567,14 +578,14 @@ npm install stripe@<some-version>
567
578
  Some preview features require a name and version to be set in the `Stripe-Version` header like `feature_beta=v3`. If your preview feature has this requirement, use the `apiVersion` property of `config` object to set it:
568
579
 
569
580
  ```js
570
- const stripe = new Stripe('sk_test_...', {
581
+ const stripeClient = new Stripe('sk_test_...', {
571
582
  apiVersion: '2022-08-01; feature_beta=v3',
572
583
  });
573
584
  ```
574
585
 
575
586
  ### Private Preview SDKs
576
587
 
577
- Stripe has features in the [private preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-alpha.X` suffix like `18.6.0-alpha.1`. These are invite-only features. Once invited, you can install the private preview SDKs by following the same instructions as for the [public preview SDKs](https://github.com/stripe/stripe-node?tab=readme-ov-file#public-preview-sdks) above and replacing the term `public-preview` with `private-preview`:
588
+ Stripe has features in the [private preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-alpha.X` suffix like `18.6.0-alpha.1`. You can install the private preview SDKs by following the same instructions as for the [public preview SDKs](#public-preview-sdks) above and replacing the term `public-preview` with `private-preview`. Note that access to specific private preview API features may require separate approval:
578
589
 
579
590
  ```
580
591
  npm install stripe@private-preview --save-exact
@@ -586,21 +597,7 @@ npm install stripe@private-preview --save-exact
586
597
 
587
598
  If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
588
599
 
589
- ```javascript
590
- import Stripe from 'stripe';
591
- const client = new Stripe('sk_test_...');
592
-
593
- client.rawRequest(
594
- 'POST',
595
- '/v1/beta_endpoint',
596
- { param: 123 },
597
- { apiVersion: '2022-11-15; feature_beta=v3' }
598
- )
599
- .then((response) => /* handle response */ )
600
- .catch((error) => console.error(error));
601
- ```
602
-
603
- Or using ES modules and `async`/`await`:
600
+ Using ES modules and `async`/`await`:
604
601
 
605
602
  ```javascript
606
603
  import Stripe from 'stripe';
@@ -616,6 +613,21 @@ const response = await stripe.rawRequest(
616
613
  // handle response
617
614
  ```
618
615
 
616
+ Or using CJS and promises:
617
+
618
+ ```javascript
619
+ const stripeClient = new Stripe('sk_test_...');
620
+
621
+ stripeClient.rawRequest(
622
+ 'POST',
623
+ '/v1/beta_endpoint',
624
+ { param: 123 },
625
+ { apiVersion: '2022-11-15; feature_beta=v3' }
626
+ )
627
+ .then((response) => /* handle response */ )
628
+ .catch((error) => console.error(error));
629
+ ```
630
+
619
631
  ## Support
620
632
 
621
633
  New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
@@ -629,6 +641,9 @@ New features and bug fixes are released on the latest major version of the `stri
629
641
 
630
642
  ## Development
631
643
 
644
+ > [!WARNING]
645
+ > External contributions to this repo from first-time contributors are currently on hiatus. If you'd like to see a change made to the package, please open an issue.(
646
+
632
647
  [Contribution guidelines for this project](CONTRIBUTING.md)
633
648
 
634
649
  The tests depend on [stripe-mock][stripe-mock], so make sure to fetch and
package/VERSION CHANGED
@@ -1 +1 @@
1
- 22.3.0-beta.1
1
+ 22.3.0
package/cjs/Error.d.ts CHANGED
@@ -155,59 +155,9 @@ export declare class StripeUnsupportedGrantTypeError extends StripeOAuthError {
155
155
  export declare class StripeUnsupportedResponseTypeError extends StripeOAuthError {
156
156
  constructor(raw?: StripeRawError);
157
157
  }
158
- export declare class AlreadyCanceledError extends StripeError {
159
- constructor(rawStripeError?: StripeRawError);
160
- }
161
- export declare class AlreadyExistsError extends StripeError {
162
- constructor(rawStripeError?: StripeRawError);
163
- }
164
- export declare class BlockedByStripeError extends StripeError {
165
- constructor(rawStripeError?: StripeRawError);
166
- }
167
- export declare class CannotProceedError extends StripeError {
168
- reason: string;
169
- constructor(rawStripeError: StripeRawError);
170
- }
171
- export declare class ControlledByAlternateResourceError extends StripeError {
172
- constructor(rawStripeError?: StripeRawError);
173
- }
174
- export declare class ControlledByDashboardError extends StripeError {
175
- constructor(rawStripeError?: StripeRawError);
176
- }
177
- export declare class FeatureNotEnabledError extends StripeError {
178
- constructor(rawStripeError?: StripeRawError);
179
- }
180
- export declare class FinancialAccountNotOpenError extends StripeError {
181
- constructor(rawStripeError?: StripeRawError);
182
- }
183
- export declare class InsufficientFundsError extends StripeError {
184
- constructor(rawStripeError?: StripeRawError);
185
- }
186
- export declare class InvalidPaymentMethodError extends StripeError {
187
- invalid_param: InvalidPaymentMethodError.InvalidParam;
188
- constructor(rawStripeError: StripeRawError);
189
- }
190
- export declare namespace InvalidPaymentMethodError {
191
- type InvalidParam = 'account_number' | 'currency' | 'fedwire_routing_number' | 'routing_number';
192
- }
193
- export declare class InvalidPayoutMethodError extends StripeError {
194
- constructor(rawStripeError?: StripeRawError);
195
- }
196
- export declare class NonZeroBalanceError extends StripeError {
197
- constructor(rawStripeError?: StripeRawError);
198
- }
199
- export declare class NotCancelableError extends StripeError {
200
- constructor(rawStripeError?: StripeRawError);
201
- }
202
- export declare class QuotaExceededError extends StripeError {
203
- constructor(rawStripeError?: StripeRawError);
204
- }
205
158
  export declare class RateLimitError extends StripeError {
206
159
  constructor(rawStripeError?: StripeRawError);
207
160
  }
208
- export declare class RecipientNotNotifiableError extends StripeError {
209
- constructor(rawStripeError?: StripeRawError);
210
- }
211
161
  export declare class TemporarySessionExpiredError extends StripeError {
212
162
  constructor(rawStripeError?: StripeRawError);
213
163
  }
package/cjs/Error.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable camelcase */
3
3
  /* eslint-disable no-warning-comments */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.TemporarySessionExpiredError = exports.RecipientNotNotifiableError = exports.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;
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
6
  const generateV1Error = (rawStripeError) => {
7
7
  const statusCode = rawStripeError.statusCode;
8
8
  if (statusCode === 429 ||
@@ -52,38 +52,8 @@ const generateV2Error = (rawStripeError) => {
52
52
  case 'idempotency_error':
53
53
  return new StripeIdempotencyError(rawStripeError);
54
54
  // switchCases: The beginning of the section generated from our OpenAPI spec
55
- case 'already_canceled':
56
- return new AlreadyCanceledError(rawStripeError);
57
- case 'already_exists':
58
- return new AlreadyExistsError(rawStripeError);
59
- case 'blocked_by_stripe':
60
- return new BlockedByStripeError(rawStripeError);
61
- case 'cannot_proceed':
62
- return new CannotProceedError(rawStripeError);
63
- case 'controlled_by_alternate_resource':
64
- return new ControlledByAlternateResourceError(rawStripeError);
65
- case 'controlled_by_dashboard':
66
- return new ControlledByDashboardError(rawStripeError);
67
- case 'feature_not_enabled':
68
- return new FeatureNotEnabledError(rawStripeError);
69
- case 'financial_account_not_open':
70
- return new FinancialAccountNotOpenError(rawStripeError);
71
- case 'insufficient_funds':
72
- return new InsufficientFundsError(rawStripeError);
73
- case 'invalid_payment_method':
74
- return new InvalidPaymentMethodError(rawStripeError);
75
- case 'invalid_payout_method':
76
- return new InvalidPayoutMethodError(rawStripeError);
77
- case 'non_zero_balance':
78
- return new NonZeroBalanceError(rawStripeError);
79
- case 'not_cancelable':
80
- return new NotCancelableError(rawStripeError);
81
- case 'quota_exceeded':
82
- return new QuotaExceededError(rawStripeError);
83
55
  case 'rate_limit':
84
56
  return new RateLimitError(rawStripeError);
85
- case 'recipient_not_notifiable':
86
- return new RecipientNotNotifiableError(rawStripeError);
87
57
  case 'temporary_session_expired':
88
58
  return new TemporarySessionExpiredError(rawStripeError);
89
59
  // switchCases: The end of the section generated from our OpenAPI spec
@@ -300,106 +270,12 @@ class StripeUnsupportedResponseTypeError extends StripeOAuthError {
300
270
  }
301
271
  exports.StripeUnsupportedResponseTypeError = StripeUnsupportedResponseTypeError;
302
272
  // classDefinitions: The beginning of the section generated from our OpenAPI spec
303
- class AlreadyCanceledError extends StripeError {
304
- constructor(rawStripeError = {}) {
305
- super(rawStripeError, 'AlreadyCanceledError');
306
- }
307
- }
308
- exports.AlreadyCanceledError = AlreadyCanceledError;
309
- class AlreadyExistsError extends StripeError {
310
- constructor(rawStripeError = {}) {
311
- super(rawStripeError, 'AlreadyExistsError');
312
- }
313
- }
314
- exports.AlreadyExistsError = AlreadyExistsError;
315
- class BlockedByStripeError extends StripeError {
316
- constructor(rawStripeError = {}) {
317
- super(rawStripeError, 'BlockedByStripeError');
318
- }
319
- }
320
- exports.BlockedByStripeError = BlockedByStripeError;
321
- class CannotProceedError extends StripeError {
322
- constructor(rawStripeError) {
323
- super(rawStripeError, 'CannotProceedError');
324
- // @ts-ignore
325
- this.reason = this.raw.reason;
326
- }
327
- }
328
- exports.CannotProceedError = CannotProceedError;
329
- class ControlledByAlternateResourceError extends StripeError {
330
- constructor(rawStripeError = {}) {
331
- super(rawStripeError, 'ControlledByAlternateResourceError');
332
- }
333
- }
334
- exports.ControlledByAlternateResourceError = ControlledByAlternateResourceError;
335
- class ControlledByDashboardError extends StripeError {
336
- constructor(rawStripeError = {}) {
337
- super(rawStripeError, 'ControlledByDashboardError');
338
- }
339
- }
340
- exports.ControlledByDashboardError = ControlledByDashboardError;
341
- class FeatureNotEnabledError extends StripeError {
342
- constructor(rawStripeError = {}) {
343
- super(rawStripeError, 'FeatureNotEnabledError');
344
- }
345
- }
346
- exports.FeatureNotEnabledError = FeatureNotEnabledError;
347
- class FinancialAccountNotOpenError extends StripeError {
348
- constructor(rawStripeError = {}) {
349
- super(rawStripeError, 'FinancialAccountNotOpenError');
350
- }
351
- }
352
- exports.FinancialAccountNotOpenError = FinancialAccountNotOpenError;
353
- class InsufficientFundsError extends StripeError {
354
- constructor(rawStripeError = {}) {
355
- super(rawStripeError, 'InsufficientFundsError');
356
- }
357
- }
358
- exports.InsufficientFundsError = InsufficientFundsError;
359
- class InvalidPaymentMethodError extends StripeError {
360
- constructor(rawStripeError) {
361
- super(rawStripeError, 'InvalidPaymentMethodError');
362
- // @ts-ignore
363
- this.invalid_param = this.raw.invalid_param;
364
- }
365
- }
366
- exports.InvalidPaymentMethodError = InvalidPaymentMethodError;
367
- class InvalidPayoutMethodError extends StripeError {
368
- constructor(rawStripeError = {}) {
369
- super(rawStripeError, 'InvalidPayoutMethodError');
370
- }
371
- }
372
- exports.InvalidPayoutMethodError = InvalidPayoutMethodError;
373
- class NonZeroBalanceError extends StripeError {
374
- constructor(rawStripeError = {}) {
375
- super(rawStripeError, 'NonZeroBalanceError');
376
- }
377
- }
378
- exports.NonZeroBalanceError = NonZeroBalanceError;
379
- class NotCancelableError extends StripeError {
380
- constructor(rawStripeError = {}) {
381
- super(rawStripeError, 'NotCancelableError');
382
- }
383
- }
384
- exports.NotCancelableError = NotCancelableError;
385
- class QuotaExceededError extends StripeError {
386
- constructor(rawStripeError = {}) {
387
- super(rawStripeError, 'QuotaExceededError');
388
- }
389
- }
390
- exports.QuotaExceededError = QuotaExceededError;
391
273
  class RateLimitError extends StripeError {
392
274
  constructor(rawStripeError = {}) {
393
275
  super(rawStripeError, 'RateLimitError');
394
276
  }
395
277
  }
396
278
  exports.RateLimitError = RateLimitError;
397
- class RecipientNotNotifiableError extends StripeError {
398
- constructor(rawStripeError = {}) {
399
- super(rawStripeError, 'RecipientNotNotifiableError');
400
- }
401
- }
402
- exports.RecipientNotNotifiableError = RecipientNotNotifiableError;
403
279
  class TemporarySessionExpiredError extends StripeError {
404
280
  constructor(rawStripeError = {}) {
405
281
  super(rawStripeError, 'TemporarySessionExpiredError');
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,CAA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eaders): 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, retryAfter?: 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, }: {
@@ -44,6 +44,12 @@ class RequestSender {
44
44
  _getRequestId(headers) {
45
45
  return headers['request-id'];
46
46
  }
47
+ _emitStripeNotice(headers) {
48
+ const notice = headers['stripe-notice'];
49
+ if (notice) {
50
+ this._stripe._platformFunctions.emitWarning(typeof notice === 'string' ? notice : notice[0]);
51
+ }
52
+ }
47
53
  /**
48
54
  * Used by methods with spec.streaming === true. For these methods, we do not
49
55
  * buffer successful responses into memory or do parse them into stripe
@@ -57,6 +63,7 @@ class RequestSender {
57
63
  _streamingResponseHandler(requestEvent, usage, callback) {
58
64
  return (res) => {
59
65
  const headers = res.getHeaders();
66
+ this._emitStripeNotice(headers);
60
67
  const streamCompleteCallback = () => {
61
68
  const responseEvent = this._makeResponseEvent(requestEvent, res.getStatusCode(), headers);
62
69
  this._stripe._emitter.emit('response', responseEvent);
@@ -78,6 +85,7 @@ class RequestSender {
78
85
  _jsonResponseHandler(requestEvent, apiMode, usage, callback) {
79
86
  return (res) => {
80
87
  const headers = res.getHeaders();
88
+ this._emitStripeNotice(headers);
81
89
  const requestId = this._getRequestId(headers);
82
90
  const statusCode = res.getStatusCode();
83
91
  const responseEvent = this._makeResponseEvent(requestEvent, statusCode, headers);
@@ -180,7 +188,7 @@ class RequestSender {
180
188
  }
181
189
  return false;
182
190
  }
183
- _getSleepTimeInMS(numRetries, retryAfter = null) {
191
+ _getSleepTimeInMS(numRetries, retryAfter) {
184
192
  const initialNetworkRetryDelay = this._stripe.getInitialNetworkRetryDelay();
185
193
  const maxNetworkRetryDelay = this._stripe.getMaxNetworkRetryDelay();
186
194
  // Apply exponential backoff with initialNetworkRetryDelay on the
@@ -409,7 +417,7 @@ class RequestSender {
409
417
  })
410
418
  .catch((error) => {
411
419
  if (RequestSender._shouldRetry(null, requestRetries, maxRetries, error)) {
412
- return retryRequest(makeRequest, apiVersion, headers, requestRetries, null);
420
+ return retryRequest(makeRequest, apiVersion, headers, requestRetries);
413
421
  }
414
422
  else {
415
423
  const isTimeoutError = error.code && error.code === HttpClient_js_1.HttpClient.TIMEOUT_ERROR_CODE;