modern-treasury 2.2.0 → 2.4.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 (373) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +43 -15
  3. package/_shims/ReadableStream-node.d.ts +6 -0
  4. package/_shims/ReadableStream-node.d.ts.map +1 -0
  5. package/_shims/ReadableStream-node.js +14 -0
  6. package/_shims/ReadableStream-node.js.map +1 -0
  7. package/_shims/ReadableStream-node.mjs +3 -0
  8. package/_shims/ReadableStream-node.mjs.map +1 -0
  9. package/_shims/ReadableStream.d.ts +38 -0
  10. package/_shims/ReadableStream.js +5 -0
  11. package/_shims/ReadableStream.mjs +7 -0
  12. package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
  13. package/_shims/agent-node.d.ts.map +1 -0
  14. package/_shims/{agent.node.js → agent-node.js} +1 -1
  15. package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
  16. package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
  17. package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
  18. package/_shims/agent.d.ts +1 -1
  19. package/_shims/agent.js +1 -1
  20. package/_shims/agent.mjs +1 -1
  21. package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +12 -1
  22. package/_shims/fetch.d.ts +9 -1
  23. package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
  24. package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
  25. package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
  26. package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
  27. package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
  28. package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
  29. package/_shims/fileFromPath.d.ts +2 -2
  30. package/_shims/fileFromPath.d.ts.map +1 -1
  31. package/_shims/fileFromPath.js +1 -1
  32. package/_shims/fileFromPath.mjs +1 -1
  33. package/_shims/form-data.js +17 -0
  34. package/_shims/form-data.mjs +20 -0
  35. package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
  36. package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
  37. package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
  38. package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
  39. package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
  40. package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
  41. package/_shims/getMultipartRequestOptions.d.ts +1 -1
  42. package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
  43. package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
  44. package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
  45. package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
  46. package/_shims/node-readable-node.js.map +1 -0
  47. package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
  48. package/_shims/node-readable-node.mjs.map +1 -0
  49. package/core.d.ts +91 -34
  50. package/core.d.ts.map +1 -1
  51. package/core.js +201 -70
  52. package/core.js.map +1 -1
  53. package/core.mjs +195 -70
  54. package/core.mjs.map +1 -1
  55. package/index.d.mts +19 -7
  56. package/index.d.ts +19 -7
  57. package/index.d.ts.map +1 -1
  58. package/index.js +23 -9
  59. package/index.js.map +1 -1
  60. package/index.mjs +23 -9
  61. package/index.mjs.map +1 -1
  62. package/package.json +32 -9
  63. package/pagination.d.ts +2 -2
  64. package/pagination.d.ts.map +1 -1
  65. package/pagination.js +5 -5
  66. package/pagination.js.map +1 -1
  67. package/pagination.mjs +5 -5
  68. package/pagination.mjs.map +1 -1
  69. package/resources/account-collection-flows.d.ts +8 -33
  70. package/resources/account-collection-flows.d.ts.map +1 -1
  71. package/resources/account-collection-flows.js +22 -17
  72. package/resources/account-collection-flows.js.map +1 -1
  73. package/resources/account-collection-flows.mjs +22 -17
  74. package/resources/account-collection-flows.mjs.map +1 -1
  75. package/resources/account-details.d.ts +8 -13
  76. package/resources/account-details.d.ts.map +1 -1
  77. package/resources/account-details.js +10 -4
  78. package/resources/account-details.js.map +1 -1
  79. package/resources/account-details.mjs +10 -4
  80. package/resources/account-details.mjs.map +1 -1
  81. package/resources/connections.d.ts +5 -2
  82. package/resources/connections.d.ts.map +1 -1
  83. package/resources/connections.js +3 -3
  84. package/resources/connections.js.map +1 -1
  85. package/resources/connections.mjs +3 -3
  86. package/resources/connections.mjs.map +1 -1
  87. package/resources/counterparties.d.ts +37 -51
  88. package/resources/counterparties.d.ts.map +1 -1
  89. package/resources/counterparties.js +17 -5
  90. package/resources/counterparties.js.map +1 -1
  91. package/resources/counterparties.mjs +17 -5
  92. package/resources/counterparties.mjs.map +1 -1
  93. package/resources/documents.d.ts +6 -17
  94. package/resources/documents.d.ts.map +1 -1
  95. package/resources/documents.js +13 -7
  96. package/resources/documents.js.map +1 -1
  97. package/resources/documents.mjs +13 -7
  98. package/resources/documents.mjs.map +1 -1
  99. package/resources/events.d.ts +3 -3
  100. package/resources/events.d.ts.map +1 -1
  101. package/resources/events.js +3 -3
  102. package/resources/events.mjs +3 -3
  103. package/resources/expected-payments.d.ts +30 -39
  104. package/resources/expected-payments.d.ts.map +1 -1
  105. package/resources/expected-payments.js +10 -4
  106. package/resources/expected-payments.js.map +1 -1
  107. package/resources/expected-payments.mjs +10 -4
  108. package/resources/expected-payments.mjs.map +1 -1
  109. package/resources/external-accounts.d.ts +27 -61
  110. package/resources/external-accounts.d.ts.map +1 -1
  111. package/resources/external-accounts.js +24 -6
  112. package/resources/external-accounts.js.map +1 -1
  113. package/resources/external-accounts.mjs +24 -6
  114. package/resources/external-accounts.mjs.map +1 -1
  115. package/resources/incoming-payment-details.d.ts +20 -21
  116. package/resources/incoming-payment-details.d.ts.map +1 -1
  117. package/resources/incoming-payment-details.js +10 -4
  118. package/resources/incoming-payment-details.js.map +1 -1
  119. package/resources/incoming-payment-details.mjs +10 -4
  120. package/resources/incoming-payment-details.mjs.map +1 -1
  121. package/resources/index.d.ts +0 -3
  122. package/resources/index.d.ts.map +1 -1
  123. package/resources/index.js.map +1 -1
  124. package/resources/index.mjs.map +1 -1
  125. package/resources/internal-accounts/balance-reports.d.ts +6 -3
  126. package/resources/internal-accounts/balance-reports.d.ts.map +1 -1
  127. package/resources/internal-accounts/balance-reports.js +3 -3
  128. package/resources/internal-accounts/balance-reports.js.map +1 -1
  129. package/resources/internal-accounts/balance-reports.mjs +3 -3
  130. package/resources/internal-accounts/balance-reports.mjs.map +1 -1
  131. package/resources/internal-accounts/internal-accounts.d.ts +16 -21
  132. package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
  133. package/resources/internal-accounts/internal-accounts.js +10 -4
  134. package/resources/internal-accounts/internal-accounts.js.map +1 -1
  135. package/resources/internal-accounts/internal-accounts.mjs +10 -4
  136. package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
  137. package/resources/invoices/invoices.d.ts +67 -42
  138. package/resources/invoices/invoices.d.ts.map +1 -1
  139. package/resources/invoices/invoices.js +10 -4
  140. package/resources/invoices/invoices.js.map +1 -1
  141. package/resources/invoices/invoices.mjs +10 -4
  142. package/resources/invoices/invoices.mjs.map +1 -1
  143. package/resources/invoices/line-items.d.ts +32 -185
  144. package/resources/invoices/line-items.d.ts.map +1 -1
  145. package/resources/invoices/line-items.js +10 -4
  146. package/resources/invoices/line-items.js.map +1 -1
  147. package/resources/invoices/line-items.mjs +10 -4
  148. package/resources/invoices/line-items.mjs.map +1 -1
  149. package/resources/ledger-account-categories.d.ts +47 -87
  150. package/resources/ledger-account-categories.d.ts.map +1 -1
  151. package/resources/ledger-account-categories.js +21 -17
  152. package/resources/ledger-account-categories.js.map +1 -1
  153. package/resources/ledger-account-categories.mjs +21 -17
  154. package/resources/ledger-account-categories.mjs.map +1 -1
  155. package/resources/ledger-account-payouts.d.ts +33 -22
  156. package/resources/ledger-account-payouts.d.ts.map +1 -1
  157. package/resources/ledger-account-payouts.js +10 -4
  158. package/resources/ledger-account-payouts.js.map +1 -1
  159. package/resources/ledger-account-payouts.mjs +10 -4
  160. package/resources/ledger-account-payouts.mjs.map +1 -1
  161. package/resources/ledger-account-statements.d.ts +11 -16
  162. package/resources/ledger-account-statements.d.ts.map +1 -1
  163. package/resources/ledger-account-statements.js +8 -2
  164. package/resources/ledger-account-statements.js.map +1 -1
  165. package/resources/ledger-account-statements.mjs +8 -2
  166. package/resources/ledger-account-statements.mjs.map +1 -1
  167. package/resources/ledger-accounts.d.ts +30 -30
  168. package/resources/ledger-accounts.d.ts.map +1 -1
  169. package/resources/ledger-accounts.js +10 -4
  170. package/resources/ledger-accounts.js.map +1 -1
  171. package/resources/ledger-accounts.mjs +10 -4
  172. package/resources/ledger-accounts.mjs.map +1 -1
  173. package/resources/ledger-entries.d.ts +20 -6
  174. package/resources/ledger-entries.d.ts.map +1 -1
  175. package/resources/ledger-entries.js +3 -3
  176. package/resources/ledger-entries.js.map +1 -1
  177. package/resources/ledger-entries.mjs +3 -3
  178. package/resources/ledger-entries.mjs.map +1 -1
  179. package/resources/ledger-event-handlers.d.ts +12 -24
  180. package/resources/ledger-event-handlers.d.ts.map +1 -1
  181. package/resources/ledger-event-handlers.js +10 -4
  182. package/resources/ledger-event-handlers.js.map +1 -1
  183. package/resources/ledger-event-handlers.mjs +10 -4
  184. package/resources/ledger-event-handlers.mjs.map +1 -1
  185. package/resources/ledger-transactions/ledger-transactions.d.ts +48 -37
  186. package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
  187. package/resources/ledger-transactions/ledger-transactions.js +13 -7
  188. package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
  189. package/resources/ledger-transactions/ledger-transactions.mjs +13 -7
  190. package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
  191. package/resources/ledger-transactions/versions.d.ts +4 -2
  192. package/resources/ledger-transactions/versions.d.ts.map +1 -1
  193. package/resources/ledger-transactions/versions.js +3 -3
  194. package/resources/ledger-transactions/versions.js.map +1 -1
  195. package/resources/ledger-transactions/versions.mjs +3 -3
  196. package/resources/ledger-transactions/versions.mjs.map +1 -1
  197. package/resources/ledgerable-events.d.ts +13 -18
  198. package/resources/ledgerable-events.d.ts.map +1 -1
  199. package/resources/ledgerable-events.js +8 -2
  200. package/resources/ledgerable-events.js.map +1 -1
  201. package/resources/ledgerable-events.mjs +8 -2
  202. package/resources/ledgerable-events.mjs.map +1 -1
  203. package/resources/ledgers.d.ts +16 -20
  204. package/resources/ledgers.d.ts.map +1 -1
  205. package/resources/ledgers.js +10 -4
  206. package/resources/ledgers.js.map +1 -1
  207. package/resources/ledgers.mjs +10 -4
  208. package/resources/ledgers.mjs.map +1 -1
  209. package/resources/line-items.d.ts +5 -5
  210. package/resources/line-items.d.ts.map +1 -1
  211. package/resources/line-items.js +3 -3
  212. package/resources/line-items.mjs +3 -3
  213. package/resources/paper-items.d.ts +6 -3
  214. package/resources/paper-items.d.ts.map +1 -1
  215. package/resources/paper-items.js +3 -3
  216. package/resources/paper-items.js.map +1 -1
  217. package/resources/paper-items.mjs +3 -3
  218. package/resources/paper-items.mjs.map +1 -1
  219. package/resources/payment-flows.d.ts +18 -42
  220. package/resources/payment-flows.d.ts.map +1 -1
  221. package/resources/payment-flows.js +22 -17
  222. package/resources/payment-flows.js.map +1 -1
  223. package/resources/payment-flows.mjs +22 -17
  224. package/resources/payment-flows.mjs.map +1 -1
  225. package/resources/payment-orders/payment-orders.d.ts +172 -191
  226. package/resources/payment-orders/payment-orders.d.ts.map +1 -1
  227. package/resources/payment-orders/payment-orders.js +21 -11
  228. package/resources/payment-orders/payment-orders.js.map +1 -1
  229. package/resources/payment-orders/payment-orders.mjs +21 -11
  230. package/resources/payment-orders/payment-orders.mjs.map +1 -1
  231. package/resources/payment-orders/reversals.d.ts +21 -22
  232. package/resources/payment-orders/reversals.d.ts.map +1 -1
  233. package/resources/payment-orders/reversals.js +10 -4
  234. package/resources/payment-orders/reversals.js.map +1 -1
  235. package/resources/payment-orders/reversals.mjs +10 -4
  236. package/resources/payment-orders/reversals.mjs.map +1 -1
  237. package/resources/payment-references.d.ts +3 -3
  238. package/resources/payment-references.d.ts.map +1 -1
  239. package/resources/payment-references.js +3 -3
  240. package/resources/payment-references.mjs +3 -3
  241. package/resources/returns.d.ts +16 -19
  242. package/resources/returns.d.ts.map +1 -1
  243. package/resources/returns.js +10 -4
  244. package/resources/returns.js.map +1 -1
  245. package/resources/returns.mjs +10 -4
  246. package/resources/returns.mjs.map +1 -1
  247. package/resources/routing-details.d.ts +9 -15
  248. package/resources/routing-details.d.ts.map +1 -1
  249. package/resources/routing-details.js +10 -4
  250. package/resources/routing-details.js.map +1 -1
  251. package/resources/routing-details.mjs +10 -4
  252. package/resources/routing-details.mjs.map +1 -1
  253. package/resources/transactions/line-items.d.ts +5 -2
  254. package/resources/transactions/line-items.d.ts.map +1 -1
  255. package/resources/transactions/line-items.js +3 -3
  256. package/resources/transactions/line-items.js.map +1 -1
  257. package/resources/transactions/line-items.mjs +3 -3
  258. package/resources/transactions/line-items.mjs.map +1 -1
  259. package/resources/transactions/transactions.d.ts +8 -5
  260. package/resources/transactions/transactions.d.ts.map +1 -1
  261. package/resources/transactions/transactions.js +3 -3
  262. package/resources/transactions/transactions.js.map +1 -1
  263. package/resources/transactions/transactions.mjs +3 -3
  264. package/resources/transactions/transactions.mjs.map +1 -1
  265. package/resources/validations.d.ts +1 -1
  266. package/resources/validations.d.ts.map +1 -1
  267. package/resources/validations.js +1 -1
  268. package/resources/validations.mjs +1 -1
  269. package/resources/virtual-accounts.d.ts +19 -28
  270. package/resources/virtual-accounts.d.ts.map +1 -1
  271. package/resources/virtual-accounts.js +10 -4
  272. package/resources/virtual-accounts.js.map +1 -1
  273. package/resources/virtual-accounts.mjs +10 -4
  274. package/resources/virtual-accounts.mjs.map +1 -1
  275. package/resources/webhooks.js +2 -2
  276. package/resources/webhooks.mjs +2 -2
  277. package/src/_shims/ReadableStream-node.ts +6 -0
  278. package/src/_shims/ReadableStream.d.ts +38 -0
  279. package/src/_shims/ReadableStream.js +5 -0
  280. package/src/_shims/ReadableStream.mjs +7 -0
  281. package/src/_shims/agent.ts +1 -1
  282. package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +20 -9
  283. package/src/_shims/fetch.d.ts +18 -10
  284. package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
  285. package/src/_shims/fileFromPath.ts +2 -2
  286. package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
  287. package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
  288. package/src/_shims/form-data.js +17 -0
  289. package/src/_shims/form-data.mjs +20 -0
  290. package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
  291. package/src/_shims/getMultipartRequestOptions.ts +3 -3
  292. package/src/core.ts +275 -97
  293. package/src/error.ts +1 -1
  294. package/src/index.ts +31 -18
  295. package/src/pagination.ts +6 -6
  296. package/src/resource.ts +1 -1
  297. package/src/resources/account-collection-flows.ts +29 -57
  298. package/src/resources/account-details.ts +22 -22
  299. package/src/resources/connections.ts +11 -8
  300. package/src/resources/counterparties.ts +61 -65
  301. package/src/resources/documents.ts +21 -30
  302. package/src/resources/events.ts +9 -9
  303. package/src/resources/expected-payments.ts +45 -49
  304. package/src/resources/external-accounts.ts +59 -78
  305. package/src/resources/incoming-payment-details.ts +38 -33
  306. package/src/resources/index.ts +39 -36
  307. package/src/resources/internal-accounts/balance-reports.ts +13 -10
  308. package/src/resources/internal-accounts/index.ts +2 -2
  309. package/src/resources/internal-accounts/internal-accounts.ts +35 -35
  310. package/src/resources/invoices/index.ts +2 -2
  311. package/src/resources/invoices/invoices.ts +91 -54
  312. package/src/resources/invoices/line-items.ts +46 -228
  313. package/src/resources/ledger-account-categories.ts +67 -111
  314. package/src/resources/ledger-account-payouts.ts +49 -30
  315. package/src/resources/ledger-account-statements.ts +21 -21
  316. package/src/resources/ledger-accounts.ts +46 -40
  317. package/src/resources/ledger-entries.ts +29 -13
  318. package/src/resources/ledger-event-handlers.ts +25 -35
  319. package/src/resources/ledger-transactions/index.ts +2 -2
  320. package/src/resources/ledger-transactions/ledger-transactions.ts +73 -53
  321. package/src/resources/ledger-transactions/versions.ts +10 -8
  322. package/src/resources/ledgerable-events.ts +23 -23
  323. package/src/resources/ledgers.ts +31 -29
  324. package/src/resources/line-items.ts +12 -12
  325. package/src/resources/paper-items.ts +13 -10
  326. package/src/resources/payment-flows.ts +39 -66
  327. package/src/resources/payment-orders/index.ts +2 -2
  328. package/src/resources/payment-orders/payment-orders.ts +204 -216
  329. package/src/resources/payment-orders/reversals.ts +36 -31
  330. package/src/resources/payment-references.ts +9 -9
  331. package/src/resources/returns.ts +30 -28
  332. package/src/resources/routing-details.ts +23 -24
  333. package/src/resources/top-level.ts +1 -1
  334. package/src/resources/transactions/index.ts +7 -2
  335. package/src/resources/transactions/line-items.ts +11 -8
  336. package/src/resources/transactions/transactions.ts +17 -14
  337. package/src/resources/validations.ts +4 -4
  338. package/src/resources/virtual-accounts.ts +35 -39
  339. package/src/resources/webhooks.ts +3 -3
  340. package/src/tsconfig.json +11 -0
  341. package/src/uploads.ts +6 -6
  342. package/src/version.ts +1 -1
  343. package/uploads.d.ts +1 -1
  344. package/uploads.d.ts.map +1 -1
  345. package/uploads.js +7 -7
  346. package/uploads.js.map +1 -1
  347. package/uploads.mjs +4 -4
  348. package/uploads.mjs.map +1 -1
  349. package/version.d.ts +1 -1
  350. package/version.js +1 -1
  351. package/version.mjs +1 -1
  352. package/_shims/agent.node.d.ts.map +0 -1
  353. package/_shims/formdata.js +0 -9
  354. package/_shims/formdata.mjs +0 -11
  355. package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
  356. package/_shims/node-readable.node.js.map +0 -1
  357. package/_shims/node-readable.node.mjs.map +0 -1
  358. package/src/_shims/fetch.deno.ts +0 -23
  359. package/src/_shims/formdata.deno.ts +0 -16
  360. package/src/_shims/formdata.js +0 -9
  361. package/src/_shims/formdata.mjs +0 -11
  362. /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
  363. /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  364. /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
  365. /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
  366. /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  367. /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
  368. /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
  369. /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
  370. /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
  371. /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
  372. /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
  373. /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
