modern-treasury 2.6.0 → 2.7.2

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 (474) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +8 -4
  3. package/_shims/MultipartBody.d.ts +9 -0
  4. package/_shims/MultipartBody.d.ts.map +1 -0
  5. package/_shims/MultipartBody.js +16 -0
  6. package/_shims/MultipartBody.js.map +1 -0
  7. package/_shims/MultipartBody.mjs +12 -0
  8. package/_shims/MultipartBody.mjs.map +1 -0
  9. package/_shims/README.md +46 -0
  10. package/{src/_shims/ReadableStream-node.ts → _shims/auto/runtime-bun.d.ts} +2 -3
  11. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  12. package/_shims/auto/runtime-bun.js +21 -0
  13. package/_shims/auto/runtime-bun.js.map +1 -0
  14. package/_shims/auto/runtime-bun.mjs +2 -0
  15. package/_shims/auto/runtime-bun.mjs.map +1 -0
  16. package/_shims/auto/runtime-node.d.ts +5 -0
  17. package/_shims/auto/runtime-node.d.ts.map +1 -0
  18. package/_shims/auto/runtime-node.js +21 -0
  19. package/_shims/auto/runtime-node.js.map +1 -0
  20. package/_shims/auto/runtime-node.mjs +2 -0
  21. package/_shims/auto/runtime-node.mjs.map +1 -0
  22. package/_shims/auto/runtime.d.ts +5 -0
  23. package/_shims/auto/runtime.d.ts.map +1 -0
  24. package/_shims/auto/runtime.js +21 -0
  25. package/_shims/auto/runtime.js.map +1 -0
  26. package/_shims/auto/runtime.mjs +2 -0
  27. package/_shims/auto/runtime.mjs.map +1 -0
  28. package/_shims/auto/types-node.d.ts +5 -0
  29. package/_shims/auto/types-node.d.ts.map +1 -0
  30. package/_shims/auto/types-node.js +21 -0
  31. package/_shims/auto/types-node.js.map +1 -0
  32. package/_shims/auto/types-node.mjs +2 -0
  33. package/_shims/auto/types-node.mjs.map +1 -0
  34. package/_shims/auto/types.d.ts +99 -0
  35. package/_shims/{ReadableStream.js → auto/types.js} +0 -2
  36. package/{src/_shims/ReadableStream.js → _shims/auto/types.mjs} +0 -2
  37. package/_shims/bun-runtime.d.ts +6 -0
  38. package/_shims/bun-runtime.d.ts.map +1 -0
  39. package/_shims/bun-runtime.js +14 -0
  40. package/_shims/bun-runtime.js.map +1 -0
  41. package/_shims/bun-runtime.mjs +10 -0
  42. package/_shims/bun-runtime.mjs.map +1 -0
  43. package/_shims/index.d.ts +79 -0
  44. package/_shims/index.js +13 -0
  45. package/_shims/index.mjs +7 -0
  46. package/_shims/manual-types.d.ts +12 -0
  47. package/_shims/manual-types.js +3 -0
  48. package/_shims/manual-types.mjs +3 -0
  49. package/_shims/node-runtime.d.ts +3 -0
  50. package/_shims/node-runtime.d.ts.map +1 -0
  51. package/_shims/node-runtime.js +87 -0
  52. package/_shims/node-runtime.js.map +1 -0
  53. package/_shims/node-runtime.mjs +54 -0
  54. package/_shims/node-runtime.mjs.map +1 -0
  55. package/_shims/node-types.d.ts +42 -0
  56. package/_shims/node-types.js +3 -0
  57. package/_shims/node-types.mjs +3 -0
  58. package/_shims/registry.d.ts +35 -0
  59. package/_shims/registry.d.ts.map +1 -0
  60. package/_shims/registry.js +39 -0
  61. package/_shims/registry.js.map +1 -0
  62. package/_shims/registry.mjs +35 -0
  63. package/_shims/registry.mjs.map +1 -0
  64. package/_shims/web-runtime.d.ts +5 -0
  65. package/_shims/web-runtime.d.ts.map +1 -0
  66. package/_shims/web-runtime.js +70 -0
  67. package/_shims/web-runtime.js.map +1 -0
  68. package/_shims/web-runtime.mjs +63 -0
  69. package/_shims/web-runtime.mjs.map +1 -0
  70. package/_shims/web-types.d.ts +82 -0
  71. package/_shims/web-types.js +3 -0
  72. package/_shims/web-types.mjs +3 -0
  73. package/core.d.ts +170 -223
  74. package/core.d.ts.map +1 -1
  75. package/core.js +678 -731
  76. package/core.js.map +1 -1
  77. package/core.mjs +672 -682
  78. package/core.mjs.map +1 -1
  79. package/error.d.ts +32 -32
  80. package/error.d.ts.map +1 -1
  81. package/error.js +95 -106
  82. package/error.js.map +1 -1
  83. package/error.mjs +91 -91
  84. package/error.mjs.map +1 -1
  85. package/index.d.mts +323 -333
  86. package/index.d.ts +323 -333
  87. package/index.d.ts.map +1 -1
  88. package/index.js +190 -243
  89. package/index.js.map +1 -1
  90. package/index.mjs +167 -190
  91. package/index.mjs.map +1 -1
  92. package/package.json +32 -58
  93. package/pagination.d.ts +11 -11
  94. package/pagination.js +30 -26
  95. package/pagination.mjs +28 -24
  96. package/resource.d.ts +10 -10
  97. package/resource.js +12 -12
  98. package/resource.mjs +10 -10
  99. package/resources/account-collection-flows.d.ts +71 -116
  100. package/resources/account-collection-flows.js +52 -62
  101. package/resources/account-collection-flows.js.map +1 -1
  102. package/resources/account-collection-flows.mjs +47 -55
  103. package/resources/account-collection-flows.mjs.map +1 -1
  104. package/resources/account-details.d.ts +59 -81
  105. package/resources/account-details.js +47 -50
  106. package/resources/account-details.js.map +1 -1
  107. package/resources/account-details.mjs +42 -45
  108. package/resources/account-details.mjs.map +1 -1
  109. package/resources/connections.d.ts +42 -44
  110. package/resources/connections.js +15 -13
  111. package/resources/connections.mjs +10 -8
  112. package/resources/counterparties.d.ts +400 -466
  113. package/resources/counterparties.js +63 -71
  114. package/resources/counterparties.js.map +1 -1
  115. package/resources/counterparties.mjs +58 -66
  116. package/resources/counterparties.mjs.map +1 -1
  117. package/resources/documents.d.ts +88 -120
  118. package/resources/documents.js +36 -42
  119. package/resources/documents.js.map +1 -1
  120. package/resources/documents.mjs +30 -36
  121. package/resources/documents.mjs.map +1 -1
  122. package/resources/events.d.ts +56 -55
  123. package/resources/events.js +21 -19
  124. package/resources/events.mjs +16 -14
  125. package/resources/expected-payments.d.ts +321 -373
  126. package/resources/expected-payments.js +46 -51
  127. package/resources/expected-payments.js.map +1 -1
  128. package/resources/expected-payments.mjs +41 -44
  129. package/resources/expected-payments.mjs.map +1 -1
  130. package/resources/external-accounts.d.ts +295 -373
  131. package/resources/external-accounts.js +76 -91
  132. package/resources/external-accounts.js.map +1 -1
  133. package/resources/external-accounts.mjs +71 -84
  134. package/resources/external-accounts.mjs.map +1 -1
  135. package/resources/incoming-payment-details.d.ts +200 -222
  136. package/resources/incoming-payment-details.js +42 -47
  137. package/resources/incoming-payment-details.js.map +1 -1
  138. package/resources/incoming-payment-details.mjs +37 -40
  139. package/resources/incoming-payment-details.mjs.map +1 -1
  140. package/resources/index.d.ts +35 -212
  141. package/resources/index.js +111 -484
  142. package/resources/index.mjs +34 -37
  143. package/resources/internal-accounts/balance-reports.d.ts +74 -113
  144. package/resources/internal-accounts/balance-reports.js +21 -23
  145. package/resources/internal-accounts/balance-reports.mjs +16 -18
  146. package/resources/internal-accounts/index.d.ts +3 -15
  147. package/resources/internal-accounts/index.js +10 -34
  148. package/resources/internal-accounts/index.mjs +3 -3
  149. package/resources/internal-accounts/internal-accounts.d.ts +203 -233
  150. package/resources/internal-accounts/internal-accounts.js +65 -86
  151. package/resources/internal-accounts/internal-accounts.js.map +1 -1
  152. package/resources/internal-accounts/internal-accounts.mjs +41 -45
  153. package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
  154. package/resources/invoices/index.d.ts +3 -17
  155. package/resources/invoices/index.js +9 -29
  156. package/resources/invoices/index.mjs +3 -3
  157. package/resources/invoices/invoices.d.ts +509 -549
  158. package/resources/invoices/invoices.js +74 -95
  159. package/resources/invoices/invoices.js.map +1 -1
  160. package/resources/invoices/invoices.mjs +50 -54
  161. package/resources/invoices/invoices.mjs.map +1 -1
  162. package/resources/invoices/line-items.d.ts +119 -133
  163. package/resources/invoices/line-items.js +49 -52
  164. package/resources/invoices/line-items.js.map +1 -1
  165. package/resources/invoices/line-items.mjs +44 -47
  166. package/resources/invoices/line-items.mjs.map +1 -1
  167. package/resources/ledger-account-balance-monitors.d.ts +213 -224
  168. package/resources/ledger-account-balance-monitors.js +49 -55
  169. package/resources/ledger-account-balance-monitors.js.map +1 -1
  170. package/resources/ledger-account-balance-monitors.mjs +44 -49
  171. package/resources/ledger-account-balance-monitors.mjs.map +1 -1
  172. package/resources/ledger-account-categories.d.ts +255 -276
  173. package/resources/ledger-account-categories.js +84 -89
  174. package/resources/ledger-account-categories.js.map +1 -1
  175. package/resources/ledger-account-categories.mjs +79 -82
  176. package/resources/ledger-account-categories.mjs.map +1 -1
  177. package/resources/ledger-account-payouts.d.ts +151 -160
  178. package/resources/ledger-account-payouts.js +45 -50
  179. package/resources/ledger-account-payouts.js.map +1 -1
  180. package/resources/ledger-account-payouts.mjs +40 -43
  181. package/resources/ledger-account-payouts.mjs.map +1 -1
  182. package/resources/ledger-account-statements.d.ts +455 -461
  183. package/resources/ledger-account-statements.js +26 -32
  184. package/resources/ledger-account-statements.js.map +1 -1
  185. package/resources/ledger-account-statements.mjs +23 -27
  186. package/resources/ledger-account-statements.mjs.map +1 -1
  187. package/resources/ledger-accounts.d.ts +347 -357
  188. package/resources/ledger-accounts.js +45 -48
  189. package/resources/ledger-accounts.js.map +1 -1
  190. package/resources/ledger-accounts.mjs +40 -43
  191. package/resources/ledger-accounts.mjs.map +1 -1
  192. package/resources/ledger-entries.d.ts +244 -250
  193. package/resources/ledger-entries.js +20 -18
  194. package/resources/ledger-entries.mjs +15 -13
  195. package/resources/ledger-event-handlers.d.ts +369 -376
  196. package/resources/ledger-event-handlers.js +44 -49
  197. package/resources/ledger-event-handlers.js.map +1 -1
  198. package/resources/ledger-event-handlers.mjs +39 -42
  199. package/resources/ledger-event-handlers.mjs.map +1 -1
  200. package/resources/ledger-transactions/index.d.ts +3 -16
  201. package/resources/ledger-transactions/index.js +10 -34
  202. package/resources/ledger-transactions/index.mjs +3 -3
  203. package/resources/ledger-transactions/ledger-transactions.d.ts +335 -389
  204. package/resources/ledger-transactions/ledger-transactions.js +70 -91
  205. package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
  206. package/resources/ledger-transactions/ledger-transactions.mjs +46 -50
  207. package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
  208. package/resources/ledger-transactions/versions.d.ts +199 -214
  209. package/resources/ledger-transactions/versions.js +18 -16
  210. package/resources/ledger-transactions/versions.mjs +13 -11
  211. package/resources/ledgerable-events.d.ts +96 -99
  212. package/resources/ledgerable-events.js +27 -33
  213. package/resources/ledgerable-events.js.map +1 -1
  214. package/resources/ledgerable-events.mjs +24 -28
  215. package/resources/ledgerable-events.mjs.map +1 -1
  216. package/resources/ledgers.d.ts +98 -97
  217. package/resources/ledgers.js +46 -49
  218. package/resources/ledgers.js.map +1 -1
  219. package/resources/ledgers.mjs +41 -44
  220. package/resources/ledgers.mjs.map +1 -1
  221. package/resources/line-items.d.ts +78 -101
  222. package/resources/line-items.js +29 -27
  223. package/resources/line-items.mjs +24 -22
  224. package/resources/paper-items.d.ts +91 -93
  225. package/resources/paper-items.js +21 -19
  226. package/resources/paper-items.mjs +16 -14
  227. package/resources/payment-flows.d.ts +132 -138
  228. package/resources/payment-flows.js +49 -57
  229. package/resources/payment-flows.js.map +1 -1
  230. package/resources/payment-flows.mjs +44 -52
  231. package/resources/payment-flows.mjs.map +1 -1
  232. package/resources/payment-orders/index.d.ts +3 -13
  233. package/resources/payment-orders/index.js +9 -29
  234. package/resources/payment-orders/index.mjs +3 -3
  235. package/resources/payment-orders/payment-orders.d.ts +1416 -1696
  236. package/resources/payment-orders/payment-orders.js +80 -109
  237. package/resources/payment-orders/payment-orders.js.map +1 -1
  238. package/resources/payment-orders/payment-orders.mjs +55 -67
  239. package/resources/payment-orders/payment-orders.mjs.map +1 -1
  240. package/resources/payment-orders/reversals.d.ts +153 -183
  241. package/resources/payment-orders/reversals.js +38 -41
  242. package/resources/payment-orders/reversals.js.map +1 -1
  243. package/resources/payment-orders/reversals.mjs +33 -36
  244. package/resources/payment-orders/reversals.mjs.map +1 -1
  245. package/resources/payment-references.d.ts +61 -118
  246. package/resources/payment-references.js +26 -26
  247. package/resources/payment-references.mjs +21 -19
  248. package/resources/returns.d.ts +167 -324
  249. package/resources/returns.js +35 -38
  250. package/resources/returns.js.map +1 -1
  251. package/resources/returns.mjs +30 -33
  252. package/resources/returns.mjs.map +1 -1
  253. package/resources/routing-details.d.ts +83 -173
  254. package/resources/routing-details.js +47 -50
  255. package/resources/routing-details.js.map +1 -1
  256. package/resources/routing-details.mjs +42 -45
  257. package/resources/routing-details.mjs.map +1 -1
  258. package/resources/shared.d.ts +4 -194
  259. package/resources/shared.js +3 -3
  260. package/resources/shared.mjs +1 -1
  261. package/resources/top-level.d.ts +4 -4
  262. package/resources/top-level.js +5 -4
  263. package/resources/top-level.mjs +3 -2
  264. package/resources/transactions/index.d.ts +3 -14
  265. package/resources/transactions/index.js +10 -34
  266. package/resources/transactions/index.mjs +3 -3
  267. package/resources/transactions/line-items.d.ts +69 -78
  268. package/resources/transactions/line-items.js +21 -19
  269. package/resources/transactions/line-items.mjs +16 -14
  270. package/resources/transactions/transactions.d.ts +163 -211
  271. package/resources/transactions/transactions.js +51 -67
  272. package/resources/transactions/transactions.mjs +27 -26
  273. package/resources/validations.d.ts +67 -111
  274. package/resources/validations.js +13 -12
  275. package/resources/validations.mjs +10 -9
  276. package/resources/virtual-accounts.d.ts +161 -201
  277. package/resources/virtual-accounts.js +46 -51
  278. package/resources/virtual-accounts.js.map +1 -1
  279. package/resources/virtual-accounts.mjs +41 -44
  280. package/resources/virtual-accounts.mjs.map +1 -1
  281. package/resources/webhooks.d.ts +21 -28
  282. package/resources/webhooks.js +35 -37
  283. package/resources/webhooks.js.map +1 -1
  284. package/resources/webhooks.mjs +30 -31
  285. package/resources/webhooks.mjs.map +1 -1
  286. package/shims/node.d.ts +29 -0
  287. package/shims/node.d.ts.map +1 -0
  288. package/shims/node.js +31 -0
  289. package/shims/node.js.map +1 -0
  290. package/shims/node.mjs +5 -0
  291. package/shims/node.mjs.map +1 -0
  292. package/shims/web.d.ts +26 -0
  293. package/shims/web.d.ts.map +1 -0
  294. package/shims/web.js +31 -0
  295. package/shims/web.js.map +1 -0
  296. package/shims/web.mjs +5 -0
  297. package/shims/web.mjs.map +1 -0
  298. package/src/_shims/MultipartBody.ts +9 -0
  299. package/src/_shims/README.md +46 -0
  300. package/src/_shims/auto/runtime-bun.ts +4 -0
  301. package/src/_shims/auto/runtime-node.ts +4 -0
  302. package/src/_shims/auto/runtime.ts +4 -0
  303. package/src/_shims/auto/types-node.ts +4 -0
  304. package/src/_shims/auto/types.d.ts +99 -0
  305. package/src/_shims/auto/types.js +3 -0
  306. package/src/_shims/auto/types.mjs +3 -0
  307. package/src/_shims/bun-runtime.ts +14 -0
  308. package/src/_shims/index.d.ts +79 -0
  309. package/src/_shims/index.js +13 -0
  310. package/src/_shims/index.mjs +7 -0
  311. package/src/_shims/manual-types.d.ts +12 -0
  312. package/src/_shims/manual-types.js +3 -0
  313. package/src/_shims/manual-types.mjs +3 -0
  314. package/src/_shims/node-runtime.ts +79 -0
  315. package/src/_shims/node-types.d.ts +42 -0
  316. package/src/_shims/node-types.js +3 -0
  317. package/src/_shims/node-types.mjs +3 -0
  318. package/src/_shims/registry.ts +64 -0
  319. package/src/_shims/web-runtime.ts +91 -0
  320. package/src/_shims/web-types.d.ts +82 -0
  321. package/src/_shims/web-types.js +3 -0
  322. package/src/_shims/web-types.mjs +3 -0
  323. package/src/core.ts +72 -43
  324. package/src/error.ts +4 -2
  325. package/src/index.ts +10 -8
  326. package/src/pagination.ts +1 -1
  327. package/src/resource.ts +1 -1
  328. package/src/resources/account-collection-flows.ts +5 -5
  329. package/src/resources/account-details.ts +6 -6
  330. package/src/resources/connections.ts +5 -5
  331. package/src/resources/counterparties.ts +8 -8
  332. package/src/resources/documents.ts +6 -6
  333. package/src/resources/events.ts +5 -5
  334. package/src/resources/expected-payments.ts +6 -6
  335. package/src/resources/external-accounts.ts +8 -8
  336. package/src/resources/incoming-payment-details.ts +7 -7
  337. package/src/resources/index.ts +34 -40
  338. package/src/resources/internal-accounts/balance-reports.ts +6 -6
  339. package/src/resources/internal-accounts/index.ts +2 -2
  340. package/src/resources/internal-accounts/internal-accounts.ts +10 -10
  341. package/src/resources/invoices/index.ts +2 -2
  342. package/src/resources/invoices/invoices.ts +8 -8
  343. package/src/resources/invoices/line-items.ts +5 -5
  344. package/src/resources/ledger-account-balance-monitors.ts +5 -5
  345. package/src/resources/ledger-account-categories.ts +5 -5
  346. package/src/resources/ledger-account-payouts.ts +5 -5
  347. package/src/resources/ledger-account-statements.ts +3 -3
  348. package/src/resources/ledger-accounts.ts +5 -5
  349. package/src/resources/ledger-entries.ts +5 -5
  350. package/src/resources/ledger-event-handlers.ts +5 -5
  351. package/src/resources/ledger-transactions/index.ts +2 -2
  352. package/src/resources/ledger-transactions/ledger-transactions.ts +7 -7
  353. package/src/resources/ledger-transactions/versions.ts +5 -5
  354. package/src/resources/ledgerable-events.ts +3 -3
  355. package/src/resources/ledgers.ts +5 -5
  356. package/src/resources/line-items.ts +5 -5
  357. package/src/resources/paper-items.ts +6 -6
  358. package/src/resources/payment-flows.ts +5 -5
  359. package/src/resources/payment-orders/index.ts +2 -2
  360. package/src/resources/payment-orders/payment-orders.ts +10 -10
  361. package/src/resources/payment-orders/reversals.ts +5 -5
  362. package/src/resources/payment-references.ts +5 -5
  363. package/src/resources/returns.ts +6 -6
  364. package/src/resources/routing-details.ts +6 -6
  365. package/src/resources/top-level.ts +1 -1
  366. package/src/resources/transactions/index.ts +2 -7
  367. package/src/resources/transactions/line-items.ts +5 -5
  368. package/src/resources/transactions/transactions.ts +7 -7
  369. package/src/resources/validations.ts +3 -3
  370. package/src/resources/virtual-accounts.ts +7 -7
  371. package/src/resources/webhooks.ts +3 -3
  372. package/src/shims/node.ts +50 -0
  373. package/src/shims/web.ts +50 -0
  374. package/src/uploads.ts +12 -16
  375. package/src/version.ts +1 -1
  376. package/uploads.d.ts +23 -39
  377. package/uploads.d.ts.map +1 -1
  378. package/uploads.js +111 -157
  379. package/uploads.js.map +1 -1
  380. package/uploads.mjs +107 -133
  381. package/uploads.mjs.map +1 -1
  382. package/version.d.ts +2 -2
  383. package/version.js +4 -4
  384. package/version.mjs +2 -2
  385. package/_shims/ReadableStream-node.d.ts +0 -6
  386. package/_shims/ReadableStream-node.d.ts.map +0 -1
  387. package/_shims/ReadableStream-node.js +0 -14
  388. package/_shims/ReadableStream-node.js.map +0 -1
  389. package/_shims/ReadableStream-node.mjs +0 -3
  390. package/_shims/ReadableStream-node.mjs.map +0 -1
  391. package/_shims/ReadableStream.d.ts +0 -38
  392. package/_shims/ReadableStream.mjs +0 -7
  393. package/_shims/agent-node.d.ts +0 -7
  394. package/_shims/agent-node.d.ts.map +0 -1
  395. package/_shims/agent-node.js +0 -28
  396. package/_shims/agent-node.js.map +0 -1
  397. package/_shims/agent-node.mjs +0 -16
  398. package/_shims/agent-node.mjs.map +0 -1
  399. package/_shims/agent.d.ts +0 -9
  400. package/_shims/agent.d.ts.map +0 -1
  401. package/_shims/agent.js +0 -14
  402. package/_shims/agent.js.map +0 -1
  403. package/_shims/agent.mjs +0 -10
  404. package/_shims/agent.mjs.map +0 -1
  405. package/_shims/fetch-node.d.ts +0 -64
  406. package/_shims/fetch-node.js +0 -12
  407. package/_shims/fetch-node.mjs +0 -14
  408. package/_shims/fetch.d.ts +0 -60
  409. package/_shims/fetch.js +0 -13
  410. package/_shims/fetch.mjs +0 -15
  411. package/_shims/fileFromPath-node.d.ts +0 -17
  412. package/_shims/fileFromPath-node.d.ts.map +0 -1
  413. package/_shims/fileFromPath-node.js +0 -17
  414. package/_shims/fileFromPath-node.js.map +0 -1
  415. package/_shims/fileFromPath-node.mjs +0 -13
  416. package/_shims/fileFromPath-node.mjs.map +0 -1
  417. package/_shims/fileFromPath.d.ts +0 -22
  418. package/_shims/fileFromPath.d.ts.map +0 -1
  419. package/_shims/fileFromPath.js +0 -16
  420. package/_shims/fileFromPath.js.map +0 -1
  421. package/_shims/fileFromPath.mjs +0 -12
  422. package/_shims/fileFromPath.mjs.map +0 -1
  423. package/_shims/form-data-node.d.ts +0 -45
  424. package/_shims/form-data-node.js +0 -11
  425. package/_shims/form-data-node.mjs +0 -9
  426. package/_shims/form-data.d.ts +0 -43
  427. package/_shims/form-data.js +0 -17
  428. package/_shims/form-data.mjs +0 -20
  429. package/_shims/getMultipartRequestOptions-node.d.ts +0 -10
  430. package/_shims/getMultipartRequestOptions-node.d.ts.map +0 -1
  431. package/_shims/getMultipartRequestOptions-node.js +0 -22
  432. package/_shims/getMultipartRequestOptions-node.js.map +0 -1
  433. package/_shims/getMultipartRequestOptions-node.mjs +0 -18
  434. package/_shims/getMultipartRequestOptions-node.mjs.map +0 -1
  435. package/_shims/getMultipartRequestOptions.d.ts +0 -10
  436. package/_shims/getMultipartRequestOptions.d.ts.map +0 -1
  437. package/_shims/getMultipartRequestOptions.js +0 -12
  438. package/_shims/getMultipartRequestOptions.js.map +0 -1
  439. package/_shims/getMultipartRequestOptions.mjs +0 -8
  440. package/_shims/getMultipartRequestOptions.mjs.map +0 -1
  441. package/_shims/node-readable-node.d.ts +0 -8
  442. package/_shims/node-readable-node.d.ts.map +0 -1
  443. package/_shims/node-readable-node.js +0 -9
  444. package/_shims/node-readable-node.js.map +0 -1
  445. package/_shims/node-readable-node.mjs +0 -5
  446. package/_shims/node-readable-node.mjs.map +0 -1
  447. package/_shims/node-readable.d.ts +0 -23
  448. package/_shims/node-readable.d.ts.map +0 -1
  449. package/_shims/node-readable.js +0 -11
  450. package/_shims/node-readable.js.map +0 -1
  451. package/_shims/node-readable.mjs +0 -7
  452. package/_shims/node-readable.mjs.map +0 -1
  453. package/src/_shims/ReadableStream.d.ts +0 -38
  454. package/src/_shims/ReadableStream.mjs +0 -7
  455. package/src/_shims/agent-node.ts +0 -22
  456. package/src/_shims/agent.ts +0 -12
  457. package/src/_shims/fetch-node.d.ts +0 -64
  458. package/src/_shims/fetch-node.js +0 -12
  459. package/src/_shims/fetch-node.mjs +0 -14
  460. package/src/_shims/fetch.d.ts +0 -60
  461. package/src/_shims/fetch.js +0 -13
  462. package/src/_shims/fetch.mjs +0 -15
  463. package/src/_shims/fileFromPath-node.ts +0 -29
  464. package/src/_shims/fileFromPath.ts +0 -29
  465. package/src/_shims/form-data-node.d.ts +0 -45
  466. package/src/_shims/form-data-node.js +0 -11
  467. package/src/_shims/form-data-node.mjs +0 -9
  468. package/src/_shims/form-data.d.ts +0 -43
  469. package/src/_shims/form-data.js +0 -17
  470. package/src/_shims/form-data.mjs +0 -20
  471. package/src/_shims/getMultipartRequestOptions-node.ts +0 -25
  472. package/src/_shims/getMultipartRequestOptions.ts +0 -14
  473. package/src/_shims/node-readable-node.ts +0 -10
  474. package/src/_shims/node-readable.ts +0 -30
