stripe 22.2.0-beta.3 → 22.2.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 (868) hide show
  1. package/CHANGELOG.md +84 -1730
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +65 -57
  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 +1 -0
  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/lib.d.ts +48 -3
  17. package/cjs/net/FetchHttpClient.js.map +1 -1
  18. package/cjs/net/HttpClient.js.map +1 -1
  19. package/cjs/platform/NodePlatformFunctions.d.ts +6 -0
  20. package/cjs/platform/NodePlatformFunctions.js +17 -0
  21. package/cjs/platform/NodePlatformFunctions.js.map +1 -1
  22. package/cjs/platform/PlatformFunctions.d.ts +13 -0
  23. package/cjs/platform/PlatformFunctions.js +21 -0
  24. package/cjs/platform/PlatformFunctions.js.map +1 -1
  25. package/cjs/resources/AccountLinks.d.ts +1 -1
  26. package/cjs/resources/AccountSessions.d.ts +0 -262
  27. package/cjs/resources/AccountSessions.js.map +1 -1
  28. package/cjs/resources/Accounts.d.ts +45 -819
  29. package/cjs/resources/Accounts.js +0 -15
  30. package/cjs/resources/Accounts.js.map +1 -1
  31. package/cjs/resources/Apps/index.d.ts +4 -4
  32. package/cjs/resources/Balance.d.ts +0 -67
  33. package/cjs/resources/BalanceSettings.d.ts +86 -0
  34. package/cjs/resources/BankAccounts.d.ts +2 -2
  35. package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
  36. package/cjs/resources/Billing/index.d.ts +24 -27
  37. package/cjs/resources/Billing/index.js +0 -2
  38. package/cjs/resources/Billing/index.js.map +1 -1
  39. package/cjs/resources/BillingPortal/index.d.ts +5 -5
  40. package/cjs/resources/Capabilities.d.ts +2 -2
  41. package/cjs/resources/Cards.d.ts +0 -4
  42. package/cjs/resources/Charges.d.ts +92 -3064
  43. package/cjs/resources/Checkout/Sessions.d.ts +51 -414
  44. package/cjs/resources/Checkout/index.d.ts +6 -6
  45. package/cjs/resources/Climate/index.d.ts +9 -9
  46. package/cjs/resources/ConfirmationTokens.d.ts +7 -67
  47. package/cjs/resources/Coupons.d.ts +0 -47
  48. package/cjs/resources/CreditNoteLineItems.d.ts +1 -15
  49. package/cjs/resources/CreditNotes.d.ts +1 -7
  50. package/cjs/resources/CreditNotes.js +0 -14
  51. package/cjs/resources/CreditNotes.js.map +1 -1
  52. package/cjs/resources/CustomerSessions.d.ts +0 -68
  53. package/cjs/resources/Customers.d.ts +1 -7
  54. package/cjs/resources/Customers.js +0 -15
  55. package/cjs/resources/Customers.js.map +1 -1
  56. package/cjs/resources/Discounts.d.ts +4 -4
  57. package/cjs/resources/Disputes.d.ts +0 -29
  58. package/cjs/resources/Entitlements/index.d.ts +6 -6
  59. package/cjs/resources/Events.d.ts +2 -547
  60. package/cjs/resources/ExternalAccounts.d.ts +1 -212
  61. package/cjs/resources/ExternalAccounts.js +0 -44
  62. package/cjs/resources/ExternalAccounts.js.map +1 -1
  63. package/cjs/resources/FinancialConnections/Accounts.d.ts +4 -74
  64. package/cjs/resources/FinancialConnections/Accounts.js +0 -8
  65. package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
  66. package/cjs/resources/FinancialConnections/Sessions.d.ts +7 -155
  67. package/cjs/resources/FinancialConnections/index.d.ts +13 -28
  68. package/cjs/resources/FinancialConnections/index.js +0 -4
  69. package/cjs/resources/FinancialConnections/index.js.map +1 -1
  70. package/cjs/resources/Forwarding/index.d.ts +3 -3
  71. package/cjs/resources/Identity/index.d.ts +8 -8
  72. package/cjs/resources/InvoiceItems.d.ts +28 -85
  73. package/cjs/resources/InvoiceItems.js.map +1 -1
  74. package/cjs/resources/InvoiceLineItems.d.ts +2 -40
  75. package/cjs/resources/Invoices.d.ts +26 -1348
  76. package/cjs/resources/Invoices.js +0 -70
  77. package/cjs/resources/Invoices.js.map +1 -1
  78. package/cjs/resources/Issuing/Cardholders.d.ts +1 -2
  79. package/cjs/resources/Issuing/Disputes.d.ts +1 -1
  80. package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +1 -1
  81. package/cjs/resources/Issuing/Transactions.d.ts +0 -9
  82. package/cjs/resources/Issuing/Transactions.js.map +1 -1
  83. package/cjs/resources/Issuing/index.d.ts +35 -60
  84. package/cjs/resources/Issuing/index.js +0 -6
  85. package/cjs/resources/Issuing/index.js.map +1 -1
  86. package/cjs/resources/LineItems.d.ts +2 -29
  87. package/cjs/resources/Mandates.d.ts +4 -33
  88. package/cjs/resources/Mandates.js +0 -8
  89. package/cjs/resources/Mandates.js.map +1 -1
  90. package/cjs/resources/OAuth.d.ts +7 -8
  91. package/cjs/resources/PaymentAttemptRecords.d.ts +23 -92
  92. package/cjs/resources/PaymentIntents.d.ts +6510 -17236
  93. package/cjs/resources/PaymentIntents.js +3 -28
  94. package/cjs/resources/PaymentIntents.js.map +1 -1
  95. package/cjs/resources/PaymentLinks.d.ts +88 -20
  96. package/cjs/resources/PaymentMethodConfigurations.d.ts +93 -299
  97. package/cjs/resources/PaymentMethods.d.ts +22 -152
  98. package/cjs/resources/PaymentMethods.js.map +1 -1
  99. package/cjs/resources/PaymentRecords.d.ts +23 -92
  100. package/cjs/resources/Payouts.d.ts +1 -1
  101. package/cjs/resources/Persons.d.ts +2 -2
  102. package/cjs/resources/Plans.d.ts +0 -16
  103. package/cjs/resources/Prices.d.ts +0 -52
  104. package/cjs/resources/Products.d.ts +0 -42
  105. package/cjs/resources/PromotionCodes.d.ts +0 -12
  106. package/cjs/resources/PromotionCodes.js +0 -28
  107. package/cjs/resources/PromotionCodes.js.map +1 -1
  108. package/cjs/resources/Quotes.d.ts +160 -2369
  109. package/cjs/resources/Quotes.js +13 -1181
  110. package/cjs/resources/Quotes.js.map +1 -1
  111. package/cjs/resources/Radar/PaymentEvaluations.d.ts +2 -2
  112. package/cjs/resources/Radar/index.d.ts +12 -12
  113. package/cjs/resources/Refunds.d.ts +3 -11
  114. package/cjs/resources/Reporting/index.d.ts +5 -5
  115. package/cjs/resources/Reserve/Holds.d.ts +1 -53
  116. package/cjs/resources/Reserve/Holds.js +0 -19
  117. package/cjs/resources/Reserve/Holds.js.map +1 -1
  118. package/cjs/resources/Reserve/Plans.d.ts +0 -16
  119. package/cjs/resources/Reserve/Plans.js +0 -11
  120. package/cjs/resources/Reserve/Plans.js.map +1 -1
  121. package/cjs/resources/Reserve/Releases.d.ts +1 -41
  122. package/cjs/resources/Reserve/Releases.js +0 -19
  123. package/cjs/resources/Reserve/Releases.js.map +1 -1
  124. package/cjs/resources/Reserve/index.d.ts +3 -14
  125. package/cjs/resources/Reserve/index.js +2 -10
  126. package/cjs/resources/Reserve/index.js.map +1 -1
  127. package/cjs/resources/SetupAttempts.d.ts +3 -25
  128. package/cjs/resources/SetupIntents.d.ts +77 -336
  129. package/cjs/resources/Sigma/index.d.ts +2 -2
  130. package/cjs/resources/Sources.d.ts +1 -16
  131. package/cjs/resources/SubscriptionItems.d.ts +4 -165
  132. package/cjs/resources/SubscriptionSchedules.d.ts +16 -1174
  133. package/cjs/resources/SubscriptionSchedules.js +0 -48
  134. package/cjs/resources/SubscriptionSchedules.js.map +1 -1
  135. package/cjs/resources/Subscriptions.d.ts +32 -490
  136. package/cjs/resources/Subscriptions.js +2 -31
  137. package/cjs/resources/Subscriptions.js.map +1 -1
  138. package/cjs/resources/Tax/CalculationLineItems.d.ts +2 -6
  139. package/cjs/resources/Tax/Calculations.d.ts +3 -7
  140. package/cjs/resources/Tax/Registrations.d.ts +2 -138
  141. package/cjs/resources/Tax/Transactions.d.ts +2 -2
  142. package/cjs/resources/Tax/index.d.ts +17 -31
  143. package/cjs/resources/Tax/index.js +0 -4
  144. package/cjs/resources/Tax/index.js.map +1 -1
  145. package/cjs/resources/TaxCodes.d.ts +0 -15
  146. package/cjs/resources/Terminal/Configurations.d.ts +108 -27
  147. package/cjs/resources/Terminal/Readers.d.ts +143 -19
  148. package/cjs/resources/Terminal/Readers.js.map +1 -1
  149. package/cjs/resources/Terminal/index.d.ts +25 -30
  150. package/cjs/resources/Terminal/index.js +0 -2
  151. package/cjs/resources/Terminal/index.js.map +1 -1
  152. package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +14 -79
  153. package/cjs/resources/TestHelpers/TestClocks.d.ts +4 -0
  154. package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  155. package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  156. package/cjs/resources/TestHelpers/index.d.ts +5 -8
  157. package/cjs/resources/TestHelpers/index.js +4 -6
  158. package/cjs/resources/TestHelpers/index.js.map +1 -1
  159. package/cjs/resources/Transfers.d.ts +0 -8
  160. package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +0 -5
  161. package/cjs/resources/Treasury/FinancialAccounts.d.ts +1 -34
  162. package/cjs/resources/Treasury/OutboundPayments.d.ts +0 -8
  163. package/cjs/resources/Treasury/OutboundTransfers.d.ts +0 -44
  164. package/cjs/resources/Treasury/ReceivedCredits.d.ts +0 -22
  165. package/cjs/resources/Treasury/ReceivedDebits.d.ts +0 -26
  166. package/cjs/resources/Treasury/index.d.ts +33 -33
  167. package/cjs/resources/V2/Billing/index.d.ts +6 -45
  168. package/cjs/resources/V2/Billing/index.js +0 -8
  169. package/cjs/resources/V2/Billing/index.js.map +1 -1
  170. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  171. package/cjs/resources/V2/Core/AccountLinks.d.ts +4 -4
  172. package/cjs/resources/V2/Core/AccountTokens.d.ts +32 -14
  173. package/cjs/resources/V2/Core/AccountTokens.js +5 -1
  174. package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
  175. package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  176. package/cjs/resources/V2/Core/Accounts.d.ts +233 -1171
  177. package/cjs/resources/V2/Core/Accounts.js +1 -1
  178. package/cjs/resources/V2/Core/EventDestinations.d.ts +2 -2
  179. package/cjs/resources/V2/Core/Events.d.ts +8 -1126
  180. package/cjs/resources/V2/Core/Events.js +2 -1
  181. package/cjs/resources/V2/Core/Events.js.map +1 -1
  182. package/cjs/resources/V2/Core/index.d.ts +19 -29
  183. package/cjs/resources/V2/Core/index.js +0 -4
  184. package/cjs/resources/V2/Core/index.js.map +1 -1
  185. package/cjs/resources/V2/index.d.ts +0 -27
  186. package/cjs/resources/V2/index.js +0 -14
  187. package/cjs/resources/V2/index.js.map +1 -1
  188. package/cjs/resources/WebhookEndpoints.d.ts +3 -3
  189. package/cjs/resources.d.ts +0 -10
  190. package/cjs/resources.js +10 -146
  191. package/cjs/resources.js.map +1 -1
  192. package/cjs/stripe.core.d.ts +29 -69
  193. package/cjs/stripe.core.js +44 -61
  194. package/cjs/stripe.core.js.map +1 -1
  195. package/cjs/utils.d.ts +0 -2
  196. package/cjs/utils.js +1 -16
  197. package/cjs/utils.js.map +1 -1
  198. package/esm/Error.d.ts +0 -50
  199. package/esm/Error.js +0 -109
  200. package/esm/Error.js.map +1 -1
  201. package/esm/RequestSender.d.ts +1 -0
  202. package/esm/RequestSender.js +11 -3
  203. package/esm/RequestSender.js.map +1 -1
  204. package/esm/Types.d.ts +2 -4
  205. package/esm/Types.js.map +1 -1
  206. package/esm/apiVersion.d.ts +2 -1
  207. package/esm/apiVersion.js +2 -1
  208. package/esm/apiVersion.js.map +1 -1
  209. package/esm/lib.d.ts +48 -3
  210. package/esm/net/FetchHttpClient.js.map +1 -1
  211. package/esm/net/HttpClient.js.map +1 -1
  212. package/esm/platform/NodePlatformFunctions.d.ts +6 -0
  213. package/esm/platform/NodePlatformFunctions.js +17 -0
  214. package/esm/platform/NodePlatformFunctions.js.map +1 -1
  215. package/esm/platform/PlatformFunctions.d.ts +13 -0
  216. package/esm/platform/PlatformFunctions.js +21 -0
  217. package/esm/platform/PlatformFunctions.js.map +1 -1
  218. package/esm/resources/AccountLinks.d.ts +1 -1
  219. package/esm/resources/AccountSessions.d.ts +0 -262
  220. package/esm/resources/AccountSessions.js.map +1 -1
  221. package/esm/resources/Accounts.d.ts +45 -819
  222. package/esm/resources/Accounts.js +0 -15
  223. package/esm/resources/Accounts.js.map +1 -1
  224. package/esm/resources/Apps/index.d.ts +4 -4
  225. package/esm/resources/Balance.d.ts +0 -67
  226. package/esm/resources/BalanceSettings.d.ts +86 -0
  227. package/esm/resources/BankAccounts.d.ts +2 -2
  228. package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
  229. package/esm/resources/Billing/index.d.ts +24 -27
  230. package/esm/resources/Billing/index.js +0 -2
  231. package/esm/resources/Billing/index.js.map +1 -1
  232. package/esm/resources/BillingPortal/index.d.ts +5 -5
  233. package/esm/resources/Capabilities.d.ts +2 -2
  234. package/esm/resources/Cards.d.ts +0 -4
  235. package/esm/resources/Charges.d.ts +92 -3064
  236. package/esm/resources/Checkout/Sessions.d.ts +51 -414
  237. package/esm/resources/Checkout/index.d.ts +6 -6
  238. package/esm/resources/Climate/index.d.ts +9 -9
  239. package/esm/resources/ConfirmationTokens.d.ts +7 -67
  240. package/esm/resources/Coupons.d.ts +0 -47
  241. package/esm/resources/CreditNoteLineItems.d.ts +1 -15
  242. package/esm/resources/CreditNotes.d.ts +1 -7
  243. package/esm/resources/CreditNotes.js +0 -14
  244. package/esm/resources/CreditNotes.js.map +1 -1
  245. package/esm/resources/CustomerSessions.d.ts +0 -68
  246. package/esm/resources/Customers.d.ts +1 -7
  247. package/esm/resources/Customers.js +0 -15
  248. package/esm/resources/Customers.js.map +1 -1
  249. package/esm/resources/Discounts.d.ts +4 -4
  250. package/esm/resources/Disputes.d.ts +0 -29
  251. package/esm/resources/Entitlements/index.d.ts +6 -6
  252. package/esm/resources/Events.d.ts +2 -547
  253. package/esm/resources/ExternalAccounts.d.ts +1 -212
  254. package/esm/resources/ExternalAccounts.js +1 -42
  255. package/esm/resources/ExternalAccounts.js.map +1 -1
  256. package/esm/resources/FinancialConnections/Accounts.d.ts +4 -74
  257. package/esm/resources/FinancialConnections/Accounts.js +0 -8
  258. package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
  259. package/esm/resources/FinancialConnections/Sessions.d.ts +7 -155
  260. package/esm/resources/FinancialConnections/index.d.ts +13 -28
  261. package/esm/resources/FinancialConnections/index.js +0 -4
  262. package/esm/resources/FinancialConnections/index.js.map +1 -1
  263. package/esm/resources/Forwarding/index.d.ts +3 -3
  264. package/esm/resources/Identity/index.d.ts +8 -8
  265. package/esm/resources/InvoiceItems.d.ts +28 -85
  266. package/esm/resources/InvoiceItems.js.map +1 -1
  267. package/esm/resources/InvoiceLineItems.d.ts +2 -40
  268. package/esm/resources/Invoices.d.ts +26 -1348
  269. package/esm/resources/Invoices.js +0 -70
  270. package/esm/resources/Invoices.js.map +1 -1
  271. package/esm/resources/Issuing/Cardholders.d.ts +1 -2
  272. package/esm/resources/Issuing/Disputes.d.ts +1 -1
  273. package/esm/resources/Issuing/PersonalizationDesigns.d.ts +1 -1
  274. package/esm/resources/Issuing/Transactions.d.ts +0 -9
  275. package/esm/resources/Issuing/Transactions.js.map +1 -1
  276. package/esm/resources/Issuing/index.d.ts +35 -60
  277. package/esm/resources/Issuing/index.js +0 -6
  278. package/esm/resources/Issuing/index.js.map +1 -1
  279. package/esm/resources/LineItems.d.ts +2 -29
  280. package/esm/resources/Mandates.d.ts +4 -33
  281. package/esm/resources/Mandates.js +0 -8
  282. package/esm/resources/Mandates.js.map +1 -1
  283. package/esm/resources/OAuth.d.ts +7 -8
  284. package/esm/resources/PaymentAttemptRecords.d.ts +23 -92
  285. package/esm/resources/PaymentIntents.d.ts +6510 -17236
  286. package/esm/resources/PaymentIntents.js +3 -28
  287. package/esm/resources/PaymentIntents.js.map +1 -1
  288. package/esm/resources/PaymentLinks.d.ts +88 -20
  289. package/esm/resources/PaymentMethodConfigurations.d.ts +93 -299
  290. package/esm/resources/PaymentMethods.d.ts +22 -152
  291. package/esm/resources/PaymentMethods.js.map +1 -1
  292. package/esm/resources/PaymentRecords.d.ts +23 -92
  293. package/esm/resources/Payouts.d.ts +1 -1
  294. package/esm/resources/Persons.d.ts +2 -2
  295. package/esm/resources/Plans.d.ts +0 -16
  296. package/esm/resources/Prices.d.ts +0 -52
  297. package/esm/resources/Products.d.ts +0 -42
  298. package/esm/resources/PromotionCodes.d.ts +0 -12
  299. package/esm/resources/PromotionCodes.js +0 -28
  300. package/esm/resources/PromotionCodes.js.map +1 -1
  301. package/esm/resources/Quotes.d.ts +160 -2369
  302. package/esm/resources/Quotes.js +13 -1181
  303. package/esm/resources/Quotes.js.map +1 -1
  304. package/esm/resources/Radar/PaymentEvaluations.d.ts +2 -2
  305. package/esm/resources/Radar/index.d.ts +12 -12
  306. package/esm/resources/Refunds.d.ts +3 -11
  307. package/esm/resources/Reporting/index.d.ts +5 -5
  308. package/esm/resources/Reserve/Holds.d.ts +1 -53
  309. package/esm/resources/Reserve/Holds.js +1 -17
  310. package/esm/resources/Reserve/Holds.js.map +1 -1
  311. package/esm/resources/Reserve/Plans.d.ts +0 -16
  312. package/esm/resources/Reserve/Plans.js +1 -9
  313. package/esm/resources/Reserve/Plans.js.map +1 -1
  314. package/esm/resources/Reserve/Releases.d.ts +1 -41
  315. package/esm/resources/Reserve/Releases.js +1 -17
  316. package/esm/resources/Reserve/Releases.js.map +1 -1
  317. package/esm/resources/Reserve/index.d.ts +3 -14
  318. package/esm/resources/Reserve/index.js +2 -10
  319. package/esm/resources/Reserve/index.js.map +1 -1
  320. package/esm/resources/SetupAttempts.d.ts +3 -25
  321. package/esm/resources/SetupIntents.d.ts +77 -336
  322. package/esm/resources/Sigma/index.d.ts +2 -2
  323. package/esm/resources/Sources.d.ts +1 -16
  324. package/esm/resources/SubscriptionItems.d.ts +4 -165
  325. package/esm/resources/SubscriptionSchedules.d.ts +16 -1174
  326. package/esm/resources/SubscriptionSchedules.js +0 -48
  327. package/esm/resources/SubscriptionSchedules.js.map +1 -1
  328. package/esm/resources/Subscriptions.d.ts +32 -490
  329. package/esm/resources/Subscriptions.js +2 -31
  330. package/esm/resources/Subscriptions.js.map +1 -1
  331. package/esm/resources/Tax/CalculationLineItems.d.ts +2 -6
  332. package/esm/resources/Tax/Calculations.d.ts +3 -7
  333. package/esm/resources/Tax/Registrations.d.ts +2 -138
  334. package/esm/resources/Tax/Transactions.d.ts +2 -2
  335. package/esm/resources/Tax/index.d.ts +17 -31
  336. package/esm/resources/Tax/index.js +0 -4
  337. package/esm/resources/Tax/index.js.map +1 -1
  338. package/esm/resources/TaxCodes.d.ts +0 -15
  339. package/esm/resources/Terminal/Configurations.d.ts +108 -27
  340. package/esm/resources/Terminal/Readers.d.ts +143 -19
  341. package/esm/resources/Terminal/Readers.js.map +1 -1
  342. package/esm/resources/Terminal/index.d.ts +25 -30
  343. package/esm/resources/Terminal/index.js +0 -2
  344. package/esm/resources/Terminal/index.js.map +1 -1
  345. package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +14 -79
  346. package/esm/resources/TestHelpers/TestClocks.d.ts +4 -0
  347. package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -22
  348. package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
  349. package/esm/resources/TestHelpers/index.d.ts +5 -8
  350. package/esm/resources/TestHelpers/index.js +0 -2
  351. package/esm/resources/TestHelpers/index.js.map +1 -1
  352. package/esm/resources/Transfers.d.ts +0 -8
  353. package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +0 -5
  354. package/esm/resources/Treasury/FinancialAccounts.d.ts +1 -34
  355. package/esm/resources/Treasury/OutboundPayments.d.ts +0 -8
  356. package/esm/resources/Treasury/OutboundTransfers.d.ts +0 -44
  357. package/esm/resources/Treasury/ReceivedCredits.d.ts +0 -22
  358. package/esm/resources/Treasury/ReceivedDebits.d.ts +0 -26
  359. package/esm/resources/Treasury/index.d.ts +33 -33
  360. package/esm/resources/V2/Billing/index.d.ts +6 -45
  361. package/esm/resources/V2/Billing/index.js +0 -8
  362. package/esm/resources/V2/Billing/index.js.map +1 -1
  363. package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +2 -2
  364. package/esm/resources/V2/Core/AccountLinks.d.ts +4 -4
  365. package/esm/resources/V2/Core/AccountTokens.d.ts +32 -14
  366. package/esm/resources/V2/Core/AccountTokens.js +5 -1
  367. package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
  368. package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
  369. package/esm/resources/V2/Core/Accounts.d.ts +233 -1171
  370. package/esm/resources/V2/Core/Accounts.js +1 -1
  371. package/esm/resources/V2/Core/EventDestinations.d.ts +2 -2
  372. package/esm/resources/V2/Core/Events.d.ts +8 -1126
  373. package/esm/resources/V2/Core/Events.js +2 -1
  374. package/esm/resources/V2/Core/Events.js.map +1 -1
  375. package/esm/resources/V2/Core/index.d.ts +19 -29
  376. package/esm/resources/V2/Core/index.js +0 -4
  377. package/esm/resources/V2/Core/index.js.map +1 -1
  378. package/esm/resources/V2/index.d.ts +0 -27
  379. package/esm/resources/V2/index.js +0 -14
  380. package/esm/resources/V2/index.js.map +1 -1
  381. package/esm/resources/WebhookEndpoints.d.ts +3 -3
  382. package/esm/resources.d.ts +0 -10
  383. package/esm/resources.js +0 -131
  384. package/esm/resources.js.map +1 -1
  385. package/esm/stripe.core.d.ts +29 -69
  386. package/esm/stripe.core.js +15 -32
  387. package/esm/stripe.core.js.map +1 -1
  388. package/esm/stripe.esm.node.d.ts +29 -70
  389. package/esm/stripe.esm.node.js +15 -32
  390. package/esm/stripe.esm.node.js.map +1 -1
  391. package/esm/utils.d.ts +0 -2
  392. package/esm/utils.js +0 -13
  393. package/esm/utils.js.map +1 -1
  394. package/package.json +1 -1
  395. package/cjs/StripeEventNotificationHandler.d.ts +0 -22
  396. package/cjs/StripeEventNotificationHandler.js +0 -147
  397. package/cjs/StripeEventNotificationHandler.js.map +0 -1
  398. package/cjs/resources/AccountNotices.d.ts +0 -140
  399. package/cjs/resources/AccountNotices.js +0 -29
  400. package/cjs/resources/AccountNotices.js.map +0 -1
  401. package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  402. package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -15
  403. package/cjs/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  404. package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  405. package/cjs/resources/Billing/Analytics/MeterUsageRows.js +0 -4
  406. package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  407. package/cjs/resources/Billing/Analytics/index.d.ts +0 -15
  408. package/cjs/resources/Billing/Analytics/index.js +0 -13
  409. package/cjs/resources/Billing/Analytics/index.js.map +0 -1
  410. package/cjs/resources/Capital/FinancingOffers.d.ts +0 -191
  411. package/cjs/resources/Capital/FinancingOffers.js +0 -30
  412. package/cjs/resources/Capital/FinancingOffers.js.map +0 -1
  413. package/cjs/resources/Capital/FinancingSummary.d.ts +0 -98
  414. package/cjs/resources/Capital/FinancingSummary.js +0 -15
  415. package/cjs/resources/Capital/FinancingSummary.js.map +0 -1
  416. package/cjs/resources/Capital/FinancingTransactions.d.ts +0 -143
  417. package/cjs/resources/Capital/FinancingTransactions.js +0 -24
  418. package/cjs/resources/Capital/FinancingTransactions.js.map +0 -1
  419. package/cjs/resources/Capital/index.d.ts +0 -25
  420. package/cjs/resources/Capital/index.js +0 -17
  421. package/cjs/resources/Capital/index.js.map +0 -1
  422. package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  423. package/cjs/resources/FinancialConnections/AccountInferredBalances.js +0 -4
  424. package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  425. package/cjs/resources/FinancialConnections/Authorizations.d.ts +0 -87
  426. package/cjs/resources/FinancialConnections/Authorizations.js +0 -15
  427. package/cjs/resources/FinancialConnections/Authorizations.js.map +0 -1
  428. package/cjs/resources/FinancialConnections/Institutions.d.ts +0 -101
  429. package/cjs/resources/FinancialConnections/Institutions.js +0 -23
  430. package/cjs/resources/FinancialConnections/Institutions.js.map +0 -1
  431. package/cjs/resources/FxQuotes.d.ts +0 -212
  432. package/cjs/resources/FxQuotes.js +0 -29
  433. package/cjs/resources/FxQuotes.js.map +0 -1
  434. package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  435. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -47
  436. package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  437. package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  438. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -23
  439. package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  440. package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  441. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -23
  442. package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  443. package/cjs/resources/Issuing/Settlements.d.ts +0 -85
  444. package/cjs/resources/Issuing/Settlements.js +0 -4
  445. package/cjs/resources/Issuing/Settlements.js.map +0 -1
  446. package/cjs/resources/Margins.d.ts +0 -115
  447. package/cjs/resources/Margins.js +0 -35
  448. package/cjs/resources/Margins.js.map +0 -1
  449. package/cjs/resources/Orders.d.ts +0 -4693
  450. package/cjs/resources/Orders.js +0 -457
  451. package/cjs/resources/Orders.js.map +0 -1
  452. package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  453. package/cjs/resources/Privacy/RedactionJobValidationErrors.js +0 -4
  454. package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  455. package/cjs/resources/Privacy/RedactionJobs.d.ts +0 -229
  456. package/cjs/resources/Privacy/RedactionJobs.js +0 -73
  457. package/cjs/resources/Privacy/RedactionJobs.js.map +0 -1
  458. package/cjs/resources/Privacy/index.d.ts +0 -22
  459. package/cjs/resources/Privacy/index.js +0 -13
  460. package/cjs/resources/Privacy/index.js.map +0 -1
  461. package/cjs/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  462. package/cjs/resources/ProductCatalog/TrialOffers.js +0 -15
  463. package/cjs/resources/ProductCatalog/TrialOffers.js.map +0 -1
  464. package/cjs/resources/ProductCatalog/index.d.ts +0 -12
  465. package/cjs/resources/ProductCatalog/index.js +0 -13
  466. package/cjs/resources/ProductCatalog/index.js.map +0 -1
  467. package/cjs/resources/QuoteLines.d.ts +0 -507
  468. package/cjs/resources/QuoteLines.js +0 -4
  469. package/cjs/resources/QuoteLines.js.map +0 -1
  470. package/cjs/resources/QuotePreviewInvoices.d.ts +0 -1116
  471. package/cjs/resources/QuotePreviewInvoices.js +0 -4
  472. package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
  473. package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -733
  474. package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
  475. package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  476. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -1089
  477. package/cjs/resources/SharedPayment/GrantedTokens.js +0 -15
  478. package/cjs/resources/SharedPayment/GrantedTokens.js.map +0 -1
  479. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  480. package/cjs/resources/SharedPayment/IssuedTokens.js +0 -27
  481. package/cjs/resources/SharedPayment/IssuedTokens.js.map +0 -1
  482. package/cjs/resources/SharedPayment/index.d.ts +0 -19
  483. package/cjs/resources/SharedPayment/index.js +0 -15
  484. package/cjs/resources/SharedPayment/index.js.map +0 -1
  485. package/cjs/resources/Tax/Forms.d.ts +0 -230
  486. package/cjs/resources/Tax/Forms.js +0 -32
  487. package/cjs/resources/Tax/Forms.js.map +0 -1
  488. package/cjs/resources/Tax/Locations.d.ts +0 -108
  489. package/cjs/resources/Tax/Locations.js +0 -33
  490. package/cjs/resources/Tax/Locations.js.map +0 -1
  491. package/cjs/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  492. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -15
  493. package/cjs/resources/Terminal/ReaderCollectedData.js.map +0 -1
  494. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  495. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -21
  496. package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  497. package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  498. package/cjs/resources/TestHelpers/SharedPayment/index.js +0 -13
  499. package/cjs/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  500. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  501. package/cjs/resources/V2/Billing/BillSettingVersions.js +0 -4
  502. package/cjs/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  503. package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  504. package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -23
  505. package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  506. package/cjs/resources/V2/Billing/BillSettings.d.ts +0 -284
  507. package/cjs/resources/V2/Billing/BillSettings.js +0 -41
  508. package/cjs/resources/V2/Billing/BillSettings.js.map +0 -1
  509. package/cjs/resources/V2/Billing/Cadences.d.ts +0 -951
  510. package/cjs/resources/V2/Billing/Cadences.js +0 -198
  511. package/cjs/resources/V2/Billing/Cadences.js.map +0 -1
  512. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  513. package/cjs/resources/V2/Billing/CollectionSettingVersions.js +0 -4
  514. package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  515. package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  516. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -70
  517. package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  518. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  519. package/cjs/resources/V2/Billing/CollectionSettings.js +0 -166
  520. package/cjs/resources/V2/Billing/CollectionSettings.js.map +0 -1
  521. package/cjs/resources/V2/Billing/Profiles.d.ts +0 -166
  522. package/cjs/resources/V2/Billing/Profiles.js +0 -35
  523. package/cjs/resources/V2/Billing/Profiles.js.map +0 -1
  524. package/cjs/resources/V2/Core/BatchJobs.d.ts +0 -373
  525. package/cjs/resources/V2/Core/BatchJobs.js +0 -225
  526. package/cjs/resources/V2/Core/BatchJobs.js.map +0 -1
  527. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  528. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -54
  529. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  530. package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  531. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -62
  532. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  533. package/cjs/resources/V2/Core/Vault/index.d.ts +0 -28
  534. package/cjs/resources/V2/Core/Vault/index.js +0 -15
  535. package/cjs/resources/V2/Core/Vault/index.js.map +0 -1
  536. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  537. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +0 -46
  538. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  539. package/cjs/resources/V2/Data/Reporting/index.d.ts +0 -13
  540. package/cjs/resources/V2/Data/Reporting/index.js +0 -13
  541. package/cjs/resources/V2/Data/Reporting/index.js.map +0 -1
  542. package/cjs/resources/V2/Data/index.d.ts +0 -10
  543. package/cjs/resources/V2/Data/index.js +0 -13
  544. package/cjs/resources/V2/Data/index.js.map +0 -1
  545. package/cjs/resources/V2/EventMisc.d.ts +0 -0
  546. package/cjs/resources/V2/EventMisc.js +0 -2
  547. package/cjs/resources/V2/EventMisc.js.map +0 -1
  548. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  549. package/cjs/resources/V2/Extend/WorkflowRuns.js +0 -23
  550. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  551. package/cjs/resources/V2/Extend/Workflows.d.ts +0 -123
  552. package/cjs/resources/V2/Extend/Workflows.js +0 -30
  553. package/cjs/resources/V2/Extend/Workflows.js.map +0 -1
  554. package/cjs/resources/V2/Extend/index.d.ts +0 -20
  555. package/cjs/resources/V2/Extend/index.js +0 -15
  556. package/cjs/resources/V2/Extend/index.js.map +0 -1
  557. package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  558. package/cjs/resources/V2/FinancialAddressCreditSimulations.js +0 -4
  559. package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  560. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  561. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -4
  562. package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  563. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +0 -204
  564. package/cjs/resources/V2/Iam/ActivityLogs.js +0 -17
  565. package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
  566. package/cjs/resources/V2/Iam/index.d.ts +0 -12
  567. package/cjs/resources/V2/Iam/index.js +0 -13
  568. package/cjs/resources/V2/Iam/index.js.map +0 -1
  569. package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  570. package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -23
  571. package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  572. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  573. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -44
  574. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  575. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  576. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -31
  577. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  578. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  579. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -30
  580. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  581. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  582. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -22
  583. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  584. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  585. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -41
  586. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  587. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -299
  588. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -49
  589. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  590. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  591. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -39
  592. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  593. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  594. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -44
  595. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  596. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  597. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -17
  598. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  599. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -292
  600. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -23
  601. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  602. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  603. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -23
  604. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  605. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  606. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -23
  607. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  608. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  609. package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -23
  610. package/cjs/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  611. package/cjs/resources/V2/MoneyManagement/index.d.ts +0 -104
  612. package/cjs/resources/V2/MoneyManagement/index.js +0 -39
  613. package/cjs/resources/V2/MoneyManagement/index.js.map +0 -1
  614. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  615. package/cjs/resources/V2/Network/BusinessProfiles.js +0 -21
  616. package/cjs/resources/V2/Network/BusinessProfiles.js.map +0 -1
  617. package/cjs/resources/V2/Network/index.d.ts +0 -13
  618. package/cjs/resources/V2/Network/index.js +0 -13
  619. package/cjs/resources/V2/Network/index.js.map +0 -1
  620. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  621. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +0 -41
  622. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  623. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  624. package/cjs/resources/V2/OrchestratedCommerce/index.js +0 -13
  625. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  626. package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  627. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -23
  628. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  629. package/cjs/resources/V2/TestHelpers/index.d.ts +0 -8
  630. package/cjs/resources/V2/TestHelpers/index.js +0 -13
  631. package/cjs/resources/V2/TestHelpers/index.js.map +0 -1
  632. package/esm/StripeEventNotificationHandler.d.ts +0 -22
  633. package/esm/StripeEventNotificationHandler.js +0 -143
  634. package/esm/StripeEventNotificationHandler.js.map +0 -1
  635. package/esm/resources/AccountNotices.d.ts +0 -140
  636. package/esm/resources/AccountNotices.js +0 -25
  637. package/esm/resources/AccountNotices.js.map +0 -1
  638. package/esm/resources/Billing/Analytics/MeterUsage.d.ts +0 -84
  639. package/esm/resources/Billing/Analytics/MeterUsage.js +0 -11
  640. package/esm/resources/Billing/Analytics/MeterUsage.js.map +0 -1
  641. package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
  642. package/esm/resources/Billing/Analytics/MeterUsageRows.js +0 -3
  643. package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
  644. package/esm/resources/Billing/Analytics/index.d.ts +0 -15
  645. package/esm/resources/Billing/Analytics/index.js +0 -9
  646. package/esm/resources/Billing/Analytics/index.js.map +0 -1
  647. package/esm/resources/Capital/FinancingOffers.d.ts +0 -191
  648. package/esm/resources/Capital/FinancingOffers.js +0 -26
  649. package/esm/resources/Capital/FinancingOffers.js.map +0 -1
  650. package/esm/resources/Capital/FinancingSummary.d.ts +0 -98
  651. package/esm/resources/Capital/FinancingSummary.js +0 -11
  652. package/esm/resources/Capital/FinancingSummary.js.map +0 -1
  653. package/esm/resources/Capital/FinancingTransactions.d.ts +0 -143
  654. package/esm/resources/Capital/FinancingTransactions.js +0 -20
  655. package/esm/resources/Capital/FinancingTransactions.js.map +0 -1
  656. package/esm/resources/Capital/index.d.ts +0 -25
  657. package/esm/resources/Capital/index.js +0 -13
  658. package/esm/resources/Capital/index.js.map +0 -1
  659. package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
  660. package/esm/resources/FinancialConnections/AccountInferredBalances.js +0 -3
  661. package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
  662. package/esm/resources/FinancialConnections/Authorizations.d.ts +0 -87
  663. package/esm/resources/FinancialConnections/Authorizations.js +0 -11
  664. package/esm/resources/FinancialConnections/Authorizations.js.map +0 -1
  665. package/esm/resources/FinancialConnections/Institutions.d.ts +0 -101
  666. package/esm/resources/FinancialConnections/Institutions.js +0 -19
  667. package/esm/resources/FinancialConnections/Institutions.js.map +0 -1
  668. package/esm/resources/FxQuotes.d.ts +0 -212
  669. package/esm/resources/FxQuotes.js +0 -25
  670. package/esm/resources/FxQuotes.js.map +0 -1
  671. package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -640
  672. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -43
  673. package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
  674. package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +0 -95
  675. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -19
  676. package/esm/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
  677. package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
  678. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -19
  679. package/esm/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
  680. package/esm/resources/Issuing/Settlements.d.ts +0 -85
  681. package/esm/resources/Issuing/Settlements.js +0 -3
  682. package/esm/resources/Issuing/Settlements.js.map +0 -1
  683. package/esm/resources/Margins.d.ts +0 -115
  684. package/esm/resources/Margins.js +0 -31
  685. package/esm/resources/Margins.js.map +0 -1
  686. package/esm/resources/Orders.d.ts +0 -4693
  687. package/esm/resources/Orders.js +0 -453
  688. package/esm/resources/Orders.js.map +0 -1
  689. package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -37
  690. package/esm/resources/Privacy/RedactionJobValidationErrors.js +0 -3
  691. package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
  692. package/esm/resources/Privacy/RedactionJobs.d.ts +0 -229
  693. package/esm/resources/Privacy/RedactionJobs.js +0 -69
  694. package/esm/resources/Privacy/RedactionJobs.js.map +0 -1
  695. package/esm/resources/Privacy/index.d.ts +0 -22
  696. package/esm/resources/Privacy/index.js +0 -9
  697. package/esm/resources/Privacy/index.js.map +0 -1
  698. package/esm/resources/ProductCatalog/TrialOffers.d.ts +0 -127
  699. package/esm/resources/ProductCatalog/TrialOffers.js +0 -11
  700. package/esm/resources/ProductCatalog/TrialOffers.js.map +0 -1
  701. package/esm/resources/ProductCatalog/index.d.ts +0 -12
  702. package/esm/resources/ProductCatalog/index.js +0 -9
  703. package/esm/resources/ProductCatalog/index.js.map +0 -1
  704. package/esm/resources/QuoteLines.d.ts +0 -507
  705. package/esm/resources/QuoteLines.js +0 -3
  706. package/esm/resources/QuoteLines.js.map +0 -1
  707. package/esm/resources/QuotePreviewInvoices.d.ts +0 -1116
  708. package/esm/resources/QuotePreviewInvoices.js +0 -3
  709. package/esm/resources/QuotePreviewInvoices.js.map +0 -1
  710. package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -733
  711. package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
  712. package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
  713. package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -1089
  714. package/esm/resources/SharedPayment/GrantedTokens.js +0 -11
  715. package/esm/resources/SharedPayment/GrantedTokens.js.map +0 -1
  716. package/esm/resources/SharedPayment/IssuedTokens.d.ts +0 -308
  717. package/esm/resources/SharedPayment/IssuedTokens.js +0 -23
  718. package/esm/resources/SharedPayment/IssuedTokens.js.map +0 -1
  719. package/esm/resources/SharedPayment/index.d.ts +0 -19
  720. package/esm/resources/SharedPayment/index.js +0 -11
  721. package/esm/resources/SharedPayment/index.js.map +0 -1
  722. package/esm/resources/Tax/Forms.d.ts +0 -230
  723. package/esm/resources/Tax/Forms.js +0 -28
  724. package/esm/resources/Tax/Forms.js.map +0 -1
  725. package/esm/resources/Tax/Locations.d.ts +0 -108
  726. package/esm/resources/Tax/Locations.js +0 -29
  727. package/esm/resources/Tax/Locations.js.map +0 -1
  728. package/esm/resources/Terminal/ReaderCollectedData.d.ts +0 -52
  729. package/esm/resources/Terminal/ReaderCollectedData.js +0 -11
  730. package/esm/resources/Terminal/ReaderCollectedData.js.map +0 -1
  731. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
  732. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -17
  733. package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
  734. package/esm/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
  735. package/esm/resources/TestHelpers/SharedPayment/index.js +0 -9
  736. package/esm/resources/TestHelpers/SharedPayment/index.js.map +0 -1
  737. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +0 -75
  738. package/esm/resources/V2/Billing/BillSettingVersions.js +0 -3
  739. package/esm/resources/V2/Billing/BillSettingVersions.js.map +0 -1
  740. package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
  741. package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -19
  742. package/esm/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
  743. package/esm/resources/V2/Billing/BillSettings.d.ts +0 -284
  744. package/esm/resources/V2/Billing/BillSettings.js +0 -37
  745. package/esm/resources/V2/Billing/BillSettings.js.map +0 -1
  746. package/esm/resources/V2/Billing/Cadences.d.ts +0 -951
  747. package/esm/resources/V2/Billing/Cadences.js +0 -194
  748. package/esm/resources/V2/Billing/Cadences.js.map +0 -1
  749. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -240
  750. package/esm/resources/V2/Billing/CollectionSettingVersions.js +0 -3
  751. package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
  752. package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
  753. package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -66
  754. package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
  755. package/esm/resources/V2/Billing/CollectionSettings.d.ts +0 -779
  756. package/esm/resources/V2/Billing/CollectionSettings.js +0 -162
  757. package/esm/resources/V2/Billing/CollectionSettings.js.map +0 -1
  758. package/esm/resources/V2/Billing/Profiles.d.ts +0 -166
  759. package/esm/resources/V2/Billing/Profiles.js +0 -31
  760. package/esm/resources/V2/Billing/Profiles.js.map +0 -1
  761. package/esm/resources/V2/Core/BatchJobs.d.ts +0 -373
  762. package/esm/resources/V2/Core/BatchJobs.js +0 -221
  763. package/esm/resources/V2/Core/BatchJobs.js.map +0 -1
  764. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -285
  765. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -50
  766. package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
  767. package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -254
  768. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -58
  769. package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
  770. package/esm/resources/V2/Core/Vault/index.d.ts +0 -28
  771. package/esm/resources/V2/Core/Vault/index.js +0 -11
  772. package/esm/resources/V2/Core/Vault/index.js.map +0 -1
  773. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -156
  774. package/esm/resources/V2/Data/Reporting/QueryRuns.js +0 -42
  775. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
  776. package/esm/resources/V2/Data/Reporting/index.d.ts +0 -13
  777. package/esm/resources/V2/Data/Reporting/index.js +0 -9
  778. package/esm/resources/V2/Data/Reporting/index.js.map +0 -1
  779. package/esm/resources/V2/Data/index.d.ts +0 -10
  780. package/esm/resources/V2/Data/index.js +0 -9
  781. package/esm/resources/V2/Data/index.js.map +0 -1
  782. package/esm/resources/V2/EventMisc.d.ts +0 -0
  783. package/esm/resources/V2/EventMisc.js +0 -2
  784. package/esm/resources/V2/EventMisc.js.map +0 -1
  785. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +0 -166
  786. package/esm/resources/V2/Extend/WorkflowRuns.js +0 -19
  787. package/esm/resources/V2/Extend/WorkflowRuns.js.map +0 -1
  788. package/esm/resources/V2/Extend/Workflows.d.ts +0 -123
  789. package/esm/resources/V2/Extend/Workflows.js +0 -26
  790. package/esm/resources/V2/Extend/Workflows.js.map +0 -1
  791. package/esm/resources/V2/Extend/index.d.ts +0 -20
  792. package/esm/resources/V2/Extend/index.js +0 -11
  793. package/esm/resources/V2/Extend/index.js.map +0 -1
  794. package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
  795. package/esm/resources/V2/FinancialAddressCreditSimulations.js +0 -3
  796. package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
  797. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
  798. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -3
  799. package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
  800. package/esm/resources/V2/Iam/ActivityLogs.d.ts +0 -204
  801. package/esm/resources/V2/Iam/ActivityLogs.js +0 -13
  802. package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
  803. package/esm/resources/V2/Iam/index.d.ts +0 -12
  804. package/esm/resources/V2/Iam/index.js +0 -9
  805. package/esm/resources/V2/Iam/index.js.map +0 -1
  806. package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +0 -135
  807. package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -19
  808. package/esm/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
  809. package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -244
  810. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -40
  811. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
  812. package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -215
  813. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -27
  814. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
  815. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -254
  816. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -26
  817. package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
  818. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -212
  819. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -18
  820. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
  821. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -388
  822. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -37
  823. package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
  824. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -299
  825. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -45
  826. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
  827. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -330
  828. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -35
  829. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
  830. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -243
  831. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -40
  832. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
  833. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -96
  834. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -13
  835. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
  836. package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -292
  837. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -19
  838. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
  839. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -161
  840. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -19
  841. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
  842. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -165
  843. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -19
  844. package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
  845. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +0 -196
  846. package/esm/resources/V2/MoneyManagement/Transactions.js +0 -19
  847. package/esm/resources/V2/MoneyManagement/Transactions.js.map +0 -1
  848. package/esm/resources/V2/MoneyManagement/index.d.ts +0 -104
  849. package/esm/resources/V2/MoneyManagement/index.js +0 -35
  850. package/esm/resources/V2/MoneyManagement/index.js.map +0 -1
  851. package/esm/resources/V2/Network/BusinessProfiles.d.ts +0 -96
  852. package/esm/resources/V2/Network/BusinessProfiles.js +0 -17
  853. package/esm/resources/V2/Network/BusinessProfiles.js.map +0 -1
  854. package/esm/resources/V2/Network/index.d.ts +0 -13
  855. package/esm/resources/V2/Network/index.js +0 -9
  856. package/esm/resources/V2/Network/index.js.map +0 -1
  857. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -147
  858. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +0 -37
  859. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
  860. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
  861. package/esm/resources/V2/OrchestratedCommerce/index.js +0 -9
  862. package/esm/resources/V2/OrchestratedCommerce/index.js.map +0 -1
  863. package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -44
  864. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -19
  865. package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
  866. package/esm/resources/V2/TestHelpers/index.d.ts +0 -8
  867. package/esm/resources/V2/TestHelpers/index.js +0 -9
  868. package/esm/resources/V2/TestHelpers/index.js.map +0 -1
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v2253
1
+ v2277
package/README.md CHANGED
@@ -40,27 +40,30 @@ 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_...');
45
+
46
+ const customer = await stripeClient.customers.create({
47
+ email: 'customer@example.com',
48
+ });
49
+
50
+ console.log(customer.id);
51
+ ```
52
+
53
+ Or using CJS:
54
+ ```js
55
+ const Stripe = require('stripe');
56
+ const stripeClient = Stripe('sk_test_...');
44
57
 
