increase 0.16.0 → 0.18.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 (368) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/README.md +41 -2
  3. package/core.d.ts +1 -10
  4. package/core.d.ts.map +1 -1
  5. package/core.js +6 -14
  6. package/core.js.map +1 -1
  7. package/core.mjs +5 -12
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +12 -8
  10. package/index.d.ts +12 -8
  11. package/index.d.ts.map +1 -1
  12. package/index.js +8 -5
  13. package/index.js.map +1 -1
  14. package/index.mjs +8 -5
  15. package/index.mjs.map +1 -1
  16. package/package.json +27 -23
  17. package/resource.d.ts +1 -7
  18. package/resource.d.ts.map +1 -1
  19. package/resource.js +1 -7
  20. package/resource.js.map +1 -1
  21. package/resource.mjs +1 -7
  22. package/resource.mjs.map +1 -1
  23. package/resources/account-numbers.js +4 -4
  24. package/resources/account-numbers.js.map +1 -1
  25. package/resources/account-numbers.mjs +4 -4
  26. package/resources/account-numbers.mjs.map +1 -1
  27. package/resources/account-statements.js +2 -2
  28. package/resources/account-statements.js.map +1 -1
  29. package/resources/account-statements.mjs +2 -2
  30. package/resources/account-statements.mjs.map +1 -1
  31. package/resources/account-transfers.js +5 -5
  32. package/resources/account-transfers.js.map +1 -1
  33. package/resources/account-transfers.mjs +5 -5
  34. package/resources/account-transfers.mjs.map +1 -1
  35. package/resources/accounts.d.ts +38 -0
  36. package/resources/accounts.d.ts.map +1 -1
  37. package/resources/accounts.js +11 -5
  38. package/resources/accounts.js.map +1 -1
  39. package/resources/accounts.mjs +11 -5
  40. package/resources/accounts.mjs.map +1 -1
  41. package/resources/ach-prenotifications.js +3 -3
  42. package/resources/ach-prenotifications.js.map +1 -1
  43. package/resources/ach-prenotifications.mjs +3 -3
  44. package/resources/ach-prenotifications.mjs.map +1 -1
  45. package/resources/ach-transfers.js +5 -5
  46. package/resources/ach-transfers.js.map +1 -1
  47. package/resources/ach-transfers.mjs +5 -5
  48. package/resources/ach-transfers.mjs.map +1 -1
  49. package/resources/bookkeeping-accounts.d.ts +36 -1
  50. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  51. package/resources/bookkeeping-accounts.js +9 -3
  52. package/resources/bookkeeping-accounts.js.map +1 -1
  53. package/resources/bookkeeping-accounts.mjs +9 -3
  54. package/resources/bookkeeping-accounts.mjs.map +1 -1
  55. package/resources/bookkeeping-entries.d.ts +11 -1
  56. package/resources/bookkeeping-entries.d.ts.map +1 -1
  57. package/resources/bookkeeping-entries.js +7 -1
  58. package/resources/bookkeeping-entries.js.map +1 -1
  59. package/resources/bookkeeping-entries.mjs +7 -1
  60. package/resources/bookkeeping-entries.mjs.map +1 -1
  61. package/resources/bookkeeping-entry-sets.d.ts +28 -1
  62. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  63. package/resources/bookkeeping-entry-sets.js +47 -2
  64. package/resources/bookkeeping-entry-sets.js.map +1 -1
  65. package/resources/bookkeeping-entry-sets.mjs +22 -1
  66. package/resources/bookkeeping-entry-sets.mjs.map +1 -1
  67. package/resources/card-disputes.js +3 -3
  68. package/resources/card-disputes.js.map +1 -1
  69. package/resources/card-disputes.mjs +3 -3
  70. package/resources/card-disputes.mjs.map +1 -1
  71. package/resources/card-payments.d.ts +36 -0
  72. package/resources/card-payments.d.ts.map +1 -1
  73. package/resources/card-payments.js +2 -2
  74. package/resources/card-payments.js.map +1 -1
  75. package/resources/card-payments.mjs +2 -2
  76. package/resources/card-payments.mjs.map +1 -1
  77. package/resources/card-profiles.js +4 -4
  78. package/resources/card-profiles.js.map +1 -1
  79. package/resources/card-profiles.mjs +4 -4
  80. package/resources/card-profiles.mjs.map +1 -1
  81. package/resources/card-purchase-supplements.d.ts.map +1 -1
  82. package/resources/card-purchase-supplements.js +5 -2
  83. package/resources/card-purchase-supplements.js.map +1 -1
  84. package/resources/card-purchase-supplements.mjs +5 -2
  85. package/resources/card-purchase-supplements.mjs.map +1 -1
  86. package/resources/cards.js +5 -5
  87. package/resources/cards.js.map +1 -1
  88. package/resources/cards.mjs +5 -5
  89. package/resources/cards.mjs.map +1 -1
  90. package/resources/check-deposits.js +3 -3
  91. package/resources/check-deposits.js.map +1 -1
  92. package/resources/check-deposits.mjs +3 -3
  93. package/resources/check-deposits.mjs.map +1 -1
  94. package/resources/check-transfers.js +6 -6
  95. package/resources/check-transfers.js.map +1 -1
  96. package/resources/check-transfers.mjs +6 -6
  97. package/resources/check-transfers.mjs.map +1 -1
  98. package/resources/declined-transactions.d.ts +28 -0
  99. package/resources/declined-transactions.d.ts.map +1 -1
  100. package/resources/declined-transactions.js +2 -2
  101. package/resources/declined-transactions.js.map +1 -1
  102. package/resources/declined-transactions.mjs +2 -2
  103. package/resources/declined-transactions.mjs.map +1 -1
  104. package/resources/digital-wallet-tokens.js +2 -2
  105. package/resources/digital-wallet-tokens.js.map +1 -1
  106. package/resources/digital-wallet-tokens.mjs +2 -2
  107. package/resources/digital-wallet-tokens.mjs.map +1 -1
  108. package/resources/documents.js +2 -2
  109. package/resources/documents.js.map +1 -1
  110. package/resources/documents.mjs +2 -2
  111. package/resources/documents.mjs.map +1 -1
  112. package/resources/entities/beneficial-owners.js +3 -3
  113. package/resources/entities/beneficial-owners.js.map +1 -1
  114. package/resources/entities/beneficial-owners.mjs +3 -3
  115. package/resources/entities/beneficial-owners.mjs.map +1 -1
  116. package/resources/entities/entities.d.ts.map +1 -1
  117. package/resources/entities/entities.js +7 -7
  118. package/resources/entities/entities.js.map +1 -1
  119. package/resources/entities/entities.mjs +7 -7
  120. package/resources/entities/entities.mjs.map +1 -1
  121. package/resources/entities/supplemental-documents.js +2 -2
  122. package/resources/entities/supplemental-documents.js.map +1 -1
  123. package/resources/entities/supplemental-documents.mjs +2 -2
  124. package/resources/entities/supplemental-documents.mjs.map +1 -1
  125. package/resources/event-subscriptions.js +4 -4
  126. package/resources/event-subscriptions.js.map +1 -1
  127. package/resources/event-subscriptions.mjs +4 -4
  128. package/resources/event-subscriptions.mjs.map +1 -1
  129. package/resources/events.js +2 -2
  130. package/resources/events.js.map +1 -1
  131. package/resources/events.mjs +2 -2
  132. package/resources/events.mjs.map +1 -1
  133. package/resources/exports.d.ts +29 -2
  134. package/resources/exports.d.ts.map +1 -1
  135. package/resources/exports.js +3 -3
  136. package/resources/exports.js.map +1 -1
  137. package/resources/exports.mjs +3 -3
  138. package/resources/exports.mjs.map +1 -1
  139. package/resources/external-accounts.js +4 -4
  140. package/resources/external-accounts.js.map +1 -1
  141. package/resources/external-accounts.mjs +4 -4
  142. package/resources/external-accounts.mjs.map +1 -1
  143. package/resources/files.js +3 -3
  144. package/resources/files.js.map +1 -1
  145. package/resources/files.mjs +3 -3
  146. package/resources/files.mjs.map +1 -1
  147. package/resources/groups.js +1 -1
  148. package/resources/groups.js.map +1 -1
  149. package/resources/groups.mjs +1 -1
  150. package/resources/groups.mjs.map +1 -1
  151. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  152. package/resources/inbound-ach-transfers.js +8 -5
  153. package/resources/inbound-ach-transfers.js.map +1 -1
  154. package/resources/inbound-ach-transfers.mjs +8 -5
  155. package/resources/inbound-ach-transfers.mjs.map +1 -1
  156. package/resources/inbound-wire-drawdown-requests.js +2 -2
  157. package/resources/inbound-wire-drawdown-requests.js.map +1 -1
  158. package/resources/inbound-wire-drawdown-requests.mjs +2 -2
  159. package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
  160. package/resources/index.d.ts +3 -4
  161. package/resources/index.d.ts.map +1 -1
  162. package/resources/index.js +2 -3
  163. package/resources/index.js.map +1 -1
  164. package/resources/index.mjs +1 -2
  165. package/resources/index.mjs.map +1 -1
  166. package/resources/oauth-connections.js +2 -2
  167. package/resources/oauth-connections.js.map +1 -1
  168. package/resources/oauth-connections.mjs +2 -2
  169. package/resources/oauth-connections.mjs.map +1 -1
  170. package/resources/pending-transactions.d.ts +18 -0
  171. package/resources/pending-transactions.d.ts.map +1 -1
  172. package/resources/pending-transactions.js +2 -2
  173. package/resources/pending-transactions.js.map +1 -1
  174. package/resources/pending-transactions.mjs +2 -2
  175. package/resources/pending-transactions.mjs.map +1 -1
  176. package/resources/physical-cards.js +4 -4
  177. package/resources/physical-cards.js.map +1 -1
  178. package/resources/physical-cards.mjs +4 -4
  179. package/resources/physical-cards.mjs.map +1 -1
  180. package/resources/programs.js +2 -2
  181. package/resources/programs.js.map +1 -1
  182. package/resources/programs.mjs +2 -2
  183. package/resources/programs.mjs.map +1 -1
  184. package/resources/real-time-decisions.d.ts +18 -0
  185. package/resources/real-time-decisions.d.ts.map +1 -1
  186. package/resources/real-time-decisions.js +2 -2
  187. package/resources/real-time-decisions.js.map +1 -1
  188. package/resources/real-time-decisions.mjs +2 -2
  189. package/resources/real-time-decisions.mjs.map +1 -1
  190. package/resources/real-time-payments-transfers.js +3 -3
  191. package/resources/real-time-payments-transfers.js.map +1 -1
  192. package/resources/real-time-payments-transfers.mjs +3 -3
  193. package/resources/real-time-payments-transfers.mjs.map +1 -1
  194. package/resources/routing-numbers.js +1 -1
  195. package/resources/routing-numbers.js.map +1 -1
  196. package/resources/routing-numbers.mjs +1 -1
  197. package/resources/routing-numbers.mjs.map +1 -1
  198. package/resources/simulations/account-statements.js +1 -1
  199. package/resources/simulations/account-statements.js.map +1 -1
  200. package/resources/simulations/account-statements.mjs +1 -1
  201. package/resources/simulations/account-statements.mjs.map +1 -1
  202. package/resources/simulations/account-transfers.js +1 -1
  203. package/resources/simulations/account-transfers.js.map +1 -1
  204. package/resources/simulations/account-transfers.mjs +1 -1
  205. package/resources/simulations/account-transfers.mjs.map +1 -1
  206. package/resources/simulations/ach-transfers.d.ts +28 -0
  207. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  208. package/resources/simulations/ach-transfers.js +3 -3
  209. package/resources/simulations/ach-transfers.js.map +1 -1
  210. package/resources/simulations/ach-transfers.mjs +3 -3
  211. package/resources/simulations/ach-transfers.mjs.map +1 -1
  212. package/resources/simulations/card-disputes.js +1 -1
  213. package/resources/simulations/card-disputes.js.map +1 -1
  214. package/resources/simulations/card-disputes.mjs +1 -1
  215. package/resources/simulations/card-disputes.mjs.map +1 -1
  216. package/resources/simulations/card-profiles.js +1 -1
  217. package/resources/simulations/card-profiles.js.map +1 -1
  218. package/resources/simulations/card-profiles.mjs +1 -1
  219. package/resources/simulations/card-profiles.mjs.map +1 -1
  220. package/resources/simulations/card-refunds.js +1 -1
  221. package/resources/simulations/card-refunds.js.map +1 -1
  222. package/resources/simulations/card-refunds.mjs +1 -1
  223. package/resources/simulations/card-refunds.mjs.map +1 -1
  224. package/resources/simulations/cards.d.ts +46 -0
  225. package/resources/simulations/cards.d.ts.map +1 -1
  226. package/resources/simulations/cards.js +2 -2
  227. package/resources/simulations/cards.js.map +1 -1
  228. package/resources/simulations/cards.mjs +2 -2
  229. package/resources/simulations/cards.mjs.map +1 -1
  230. package/resources/simulations/check-deposits.js +3 -3
  231. package/resources/simulations/check-deposits.js.map +1 -1
  232. package/resources/simulations/check-deposits.mjs +3 -3
  233. package/resources/simulations/check-deposits.mjs.map +1 -1
  234. package/resources/simulations/check-transfers.js +2 -2
  235. package/resources/simulations/check-transfers.js.map +1 -1
  236. package/resources/simulations/check-transfers.mjs +2 -2
  237. package/resources/simulations/check-transfers.mjs.map +1 -1
  238. package/resources/simulations/digital-wallet-token-requests.js +1 -1
  239. package/resources/simulations/digital-wallet-token-requests.js.map +1 -1
  240. package/resources/simulations/digital-wallet-token-requests.mjs +1 -1
  241. package/resources/simulations/digital-wallet-token-requests.mjs.map +1 -1
  242. package/resources/simulations/documents.js +1 -1
  243. package/resources/simulations/documents.js.map +1 -1
  244. package/resources/simulations/documents.mjs +1 -1
  245. package/resources/simulations/documents.mjs.map +1 -1
  246. package/resources/simulations/inbound-funds-holds.js +1 -1
  247. package/resources/simulations/inbound-funds-holds.js.map +1 -1
  248. package/resources/simulations/inbound-funds-holds.mjs +1 -1
  249. package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
  250. package/resources/simulations/inbound-wire-drawdown-requests.js +1 -1
  251. package/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -1
  252. package/resources/simulations/inbound-wire-drawdown-requests.mjs +1 -1
  253. package/resources/simulations/inbound-wire-drawdown-requests.mjs.map +1 -1
  254. package/resources/simulations/interest-payments.js +1 -1
  255. package/resources/simulations/interest-payments.js.map +1 -1
  256. package/resources/simulations/interest-payments.mjs +1 -1
  257. package/resources/simulations/interest-payments.mjs.map +1 -1
  258. package/resources/simulations/physical-cards.d.ts.map +1 -1
  259. package/resources/simulations/physical-cards.js +4 -1
  260. package/resources/simulations/physical-cards.js.map +1 -1
  261. package/resources/simulations/physical-cards.mjs +4 -1
  262. package/resources/simulations/physical-cards.mjs.map +1 -1
  263. package/resources/simulations/programs.js +1 -1
  264. package/resources/simulations/programs.js.map +1 -1
  265. package/resources/simulations/programs.mjs +1 -1
  266. package/resources/simulations/programs.mjs.map +1 -1
  267. package/resources/simulations/real-time-payments-transfers.d.ts +28 -0
  268. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  269. package/resources/simulations/real-time-payments-transfers.js +2 -5
  270. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  271. package/resources/simulations/real-time-payments-transfers.mjs +2 -5
  272. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  273. package/resources/simulations/simulations.d.ts.map +1 -1
  274. package/resources/simulations/simulations.js +18 -18
  275. package/resources/simulations/simulations.js.map +1 -1
  276. package/resources/simulations/simulations.mjs +18 -18
  277. package/resources/simulations/simulations.mjs.map +1 -1
  278. package/resources/simulations/wire-transfers.js +1 -1
  279. package/resources/simulations/wire-transfers.js.map +1 -1
  280. package/resources/simulations/wire-transfers.mjs +1 -1
  281. package/resources/simulations/wire-transfers.mjs.map +1 -1
  282. package/resources/transactions.js +2 -2
  283. package/resources/transactions.js.map +1 -1
  284. package/resources/transactions.mjs +2 -2
  285. package/resources/transactions.mjs.map +1 -1
  286. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  287. package/resources/wire-drawdown-requests.js +6 -3
  288. package/resources/wire-drawdown-requests.js.map +1 -1
  289. package/resources/wire-drawdown-requests.mjs +6 -3
  290. package/resources/wire-drawdown-requests.mjs.map +1 -1
  291. package/resources/wire-transfers.js +7 -7
  292. package/resources/wire-transfers.js.map +1 -1
  293. package/resources/wire-transfers.mjs +7 -7
  294. package/resources/wire-transfers.mjs.map +1 -1
  295. package/src/core.ts +11 -23
  296. package/src/index.ts +23 -9
  297. package/src/resource.ts +3 -16
  298. package/src/resources/account-numbers.ts +4 -4
  299. package/src/resources/account-statements.ts +2 -2
  300. package/src/resources/account-transfers.ts +5 -5
  301. package/src/resources/accounts.ts +63 -5
  302. package/src/resources/ach-prenotifications.ts +3 -3
  303. package/src/resources/ach-transfers.ts +5 -5
  304. package/src/resources/bookkeeping-accounts.ts +61 -4
  305. package/src/resources/bookkeeping-entries.ts +16 -2
  306. package/src/resources/bookkeeping-entry-sets.ts +54 -2
  307. package/src/resources/card-disputes.ts +3 -3
  308. package/src/resources/card-payments.ts +52 -2
  309. package/src/resources/card-profiles.ts +4 -4
  310. package/src/resources/card-purchase-supplements.ts +5 -2
  311. package/src/resources/cards.ts +5 -5
  312. package/src/resources/check-deposits.ts +3 -3
  313. package/src/resources/check-transfers.ts +6 -6
  314. package/src/resources/declined-transactions.ts +39 -2
  315. package/src/resources/digital-wallet-tokens.ts +2 -2
  316. package/src/resources/documents.ts +2 -2
  317. package/src/resources/entities/beneficial-owners.ts +3 -3
  318. package/src/resources/entities/entities.ts +7 -7
  319. package/src/resources/entities/supplemental-documents.ts +2 -2
  320. package/src/resources/event-subscriptions.ts +4 -4
  321. package/src/resources/events.ts +2 -2
  322. package/src/resources/exports.ts +45 -5
  323. package/src/resources/external-accounts.ts +4 -4
  324. package/src/resources/files.ts +3 -3
  325. package/src/resources/groups.ts +1 -1
  326. package/src/resources/inbound-ach-transfers.ts +8 -5
  327. package/src/resources/inbound-wire-drawdown-requests.ts +2 -2
  328. package/src/resources/index.ts +6 -1
  329. package/src/resources/oauth-connections.ts +2 -2
  330. package/src/resources/pending-transactions.ts +27 -2
  331. package/src/resources/physical-cards.ts +4 -4
  332. package/src/resources/programs.ts +2 -2
  333. package/src/resources/real-time-decisions.ts +27 -2
  334. package/src/resources/real-time-payments-transfers.ts +3 -3
  335. package/src/resources/routing-numbers.ts +1 -1
  336. package/src/resources/simulations/account-statements.ts +1 -1
  337. package/src/resources/simulations/account-transfers.ts +1 -1
  338. package/src/resources/simulations/ach-transfers.ts +40 -3
  339. package/src/resources/simulations/card-disputes.ts +1 -1
  340. package/src/resources/simulations/card-profiles.ts +1 -1
  341. package/src/resources/simulations/card-refunds.ts +1 -1
  342. package/src/resources/simulations/cards.ts +64 -2
  343. package/src/resources/simulations/check-deposits.ts +3 -3
  344. package/src/resources/simulations/check-transfers.ts +2 -2
  345. package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
  346. package/src/resources/simulations/documents.ts +1 -1
  347. package/src/resources/simulations/inbound-funds-holds.ts +1 -1
  348. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
  349. package/src/resources/simulations/interest-payments.ts +1 -1
  350. package/src/resources/simulations/physical-cards.ts +4 -1
  351. package/src/resources/simulations/programs.ts +1 -1
  352. package/src/resources/simulations/real-time-payments-transfers.ts +42 -5
  353. package/src/resources/simulations/simulations.ts +18 -18
  354. package/src/resources/simulations/wire-transfers.ts +1 -1
  355. package/src/resources/transactions.ts +2 -2
  356. package/src/resources/wire-drawdown-requests.ts +6 -3
  357. package/src/resources/wire-transfers.ts +7 -7
  358. package/src/version.ts +1 -1
  359. package/version.d.ts +1 -1
  360. package/version.js +1 -1
  361. package/version.mjs +1 -1
  362. package/resources/balance-lookups.d.ts +0 -49
  363. package/resources/balance-lookups.d.ts.map +0 -1
  364. package/resources/balance-lookups.js +0 -17
  365. package/resources/balance-lookups.js.map +0 -1
  366. package/resources/balance-lookups.mjs +0 -13
  367. package/resources/balance-lookups.mjs.map +0 -1
  368. package/src/resources/balance-lookups.ts +0 -63