package/index.d.mts CHANGED
@@ -1,343 +1,333 @@
1
- import * as Core from './core.js';
2
- import * as Pagination from './pagination.js';
3
- import * as API from './resources/index.js';
4
- import * as Errors from './error.js';
5
- import type { Agent } from 'modern-treasury/_shims/agent';
6
- import * as Uploads from './uploads.js';
1
+ import * as Core from "./core.js";
2
+ import * as Pagination from "./pagination.js";
3
+ import * as API from "./resources/index.js";
4
+ import * as Errors from "./error.js";
5
+ import { type Agent } from "./_shims/index.js";
6
+ import * as Uploads from "./uploads.js";
7
7
  export interface ClientOptions {
8
- /**
9
- * Defaults to process.env["MODERN_TREASURY_API_KEY"].
10
- */
11
- apiKey?: string;
12
- /**
13
- * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
14
- */
15
- baseURL?: string;
16
- /**
17
- * The maximum amount of time (in milliseconds) that the client should wait for a response
18
- * from the server before timing out a single request.
19
- *
20
- * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
21
- * much longer than this timeout before the promise succeeds or fails.
22
- */
23
- timeout?: number;
24
- /**
25
- * An HTTP agent used to manage HTTP(S) connections.
26
- *
27
- * If not provided, an agent will be constructed by default in the Node.js environment,
28
- * otherwise no agent is used.
29
- */
30
- httpAgent?: Agent;
31
- /**
32
- * Specify a custom `fetch` function implementation.
33
- *
34
- * If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
35
- * defined globally.
36
- */
37
- fetch?: Core.Fetch | undefined;
38
- /**
39
- * The maximum number of times that the client will retry a request in case of a
40
- * temporary failure, like a network error or a 5XX error from the server.
41
- *
42
- * @default 2
43
- */
44
- maxRetries?: number;
45
- /**
46
- * Default headers to include with every request to the API.
47
- *
48
- * These can be removed in individual requests by explicitly setting the
49
- * header to `undefined` or `null` in request options.
50
- */
51
- defaultHeaders?: Core.Headers;
52
- /**
53
- * Default query parameters to include with every request to the API.
54
- *
55
- * These can be removed in individual requests by explicitly setting the
56
- * param to `undefined` in request options.
57
- */
58
- defaultQuery?: Core.DefaultQuery;
59
- organizationId?: string;
60
- webhookKey?: string | null;
8
+ /**
9
+ * Defaults to process.env["MODERN_TREASURY_API_KEY"].
10
+ */
11
+ apiKey?: string;
12
+ /**
13
+ * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
14
+ */
15
+ baseURL?: string;
16
+ /**
17
+ * The maximum amount of time (in milliseconds) that the client should wait for a response
18
+ * from the server before timing out a single request.
19
+ *
20
+ * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
21
+ * much longer than this timeout before the promise succeeds or fails.
22
+ */
23
+ timeout?: number;
24
+ /**
25
+ * An HTTP agent used to manage HTTP(S) connections.
26
+ *
27
+ * If not provided, an agent will be constructed by default in the Node.js environment,
28
+ * otherwise no agent is used.
29
+ */
30
+ httpAgent?: Agent;
31
+ /**
32
+ * Specify a custom `fetch` function implementation.
33
+ *
34
+ * If not provided, we use `node-fetch` on Node.js and otherwise expect that `fetch` is
35
+ * defined globally.
36
+ */
37
+ fetch?: Core.Fetch | undefined;
38
+ /**
39
+ * The maximum number of times that the client will retry a request in case of a
40
+ * temporary failure, like a network error or a 5XX error from the server.
41
+ *
42
+ * @default 2
43
+ */
44
+ maxRetries?: number;
45
+ /**
46
+ * Default headers to include with every request to the API.
47
+ *
48
+ * These can be removed in individual requests by explicitly setting the
49
+ * header to `undefined` or `null` in request options.
50
+ */
51
+ defaultHeaders?: Core.Headers;
52
+ /**
53
+ * Default query parameters to include with every request to the API.
54
+ *
55
+ * These can be removed in individual requests by explicitly setting the
56
+ * param to `undefined` in request options.
57
+ */
58
+ defaultQuery?: Core.DefaultQuery;
59
+ organizationId?: string;
60
+ webhookKey?: string | null;
61
61
  }