@@ -1,13 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../core';
4
- import { APIResource } from '../resource';
5
- import { isRequestOptions } from '../core';
6
- import * as AccountDetails from './account-details';
7
- import * as RoutingDetails from './routing-details';
8
- import * as Shared from './shared';
9
- import * as API from './index';
10
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as AccountDetails from './account-details.js';
7
+ import * as RoutingDetails from './routing-details.js';
8
+ import * as Shared from './shared.js';
9
+ import * as API from './index.js';
10
+ import { Page, PageParams } from '../pagination.js';
11
11
 
12
12
  export class ExternalAccounts extends APIResource {
13
13
  /**
@@ -16,19 +16,25 @@ export class ExternalAccounts extends APIResource {
16
16
  create(
17
17
  params: ExternalAccountCreateParams,
18
18
  options?: Core.RequestOptions,
19
- ): Promise<Core.APIResponse<ExternalAccount>> {
19
+ ): Core.APIPromise<ExternalAccount> {
20
+ // @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
20
21
  const { 'Idempotency-Key': idempotencyKey, ...body } = params;
22
+ if (idempotencyKey) {
23
+ console.warn(
24
+ "The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
25
+ );
26
+ }
21
27
  return this.post('/api/external_accounts', {
22
28
  body,
23
29
  ...options,
24
- headers: { 'Idempotency-Key': idempotencyKey || '', ...options?.headers },
30
+ headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
25
31
  });
26
32
  }
27
33
 
28
34
  /**
29
35
  * show external account
30
36
  */
31
- retrieve(id: string, options?: Core.RequestOptions): Promise<Core.APIResponse<ExternalAccount>> {
37
+ retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<ExternalAccount> {
32
38
  return this.get(`/api/external_accounts/${id}`, options);
33
39
  }
34
40
 
@@ -39,13 +45,13 @@ export class ExternalAccounts extends APIResource {
39
45
  id: string,
40
46
  body?: ExternalAccountUpdateParams,
41
47
  options?: Core.RequestOptions,
42
- ): Promise<Core.APIResponse<ExternalAccount>>;
43
- update(id: string, options?: Core.RequestOptions): Promise<Core.APIResponse<ExternalAccount>>;
48
+ ): Core.APIPromise<ExternalAccount>;
49
+ update(id: string, options?: Core.RequestOptions): Core.APIPromise<ExternalAccount>;
44
50
  update(
45
51
  id: string,
46
52
  body: ExternalAccountUpdateParams | Core.RequestOptions = {},
47
53
  options?: Core.RequestOptions,
48
- ): Promise<Core.APIResponse<ExternalAccount>> {
54
+ ): Core.APIPromise<ExternalAccount> {
49
55
  if (isRequestOptions(body)) {
50
56
  return this.update(id, {}, body);
51
57
  }
@@ -58,12 +64,12 @@ export class ExternalAccounts extends APIResource {
58
64
  list(
59
65
  query?: ExternalAccountListParams,
60
66
  options?: Core.RequestOptions,
61
- ): Core.PagePromise<ExternalAccountsPage>;
62
- list(options?: Core.RequestOptions): Core.PagePromise<ExternalAccountsPage>;
67
+ ): Core.PagePromise<ExternalAccountsPage, ExternalAccount>;
68
+ list(options?: Core.RequestOptions): Core.PagePromise<ExternalAccountsPage, ExternalAccount>;
63
69
  list(
64
70
  query: ExternalAccountListParams | Core.RequestOptions = {},
65
71
  options?: Core.RequestOptions,
66
- ): Core.PagePromise<ExternalAccountsPage> {
72
+ ): Core.PagePromise<ExternalAccountsPage, ExternalAccount> {
67
73
  if (isRequestOptions(query)) {
68
74
  return this.list({}, query);
69
75
  }
@@ -73,7 +79,7 @@ export class ExternalAccounts extends APIResource {
73
79
  /**
74
80
  * delete external account
75
81
  */
76
- del(id: string, options?: Core.RequestOptions): Promise<Core.APIResponse<void>> {
82
+ del(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
77
83
  return this.delete(`/api/external_accounts/${id}`, {
78
84
  ...options,
79
85
  headers: { Accept: '', ...options?.headers },
@@ -87,21 +93,27 @@ export class ExternalAccounts extends APIResource {
87
93
  id: string,
88
94
  params?: ExternalAccountCompleteVerificationParams,
89
95
  options?: Core.RequestOptions,
90
- ): Promise<Core.APIResponse<ExternalAccount>>;
91
- completeVerification(id: string, options?: Core.RequestOptions): Promise<Core.APIResponse<ExternalAccount>>;
96
+ ): Core.APIPromise<ExternalAccount>;
97
+ completeVerification(id: string, options?: Core.RequestOptions): Core.APIPromise<ExternalAccount>;
92
98
  completeVerification(
93
99
  id: string,
94
100
  params: ExternalAccountCompleteVerificationParams | Core.RequestOptions = {},
95
101
  options?: Core.RequestOptions,
96
- ): Promise<Core.APIResponse<ExternalAccount>> {
102
+ ): Core.APIPromise<ExternalAccount> {
97
103
  if (isRequestOptions(params)) {
98
104
  return this.completeVerification(id, {}, params);
99
105
  }
106
+ // @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
100
107
  const { 'Idempotency-Key': idempotencyKey, ...body } = params;
108
+ if (idempotencyKey) {
109
+ console.warn(
110
+ "The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
111
+ );
112
+ }
101
113
  return this.post(`/api/external_accounts/${id}/complete_verification`, {
102
114
  body,
103
115
  ...options,
104
- headers: { 'Idempotency-Key': idempotencyKey || '', ...options?.headers },
116
+ headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
105
117
  });
106
118
  }
107
119
 
@@ -112,12 +124,18 @@ export class ExternalAccounts extends APIResource {
112
124
  id: string,
113
125
  params: ExternalAccountVerifyParams,
114
126
  options?: Core.RequestOptions,
115
- ): Promise<Core.APIResponse<ExternalAccount>> {
127
+ ): Core.APIPromise<ExternalAccount> {
128
+ // @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
116
129
  const { 'Idempotency-Key': idempotencyKey, ...body } = params;
130
+ if (idempotencyKey) {
131
+ console.warn(
132
+ "The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
133
+ );
134
+ }
117
135
  return this.post(`/api/external_accounts/${id}/verify`, {
118
136
  body,
119
137
  ...options,
120
- headers: { 'Idempotency-Key': idempotencyKey || '', ...options?.headers },
138
+ headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
121
139
  });
122
140
  }
123
141
  }
@@ -272,84 +290,62 @@ export type ExternalAccountType =
272
290
  | 'savings';
273
291
 
274
292
  export interface ExternalAccountCreateParams {
275
- /**
276
- * Body param:
277
- */
278
293
  counterparty_id: string | null;
279
294
 
280
- /**
281
- * Body param:
282
- */
283
295
  account_details?: Array<ExternalAccountCreateParams.AccountDetail>;
284
296
 
285
297
  /**
286
- * Body param: Can be `checking`, `savings` or `other`.
298
+ * Can be `checking`, `savings` or `other`.
287
299
  */
288
300
  account_type?: ExternalAccountType;
289
301
 
290
- /**
291
- * Body param:
292
- */
293
302
  contact_details?: Array<ExternalAccountCreateParams.ContactDetail>;
294
303
 
295
304
  /**
296
- * Body param: Specifies a ledger account object that will be created with the
297
- * external account. The resulting ledger account is linked to the external account
298
- * for auto-ledgering Payment objects. See
305
+ * Specifies a ledger account object that will be created with the external
306
+ * account. The resulting ledger account is linked to the external account for
307
+ * auto-ledgering Payment objects. See
299
308
  * https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
300
309
  * for more details.
301
310
  */
302
311
  ledger_account?: ExternalAccountCreateParams.LedgerAccount;
303
312
 
304
313
  /**
305
- * Body param: Additional data represented as key-value pairs. Both the key and
306
- * value must be strings.
314
+ * Additional data represented as key-value pairs. Both the key and value must be
315
+ * strings.
307
316
  */
308
317
  metadata?: Record<string, string>;
309
318
 
310
319
  /**
311
- * Body param: A nickname for the external account. This is only for internal usage
312
- * and won't affect any payments
320
+ * A nickname for the external account. This is only for internal usage and won't
321
+ * affect any payments
313
322
  */
314
323
  name?: string | null;
315
324
 
316
325
  /**
317
- * Body param: Required if receiving wire payments.
326
+ * Required if receiving wire payments.
318
327
  */
319
328
  party_address?: ExternalAccountCreateParams.PartyAddress;
320
329
 
321
- /**
322
- * Body param:
323
- */
324
330
  party_identifier?: string;
325
331
 
326
332
  /**
327
- * Body param: If this value isn't provided, it will be inherited from the
328
- * counterparty's name.
333
+ * If this value isn't provided, it will be inherited from the counterparty's name.
329
334
  */
330
335
  party_name?: string;
331
336
 
332
337
  /**
333
- * Body param: Either `individual` or `business`.
338
+ * Either `individual` or `business`.
334
339
  */
335
340
  party_type?: 'business' | 'individual' | null;
336
341
 
337
342
  /**
338
- * Body param: If you've enabled the Modern Treasury + Plaid integration in your
339
- * Plaid account, you can pass the processor token in this field.
343
+ * If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
344
+ * you can pass the processor token in this field.
340
345
  */
341
346
  plaid_processor_token?: string;
342
347
 
343
- /**
344
- * Body param:
345
- */
346
348
  routing_details?: Array<ExternalAccountCreateParams.RoutingDetail>;
347
-
348
- /**
349
- * Header param: This key should be something unique, preferably something like an
350
- * UUID.
351
- */
352
- 'Idempotency-Key'?: string;
353
349
  }
354
350
 
355
351
  export namespace ExternalAccountCreateParams {
@@ -566,27 +562,18 @@ export interface ExternalAccountListParams extends PageParams {
566
562
  }
567
563
 
568
564
  export interface ExternalAccountCompleteVerificationParams {
569
- /**
570
- * Body param:
571
- */
572
565
  amounts?: Array<number>;
573
-
574
- /**
575
- * Header param: This key should be something unique, preferably something like an
576
- * UUID.
577
- */
578
- 'Idempotency-Key'?: string;
579
566
  }
580
567
 
581
568
  export interface ExternalAccountVerifyParams {
582
569
  /**
583
- * Body param: The ID of the internal account where the micro-deposits originate
584
- * from. Both credit and debit capabilities must be enabled.
570
+ * The ID of the internal account where the micro-deposits originate from. Both
571
+ * credit and debit capabilities must be enabled.
585
572
  */
586
573
  originating_account_id: string;
587
574
 
588
575
  /**
589
- * Body param: Both ach and eft are supported payment types.
576
+ * Both ach and eft are supported payment types.
590
577
  */
591
578
  payment_type:
592
579
  | 'ach'
@@ -608,15 +595,9 @@ export interface ExternalAccountVerifyParams {
608
595
  | 'wire';
609
596
 
610
597
  /**
611
- * Body param: Defaults to the currency of the originating account.
598
+ * Defaults to the currency of the originating account.
612
599
  */
613
600
  currency?: Shared.Currency | null;
614
-
615
- /**
616
- * Header param: This key should be something unique, preferably something like an
617
- * UUID.
618
- */
619
- 'Idempotency-Key'?: string;
620
601
  }
621
602
 
622
603
  export namespace ExternalAccounts {
@@ -1,18 +1,18 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- import * as Core from '../core';
4
- import { APIResource } from '../resource';
5
- import { isRequestOptions } from '../core';
6
- import * as VirtualAccounts from './virtual-accounts';
7
- import * as Shared from './shared';
8
- import * as API from './index';
9
- import { Page, PageParams } from '../pagination';
3
+ import * as Core from '../core.js';
4
+ import { APIResource } from '../resource.js';
5
+ import { isRequestOptions } from '../core.js';
6
+ import * as VirtualAccounts from './virtual-accounts.js';
7
+ import * as Shared from './shared.js';
8
+ import * as API from './index.js';
9
+ import { Page, PageParams } from '../pagination.js';
10
10
 
11
11
  export class IncomingPaymentDetails extends APIResource {
12
12
  /**
13
13
  * Get an existing Incoming Payment Detail.
14
14
  */
15
- retrieve(id: string, options?: Core.RequestOptions): Promise<Core.APIResponse<IncomingPaymentDetail>> {
15
+ retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<IncomingPaymentDetail> {
16
16
  return this.get(`/api/incoming_payment_details/${id}`, options);
17
17
  }
18
18
 
@@ -23,13 +23,13 @@ export class IncomingPaymentDetails extends APIResource {
23
23
  id: string,
24
24
  body?: IncomingPaymentDetailUpdateParams,
25
25
  options?: Core.RequestOptions,
26
- ): Promise<Core.APIResponse<IncomingPaymentDetail>>;
27
- update(id: string, options?: Core.RequestOptions): Promise<Core.APIResponse<IncomingPaymentDetail>>;
26
+ ): Core.APIPromise<IncomingPaymentDetail>;
27
+ update(id: string, options?: Core.RequestOptions): Core.APIPromise<IncomingPaymentDetail>;
28
28
  update(
29
29
  id: string,
30
30
  body: IncomingPaymentDetailUpdateParams | Core.RequestOptions = {},
31
31
  options?: Core.RequestOptions,
32
- ): Promise<Core.APIResponse<IncomingPaymentDetail>> {
32
+ ): Core.APIPromise<IncomingPaymentDetail> {
33
33
  if (isRequestOptions(body)) {
34
34
  return this.update(id, {}, body);
35
35
  }
@@ -42,12 +42,12 @@ export class IncomingPaymentDetails extends APIResource {
42
42
  list(
43
43
  query?: IncomingPaymentDetailListParams,
44
44
  options?: Core.RequestOptions,
45
- ): Core.PagePromise<IncomingPaymentDetailsPage>;
46
- list(options?: Core.RequestOptions): Core.PagePromise<IncomingPaymentDetailsPage>;
45
+ ): Core.PagePromise<IncomingPaymentDetailsPage, IncomingPaymentDetail>;
46
+ list(options?: Core.RequestOptions): Core.PagePromise<IncomingPaymentDetailsPage, IncomingPaymentDetail>;
47
47
  list(
48
48
  query: IncomingPaymentDetailListParams | Core.RequestOptions = {},
49
49
  options?: Core.RequestOptions,
50
- ): Core.PagePromise<IncomingPaymentDetailsPage> {
50
+ ): Core.PagePromise<IncomingPaymentDetailsPage, IncomingPaymentDetail> {
51
51
  if (isRequestOptions(query)) {
52
52
  return this.list({}, query);
53
53
  }
@@ -63,20 +63,26 @@ export class IncomingPaymentDetails extends APIResource {
63
63
  createAsync(
64
64
  params?: IncomingPaymentDetailCreateAsyncParams,
65
65
  options?: Core.RequestOptions,
66
- ): Promise<Core.APIResponse<Shared.AsyncResponse>>;
67
- createAsync(options?: Core.RequestOptions): Promise<Core.APIResponse<Shared.AsyncResponse>>;
66
+ ): Core.APIPromise<Shared.AsyncResponse>;
67
+ createAsync(options?: Core.RequestOptions): Core.APIPromise<Shared.AsyncResponse>;
68
68
  createAsync(
69
69
  params: IncomingPaymentDetailCreateAsyncParams | Core.RequestOptions = {},
70
70
  options?: Core.RequestOptions,
71
- ): Promise<Core.APIResponse<Shared.AsyncResponse>> {
71
+ ): Core.APIPromise<Shared.AsyncResponse> {
72
72
  if (isRequestOptions(params)) {
73
73
  return this.createAsync({}, params);
74
74
  }
75
+ // @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
75
76
  const { 'Idempotency-Key': idempotencyKey, ...body } = params;
77
+ if (idempotencyKey) {
78
+ console.warn(
79
+ "The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
80
+ );
81
+ }
76
82
  return this.post('/api/simulations/incoming_payment_details/create_async', {
77
83
  body,
78
84
  ...options,
79
- headers: { 'Idempotency-Key': idempotencyKey || '', ...options?.headers },
85
+ headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
80
86
  });
81
87
  }
82
88
  }
@@ -275,47 +281,46 @@ export interface IncomingPaymentDetailListParams extends PageParams {
275
281
 
276
282
  export interface IncomingPaymentDetailCreateAsyncParams {
277
283
  /**
278
- * Body param: Value in specified currency's smallest unit. e.g. $10 would be
279
- * represented as 1000.
284
+ * Value in specified currency's smallest unit. e.g. $10 would be represented
285
+ * as 1000.
280
286
  */
281
287
  amount?: number;
282
288
 
283
289
  /**
284
- * Body param: Defaults to today.
290
+ * Defaults to today.
285
291
  */
286
292
  as_of_date?: string | null;
287
293
 
288
294
  /**
289
- * Body param: Defaults to the currency of the originating account.
295
+ * Defaults to the currency of the originating account.
290
296
  */
291
297
  currency?: Shared.Currency | null;
292
298
 
293
299
  /**
294
- * Body param: One of `credit`, `debit`.
300
+ * Defaults to a random description.
301
+ */
302
+ description?: string | null;
303
+
304
+ /**
305
+ * One of `credit`, `debit`.
295
306
  */
296
307
  direction?: 'credit' | 'debit';
297
308
 
298
309
  /**
299
- * Body param: The ID of one of your internal accounts.
310
+ * The ID of one of your internal accounts.
300
311
  */
301
312
  internal_account_id?: string;
302
313
 
303
314
  /**
304
- * Body param: One of `ach`, `wire`, `check`.
315
+ * One of `ach`, `wire`, `check`.
305
316
  */
306
317
  type?: 'ach' | 'book' | 'check' | 'eft' | 'interac' | 'rtp' | 'sepa' | 'signet' | 'wire';
307
318
 
308
319
  /**
309
- * Body param: An optional parameter to associate the incoming payment detail to a
310
- * virtual account.
320
+ * An optional parameter to associate the incoming payment detail to a virtual
321
+ * account.
311
322
  */
312
323
  virtual_account_id?: string | null;
313
-
314
- /**
315
- * Header param: This key should be something unique, preferably something like an
316
- * UUID.
317
- */
318
- 'Idempotency-Key'?: string;
319
324
  }
320
325
 
321
326
  export namespace IncomingPaymentDetails {
@@ -1,23 +1,22 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
- export * from './shared';
3
+ export * from './shared.js';
4
4
  export {
5
5
  AccountCollectionFlow,
6
6
  AccountCollectionFlowCreateParams,
7
- AccountCollectionFlowRetrieveParams,
8
7
  AccountCollectionFlowUpdateParams,
9
8
  AccountCollectionFlowListParams,
10
9
  AccountCollectionFlowsPage,
11
10
  AccountCollectionFlows,
12
- } from './account-collection-flows';
11
+ } from './account-collection-flows.js';
13
12
  export {
14
13
  AccountDetail,
15
14
  AccountDetailCreateParams,
16
15
  AccountDetailListParams,
17
16
  AccountDetailsPage,
18
17
  AccountDetails,
19
- } from './account-details';
20
- export { Connection, ConnectionListParams, ConnectionsPage, Connections } from './connections';
18
+ } from './account-details.js';
19
+ export { Connection, ConnectionListParams, ConnectionsPage, Connections } from './connections.js';
21
20
  export {
22
21
  Counterparty,
23
22
  CounterpartyCollectAccountResponse,
@@ -27,9 +26,9 @@ export {
27
26
  CounterpartyCollectAccountParams,
28
27
  CounterpartiesPage,
29
28
  Counterparties,
30
- } from './counterparties';
31
- export { Document, DocumentCreateParams, DocumentListParams, DocumentsPage, Documents } from './documents';
32
- export { Event, EventListParams, EventsPage, Events } from './events';
29
+ } from './counterparties.js';
30
+ export { Document, DocumentCreateParams, DocumentListParams, DocumentsPage, Documents } from './documents.js';
31
+ export { Event, EventListParams, EventsPage, Events } from './events.js';
33
32
  export {
34
33
  ExpectedPayment,
35
34
  ExpectedPaymentType,
@@ -38,7 +37,7 @@ export {
38
37
  ExpectedPaymentListParams,
39
38
  ExpectedPaymentsPage,
40
39
  ExpectedPayments,
41
- } from './expected-payments';
40
+ } from './expected-payments.js';
42
41
  export {
43
42
  ExternalAccount,
44
43
  ExternalAccountType,
@@ -49,7 +48,7 @@ export {
49
48
  ExternalAccountVerifyParams,
50
49
  ExternalAccountsPage,
51
50
  ExternalAccounts,
52
- } from './external-accounts';
51
+ } from './external-accounts.js';
53
52
  export {
54
53
  IncomingPaymentDetail,
55
54
  IncomingPaymentDetailUpdateParams,
@@ -57,7 +56,7 @@ export {
57
56
  IncomingPaymentDetailCreateAsyncParams,
58
57
  IncomingPaymentDetailsPage,
59
58
  IncomingPaymentDetails,
60
- } from './incoming-payment-details';
59
+ } from './incoming-payment-details.js';
61
60
  export {
62
61
  InternalAccount,
63
62
  InternalAccountCreateParams,
@@ -65,7 +64,7 @@ export {
65
64
  InternalAccountListParams,
66
65
  InternalAccountsPage,
67
66
  InternalAccounts,
68
- } from './internal-accounts/internal-accounts';
67
+ } from './internal-accounts/internal-accounts.js';
69
68
  export {
70
69
  Invoice,
71
70
  InvoiceCreateParams,
@@ -73,7 +72,7 @@ export {
73
72
  InvoiceListParams,
74
73
  InvoicesPage,
75
74
  Invoices,
76
- } from './invoices/invoices';
75
+ } from './invoices/invoices.js';
77
76
  export {
78
77
  Ledger,
79
78
  LedgerCreateParams,
@@ -81,7 +80,7 @@ export {
81
80
  LedgerListParams,
82
81
  LedgersPage,
83
82
  Ledgers,
84
- } from './ledgers';
83
+ } from './ledgers.js';
85
84
  export {
86
85
  LedgerAccount,
87
86
  LedgerAccountCreateParams,
@@ -90,17 +89,16 @@ export {
90
89
  LedgerAccountListParams,
91
90
  LedgerAccountsPage,
92
91
  LedgerAccounts,
93
- } from './ledger-accounts';
92
+ } from './ledger-accounts.js';
94
93
  export {
95
94
  LedgerAccountCategory,
96
95
  LedgerAccountCategoryCreateParams,
97
96
  LedgerAccountCategoryRetrieveParams,
98
97
  LedgerAccountCategoryUpdateParams,
99
98
  LedgerAccountCategoryListParams,
100
- LedgerAccountCategoryDeleteParams,
101
99
  LedgerAccountCategoriesPage,
102
100
  LedgerAccountCategories,
103
- } from './ledger-account-categories';
101
+ } from './ledger-account-categories.js';
104
102
  export {
105
103
  LedgerAccountPayout,
106
104
  LedgerAccountPayoutCreateParams,
@@ -108,20 +106,20 @@ export {
108
106
  LedgerAccountPayoutListParams,
109
107
  LedgerAccountPayoutsPage,
110
108
  LedgerAccountPayouts,
111
- } from './ledger-account-payouts';
109
+ } from './ledger-account-payouts.js';
112
110
  export {
113
111
  LedgerAccountStatementCreateResponse,
114
112
  LedgerAccountStatementRetrieveResponse,
115
113
  LedgerAccountStatementCreateParams,
116
114
  LedgerAccountStatements,
117
- } from './ledger-account-statements';
115
+ } from './ledger-account-statements.js';
118
116
  export {
119
117
  LedgerEntry,
120
118
  LedgerEntryRetrieveParams,
121
119
  LedgerEntryListParams,
122
120
  LedgerEntriesPage,
123
121
  LedgerEntries,
124
- } from './ledger-entries';
122
+ } from './ledger-entries.js';
125
123
  export {
126
124
  LedgerEventHandlerCreateResponse,
127
125
  LedgerEventHandlerRetrieveResponse,
@@ -131,7 +129,7 @@ export {
131
129
  LedgerEventHandlerListParams,
132
130
  LedgerEventHandlerListResponsesPage,
133
131
  LedgerEventHandlers,
134
- } from './ledger-event-handlers';
132
+ } from './ledger-event-handlers.js';
135
133
  export {
136
134
  LedgerTransaction,
137
135
  LedgerTransactionCreateParams,
@@ -140,19 +138,24 @@ export {
140
138
  LedgerTransactionCreateReversalParams,
141
139
  LedgerTransactionsPage,
142
140
  LedgerTransactions,
143
- } from './ledger-transactions/ledger-transactions';
144
- export { LedgerableEvent, LedgerableEventCreateParams, LedgerableEvents } from './ledgerable-events';
145
- export { LineItem, LineItemUpdateParams, LineItemListParams, LineItemsPage, LineItems } from './line-items';
146
- export { PaperItem, PaperItemListParams, PaperItemsPage, PaperItems } from './paper-items';
141
+ } from './ledger-transactions/ledger-transactions.js';
142
+ export { LedgerableEvent, LedgerableEventCreateParams, LedgerableEvents } from './ledgerable-events.js';
143
+ export {
144
+ LineItem,
145
+ LineItemUpdateParams,
146
+ LineItemListParams,
147
+ LineItemsPage,
148
+ LineItems,
149
+ } from './line-items.js';
150
+ export { PaperItem, PaperItemListParams, PaperItemsPage, PaperItems } from './paper-items.js';
147
151
  export {
148
152
  PaymentFlow,
149
153
  PaymentFlowCreateParams,
150
- PaymentFlowRetrieveParams,
151
154
  PaymentFlowUpdateParams,
152
155
  PaymentFlowListParams,
153
156
  PaymentFlowsPage,
154
157
  PaymentFlows,
155
- } from './payment-flows';
158
+ } from './payment-flows.js';
156
159
  export {
157
160
  PaymentOrder,
158
161
  PaymentOrderSubtype,
@@ -163,34 +166,34 @@ export {
163
166
  PaymentOrderCreateAsyncParams,
164
167
  PaymentOrdersPage,
165
168
  PaymentOrders,
166
- } from './payment-orders/payment-orders';
169
+ } from './payment-orders/payment-orders.js';
167
170
  export {
168
171
  PaymentReference,
169
172
  PaymentReferenceListParams,
170
173
  PaymentReferencesPage,
171
174
  PaymentReferences,
172
- } from './payment-references';
173
- export { PingResponse } from './top-level';
174
- export { ReturnObject, ReturnCreateParams, ReturnListParams, ReturnObjectsPage, Returns } from './returns';
175
+ } from './payment-references.js';
176
+ export { PingResponse } from './top-level.js';
177
+ export { ReturnObject, ReturnCreateParams, ReturnListParams, ReturnObjectsPage, Returns } from './returns.js';
175
178
  export {
176
179
  RoutingDetail,
177
180
  RoutingDetailCreateParams,
178
181
  RoutingDetailListParams,
179
182
  RoutingDetailsPage,
180
183
  RoutingDetails,
181
- } from './routing-details';
184
+ } from './routing-details.js';
182
185
  export {
183
186
  RoutingNumberLookupRequest,
184
187
  ValidationValidateRoutingNumberParams,
185
188
  Validations,
186
- } from './validations';
189
+ } from './validations.js';
187
190
  export {
188
191
  Transaction,
189
192
  TransactionUpdateParams,
190
193
  TransactionListParams,
191
194
  TransactionsPage,
192
195
  Transactions,
193
- } from './transactions/transactions';
196
+ } from './transactions/transactions.js';
194
197
  export {
195
198
  VirtualAccount,
196
199
  VirtualAccountCreateParams,
@@ -198,5 +201,5 @@ export {
198
201
  VirtualAccountListParams,
199
202
  VirtualAccountsPage,
200
203
  VirtualAccounts,
201
- } from './virtual-accounts';
202
- export { Webhooks } from './webhooks';
204
+ } from './virtual-accounts.js';
205
+ export { Webhooks } from './webhooks.js';