@@ -34,31 +34,31 @@ class AccountTransfers extends resource_1.APIResource {
34
34
  * Create an Account Transfer
35
35
  */
36
36
  create(body, options) {
37
- return this.post('/account_transfers', { body, ...options });
37
+ return this._client.post('/account_transfers', { body, ...options });
38
38
  }
39
39
  /**
40
40
  * Retrieve an Account Transfer
41
41
  */
42
42
  retrieve(accountTransferId, options) {
43
- return this.get(`/account_transfers/${accountTransferId}`, options);
43
+ return this._client.get(`/account_transfers/${accountTransferId}`, options);
44
44
  }
45
45
  list(query = {}, options) {
46
46
  if ((0, core_1.isRequestOptions)(query)) {
47
47
  return this.list({}, query);
48
48
  }
49
- return this.getAPIList('/account_transfers', AccountTransfersPage, { query, ...options });
49
+ return this._client.getAPIList('/account_transfers', AccountTransfersPage, { query, ...options });
50
50
  }
51
51
  /**
52
52
  * Approve an Account Transfer
53
53
  */
54
54
  approve(accountTransferId, options) {
55
- return this.post(`/account_transfers/${accountTransferId}/approve`, options);
55
+ return this._client.post(`/account_transfers/${accountTransferId}/approve`, options);
56
56
  }
57
57
  /**
58
58
  * Cancel an Account Transfer
59
59
  */
60
60
  cancel(accountTransferId, options) {
61
- return this.post(`/account_transfers/${accountTransferId}/cancel`, options);
61
+ return this._client.post(`/account_transfers/${accountTransferId}/cancel`, options);
62
62
  }
63
63
  }