62
62
  /** API Client for interfacing with the Modern Treasury API. */
63
63
  export declare class ModernTreasury extends Core.APIClient {
64
- apiKey: string;
65
- organizationId: string;
66
- webhookKey?: string | null;
67
- private _options;
68
- /**
69
- * API Client for interfacing with the Modern Treasury API.
70
- *
71
- * @param {string} [opts.apiKey=process.env['MODERN_TREASURY_API_KEY']] - The API Key to send to the API.
72
- * @param {string} [opts.baseURL] - Override the default base URL for the API.
73
- * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
74
- * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
75
- * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
76
- * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
77
- * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
78
- * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
79
- * @param {string} [opts.organizationId]
80
- * @param {string | null} [opts.webhookKey]
81
- */
82
- constructor({ apiKey, organizationId, webhookKey, ...opts }?: ClientOptions);
83
- connections: API.Connections;
84
- counterparties: API.Counterparties;
85
- events: API.Events;
86
- expectedPayments: API.ExpectedPayments;
87
- externalAccounts: API.ExternalAccounts;
88
- incomingPaymentDetails: API.IncomingPaymentDetails;
89
- invoices: API.Invoices;
90
- documents: API.Documents;
91
- accountCollectionFlows: API.AccountCollectionFlows;
92
- accountDetails: API.AccountDetails;
93
- routingDetails: API.RoutingDetails;
94
- internalAccounts: API.InternalAccounts;
95
- ledgers: API.Ledgers;
96
- ledgerableEvents: API.LedgerableEvents;
97
- ledgerAccountCategories: API.LedgerAccountCategories;
98
- ledgerAccounts: API.LedgerAccounts;
99
- ledgerAccountBalanceMonitors: API.LedgerAccountBalanceMonitors;
100
- ledgerAccountPayouts: API.LedgerAccountPayouts;
101
- ledgerAccountStatements: API.LedgerAccountStatements;
102
- ledgerEntries: API.LedgerEntries;
103
- ledgerEventHandlers: API.LedgerEventHandlers;
104
- ledgerTransactions: API.LedgerTransactions;
105
- lineItems: API.LineItems;
106
- paymentFlows: API.PaymentFlows;
107
- paymentOrders: API.PaymentOrders;
108
- paymentReferences: API.PaymentReferences;
109
- returns: API.Returns;
110
- transactions: API.Transactions;
111
- validations: API.Validations;
112
- paperItems: API.PaperItems;
113
- webhooks: API.Webhooks;
114
- virtualAccounts: API.VirtualAccounts;
115
- /**
116
- * A test endpoint often used to confirm credentials and headers are being passed
117
- * in correctly.
118
- */
119
- ping(options?: Core.RequestOptions): Core.APIPromise<ModernTreasury.PingResponse>;
120
- protected defaultQuery(): Core.DefaultQuery | undefined;
121
- protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
122
- protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
123
- protected stringifyQuery(query: Record<string, unknown>): string;
124
- static ModernTreasury: typeof ModernTreasury;
125
- static APIError: typeof Errors.APIError;
126
- static APIConnectionError: typeof Errors.APIConnectionError;
127
- static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
128
- static APIUserAbortError: typeof Errors.APIUserAbortError;
129
- static NotFoundError: typeof Errors.NotFoundError;
130
- static ConflictError: typeof Errors.ConflictError;
131
- static RateLimitError: typeof Errors.RateLimitError;
132
- static BadRequestError: typeof Errors.BadRequestError;
133
- static AuthenticationError: typeof Errors.AuthenticationError;
134
- static InternalServerError: typeof Errors.InternalServerError;
135
- static PermissionDeniedError: typeof Errors.PermissionDeniedError;
136
- static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
64
+ apiKey: string;
65
+ organizationId: string;
66
+ webhookKey?: string | null;
67
+ private _options;
68
+ /**
69
+ * API Client for interfacing with the Modern Treasury API.
70
+ *
71
+ * @param {string} [opts.apiKey=process.env['MODERN_TREASURY_API_KEY']] - The API Key to send to the API.
72
+ * @param {string} [opts.baseURL] - Override the default base URL for the API.
73
+ * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
74
+ * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
75
+ * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
76
+ * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
77
+ * @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
78
+ * @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
79
+ * @param {string} [opts.organizationId]
80
+ * @param {string | null} [opts.webhookKey]
81
+ */
82
+ constructor({ apiKey, organizationId, webhookKey, ...opts }?: ClientOptions);
83
+ connections: API.Connections;
84
+ counterparties: API.Counterparties;
85
+ events: API.Events;
86
+ expectedPayments: API.ExpectedPayments;
87
+ externalAccounts: API.ExternalAccounts;
88
+ incomingPaymentDetails: API.IncomingPaymentDetails;
89
+ invoices: API.Invoices;
90
+ documents: API.Documents;
91
+ accountCollectionFlows: API.AccountCollectionFlows;
92
+ accountDetails: API.AccountDetails;
93
+ routingDetails: API.RoutingDetails;
94
+ internalAccounts: API.InternalAccounts;
95
+ ledgers: API.Ledgers;
96
+ ledgerableEvents: API.LedgerableEvents;
97
+ ledgerAccountCategories: API.LedgerAccountCategories;
98
+ ledgerAccounts: API.LedgerAccounts;
99
+ ledgerAccountBalanceMonitors: API.LedgerAccountBalanceMonitors;
100
+ ledgerAccountPayouts: API.LedgerAccountPayouts;
101
+ ledgerAccountStatements: API.LedgerAccountStatements;
102
+ ledgerEntries: API.LedgerEntries;
103
+ ledgerEventHandlers: API.LedgerEventHandlers;
104
+ ledgerTransactions: API.LedgerTransactions;
105
+ lineItems: API.LineItems;
106
+ paymentFlows: API.PaymentFlows;
107
+ paymentOrders: API.PaymentOrders;
108
+ paymentReferences: API.PaymentReferences;
109
+ returns: API.Returns;
110
+ transactions: API.Transactions;
111
+ validations: API.Validations;
112
+ paperItems: API.PaperItems;
113
+ webhooks: API.Webhooks;
114
+ virtualAccounts: API.VirtualAccounts;
115
+ /**
116
+ * A test endpoint often used to confirm credentials and headers are being passed
117
+ * in correctly.
118
+ */
119
+ ping(options?: Core.RequestOptions): Core.APIPromise<ModernTreasury.PingResponse>;
120
+ protected defaultQuery(): Core.DefaultQuery | undefined;
121
+ protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
122
+ protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
123
+ protected stringifyQuery(query: Record<string, unknown>): string;
124
+ static ModernTreasury: typeof ModernTreasury;
125
+ static ModernTreasuryError: typeof Errors.ModernTreasuryError;
126
+ static APIError: typeof Errors.APIError;
127
+ static APIConnectionError: typeof Errors.APIConnectionError;
128
+ static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
129
+ static APIUserAbortError: typeof Errors.APIUserAbortError;
130
+ static NotFoundError: typeof Errors.NotFoundError;
131
+ static ConflictError: typeof Errors.ConflictError;
132
+ static RateLimitError: typeof Errors.RateLimitError;
133
+ static BadRequestError: typeof Errors.BadRequestError;
134
+ static AuthenticationError: typeof Errors.AuthenticationError;
135
+ static InternalServerError: typeof Errors.InternalServerError;
136
+ static PermissionDeniedError: typeof Errors.PermissionDeniedError;
137
+ static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
137
138
  }