45
- stripe.customers.create({
58
+ stripeClient.customers.create({
46
59
  email: 'customer@example.com',
47
60
  })
48
61
  .then(customer => console.log(customer.id))
49
62
  .catch(error => console.error(error));
50
63
  ```
51
64
 
52
- Or using ES modules and `async`/`await`:
53
-
54
- ```js
55
- import Stripe from 'stripe';
56
- const stripe = new Stripe('sk_test_...');
57
65
 
58
- const customer = await stripe.customers.create({
59
- email: 'customer@example.com',
60
- });
61
66
 
62
- console.log(customer.id);
63
- ```
64
67
 
65
68
  > [!WARNING]
66
69
  > If you're using `v17.x.x` or later and getting an error about a missing API key despite being sure it's available, it's likely you're importing the file that instantiates `Stripe` while the key isn't present (for instance, during a build step).
@@ -70,7 +73,7 @@ console.log(customer.id);
70
73
  > import Stripe from 'stripe';
71
74
  >
72
75
  > let _stripe: Stripe | null = null;
73
- > const getStripe = (): Stripe => {
76
+ > const getStripeClient = (): Stripe => {
74
77
  > if (!_stripe) {
75
78
  > _stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string, {
76
79
  > // ...
@@ -79,7 +82,7 @@ console.log(customer.id);
79
82
  > return _stripe;
80
83
  > };
81
84
  >
82
- > const getCustomers = () => getStripe().customers.list();
85
+ > const getCustomers = () => getStripeClient().customers.list();
83
86
  > ```
84
87
  >
85
88
  > Alternatively, you can provide a placeholder for the real key (which will be enough to get the code through a build step):
@@ -87,7 +90,7 @@ console.log(customer.id);
87
90
  > ```ts
88
91
  > import Stripe from 'stripe';
89
92
  >
90
- > export const stripe = new Stripe(
93
+ > export const stripeClient = new Stripe(
91
94
  > process.env.STRIPE_SECRET_KEY || 'api_key_placeholder',
92
95
  > {
93
96
  > // ...
@@ -104,14 +107,14 @@ and instantiate it as `new Stripe()` with the latest API version.
104
107
 
105
108
  ```ts
106
109
  import Stripe from 'stripe';
107
- const stripe = new Stripe('sk_test_...');
110
+ const stripeClient = new Stripe('sk_test_...');
108
111
 
109
112
  const createCustomer = async () => {
110
113
  const params: Stripe.CustomerCreateParams = {
111
114
  description: 'test customer',
112
115
  };
113
116
 
114
- const customer: Stripe.Customer = await stripe.customers.create(params);
117
+ const customer: Stripe.Customer = await stripeClient.customers.create(params);
115
118
 
116
119
  console.log(customer.id);
117
120
  };
@@ -141,7 +144,7 @@ We also recommend using `// @ts-ignore` if you have access to a beta feature and
141
144
  so you must cast them appropriately, e.g.,
142
145
 
143
146
  ```ts
144
- const paymentIntent: Stripe.PaymentIntent = await stripe.paymentIntents.retrieve(
147
+ const paymentIntent: Stripe.PaymentIntent = await stripeClient.paymentIntents.retrieve(
145
148
  'pi_123456789',
146
149
  {
147
150
  expand: ['customer'],
@@ -170,7 +173,7 @@ callback:
170
173
 
171
174
  ```js
172
175
  // Create a new customer and then create an invoice item then invoice it:
173
- stripe.customers
176
+ stripeClient.customers
174
177
  .create({
175
178
  email: 'customer@example.com',
176
179
  })
@@ -248,7 +251,7 @@ const stripe = Stripe('sk_test_...', {
248
251
  Timeout can be set globally via the config object:
249
252
 
250
253
  ```js
251
- const stripe = Stripe('sk_test_...', {
254
+ const stripeClient = Stripe('sk_test_...', {
252
255
  timeout: 20 * 1000, // 20 seconds
253
256
  });
254
257
  ```
@@ -256,7 +259,7 @@ const stripe = Stripe('sk_test_...', {
256
259
  And overridden on a per-request basis:
257
260
 
258
261
  ```js
259
- stripe.customers.create(
262
+ stripeClient.customers.create(
260
263
  {
261
264
  email: 'customer@example.com',
262
265
  },
@@ -273,7 +276,7 @@ can be added to any method:
273
276
 
274
277
  ```js
275
278
  // List the balance transactions for a connected account:
276
- stripe.balanceTransactions.list(
279
+ stripeClient.balanceTransactions.list(
277
280
  {
278
281
  limit: 10,
279
282
  },
@@ -302,13 +305,13 @@ if (process.env.http_proxy) {
302
305
  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
306
 
304
307
  ```js
305
- const stripe = Stripe('sk_test_...', {
308
+ const stripeClient = Stripe('sk_test_...', {
306
309
  maxNetworkRetries: 0, // Disable retries
307
310
  });
308
311
  ```
309
312
 
310
313
  ```js
311
- const stripe = Stripe('sk_test_...', {
314
+ const stripeClient = Stripe('sk_test_...', {
312
315
  maxNetworkRetries: 2, // Retry a request twice before giving up
313
316
  });
314
317
  ```
@@ -316,7 +319,7 @@ const stripe = Stripe('sk_test_...', {
316
319
  Network retries can also be set on a per-request basis:
317
320
 
318
321
  ```js
319
- stripe.customers.create(
322
+ stripeClient.customers.create(
320
323
  {
321
324
  email: 'customer@example.com',
322
325
  },
@@ -341,17 +344,18 @@ customer.lastResponse.statusCode;
341
344
  The Stripe object emits `request` and `response` events. You can use them like this:
342
345
 
343
346
  ```js
344
- const stripe = require('stripe')('sk_test_...');
347
+ const Stripe = require('stripe');
348
+ const stripeClient = Stripe('sk_test_...');
345
349
 
346
350
  const onRequest = (request) => {
347
351
  // Do something.
348
352
  };
349
353
 
350
354
  // Add the event handler function:
351
- stripe.on('request', onRequest);
355
+ stripeClient.on('request', onRequest);
352
356
 
353
357
  // Remove the event handler function:
354
- stripe.off('request', onRequest);
358
+ stripeClient.off('request', onRequest);
355
359
  ```
356
360
 
357
361
  #### `request` object
@@ -395,7 +399,7 @@ Please note that you must pass the _raw_ request body, exactly as received from
395
399
  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
400
 
397
401
  ```js
398
- const event = stripe.webhooks.constructEvent(
402
+ const event = stripeClient.webhooks.constructEvent(
399
403
  webhookRawBody,
400
404
  webhookStripeSignatureHeader,
401
405
  webhookSecret
@@ -404,7 +408,7 @@ const event = stripe.webhooks.constructEvent(
404
408
 
405
409
  #### Testing Webhook signing
406
410
 
407
- You can use `stripe.webhooks.generateTestHeaderString` to mock webhook events that come from Stripe:
411
+ You can use `stripeClient.webhooks.generateTestHeaderString` to mock webhook events that come from Stripe:
408
412
 
409
413
  ```js
410
414
  const payload = {
@@ -415,12 +419,12 @@ const payload = {
415
419
  const payloadString = JSON.stringify(payload, null, 2);
416
420
  const secret = 'whsec_test_secret';
417
421
 
418
- const header = stripe.webhooks.generateTestHeaderString({
422
+ const header = stripeClient.webhooks.generateTestHeaderString({
419
423
  payload: payloadString,
420
424
  secret,
421
425
  });
422
426
 
423
- const event = stripe.webhooks.constructEvent(payloadString, header, secret);
427
+ const event = stripeClient.webhooks.constructEvent(payloadString, header, secret);
424
428
 
425
429
  // Do something with mocked signed event
426
430
  expect(event.id).to.equal(payload.id);
@@ -436,8 +440,10 @@ See [undocumented params and properties](https://docs.stripe.com/sdks/server-sid
436
440
 
437
441
  If you're writing a plugin that uses the library, we'd appreciate it if you instantiated your stripe client with `appInfo`, eg;
438
442
 
443
+ With ES modules or TypeScript:
439
444
  ```js
440
- const stripe = require('stripe')('sk_test_...', {
445
+ import Stripe from "stripe";
446
+ const stripeClient = new Stripe(apiKey, {
441
447
  appInfo: {
442
448
  name: 'MyAwesomePlugin',
443
449
  version: '1.2.34', // Optional
@@ -446,10 +452,10 @@ const stripe = require('stripe')('sk_test_...', {
446
452
  });
447
453
  ```
448
454
 
449
- Or using ES modules or TypeScript:
450
-
455
+ Or using CJS:
451
456
  ```js
452
- const stripe = new Stripe(apiKey, {
457
+ const Stripe = require('stripe');
458
+ const stripeClient = Stripe('sk_test_...', {
453
459
  appInfo: {
454
460
  name: 'MyAwesomePlugin',
455
461
  version: '1.2.34', // Optional
@@ -458,6 +464,7 @@ const stripe = new Stripe(apiKey, {
458
464
  });
459
465
  ```
460
466
 
467
+
461
468
  This information is passed along when the library makes calls to the Stripe API.
462
469
 
463
470
  ### Auto-pagination
@@ -471,7 +478,7 @@ such as Node 10+ or [babel](https://babeljs.io/docs/en/babel-plugin-transform-as
471
478
  the following will auto-paginate:
472
479
 
473
480
  ```js
474
- for await (const customer of stripe.customers.list()) {
481
+ for await (const customer of stripeClient.customers.list()) {
475
482
  doSomething(customer);
476
483
  if (shouldStop()) {
477
484
  break;
@@ -485,7 +492,7 @@ If you are in a Node environment that has support for `await`, such as Node 7.9
485
492
  you may pass an async function to `.autoPagingEach`:
486
493
 
487
494
  ```js
488
- await stripe.customers.list().autoPagingEach(async (customer) => {
495
+ await stripeClient.customers.list().autoPagingEach(async (customer) => {
489
496
  await doSomething(customer);
490
497
  if (shouldBreak()) {
491
498
  return false;
@@ -497,7 +504,7 @@ console.log('Done iterating.');
497
504
  Equivalently, without `await`, you may return a Promise, which can resolve to `false` to break:
498
505
 
499
506
  ```js
500
- stripe.customers
507
+ stripeClient.customers
501
508
  .list()
502
509
  .autoPagingEach((customer) => {
503
510
  return doSomething(customer).then(() => {
@@ -522,7 +529,7 @@ to prevent runaway list growth from consuming too much memory. Once the
522
529
  Returns a promise of an array of all items across pages for a list request.
523
530
 
524
531
  ```js
525
- const allNewCustomers = await stripe.customers
532
+ const allNewCustomers = await stripeClient.customers
526
533
  .list({created: {gt: lastMonth}, limit: 100}) // 100 items per page
527
534
  .autoPagingToArray({limit: 10000}); // Stop after 10000 items total
528
535
  ```
@@ -537,7 +544,7 @@ improve popular features.
537
544
  You can disable this behavior if you prefer:
538
545
 
539
546
  ```js
540
- const stripe = new Stripe('sk_test_...', {
547
+ const stripeClient = new Stripe('sk_test_...', {
541
548
  telemetry: false,
542
549
  });
543
550
  ```
@@ -567,7 +574,7 @@ npm install stripe@<some-version>
567
574
  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
575
 
569
576
  ```js
570
- const stripe = new Stripe('sk_test_...', {
577
+ const stripeClient = new Stripe('sk_test_...', {
571
578
  apiVersion: '2022-08-01; feature_beta=v3',
572
579
  });
573
580
  ```
@@ -586,21 +593,7 @@ npm install stripe@private-preview --save-exact
586
593
 
587
594
  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
595
 
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`:
596
+ Using ES modules and `async`/`await`:
604
597
 
605
598
  ```javascript
606
599
  import Stripe from 'stripe';
@@ -616,6 +609,21 @@ const response = await stripe.rawRequest(
616
609
  // handle response
617
610
  ```
618
611
 
612
+ Or using CJS and promises:
613
+
614
+ ```javascript
615
+ const stripeClient = new Stripe('sk_test_...');
616
+
617
+ stripeClient.rawRequest(
618
+ 'POST',
619
+ '/v1/beta_endpoint',
620
+ { param: 123 },
621
+ { apiVersion: '2022-11-15; feature_beta=v3' }
622
+ )
623
+ .then((response) => /* handle response */ )
624
+ .catch((error) => console.error(error));
625
+ ```
626
+
619
627
  ## Support
620
628
 
621
629
  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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 22.2.0-beta.3
1
+ 22.2.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":[],"mapp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CAIC;AACD,MAAa,4BAA6B,SAAQ,WAAW;IAC3D,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,8BAA8B,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,oEAIC;AACD,2EAA2E"}
@@ -13,6 +13,7 @@ export declare class RequestSender {
13
13
  _addHeadersDirectlyToObject(obj: any, headers: RequestHeaders): void;
14
14
  _makeResponseEvent(requestEvent: RequestEvent, statusCode: number, headers: RequestHeaders): ResponseEvent;
15
15
  _getRequestId(headers: RequestHeaders): string;
16
+ private _emitStripeNotice;
16
17
  /**
17
18
  * Used by methods with spec.streaming === true. For these methods, we do not
18
19
  * buffer successful responses into memory or do parse them into stripe
@@ -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);
@@ -253,7 +261,7 @@ class RequestSender {
253
261
  // and fix these cases as they are semantically incorrect.
254
262
  if (methodHasPayload || contentLength) {
255
263
  if (!methodHasPayload) {
256
- (0, utils_js_1.emitWarning)(`${method} method had non-zero contentLength but no payload is expected for this verb`);
264
+ this._stripe._platformFunctions.emitWarning(`${method} method had non-zero contentLength but no payload is expected for this verb`);
257
265
  }
258
266
  defaultHeaders['Content-Length'] = contentLength;
259
267
  }
@@ -288,7 +296,7 @@ class RequestSender {
288
296
  _recordRequestMetrics(requestId, requestDurationMs, usage) {
289
297
  if (this._stripe.getTelemetryEnabled() && requestId) {
290
298
  if (this._stripe._prevRequestMetrics.length > this._maxBufferedRequestMetric) {
291
- (0, utils_js_1.emitWarning)('Request metrics buffer is full, dropping telemetry message.');
299
+ this._stripe._platformFunctions.emitWarning('Request metrics buffer is full, dropping telemetry message.');
292
300
  }
293
301
  else {
294
302
  const m = {