64
64
  exports.AccountTransfers = AccountTransfers;
@@ -1 +1 @@
1
- {"version":3,"file":"account-transfers.js","sourceRoot":"","sources":["../src/resources/account-transfers.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,0FAA4E;AAC5E,oDAA4D;AAE5D,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAiC,EAAE,OAA6B;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC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E,OAA6B;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,iBAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAUD,IAAI,CACF,QAAyD,EAAE,EAC3D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,iBAAyB,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,iBAAiB,UAAU,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,iBAAiB,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AA9CD,4CA8CC;AAED,MAAa,oBAAqB,SAAQ,iBAAqB;CAAG;AAAlE,oDAAkE;AA8NlE,WAAiB,gBAAgB;IAEjB,qCAAoB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC;AAGhF,CAAC,EALgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAKhC"}
@@ -8,31 +8,31 @@ export class AccountTransfers extends APIResource {
8
8
  * Create an Account Transfer
9
9
  */
10
10
  create(body, options) {
11
- return this.post('/account_transfers', { body, ...options });
11
+ return this._client.post('/account_transfers', { body, ...options });
12
12
  }
13
13
  /**
14
14
  * Retrieve an Account Transfer
15
15
  */
16
16
  retrieve(accountTransferId, options) {
17
- return this.get(`/account_transfers/${accountTransferId}`, options);
17
+ return this._client.get(`/account_transfers/${accountTransferId}`, options);
18
18
  }
19
19
  list(query = {}, options) {
20
20
  if (isRequestOptions(query)) {
21
21
  return this.list({}, query);
22
22
  }
23
- return this.getAPIList('/account_transfers', AccountTransfersPage, { query, ...options });
23
+ return this._client.getAPIList('/account_transfers', AccountTransfersPage, { query, ...options });
24
24
  }
25
25
  /**
26
26
  * Approve an Account Transfer
27
27
  */
28
28
  approve(accountTransferId, options) {
29
- return this.post(`/account_transfers/${accountTransferId}/approve`, options);
29
+ return this._client.post(`/account_transfers/${accountTransferId}/approve`, options);
30
30
  }
31
31
  /**
32
32
  * Cancel an Account Transfer
33
33
  */
34
34
  cancel(accountTransferId, options) {
35
- return this.post(`/account_transfers/${accountTransferId}/cancel`, options);
35
+ return this._client.post(`/account_transfers/${accountTransferId}/cancel`, options);
36
36
  }
37
37
  }
38
38
  export class AccountTransfersPage extends Page {
@@ -1 +1 @@
1
- {"version":3,"file":"account-transfers.mjs","sourceRoot":"","sources":["../src/resources/account-transfers.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OACzC,KAAK,mBAAmB,MAAM,sCAAsC;OACpE,EAAE,IAAI,EAAmB,MAAM,qBAAqB;AAE3D,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAiC,EAAE,OAA6B;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,iBAAyB,EAAE,OAA6B;QA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AAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,iBAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAUD,IAAI,CACF,QAAyD,EAAE,EAC3D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,iBAAyB,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,iBAAiB,UAAU,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,iBAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,iBAAiB,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAED,MAAM,OAAO,oBAAqB,SAAQ,IAAqB;CAAG;AA8NlE,WAAiB,gBAAgB;IAEjB,qCAAoB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC;AAGhF,CAAC,EALgB,gBAAgB,KAAhB,gBAAgB,QAKhC"}
@@ -20,6 +20,11 @@ export declare class Accounts extends APIResource {
20
20
  */
21
21
  list(query?: AccountListParams, options?: Core.RequestOptions): Core.PagePromise<AccountsPage, Account>;
22
22
  list(options?: Core.RequestOptions): Core.PagePromise<AccountsPage, Account>;
23
+ /**
24
+ * Retrieve an Account Balance
25
+ */
26
+ balance(accountId: string, query?: AccountBalanceParams, options?: Core.RequestOptions): Core.APIPromise<BalanceLookup>;
27
+ balance(accountId: string, options?: Core.RequestOptions): Core.APIPromise<BalanceLookup>;
23
28
  /**
24
29
  * Close an Account
25
30
  */
@@ -102,6 +107,31 @@ export interface Account {
102
107
  */
103
108
  type: 'account';
104
109
  }
110
+ /**
111
+ * Represents a request to lookup the balance of an Account at a given point in
112
+ * time.
113
+ */
114
+ export interface BalanceLookup {
115
+ /**
116
+ * The identifier for the account for which the balance was queried.
117
+ */
118
+ account_id: string;
119
+ /**
120
+ * The Account's available balance, representing the current balance less any open
121
+ * Pending Transactions on the Account.
122
+ */
123
+ available_balance: number;
124
+ /**
125
+ * The Account's current balance, representing the sum of all posted Transactions
126
+ * on the Account.
127
+ */
128
+ current_balance: number;
129
+ /**
130
+ * A constant representing the object's type. For this resource it will always be
131
+ * `balance_lookup`.
132
+ */
133
+ type: 'balance_lookup';
134
+ }
105
135
  export interface AccountCreateParams {
106
136
  /**
107
137
  * The name you choose for the Account.
@@ -170,11 +200,19 @@ export declare namespace AccountListParams {
170
200
  on_or_before?: string;
171
201
  }
172
202
  }
203
+ export interface AccountBalanceParams {
204
+ /**
205
+ * The moment to query the balance at. If not set, returns the current balances.
206
+ */
207
+ at_time?: string;
208
+ }
173
209
  export declare namespace Accounts {
174
210
  export import Account = AccountsAPI.Account;
211
+ export import BalanceLookup = AccountsAPI.BalanceLookup;
175
212
  export import AccountsPage = AccountsAPI.AccountsPage;
176
213
  export import AccountCreateParams = AccountsAPI.AccountCreateParams;
177
214
  export import AccountUpdateParams = AccountsAPI.AccountUpdateParams;
178
215
  export import AccountListParams = AccountsAPI.AccountListParams;
216
+ export import AccountBalanceParams = AccountsAPI.AccountBalanceParams;
179
217
  }
180
218
  //# sourceMappingURL=accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":"AAEA,OAAO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CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,QAAQ,CAAC;IACxB,MAAM,QAAQ,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAC5C,MAAM,QAAQ,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC;IACxD,MAAM,QAAQ,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC;IACtD,MAAM,QAAQ,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;IACpE,MAAM,QAAQ,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;IACpE,MAAM,QAAQ,iBAAiB,GAAG,WAAW,CAAC,iBAAiB,CAAC;IAChE,MAAM,QAAQ,oBAAoB,GAAG,WAAW,CAAC,oBAAoB,CAAC;CACvE"}
@@ -34,31 +34,37 @@ class Accounts extends resource_1.APIResource {
34
34
  * Create an Account
35
35
  */
36
36
  create(body, options) {
37
- return this.post('/accounts', { body, ...options });
37
+ return this._client.post('/accounts', { body, ...options });
38
38
  }
39
39
  /**
40
40
  * Retrieve an Account
41
41
  */
42
42
  retrieve(accountId, options) {
43
- return this.get(`/accounts/${accountId}`, options);
43
+ return this._client.get(`/accounts/${accountId}`, options);
44
44
  }
45
45
  /**
46
46
  * Update an Account
47
47
  */
48
48
  update(accountId, body, options) {
49
- return this.patch(`/accounts/${accountId}`, { body, ...options });
49
+ return this._client.patch(`/accounts/${accountId}`, { body, ...options });
50
50
  }
51
51
  list(query = {}, options) {
52
52
  if ((0, core_1.isRequestOptions)(query)) {
53
53
  return this.list({}, query);
54
54
  }
55
- return this.getAPIList('/accounts', AccountsPage, { query, ...options });
55
+ return this._client.getAPIList('/accounts', AccountsPage, { query, ...options });
56
+ }
57
+ balance(accountId, query = {}, options) {
58
+ if ((0, core_1.isRequestOptions)(query)) {
59
+ return this.balance(accountId, {}, query);
60
+ }
61
+ return this._client.get(`/accounts/${accountId}/balance`, { query, ...options });
56
62
  }
57
63
  /**
58
64
  * Close an Account
59
65
  */
60
66
  close(accountId, options) {
61
- return this.post(`/accounts/${accountId}/close`, options);
67
+ return this._client.post(`/accounts/${accountId}/close`, options);
62
68
  }
63
69
  }
64
70
  exports.Accounts = Accounts;
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,yEAA2D;AAC3D,oDAA4D;AAE5D,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAOD,IAAI,CACF,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E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AK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAWD,OAAO,CACL,SAAiB,EACjB,QAAoD,EAAE,EACtD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC3C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAiB,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,SAAS,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAnED,4BAmEC;AAED,MAAa,YAAa,SAAQ,iBAAa;CAAG;AAAlD,oCAAkD;AA8MlD,WAAiB,QAAQ;IAGT,qBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;AAKxD,CAAC,EARgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAQxB"}
@@ -8,31 +8,37 @@ export class Accounts extends APIResource {
8
8
  * Create an Account
9
9
  */
10
10
  create(body, options) {
11
- return this.post('/accounts', { body, ...options });
11
+ return this._client.post('/accounts', { body, ...options });
12
12
  }
13
13
  /**
14
14
  * Retrieve an Account
15
15
  */
16
16
  retrieve(accountId, options) {
17
- return this.get(`/accounts/${accountId}`, options);
17
+ return this._client.get(`/accounts/${accountId}`, options);
18
18
  }
19
19
  /**
20
20
  * Update an Account
21
21
  */
22
22
  update(accountId, body, options) {
23
- return this.patch(`/accounts/${accountId}`, { body, ...options });
23
+ return this._client.patch(`/accounts/${accountId}`, { body, ...options });
24
24
  }
25
25
  list(query = {}, options) {
26
26
  if (isRequestOptions(query)) {
27
27
  return this.list({}, query);
28
28
  }
29
- return this.getAPIList('/accounts', AccountsPage, { query, ...options });
29
+ return this._client.getAPIList('/accounts', AccountsPage, { query, ...options });
30
+ }
31
+ balance(accountId, query = {}, options) {
32
+ if (isRequestOptions(query)) {
33
+ return this.balance(accountId, {}, query);
34
+ }
35
+ return this._client.get(`/accounts/${accountId}/balance`, { query, ...options });
30
36
  }
31
37
  /**
32
38
  * Close an Account
33
39
  */
34
40
  close(accountId, options) {
35
- return this.post(`/accounts/${accountId}/close`, options);
41
+ return this._client.post(`/accounts/${accountId}/close`, options);
36
42
  }
37
43
  }
38
44
  export class AccountsPage extends Page {
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.mjs","sourceRoot":"","sources":["../src/resources/accounts.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OACzC,KAAK,WAAW,MAAM,6BAA6B;OACnD,EAAE,IAAI,EAAmB,MAAM,qBAAqB;AAE3D,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAOD,IAA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zB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAOD,IAAI,CACF,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAWD,OAAO,CACL,SAAiB,EACjB,QAAoD,EAAE,EACtD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC3C;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,SAAS,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAiB,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,SAAS,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,IAAa;CAAG;AA8MlD,WAAiB,QAAQ;IAGT,qBAAY,GAAG,WAAW,CAAC,YAAY,CAAC;AAKxD,CAAC,EARgB,QAAQ,KAAR,QAAQ,QAQxB"}
@@ -34,19 +34,19 @@ class ACHPrenotifications extends resource_1.APIResource {
34
34
  * Create an ACH Prenotification
35
35
  */
36
36
  create(body, options) {
37
- return this.post('/ach_prenotifications', { body, ...options });
37
+ return this._client.post('/ach_prenotifications', { body, ...options });
38
38
  }
39
39
  /**
40
40
  * Retrieve an ACH Prenotification
41
41
  */
42
42
  retrieve(achPrenotificationId, options) {
43
- return this.get(`/ach_prenotifications/${achPrenotificationId}`, options);
43
+ return this._client.get(`/ach_prenotifications/${achPrenotificationId}`, options);
44
44
  }
45
45
  list(query = {}, options) {
46
46
  if ((0, core_1.isRequestOptions)(query)) {
47
47
  return this.list({}, query);
48
48
  }
49
- return this.getAPIList('/ach_prenotifications', ACHPrenotificationsPage, { query, ...options });
49
+ return this._client.getAPIList('/ach_prenotifications', ACHPrenotificationsPage, { query, ...options });
50
50
  }
51
51
  }
52
52
  exports.ACHPrenotifications = ACHPrenotifications;
@@ -1 +1 @@
1
- {"version":3,"file":"ach-prenotifications.js","sourceRoot":"","sources":["../src/resources/ach-prenotifications.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,gGAAkF;AAClF,oDAA4D;AAE5D,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;OAEG;IACH,MAAM,CACJ,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,oBAA4B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,GAAG,CAAC,yBAAyB,oBAAoB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAUD,IAAI,CACF,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,uBAAuB,EAAE,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CA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AsB,CAAC,uBAAuB,CAAC;AAGzF,CAAC,EALgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAKnC"}
@@ -8,19 +8,19 @@ export class ACHPrenotifications extends APIResource {
8
8
  * Create an ACH Prenotification
9
9
  */
10
10
  create(body, options) {
11
- return this.post('/ach_prenotifications', { body, ...options });
11
+ return this._client.post('/ach_prenotifications', { body, ...options });
12
12
  }
13
13
  /**
14
14
  * Retrieve an ACH Prenotification
15
15
  */
16
16
  retrieve(achPrenotificationId, options) {
17
- return this.get(`/ach_prenotifications/${achPrenotificationId}`, options);
17
+ return this._client.get(`/ach_prenotifications/${achPrenotificationId}`, options);
18
18
  }
19
19
  list(query = {}, options) {
20
20
  if (isRequestOptions(query)) {
21
21
  return this.list({}, query);
22
22
  }
23
- return this.getAPIList('/ach_prenotifications', ACHPrenotificationsPage, { query, ...options });
23
+ return this._client.getAPIList('/ach_prenotifications', ACHPrenotificationsPage, { query, ...options });
24
24
  }
25
25
  }
26
26
  export class ACHPrenotificationsPage extends Page {
@@ -1 +1 @@
1
- {"version":3,"file":"ach-prenotifications.mjs","sourceRoot":"","sources":["../src/resources/ach-prenotifications.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OACzC,KAAK,sBAAsB,MAAM,yCAAyC;OAC1E,EAAE,IAAI,EAAmB,MAAM,qBAAqB;AAE3D,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;OAEG;IACH,MAAM,CACJ,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,oBAA4B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,GAAG,CAAC,yBAAyB,oBAAoB,EAAE,EAAE,O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I,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,uBAAuB,EAAE,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;CACF;AAED,MAAM,OAAO,uBAAwB,SAAQ,IAAwB;CAAG;AA6fxE,WAAiB,mBAAmB;IAEpB,2CAAuB,GAAG,sBAAsB,CAAC,uBAAuB,CAAC;AAGzF,CAAC,EALgB,mBAAmB,KAAnB,mBAAmB,QAKnC"}
@@ -34,31 +34,31 @@ class ACHTransfers extends resource_1.APIResource {
34
34
  * Create an ACH Transfer
35
35
  */
36
36
  create(body, options) {
37
- return this.post('/ach_transfers', { body, ...options });
37
+ return this._client.post('/ach_transfers', { body, ...options });
38
38
  }
39
39
  /**
40
40
  * Retrieve an ACH Transfer
41
41
  */
42
42
  retrieve(achTransferId, options) {
43
- return this.get(`/ach_transfers/${achTransferId}`, options);
43
+ return this._client.get(`/ach_transfers/${achTransferId}`, options);
44
44
  }
45
45
  list(query = {}, options) {
46
46
  if ((0, core_1.isRequestOptions)(query)) {
47
47
  return this.list({}, query);
48
48
  }
49
- return this.getAPIList('/ach_transfers', ACHTransfersPage, { query, ...options });
49
+ return this._client.getAPIList('/ach_transfers', ACHTransfersPage, { query, ...options });
50
50
  }
51
51
  /**
52
52
  * Approves an ACH Transfer in a pending_approval state.
53
53
  */
54
54
  approve(achTransferId, options) {
55
- return this.post(`/ach_transfers/${achTransferId}/approve`, options);
55
+ return this._client.post(`/ach_transfers/${achTransferId}/approve`, options);
56
56
  }
57
57
  /**
58
58
  * Cancels an ACH Transfer in a pending_approval state.
59
59
  */
60
60
  cancel(achTransferId, options) {
61
- return this.post(`/ach_transfers/${achTransferId}/cancel`, options);
61
+ return this._client.post(`/ach_transfers/${achTransferId}/cancel`, options);
62
62
  }
63
63
  }
64
64
  exports.ACHTransfers = ACHTransfers;
@@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C,CAAC;IAC9E,CAAC;CACF;AA9CD,oCA8CC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAAG;AAA1D,4CAA0D;AA6xB1D,WAAiB,YAAY;IAEb,6BAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAGpE,CAAC,EALgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAK5B"}
@@ -8,31 +8,31 @@ export class ACHTransfers extends APIResource {
8
8
  * Create an ACH Transfer
9
9
  */
10
10
  create(body, options) {
11
- return this.post('/ach_transfers', { body, ...options });
11
+ return this._client.post('/ach_transfers', { body, ...options });
12
12
  }
13
13
  /**
14
14
  * Retrieve an ACH Transfer
15
15
  */
16
16
  retrieve(achTransferId, options) {
17
- return this.get(`/ach_transfers/${achTransferId}`, options);
17
+ return this._client.get(`/ach_transfers/${achTransferId}`, options);
18
18
  }
19
19
  list(query = {}, options) {
20
20
  if (isRequestOptions(query)) {
21
21
  return this.list({}, query);
22
22
  }
23
- return this.getAPIList('/ach_transfers', ACHTransfersPage, { query, ...options });
23
+ return this._client.getAPIList('/ach_transfers', ACHTransfersPage, { query, ...options });
24
24
  }
25
25
  /**
26
26
  * Approves an ACH Transfer in a pending_approval state.
27
27
  */
28
28
  approve(achTransferId, options) {
29
- return this.post(`/ach_transfers/${achTransferId}/approve`, options);
29
+ return this._client.post(`/ach_transfers/${achTransferId}/approve`, options);
30
30
  }
31
31
  /**
32
32
  * Cancels an ACH Transfer in a pending_approval state.
33
33
  */
34
34
  cancel(achTransferId, options) {
35
- return this.post(`/ach_transfers/${achTransferId}/cancel`, options);
35
+ return this._client.post(`/ach_transfers/${achTransferId}/cancel`, options);
36
36
  }
37
37
  }
38
38
  export class ACHTransfersPage extends Page {
@@ -1 +1 @@
1
- {"version":3,"file":"ach-transfers.mjs","sourceRoot":"","sources":["../src/resources/ach-transfers.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBA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A6xB1D,WAAiB,YAAY;IAEb,6BAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAGpE,CAAC,EALgB,YAAY,KAAZ,YAAY,QAK5B"}
@@ -16,11 +16,18 @@ export declare class BookkeepingAccounts extends APIResource {
16
16
  */
17
17
  list(query?: BookkeepingAccountListParams, options?: Core.RequestOptions): Core.PagePromise<BookkeepingAccountsPage, BookkeepingAccount>;
18
18
  list(options?: Core.RequestOptions): Core.PagePromise<BookkeepingAccountsPage, BookkeepingAccount>;
19
+ /**
20
+ * Retrieve a Bookkeeping Account Balance
21
+ */
22
+ balance(bookkeepingAccountId: string, query?: BookkeepingAccountBalanceParams, options?: Core.RequestOptions): Core.APIPromise<BookkeepingBalanceLookup>;
23
+ balance(bookkeepingAccountId: string, options?: Core.RequestOptions): Core.APIPromise<BookkeepingBalanceLookup>;
19
24
  }
20
25
  export declare class BookkeepingAccountsPage extends Page<BookkeepingAccount> {
21
26
  }
22
27
  /**
23
- * Accounts are T-accounts. They can store accounting entries.
28
+ * Accounts are T-accounts. They can store accounting entries. Your compliance
29
+ * setup might require annotating money movements using this API. Learn more in our
30
+ * [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
24
31
  */
25
32
  export interface BookkeepingAccount {
26
33
  /**
@@ -52,6 +59,26 @@ export interface BookkeepingAccount {
52
59
  */
53
60
  type: 'bookkeeping_account';
54
61
  }
62
+ /**
63
+ * Represents a request to lookup the balance of an Bookkeeping Account at a given
64
+ * point in time.
65
+ */
66
+ export interface BookkeepingBalanceLookup {
67
+ /**
68
+ * The Bookkeeping Account's current balance, representing the sum of all
69
+ * Bookkeeping Entries on the Bookkeeping Account.
70
+ */
71
+ balance: number;
72
+ /**
73
+ * The identifier for the account for which the balance was queried.
74
+ */
75
+ bookkeeping_account_id: string;
76
+ /**
77
+ * A constant representing the object's type. For this resource it will always be
78
+ * `bookkeeping_balance_lookup`.
79
+ */
80
+ type: 'bookkeeping_balance_lookup';
81
+ }
55
82
  export interface BookkeepingAccountCreateParams {
56
83
  /**
57
84
  * The name you choose for the account.
@@ -81,11 +108,19 @@ export interface BookkeepingAccountUpdateParams {
81
108
  }
82
109
  export interface BookkeepingAccountListParams extends PageParams {
83
110
  }
111
+ export interface BookkeepingAccountBalanceParams {
112
+ /**
113
+ * The moment to query the balance at. If not set, returns the current balances.
114
+ */
115
+ at_time?: string;
116
+ }
84
117
  export declare namespace BookkeepingAccounts {
85
118
  export import BookkeepingAccount = BookkeepingAccountsAPI.BookkeepingAccount;
119
+ export import BookkeepingBalanceLookup = BookkeepingAccountsAPI.BookkeepingBalanceLookup;
86
120
  export import BookkeepingAccountsPage = BookkeepingAccountsAPI.BookkeepingAccountsPage;
87
121
  export import BookkeepingAccountCreateParams = BookkeepingAccountsAPI.BookkeepingAccountCreateParams;
88
122
  export import BookkeepingAccountUpdateParams = BookkeepingAccountsAPI.BookkeepingAccountUpdateParams;
89
123
  export import BookkeepingAccountListParams = BookkeepingAccountsAPI.BookkeepingAccountListParams;
124
+ export import BookkeepingAccountBalanceParams = BookkeepingAccountsAPI.BookkeepingAccountBalanceParams;
90
125
  }
91
126
  //# sourceMappingURL=bookkeeping-accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bookkeeping-accounts.d.ts","sourceRoot":"","sources":["../src/resources/bookkeeping-accounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,sBAAsB,MAAM,yCAAyC,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAItC;;OA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AE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,4BAA6B,SAAQ,UAAU;CAAG;AAEnE,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,mBAAmB,CAAC;IACnC,MAAM,QAAQ,kBAAkB,GAAG,sBAAsB,CAAC,kBAAkB,CAAC;IAC7E,MAAM,QAAQ,wBAAwB,GAAG,sBAAsB,CAAC,wBAAwB,CAAC;IACzF,MAAM,QAAQ,uBAAuB,GAAG,sBAAsB,CAAC,uBAAuB,CAAC;IACvF,MAAM,QAAQ,8BAA8B,GAAG,sBAAsB,CAAC,8BAA8B,CAAC;IACrG,MAAM,QAAQ,8BAA8B,GAAG,sBAAsB,CAAC,8BAA8B,CAAC;IACrG,MAAM,QAAQ,4BAA4B,GAAG,sBAAsB,CAAC,4BAA4B,CAAC;IACjG,MAAM,QAAQ,+BAA+B,GAAG,sBAAsB,CAAC,+BAA+B,CAAC;CACxG"}
@@ -34,19 +34,25 @@ class BookkeepingAccounts extends resource_1.APIResource {
34
34
  * Create a Bookkeeping Account
35
35
  */
36
36
  create(body, options) {
37
- return this.post('/bookkeeping_accounts', { body, ...options });
37
+ return this._client.post('/bookkeeping_accounts', { body, ...options });
38
38
  }
39
39
  /**
40
40
  * Update a Bookkeeping Account
41
41
  */
42
42
  update(bookkeepingAccountId, body, options) {
43
- return this.patch(`/bookkeeping_accounts/${bookkeepingAccountId}`, { body, ...options });
43
+ return this._client.patch(`/bookkeeping_accounts/${bookkeepingAccountId}`, { body, ...options });
44
44
  }
45
45
  list(query = {}, options) {
46
46
  if ((0, core_1.isRequestOptions)(query)) {
47
47
  return this.list({}, query);
48
48
  }
49
- return this.getAPIList('/bookkeeping_accounts', BookkeepingAccountsPage, { query, ...options });
49
+ return this._client.getAPIList('/bookkeeping_accounts', BookkeepingAccountsPage, { query, ...options });
50
+ }
51
+ balance(bookkeepingAccountId, query = {}, options) {
52
+ if ((0, core_1.isRequestOptions)(query)) {
53
+ return this.balance(bookkeepingAccountId, {}, query);
54
+ }
55
+ return this._client.get(`/bookkeeping_accounts/${bookkeepingAccountId}/balance`, { query, ...options });
50
56
  }
51
57
  }
52
58
  exports.BookkeepingAccounts = BookkeepingAccounts;
@@ -1 +1 @@
1
- {"version":3,"file":"bookkeeping-accounts.js","sourceRoot":"","sources":["../src/resources/bookkeeping-accounts.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,gDAAgD;AAChD,wCAAiD;AACjD,gGAAkF;AAClF,oDAA4D;AAE5D,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;OAEG;IACH,MAAM,CACJ,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,oBAA4B,EAC5B,IAAoC,EACpC,OAA6B;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,yBAAyB,oBAAoB,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAUD,IAAI,CACF,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC,uBAAuB,EAAE,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF;AAvCD,kDAuCC;AAED,MAAa,uBAAwB,SAAQ,iBAAwB;CAAG;AAAxE,0DAAwE;AA2ExE,WAAiB,mBAAmB;IAEpB,2CAAuB,GAAG,sBAAsB,CAAC,uBAAuB,CAAC;AAIzF,CAAC,EANgB,mB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E,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;CACF;AA9DD,kDA8DC;AAED,MAAa,uBAAwB,SAAQ,iBAAwB;CAAG;AAAxE,0DAAwE;AA2GxE,WAAiB,mBAAmB;IAGpB,2CAAuB,GAAG,sBAAsB,CAAC,uBAAuB,CAAC;AAKzF,CAAC,EARgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQnC"}
@@ -8,19 +8,25 @@ export class BookkeepingAccounts extends APIResource {
8
8
  * Create a Bookkeeping Account
9
9
  */
10
10
  create(body, options) {
11
- return this.post('/bookkeeping_accounts', { body, ...options });
11
+ return this._client.post('/bookkeeping_accounts', { body, ...options });
12
12
  }
13
13
  /**
14
14
  * Update a Bookkeeping Account
15
15
  */
16
16
  update(bookkeepingAccountId, body, options) {
17
- return this.patch(`/bookkeeping_accounts/${bookkeepingAccountId}`, { body, ...options });
17
+ return this._client.patch(`/bookkeeping_accounts/${bookkeepingAccountId}`, { body, ...options });
18
18
  }
19
19
  list(query = {}, options) {
20
20
  if (isRequestOptions(query)) {
21
21
  return this.list({}, query);
22
22
  }
23
- return this.getAPIList('/bookkeeping_accounts', BookkeepingAccountsPage, { query, ...options });
23
+ return this._client.getAPIList('/bookkeeping_accounts', BookkeepingAccountsPage, { query, ...options });
24
+ }
25
+ balance(bookkeepingAccountId, query = {}, options) {
26
+ if (isRequestOptions(query)) {
27
+ return this.balance(bookkeepingAccountId, {}, query);
28
+ }
29
+ return this._client.get(`/bookkeeping_accounts/${bookkeepingAccountId}/balance`, { query, ...options });
24
30
  }
25
31
  }
26
32
  export class BookkeepingAccountsPage extends Page {
@@ -1 +1 @@
1
- {"version":3,"file":"bookkeeping-accounts.mjs","sourceRoot":"","sources":["../src/resources/bookkeeping-accounts.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;OACxC,EAAE,gBAAgB,EAAE,MAAM,eAAe;OACzC,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  import * as BookkeepingEntriesAPI from 'increase/resources/bookkeeping-entries';
4
4
  import { Page, type PageParams } from 'increase/pagination';
5
5
  export declare class BookkeepingEntries extends APIResource {
6
+ /**
7
+ * Retrieve a Bookkeeping Entry
8
+ */
9
+ retrieve(bookkeepingEntryId: string, options?: Core.RequestOptions): Core.APIPromise<BookkeepingEntry>;
6
10
  /**
7
11
  * List Bookkeeping Entries
8
12
  */
@@ -12,7 +16,9 @@ export declare class BookkeepingEntries extends APIResource {
12
16
  export declare class BookkeepingEntriesPage extends Page<BookkeepingEntry> {
13
17
  }
14
18
  /**
15
- * Entries are T-account entries recording debits and credits.
19
+ * Entries are T-account entries recording debits and credits. Your compliance
20
+ * setup might require annotating money movements using this API. Learn more in our
21
+ * [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
16
22
  */
17
23
  export interface BookkeepingEntry {
18
24
  /**
@@ -28,6 +34,10 @@ export interface BookkeepingEntry {
28
34
  * this is cents.
29
35
  */
30
36
  amount: number;
37
+ /**
38
+ * When the entry set was created.
39
+ */
40
+ created_at: string;
31
41
  /**
32
42
  * The identifier for the Account the Entry belongs to.
33
43
  */