138
- export declare const APIError: typeof Errors.APIError,
139
- APIConnectionError: typeof Errors.APIConnectionError,
140
- APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError,
141
- APIUserAbortError: typeof Errors.APIUserAbortError,
142
- NotFoundError: typeof Errors.NotFoundError,
143
- ConflictError: typeof Errors.ConflictError,
144
- RateLimitError: typeof Errors.RateLimitError,
145
- BadRequestError: typeof Errors.BadRequestError,
146
- AuthenticationError: typeof Errors.AuthenticationError,
147
- InternalServerError: typeof Errors.InternalServerError,
148
- PermissionDeniedError: typeof Errors.PermissionDeniedError,
149
- UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
139
+ export declare const ModernTreasuryError: typeof Errors.ModernTreasuryError, APIError: typeof Errors.APIError, APIConnectionError: typeof Errors.APIConnectionError, APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError, APIUserAbortError: typeof Errors.APIUserAbortError, NotFoundError: typeof Errors.NotFoundError, ConflictError: typeof Errors.ConflictError, RateLimitError: typeof Errors.RateLimitError, BadRequestError: typeof Errors.BadRequestError, AuthenticationError: typeof Errors.AuthenticationError, InternalServerError: typeof Errors.InternalServerError, PermissionDeniedError: typeof Errors.PermissionDeniedError, UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
150
140
  export import toFile = Uploads.toFile;
151
141
  export import fileFromPath = Uploads.fileFromPath;
152
142
  export declare namespace ModernTreasury {
153
- export import toFile = Uploads.toFile;
154
- export import fileFromPath = Uploads.fileFromPath;
155
- export import RequestOptions = Core.RequestOptions;
156
- export import Page = Pagination.Page;
157
- export import PageParams = Pagination.PageParams;
158
- export import PageResponse = Pagination.PageResponse;
159
- export import PingResponse = API.PingResponse;
160
- export import Connections = API.Connections;
161
- export import Connection = API.Connection;
162
- export import ConnectionsPage = API.ConnectionsPage;
163
- export import ConnectionListParams = API.ConnectionListParams;
164
- export import Counterparties = API.Counterparties;
165
- export import Counterparty = API.Counterparty;
166
- export import CounterpartyCollectAccountResponse = API.CounterpartyCollectAccountResponse;
167
- export import CounterpartiesPage = API.CounterpartiesPage;
168
- export import CounterpartyCreateParams = API.CounterpartyCreateParams;
169
- export import CounterpartyUpdateParams = API.CounterpartyUpdateParams;
170
- export import CounterpartyListParams = API.CounterpartyListParams;
171
- export import CounterpartyCollectAccountParams = API.CounterpartyCollectAccountParams;
172
- export import Events = API.Events;
173
- export import Event = API.Event;
174
- export import EventsPage = API.EventsPage;
175
- export import EventListParams = API.EventListParams;
176
- export import ExpectedPayments = API.ExpectedPayments;
177
- export import ExpectedPayment = API.ExpectedPayment;
178
- export import ExpectedPaymentType = API.ExpectedPaymentType;
179
- export import ExpectedPaymentsPage = API.ExpectedPaymentsPage;
180
- export import ExpectedPaymentCreateParams = API.ExpectedPaymentCreateParams;
181
- export import ExpectedPaymentUpdateParams = API.ExpectedPaymentUpdateParams;
182
- export import ExpectedPaymentListParams = API.ExpectedPaymentListParams;
183
- export import ExternalAccounts = API.ExternalAccounts;
184
- export import ExternalAccount = API.ExternalAccount;
185
- export import ExternalAccountType = API.ExternalAccountType;
186
- export import ExternalAccountsPage = API.ExternalAccountsPage;
187
- export import ExternalAccountCreateParams = API.ExternalAccountCreateParams;
188
- export import ExternalAccountUpdateParams = API.ExternalAccountUpdateParams;
189
- export import ExternalAccountListParams = API.ExternalAccountListParams;
190
- export import ExternalAccountCompleteVerificationParams = API.ExternalAccountCompleteVerificationParams;
191
- export import ExternalAccountVerifyParams = API.ExternalAccountVerifyParams;
192
- export import IncomingPaymentDetails = API.IncomingPaymentDetails;
193
- export import IncomingPaymentDetail = API.IncomingPaymentDetail;
194
- export import IncomingPaymentDetailsPage = API.IncomingPaymentDetailsPage;
195
- export import IncomingPaymentDetailUpdateParams = API.IncomingPaymentDetailUpdateParams;
196
- export import IncomingPaymentDetailListParams = API.IncomingPaymentDetailListParams;
197
- export import IncomingPaymentDetailCreateAsyncParams = API.IncomingPaymentDetailCreateAsyncParams;
198
- export import Invoices = API.Invoices;
199
- export import Invoice = API.Invoice;
200
- export import InvoicesPage = API.InvoicesPage;
201
- export import InvoiceCreateParams = API.InvoiceCreateParams;
202
- export import InvoiceUpdateParams = API.InvoiceUpdateParams;
203
- export import InvoiceListParams = API.InvoiceListParams;
204
- export import Documents = API.Documents;
205
- export import Document = API.Document;
206
- export import DocumentsPage = API.DocumentsPage;
207
- export import DocumentCreateParams = API.DocumentCreateParams;
208
- export import DocumentListParams = API.DocumentListParams;
209
- export import AccountCollectionFlows = API.AccountCollectionFlows;
210
- export import AccountCollectionFlow = API.AccountCollectionFlow;
211
- export import AccountCollectionFlowsPage = API.AccountCollectionFlowsPage;
212
- export import AccountCollectionFlowCreateParams = API.AccountCollectionFlowCreateParams;
213
- export import AccountCollectionFlowUpdateParams = API.AccountCollectionFlowUpdateParams;
214
- export import AccountCollectionFlowListParams = API.AccountCollectionFlowListParams;
215
- export import AccountDetails = API.AccountDetails;
216
- export import AccountDetail = API.AccountDetail;
217
- export import AccountDetailsPage = API.AccountDetailsPage;
218
- export import AccountDetailCreateParams = API.AccountDetailCreateParams;
219
- export import AccountDetailListParams = API.AccountDetailListParams;
220
- export import RoutingDetails = API.RoutingDetails;
221
- export import RoutingDetail = API.RoutingDetail;
222
- export import RoutingDetailsPage = API.RoutingDetailsPage;
223
- export import RoutingDetailCreateParams = API.RoutingDetailCreateParams;
224
- export import RoutingDetailListParams = API.RoutingDetailListParams;
225
- export import InternalAccounts = API.InternalAccounts;
226
- export import InternalAccount = API.InternalAccount;
227
- export import InternalAccountsPage = API.InternalAccountsPage;
228
- export import InternalAccountCreateParams = API.InternalAccountCreateParams;
229
- export import InternalAccountUpdateParams = API.InternalAccountUpdateParams;
230
- export import InternalAccountListParams = API.InternalAccountListParams;
231
- export import Ledgers = API.Ledgers;
232
- export import Ledger = API.Ledger;
233
- export import LedgersPage = API.LedgersPage;
234
- export import LedgerCreateParams = API.LedgerCreateParams;
235
- export import LedgerUpdateParams = API.LedgerUpdateParams;
236
- export import LedgerListParams = API.LedgerListParams;
237
- export import LedgerableEvents = API.LedgerableEvents;
238
- export import LedgerableEvent = API.LedgerableEvent;
239
- export import LedgerableEventCreateParams = API.LedgerableEventCreateParams;
240
- export import LedgerAccountCategories = API.LedgerAccountCategories;
241
- export import LedgerAccountCategory = API.LedgerAccountCategory;
242
- export import LedgerAccountCategoriesPage = API.LedgerAccountCategoriesPage;
243
- export import LedgerAccountCategoryCreateParams = API.LedgerAccountCategoryCreateParams;
244
- export import LedgerAccountCategoryRetrieveParams = API.LedgerAccountCategoryRetrieveParams;
245
- export import LedgerAccountCategoryUpdateParams = API.LedgerAccountCategoryUpdateParams;
246
- export import LedgerAccountCategoryListParams = API.LedgerAccountCategoryListParams;
247
- export import LedgerAccounts = API.LedgerAccounts;
248
- export import LedgerAccount = API.LedgerAccount;
249
- export import LedgerAccountsPage = API.LedgerAccountsPage;
250
- export import LedgerAccountCreateParams = API.LedgerAccountCreateParams;
251
- export import LedgerAccountRetrieveParams = API.LedgerAccountRetrieveParams;
252
- export import LedgerAccountUpdateParams = API.LedgerAccountUpdateParams;
253
- export import LedgerAccountListParams = API.LedgerAccountListParams;
254
- export import LedgerAccountBalanceMonitors = API.LedgerAccountBalanceMonitors;
255
- export import LedgerAccountBalanceMonitor = API.LedgerAccountBalanceMonitor;
256
- export import LedgerAccountBalanceMonitorsPage = API.LedgerAccountBalanceMonitorsPage;
257
- export import LedgerAccountBalanceMonitorCreateParams = API.LedgerAccountBalanceMonitorCreateParams;
258
- export import LedgerAccountBalanceMonitorUpdateParams = API.LedgerAccountBalanceMonitorUpdateParams;
259
- export import LedgerAccountBalanceMonitorListParams = API.LedgerAccountBalanceMonitorListParams;
260
- export import LedgerAccountPayouts = API.LedgerAccountPayouts;
261
- export import LedgerAccountPayout = API.LedgerAccountPayout;
262
- export import LedgerAccountPayoutsPage = API.LedgerAccountPayoutsPage;
263
- export import LedgerAccountPayoutCreateParams = API.LedgerAccountPayoutCreateParams;
264
- export import LedgerAccountPayoutUpdateParams = API.LedgerAccountPayoutUpdateParams;
265
- export import LedgerAccountPayoutListParams = API.LedgerAccountPayoutListParams;
266
- export import LedgerAccountStatements = API.LedgerAccountStatements;
267
- export import LedgerAccountStatementCreateResponse = API.LedgerAccountStatementCreateResponse;
268
- export import LedgerAccountStatementRetrieveResponse = API.LedgerAccountStatementRetrieveResponse;
269
- export import LedgerAccountStatementCreateParams = API.LedgerAccountStatementCreateParams;
270
- export import LedgerEntries = API.LedgerEntries;
271
- export import LedgerEntry = API.LedgerEntry;
272
- export import LedgerEntriesPage = API.LedgerEntriesPage;
273
- export import LedgerEntryRetrieveParams = API.LedgerEntryRetrieveParams;
274
- export import LedgerEntryListParams = API.LedgerEntryListParams;
275
- export import LedgerEventHandlers = API.LedgerEventHandlers;
276
- export import LedgerEventHandlerCreateResponse = API.LedgerEventHandlerCreateResponse;
277
- export import LedgerEventHandlerRetrieveResponse = API.LedgerEventHandlerRetrieveResponse;
278
- export import LedgerEventHandlerListResponse = API.LedgerEventHandlerListResponse;
279
- export import LedgerEventHandlerDeleteResponse = API.LedgerEventHandlerDeleteResponse;
280
- export import LedgerEventHandlerListResponsesPage = API.LedgerEventHandlerListResponsesPage;
281
- export import LedgerEventHandlerCreateParams = API.LedgerEventHandlerCreateParams;
282
- export import LedgerEventHandlerListParams = API.LedgerEventHandlerListParams;
283
- export import LedgerTransactions = API.LedgerTransactions;
284
- export import LedgerTransaction = API.LedgerTransaction;
285
- export import LedgerTransactionsPage = API.LedgerTransactionsPage;
286
- export import LedgerTransactionCreateParams = API.LedgerTransactionCreateParams;
287
- export import LedgerTransactionUpdateParams = API.LedgerTransactionUpdateParams;
288
- export import LedgerTransactionListParams = API.LedgerTransactionListParams;
289
- export import LedgerTransactionCreateReversalParams = API.LedgerTransactionCreateReversalParams;
290
- export import LineItems = API.LineItems;
291
- export import LineItem = API.LineItem;
292
- export import LineItemsPage = API.LineItemsPage;
293
- export import LineItemUpdateParams = API.LineItemUpdateParams;
294
- export import LineItemListParams = API.LineItemListParams;
295
- export import PaymentFlows = API.PaymentFlows;
296
- export import PaymentFlow = API.PaymentFlow;
297
- export import PaymentFlowsPage = API.PaymentFlowsPage;
298
- export import PaymentFlowCreateParams = API.PaymentFlowCreateParams;
299
- export import PaymentFlowUpdateParams = API.PaymentFlowUpdateParams;
300
- export import PaymentFlowListParams = API.PaymentFlowListParams;
301
- export import PaymentOrders = API.PaymentOrders;
302
- export import PaymentOrder = API.PaymentOrder;
303
- export import PaymentOrderSubtype = API.PaymentOrderSubtype;
304
- export import PaymentOrderType = API.PaymentOrderType;
305
- export import PaymentOrdersPage = API.PaymentOrdersPage;
306
- export import PaymentOrderCreateParams = API.PaymentOrderCreateParams;
307
- export import PaymentOrderUpdateParams = API.PaymentOrderUpdateParams;
308
- export import PaymentOrderListParams = API.PaymentOrderListParams;
309
- export import PaymentOrderCreateAsyncParams = API.PaymentOrderCreateAsyncParams;
310
- export import PaymentReferences = API.PaymentReferences;
311
- export import PaymentReference = API.PaymentReference;
312
- export import PaymentReferencesPage = API.PaymentReferencesPage;
313
- export import PaymentReferenceListParams = API.PaymentReferenceListParams;
314
- export import Returns = API.Returns;
315
- export import ReturnObject = API.ReturnObject;
316
- export import ReturnObjectsPage = API.ReturnObjectsPage;
317
- export import ReturnCreateParams = API.ReturnCreateParams;
318
- export import ReturnListParams = API.ReturnListParams;
319
- export import Transactions = API.Transactions;
320
- export import Transaction = API.Transaction;
321
- export import TransactionsPage = API.TransactionsPage;
322
- export import TransactionUpdateParams = API.TransactionUpdateParams;
323
- export import TransactionListParams = API.TransactionListParams;
324
- export import Validations = API.Validations;
325
- export import RoutingNumberLookupRequest = API.RoutingNumberLookupRequest;
326
- export import ValidationValidateRoutingNumberParams = API.ValidationValidateRoutingNumberParams;
327
- export import PaperItems = API.PaperItems;
328
- export import PaperItem = API.PaperItem;
329
- export import PaperItemsPage = API.PaperItemsPage;
330
- export import PaperItemListParams = API.PaperItemListParams;
331
- export import Webhooks = API.Webhooks;
332
- export import VirtualAccounts = API.VirtualAccounts;
333
- export import VirtualAccount = API.VirtualAccount;
334
- export import VirtualAccountsPage = API.VirtualAccountsPage;
335
- export import VirtualAccountCreateParams = API.VirtualAccountCreateParams;
336
- export import VirtualAccountUpdateParams = API.VirtualAccountUpdateParams;
337
- export import VirtualAccountListParams = API.VirtualAccountListParams;
338
- export import AccountsType = API.AccountsType;
339
- export import AsyncResponse = API.AsyncResponse;
340
- export import Currency = API.Currency;
143
+ export import toFile = Uploads.toFile;
144
+ export import fileFromPath = Uploads.fileFromPath;
145
+ export import RequestOptions = Core.RequestOptions;
146
+ export import Page = Pagination.Page;
147
+ export import PageParams = Pagination.PageParams;
148
+ export import PageResponse = Pagination.PageResponse;
149
+ export import PingResponse = API.PingResponse;
150
+ export import Connections = API.Connections;
151
+ export import Connection = API.Connection;
152
+ export import ConnectionsPage = API.ConnectionsPage;
153
+ export import ConnectionListParams = API.ConnectionListParams;
154
+ export import Counterparties = API.Counterparties;
155
+ export import Counterparty = API.Counterparty;
156
+ export import CounterpartyCollectAccountResponse = API.CounterpartyCollectAccountResponse;
157
+ export import CounterpartiesPage = API.CounterpartiesPage;
158
+ export import CounterpartyCreateParams = API.CounterpartyCreateParams;
159
+ export import CounterpartyUpdateParams = API.CounterpartyUpdateParams;
160
+ export import CounterpartyListParams = API.CounterpartyListParams;
161
+ export import CounterpartyCollectAccountParams = API.CounterpartyCollectAccountParams;
162
+ export import Events = API.Events;
163
+ export import Event = API.Event;
164
+ export import EventsPage = API.EventsPage;
165
+ export import EventListParams = API.EventListParams;
166
+ export import ExpectedPayments = API.ExpectedPayments;
167
+ export import ExpectedPayment = API.ExpectedPayment;
168
+ export import ExpectedPaymentType = API.ExpectedPaymentType;
169
+ export import ExpectedPaymentsPage = API.ExpectedPaymentsPage;
170
+ export import ExpectedPaymentCreateParams = API.ExpectedPaymentCreateParams;
171
+ export import ExpectedPaymentUpdateParams = API.ExpectedPaymentUpdateParams;
172
+ export import ExpectedPaymentListParams = API.ExpectedPaymentListParams;
173
+ export import ExternalAccounts = API.ExternalAccounts;
174
+ export import ExternalAccount = API.ExternalAccount;
175
+ export import ExternalAccountType = API.ExternalAccountType;
176
+ export import ExternalAccountsPage = API.ExternalAccountsPage;
177
+ export import ExternalAccountCreateParams = API.ExternalAccountCreateParams;
178
+ export import ExternalAccountUpdateParams = API.ExternalAccountUpdateParams;
179
+ export import ExternalAccountListParams = API.ExternalAccountListParams;
180
+ export import ExternalAccountCompleteVerificationParams = API.ExternalAccountCompleteVerificationParams;
181
+ export import ExternalAccountVerifyParams = API.ExternalAccountVerifyParams;
182
+ export import IncomingPaymentDetails = API.IncomingPaymentDetails;
183
+ export import IncomingPaymentDetail = API.IncomingPaymentDetail;
184
+ export import IncomingPaymentDetailsPage = API.IncomingPaymentDetailsPage;
185
+ export import IncomingPaymentDetailUpdateParams = API.IncomingPaymentDetailUpdateParams;
186
+ export import IncomingPaymentDetailListParams = API.IncomingPaymentDetailListParams;
187
+ export import IncomingPaymentDetailCreateAsyncParams = API.IncomingPaymentDetailCreateAsyncParams;
188
+ export import Invoices = API.Invoices;
189
+ export import Invoice = API.Invoice;
190
+ export import InvoicesPage = API.InvoicesPage;
191
+ export import InvoiceCreateParams = API.InvoiceCreateParams;
192
+ export import InvoiceUpdateParams = API.InvoiceUpdateParams;
193
+ export import InvoiceListParams = API.InvoiceListParams;
194
+ export import Documents = API.Documents;
195
+ export import Document = API.Document;
196
+ export import DocumentsPage = API.DocumentsPage;
197
+ export import DocumentCreateParams = API.DocumentCreateParams;
198
+ export import DocumentListParams = API.DocumentListParams;
199
+ export import AccountCollectionFlows = API.AccountCollectionFlows;
200
+ export import AccountCollectionFlow = API.AccountCollectionFlow;
201
+ export import AccountCollectionFlowsPage = API.AccountCollectionFlowsPage;
202
+ export import AccountCollectionFlowCreateParams = API.AccountCollectionFlowCreateParams;
203
+ export import AccountCollectionFlowUpdateParams = API.AccountCollectionFlowUpdateParams;
204
+ export import AccountCollectionFlowListParams = API.AccountCollectionFlowListParams;
205
+ export import AccountDetails = API.AccountDetails;
206
+ export import AccountDetail = API.AccountDetail;
207
+ export import AccountDetailsPage = API.AccountDetailsPage;
208
+ export import AccountDetailCreateParams = API.AccountDetailCreateParams;
209
+ export import AccountDetailListParams = API.AccountDetailListParams;
210
+ export import RoutingDetails = API.RoutingDetails;
211
+ export import RoutingDetail = API.RoutingDetail;
212
+ export import RoutingDetailsPage = API.RoutingDetailsPage;
213
+ export import RoutingDetailCreateParams = API.RoutingDetailCreateParams;
214
+ export import RoutingDetailListParams = API.RoutingDetailListParams;
215
+ export import InternalAccounts = API.InternalAccounts;
216
+ export import InternalAccount = API.InternalAccount;
217
+ export import InternalAccountsPage = API.InternalAccountsPage;
218
+ export import InternalAccountCreateParams = API.InternalAccountCreateParams;
219
+ export import InternalAccountUpdateParams = API.InternalAccountUpdateParams;
220
+ export import InternalAccountListParams = API.InternalAccountListParams;
221
+ export import Ledgers = API.Ledgers;
222
+ export import Ledger = API.Ledger;
223
+ export import LedgersPage = API.LedgersPage;
224
+ export import LedgerCreateParams = API.LedgerCreateParams;
225
+ export import LedgerUpdateParams = API.LedgerUpdateParams;
226
+ export import LedgerListParams = API.LedgerListParams;
227
+ export import LedgerableEvents = API.LedgerableEvents;
228
+ export import LedgerableEvent = API.LedgerableEvent;
229
+ export import LedgerableEventCreateParams = API.LedgerableEventCreateParams;
230
+ export import LedgerAccountCategories = API.LedgerAccountCategories;
231
+ export import LedgerAccountCategory = API.LedgerAccountCategory;
232
+ export import LedgerAccountCategoriesPage = API.LedgerAccountCategoriesPage;
233
+ export import LedgerAccountCategoryCreateParams = API.LedgerAccountCategoryCreateParams;
234
+ export import LedgerAccountCategoryRetrieveParams = API.LedgerAccountCategoryRetrieveParams;
235
+ export import LedgerAccountCategoryUpdateParams = API.LedgerAccountCategoryUpdateParams;
236
+ export import LedgerAccountCategoryListParams = API.LedgerAccountCategoryListParams;
237
+ export import LedgerAccounts = API.LedgerAccounts;
238
+ export import LedgerAccount = API.LedgerAccount;
239
+ export import LedgerAccountsPage = API.LedgerAccountsPage;
240
+ export import LedgerAccountCreateParams = API.LedgerAccountCreateParams;
241
+ export import LedgerAccountRetrieveParams = API.LedgerAccountRetrieveParams;
242
+ export import LedgerAccountUpdateParams = API.LedgerAccountUpdateParams;
243
+ export import LedgerAccountListParams = API.LedgerAccountListParams;
244
+ export import LedgerAccountBalanceMonitors = API.LedgerAccountBalanceMonitors;
245
+ export import LedgerAccountBalanceMonitor = API.LedgerAccountBalanceMonitor;
246
+ export import LedgerAccountBalanceMonitorsPage = API.LedgerAccountBalanceMonitorsPage;
247
+ export import LedgerAccountBalanceMonitorCreateParams = API.LedgerAccountBalanceMonitorCreateParams;
248
+ export import LedgerAccountBalanceMonitorUpdateParams = API.LedgerAccountBalanceMonitorUpdateParams;
249
+ export import LedgerAccountBalanceMonitorListParams = API.LedgerAccountBalanceMonitorListParams;
250
+ export import LedgerAccountPayouts = API.LedgerAccountPayouts;
251
+ export import LedgerAccountPayout = API.LedgerAccountPayout;
252
+ export import LedgerAccountPayoutsPage = API.LedgerAccountPayoutsPage;
253
+ export import LedgerAccountPayoutCreateParams = API.LedgerAccountPayoutCreateParams;
254
+ export import LedgerAccountPayoutUpdateParams = API.LedgerAccountPayoutUpdateParams;
255
+ export import LedgerAccountPayoutListParams = API.LedgerAccountPayoutListParams;
256
+ export import LedgerAccountStatements = API.LedgerAccountStatements;
257
+ export import LedgerAccountStatementCreateResponse = API.LedgerAccountStatementCreateResponse;
258
+ export import LedgerAccountStatementRetrieveResponse = API.LedgerAccountStatementRetrieveResponse;
259
+ export import LedgerAccountStatementCreateParams = API.LedgerAccountStatementCreateParams;
260
+ export import LedgerEntries = API.LedgerEntries;
261
+ export import LedgerEntry = API.LedgerEntry;
262
+ export import LedgerEntriesPage = API.LedgerEntriesPage;
263
+ export import LedgerEntryRetrieveParams = API.LedgerEntryRetrieveParams;
264
+ export import LedgerEntryListParams = API.LedgerEntryListParams;
265
+ export import LedgerEventHandlers = API.LedgerEventHandlers;
266
+ export import LedgerEventHandlerCreateResponse = API.LedgerEventHandlerCreateResponse;
267
+ export import LedgerEventHandlerRetrieveResponse = API.LedgerEventHandlerRetrieveResponse;
268
+ export import LedgerEventHandlerListResponse = API.LedgerEventHandlerListResponse;
269
+ export import LedgerEventHandlerDeleteResponse = API.LedgerEventHandlerDeleteResponse;
270
+ export import LedgerEventHandlerListResponsesPage = API.LedgerEventHandlerListResponsesPage;
271
+ export import LedgerEventHandlerCreateParams = API.LedgerEventHandlerCreateParams;
272
+ export import LedgerEventHandlerListParams = API.LedgerEventHandlerListParams;
273
+ export import LedgerTransactions = API.LedgerTransactions;
274
+ export import LedgerTransaction = API.LedgerTransaction;
275
+ export import LedgerTransactionsPage = API.LedgerTransactionsPage;
276
+ export import LedgerTransactionCreateParams = API.LedgerTransactionCreateParams;
277
+ export import LedgerTransactionUpdateParams = API.LedgerTransactionUpdateParams;
278
+ export import LedgerTransactionListParams = API.LedgerTransactionListParams;
279
+ export import LedgerTransactionCreateReversalParams = API.LedgerTransactionCreateReversalParams;
280
+ export import LineItems = API.LineItems;
281
+ export import LineItem = API.LineItem;
282
+ export import LineItemsPage = API.LineItemsPage;
283
+ export import LineItemUpdateParams = API.LineItemUpdateParams;
284
+ export import LineItemListParams = API.LineItemListParams;
285
+ export import PaymentFlows = API.PaymentFlows;
286
+ export import PaymentFlow = API.PaymentFlow;
287
+ export import PaymentFlowsPage = API.PaymentFlowsPage;
288
+ export import PaymentFlowCreateParams = API.PaymentFlowCreateParams;
289
+ export import PaymentFlowUpdateParams = API.PaymentFlowUpdateParams;
290
+ export import PaymentFlowListParams = API.PaymentFlowListParams;
291
+ export import PaymentOrders = API.PaymentOrders;
292
+ export import PaymentOrder = API.PaymentOrder;
293
+ export import PaymentOrderSubtype = API.PaymentOrderSubtype;
294
+ export import PaymentOrderType = API.PaymentOrderType;
295
+ export import PaymentOrdersPage = API.PaymentOrdersPage;
296
+ export import PaymentOrderCreateParams = API.PaymentOrderCreateParams;
297
+ export import PaymentOrderUpdateParams = API.PaymentOrderUpdateParams;
298
+ export import PaymentOrderListParams = API.PaymentOrderListParams;
299
+ export import PaymentOrderCreateAsyncParams = API.PaymentOrderCreateAsyncParams;
300
+ export import PaymentReferences = API.PaymentReferences;
301
+ export import PaymentReference = API.PaymentReference;
302
+ export import PaymentReferencesPage = API.PaymentReferencesPage;
303
+ export import PaymentReferenceListParams = API.PaymentReferenceListParams;
304
+ export import Returns = API.Returns;
305
+ export import ReturnObject = API.ReturnObject;
306
+ export import ReturnObjectsPage = API.ReturnObjectsPage;
307
+ export import ReturnCreateParams = API.ReturnCreateParams;
308
+ export import ReturnListParams = API.ReturnListParams;
309
+ export import Transactions = API.Transactions;
310
+ export import Transaction = API.Transaction;
311
+ export import TransactionsPage = API.TransactionsPage;
312
+ export import TransactionUpdateParams = API.TransactionUpdateParams;
313
+ export import TransactionListParams = API.TransactionListParams;
314
+ export import Validations = API.Validations;
315
+ export import RoutingNumberLookupRequest = API.RoutingNumberLookupRequest;
316
+ export import ValidationValidateRoutingNumberParams = API.ValidationValidateRoutingNumberParams;
317
+ export import PaperItems = API.PaperItems;
318
+ export import PaperItem = API.PaperItem;
319
+ export import PaperItemsPage = API.PaperItemsPage;
320
+ export import PaperItemListParams = API.PaperItemListParams;
321
+ export import Webhooks = API.Webhooks;
322
+ export import VirtualAccounts = API.VirtualAccounts;
323
+ export import VirtualAccount = API.VirtualAccount;
324
+ export import VirtualAccountsPage = API.VirtualAccountsPage;
325
+ export import VirtualAccountCreateParams = API.VirtualAccountCreateParams;
326
+ export import VirtualAccountUpdateParams = API.VirtualAccountUpdateParams;
327
+ export import VirtualAccountListParams = API.VirtualAccountListParams;
328
+ export import AccountsType = API.AccountsType;
329
+ export import AsyncResponse = API.AsyncResponse;
330
+ export import Currency = API.Currency;
341
331
  }
342
332
  export default ModernTreasury;
343
- //# sourceMappingURL=index.d.ts.map
333
+ //# sourceMappingURL=index.d.ts.map