increase 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (538) hide show
  1. package/.github/workflows/publish-npm.yml +28 -0
  2. package/.github/workflows/release-doctor.yml +20 -0
  3. package/.github/workflows/release.yml +38 -0
  4. package/.prettierignore +1 -0
  5. package/.release-please-manifest.json +3 -0
  6. package/.stats.yml +1 -1
  7. package/CHANGELOG.md +84 -0
  8. package/README.md +16 -1
  9. package/api.md +88 -0
  10. package/bin/check-release-environment +25 -0
  11. package/bin/publish-npm +6 -0
  12. package/check-version.ts +4 -1
  13. package/core.ts +56 -14
  14. package/dist/cjs/check-version.d.ts +1 -0
  15. package/dist/cjs/check-version.d.ts.map +1 -0
  16. package/dist/cjs/check-version.js +3 -1
  17. package/dist/cjs/check-version.js.map +1 -1
  18. package/dist/cjs/core.d.ts +22 -2
  19. package/dist/cjs/core.d.ts.map +1 -0
  20. package/dist/cjs/core.js +58 -16
  21. package/dist/cjs/core.js.map +1 -1
  22. package/dist/cjs/error.d.ts +163 -0
  23. package/dist/cjs/error.d.ts.map +1 -0
  24. package/dist/cjs/error.js +204 -0
  25. package/dist/cjs/error.js.map +1 -0
  26. package/dist/cjs/examples/api-error.d.ts +3 -0
  27. package/dist/cjs/examples/api-error.d.ts.map +1 -0
  28. package/dist/cjs/examples/api-error.js +92 -0
  29. package/dist/cjs/examples/api-error.js.map +1 -0
  30. package/dist/cjs/fetch-polyfill.d.ts +1 -0
  31. package/dist/cjs/fetch-polyfill.d.ts.map +1 -0
  32. package/dist/cjs/fetch-polyfill.js +2 -2
  33. package/dist/cjs/fetch-polyfill.js.map +1 -1
  34. package/dist/cjs/index.d.ts +65 -3
  35. package/dist/cjs/index.d.ts.map +1 -0
  36. package/dist/cjs/index.js +104 -3
  37. package/dist/cjs/index.js.map +1 -1
  38. package/dist/cjs/pagination.d.ts +4 -0
  39. package/dist/cjs/pagination.d.ts.map +1 -0
  40. package/dist/cjs/pagination.js.map +1 -1
  41. package/dist/cjs/resource.d.ts +1 -0
  42. package/dist/cjs/resource.d.ts.map +1 -0
  43. package/dist/cjs/resources/account-numbers.d.ts +45 -0
  44. package/dist/cjs/resources/account-numbers.d.ts.map +1 -0
  45. package/dist/cjs/resources/account-numbers.js.map +1 -1
  46. package/dist/cjs/resources/account-statements.d.ts +21 -1
  47. package/dist/cjs/resources/account-statements.d.ts.map +1 -0
  48. package/dist/cjs/resources/account-statements.js.map +1 -1
  49. package/dist/cjs/resources/account-transfers.d.ts +40 -12
  50. package/dist/cjs/resources/account-transfers.d.ts.map +1 -0
  51. package/dist/cjs/resources/account-transfers.js.map +1 -1
  52. package/dist/cjs/resources/accounts.d.ts +53 -23
  53. package/dist/cjs/resources/accounts.d.ts.map +1 -0
  54. package/dist/cjs/resources/accounts.js.map +1 -1
  55. package/dist/cjs/resources/ach-prenotifications.d.ts +29 -6
  56. package/dist/cjs/resources/ach-prenotifications.d.ts.map +1 -0
  57. package/dist/cjs/resources/ach-prenotifications.js.map +1 -1
  58. package/dist/cjs/resources/ach-transfers.d.ts +70 -23
  59. package/dist/cjs/resources/ach-transfers.d.ts.map +1 -0
  60. package/dist/cjs/resources/ach-transfers.js.map +1 -1
  61. package/dist/cjs/resources/balance-lookups.d.ts +47 -0
  62. package/dist/cjs/resources/balance-lookups.d.ts.map +1 -0
  63. package/dist/cjs/resources/balance-lookups.js +15 -0
  64. package/dist/cjs/resources/balance-lookups.js.map +1 -0
  65. package/dist/cjs/resources/bookkeeping-accounts.d.ts +71 -0
  66. package/dist/cjs/resources/bookkeeping-accounts.d.ts.map +1 -0
  67. package/dist/cjs/resources/bookkeeping-accounts.js +29 -0
  68. package/dist/cjs/resources/bookkeeping-accounts.js.map +1 -0
  69. package/dist/cjs/resources/bookkeeping-entries.d.ts +43 -0
  70. package/dist/cjs/resources/bookkeeping-entries.d.ts.map +1 -0
  71. package/dist/cjs/resources/bookkeeping-entries.js +19 -0
  72. package/dist/cjs/resources/bookkeeping-entries.js.map +1 -0
  73. package/dist/cjs/resources/bookkeeping-entry-sets.d.ts +95 -0
  74. package/dist/cjs/resources/bookkeeping-entry-sets.d.ts.map +1 -0
  75. package/dist/cjs/resources/bookkeeping-entry-sets.js +15 -0
  76. package/dist/cjs/resources/bookkeeping-entry-sets.js.map +1 -0
  77. package/dist/cjs/resources/card-disputes.d.ts +39 -5
  78. package/dist/cjs/resources/card-disputes.d.ts.map +1 -0
  79. package/dist/cjs/resources/card-disputes.js.map +1 -1
  80. package/dist/cjs/resources/card-profiles.d.ts +81 -3
  81. package/dist/cjs/resources/card-profiles.d.ts.map +1 -0
  82. package/dist/cjs/resources/card-profiles.js.map +1 -1
  83. package/dist/cjs/resources/cards.d.ts +147 -3
  84. package/dist/cjs/resources/cards.d.ts.map +1 -0
  85. package/dist/cjs/resources/cards.js.map +1 -1
  86. package/dist/cjs/resources/check-deposits.d.ts +34 -1
  87. package/dist/cjs/resources/check-deposits.d.ts.map +1 -0
  88. package/dist/cjs/resources/check-deposits.js.map +1 -1
  89. package/dist/cjs/resources/check-transfers.d.ts +161 -14
  90. package/dist/cjs/resources/check-transfers.d.ts.map +1 -0
  91. package/dist/cjs/resources/check-transfers.js.map +1 -1
  92. package/dist/cjs/resources/declined-transactions.d.ts +116 -8
  93. package/dist/cjs/resources/declined-transactions.d.ts.map +1 -0
  94. package/dist/cjs/resources/declined-transactions.js.map +1 -1
  95. package/dist/cjs/resources/digital-wallet-tokens.d.ts +21 -1
  96. package/dist/cjs/resources/digital-wallet-tokens.d.ts.map +1 -0
  97. package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -1
  98. package/dist/cjs/resources/documents.d.ts +181 -6
  99. package/dist/cjs/resources/documents.d.ts.map +1 -0
  100. package/dist/cjs/resources/documents.js.map +1 -1
  101. package/dist/cjs/resources/entities/entities.d.ts +1177 -10
  102. package/dist/cjs/resources/entities/entities.d.ts.map +1 -0
  103. package/dist/cjs/resources/entities/entities.js +1 -1
  104. package/dist/cjs/resources/entities/entities.js.map +1 -1
  105. package/dist/cjs/resources/entities/index.d.ts +1 -0
  106. package/dist/cjs/resources/entities/index.d.ts.map +1 -0
  107. package/dist/cjs/resources/entities/supplemental-documents.d.ts +1 -0
  108. package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +1 -0
  109. package/dist/cjs/resources/event-subscriptions.d.ts +9 -4
  110. package/dist/cjs/resources/event-subscriptions.d.ts.map +1 -0
  111. package/dist/cjs/resources/event-subscriptions.js.map +1 -1
  112. package/dist/cjs/resources/events.d.ts +85 -4
  113. package/dist/cjs/resources/events.d.ts.map +1 -0
  114. package/dist/cjs/resources/events.js.map +1 -1
  115. package/dist/cjs/resources/exports.d.ts +244 -0
  116. package/dist/cjs/resources/exports.d.ts.map +1 -0
  117. package/dist/cjs/resources/exports.js +31 -0
  118. package/dist/cjs/resources/exports.js.map +1 -0
  119. package/dist/cjs/resources/external-accounts.d.ts +14 -7
  120. package/dist/cjs/resources/external-accounts.d.ts.map +1 -0
  121. package/dist/cjs/resources/external-accounts.js.map +1 -1
  122. package/dist/cjs/resources/files.d.ts +53 -10
  123. package/dist/cjs/resources/files.d.ts.map +1 -0
  124. package/dist/cjs/resources/files.js.map +1 -1
  125. package/dist/cjs/resources/groups.d.ts +1 -0
  126. package/dist/cjs/resources/groups.d.ts.map +1 -0
  127. package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +4 -0
  128. package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts.map +1 -0
  129. package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -1
  130. package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +1 -0
  131. package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts.map +1 -0
  132. package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -1
  133. package/dist/cjs/resources/index.d.ts +29 -0
  134. package/dist/cjs/resources/index.d.ts.map +1 -0
  135. package/dist/cjs/resources/index.js +100 -9
  136. package/dist/cjs/resources/index.js.map +1 -1
  137. package/dist/cjs/resources/limits.d.ts +5 -4
  138. package/dist/cjs/resources/limits.d.ts.map +1 -0
  139. package/dist/cjs/resources/limits.js.map +1 -1
  140. package/dist/cjs/resources/oauth-connections.d.ts +1 -0
  141. package/dist/cjs/resources/oauth-connections.d.ts.map +1 -0
  142. package/dist/cjs/resources/oauth-connections.js.map +1 -1
  143. package/dist/cjs/resources/pending-transactions.d.ts +160 -6
  144. package/dist/cjs/resources/pending-transactions.d.ts.map +1 -0
  145. package/dist/cjs/resources/pending-transactions.js.map +1 -1
  146. package/dist/cjs/resources/programs.d.ts +48 -0
  147. package/dist/cjs/resources/programs.d.ts.map +1 -0
  148. package/dist/cjs/resources/programs.js +25 -0
  149. package/dist/cjs/resources/programs.js.map +1 -0
  150. package/dist/cjs/resources/real-time-decisions.d.ts +106 -1
  151. package/dist/cjs/resources/real-time-decisions.d.ts.map +1 -0
  152. package/dist/cjs/resources/real-time-payments-transfers.d.ts +306 -0
  153. package/dist/cjs/resources/real-time-payments-transfers.d.ts.map +1 -0
  154. package/dist/cjs/resources/real-time-payments-transfers.js +35 -0
  155. package/dist/cjs/resources/real-time-payments-transfers.js.map +1 -0
  156. package/dist/cjs/resources/routing-numbers.d.ts +1 -0
  157. package/dist/cjs/resources/routing-numbers.d.ts.map +1 -0
  158. package/dist/cjs/resources/shared.d.ts +1 -0
  159. package/dist/cjs/resources/shared.d.ts.map +1 -0
  160. package/dist/cjs/resources/simulations/account-statements.d.ts +1 -0
  161. package/dist/cjs/resources/simulations/account-statements.d.ts.map +1 -0
  162. package/dist/cjs/resources/simulations/account-transfers.d.ts +1 -0
  163. package/dist/cjs/resources/simulations/account-transfers.d.ts.map +1 -0
  164. package/dist/cjs/resources/simulations/ach-transfers.d.ts +431 -12
  165. package/dist/cjs/resources/simulations/ach-transfers.d.ts.map +1 -0
  166. package/dist/cjs/resources/simulations/card-disputes.d.ts +5 -4
  167. package/dist/cjs/resources/simulations/card-disputes.d.ts.map +1 -0
  168. package/dist/cjs/resources/simulations/card-refunds.d.ts +1 -0
  169. package/dist/cjs/resources/simulations/card-refunds.d.ts.map +1 -0
  170. package/dist/cjs/resources/simulations/cards.d.ts +222 -13
  171. package/dist/cjs/resources/simulations/cards.d.ts.map +1 -0
  172. package/dist/cjs/resources/simulations/check-deposits.d.ts +1 -0
  173. package/dist/cjs/resources/simulations/check-deposits.d.ts.map +1 -0
  174. package/dist/cjs/resources/simulations/check-transfers.d.ts +16 -0
  175. package/dist/cjs/resources/simulations/check-transfers.d.ts.map +1 -0
  176. package/dist/cjs/resources/simulations/check-transfers.js +10 -0
  177. package/dist/cjs/resources/simulations/check-transfers.js.map +1 -1
  178. package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +1 -0
  179. package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -0
  180. package/dist/cjs/resources/simulations/documents.d.ts +1 -0
  181. package/dist/cjs/resources/simulations/documents.d.ts.map +1 -0
  182. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +26 -25
  183. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -0
  184. package/dist/cjs/resources/simulations/index.d.ts +4 -0
  185. package/dist/cjs/resources/simulations/index.d.ts.map +1 -0
  186. package/dist/cjs/resources/simulations/interest-payments.d.ts +1364 -0
  187. package/dist/cjs/resources/simulations/interest-payments.d.ts.map +1 -0
  188. package/dist/cjs/resources/simulations/interest-payments.js +16 -0
  189. package/dist/cjs/resources/simulations/interest-payments.js.map +1 -0
  190. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +511 -12
  191. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts.map +1 -0
  192. package/dist/cjs/resources/simulations/real-time-payments-transfers.js +11 -0
  193. package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -1
  194. package/dist/cjs/resources/simulations/simulations.d.ts +3 -0
  195. package/dist/cjs/resources/simulations/simulations.d.ts.map +1 -0
  196. package/dist/cjs/resources/simulations/simulations.js +2 -0
  197. package/dist/cjs/resources/simulations/simulations.js.map +1 -1
  198. package/dist/cjs/resources/simulations/wire-transfers.d.ts +332 -6
  199. package/dist/cjs/resources/simulations/wire-transfers.d.ts.map +1 -0
  200. package/dist/cjs/resources/transactions.d.ts +397 -9
  201. package/dist/cjs/resources/transactions.d.ts.map +1 -0
  202. package/dist/cjs/resources/transactions.js.map +1 -1
  203. package/dist/cjs/resources/wire-drawdown-requests.d.ts +13 -8
  204. package/dist/cjs/resources/wire-drawdown-requests.d.ts.map +1 -0
  205. package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -1
  206. package/dist/cjs/resources/wire-transfers.d.ts +71 -17
  207. package/dist/cjs/resources/wire-transfers.d.ts.map +1 -0
  208. package/dist/cjs/resources/wire-transfers.js.map +1 -1
  209. package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
  210. package/dist/cjs/tests/api-resources/account-numbers.test.d.ts.map +1 -0
  211. package/dist/cjs/tests/api-resources/account-numbers.test.js +24 -26
  212. package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -1
  213. package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
  214. package/dist/cjs/tests/api-resources/account-statements.test.d.ts.map +1 -0
  215. package/dist/cjs/tests/api-resources/account-statements.test.js +11 -26
  216. package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -1
  217. package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
  218. package/dist/cjs/tests/api-resources/account-transfers.test.d.ts.map +1 -0
  219. package/dist/cjs/tests/api-resources/account-transfers.test.js +20 -34
  220. package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -1
  221. package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
  222. package/dist/cjs/tests/api-resources/accounts.test.d.ts.map +1 -0
  223. package/dist/cjs/tests/api-resources/accounts.test.js +25 -24
  224. package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -1
  225. package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
  226. package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts.map +1 -0
  227. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +24 -28
  228. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -1
  229. package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
  230. package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts.map +1 -0
  231. package/dist/cjs/tests/api-resources/ach-transfers.test.js +34 -36
  232. package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -1
  233. package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts +2 -0
  234. package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts.map +1 -0
  235. package/dist/cjs/tests/api-resources/balance-lookups.test.js +58 -0
  236. package/dist/cjs/tests/api-resources/balance-lookups.test.js.map +1 -0
  237. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts +2 -0
  238. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts.map +1 -0
  239. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js +83 -0
  240. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js.map +1 -0
  241. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts +2 -0
  242. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts.map +1 -0
  243. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js +65 -0
  244. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js.map +1 -0
  245. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts +2 -0
  246. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts.map +1 -0
  247. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js +68 -0
  248. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js.map +1 -0
  249. package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +1 -0
  250. package/dist/cjs/tests/api-resources/card-disputes.test.d.ts.map +1 -0
  251. package/dist/cjs/tests/api-resources/card-disputes.test.js +21 -29
  252. package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -1
  253. package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
  254. package/dist/cjs/tests/api-resources/card-profiles.test.d.ts.map +1 -0
  255. package/dist/cjs/tests/api-resources/card-profiles.test.js +29 -20
  256. package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -1
  257. package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
  258. package/dist/cjs/tests/api-resources/cards.test.d.ts.map +1 -0
  259. package/dist/cjs/tests/api-resources/cards.test.js +24 -38
  260. package/dist/cjs/tests/api-resources/cards.test.js.map +1 -1
  261. package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
  262. package/dist/cjs/tests/api-resources/check-deposits.test.d.ts.map +1 -0
  263. package/dist/cjs/tests/api-resources/check-deposits.test.js +27 -32
  264. package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -1
  265. package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
  266. package/dist/cjs/tests/api-resources/check-transfers.test.d.ts.map +1 -0
  267. package/dist/cjs/tests/api-resources/check-transfers.test.js +34 -45
  268. package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -1
  269. package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
  270. package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts.map +1 -0
  271. package/dist/cjs/tests/api-resources/declined-transactions.test.js +11 -27
  272. package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -1
  273. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
  274. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts.map +1 -0
  275. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +11 -26
  276. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -1
  277. package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
  278. package/dist/cjs/tests/api-resources/documents.test.d.ts.map +1 -0
  279. package/dist/cjs/tests/api-resources/documents.test.js +15 -27
  280. package/dist/cjs/tests/api-resources/documents.test.js.map +1 -1
  281. package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
  282. package/dist/cjs/tests/api-resources/entities/entities.test.d.ts.map +1 -0
  283. package/dist/cjs/tests/api-resources/entities/entities.test.js +109 -32
  284. package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -1
  285. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
  286. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts.map +1 -0
  287. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +13 -6
  288. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -1
  289. package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
  290. package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts.map +1 -0
  291. package/dist/cjs/tests/api-resources/event-subscriptions.test.js +14 -20
  292. package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -1
  293. package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
  294. package/dist/cjs/tests/api-resources/events.test.d.ts.map +1 -0
  295. package/dist/cjs/tests/api-resources/events.test.js +11 -27
  296. package/dist/cjs/tests/api-resources/events.test.js.map +1 -1
  297. package/dist/cjs/tests/api-resources/exports.test.d.ts +2 -0
  298. package/dist/cjs/tests/api-resources/exports.test.d.ts.map +1 -0
  299. package/dist/cjs/tests/api-resources/exports.test.js +105 -0
  300. package/dist/cjs/tests/api-resources/exports.test.js.map +1 -0
  301. package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
  302. package/dist/cjs/tests/api-resources/external-accounts.test.d.ts.map +1 -0
  303. package/dist/cjs/tests/api-resources/external-accounts.test.js +16 -26
  304. package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -1
  305. package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
  306. package/dist/cjs/tests/api-resources/files.test.d.ts.map +1 -0
  307. package/dist/cjs/tests/api-resources/files.test.js +12 -26
  308. package/dist/cjs/tests/api-resources/files.test.js.map +1 -1
  309. package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
  310. package/dist/cjs/tests/api-resources/groups.test.d.ts.map +1 -0
  311. package/dist/cjs/tests/api-resources/groups.test.js +6 -5
  312. package/dist/cjs/tests/api-resources/groups.test.js.map +1 -1
  313. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +1 -0
  314. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts.map +1 -0
  315. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +16 -12
  316. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -1
  317. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +1 -0
  318. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts.map +1 -0
  319. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +6 -9
  320. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -1
  321. package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
  322. package/dist/cjs/tests/api-resources/limits.test.d.ts.map +1 -0
  323. package/dist/cjs/tests/api-resources/limits.test.js +17 -15
  324. package/dist/cjs/tests/api-resources/limits.test.js.map +1 -1
  325. package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
  326. package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts.map +1 -0
  327. package/dist/cjs/tests/api-resources/oauth-connections.test.js +6 -9
  328. package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -1
  329. package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
  330. package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts.map +1 -0
  331. package/dist/cjs/tests/api-resources/pending-transactions.test.js +12 -18
  332. package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -1
  333. package/dist/cjs/tests/api-resources/programs.test.d.ts +2 -0
  334. package/dist/cjs/tests/api-resources/programs.test.d.ts.map +1 -0
  335. package/dist/cjs/tests/api-resources/programs.test.js +73 -0
  336. package/dist/cjs/tests/api-resources/programs.test.js.map +1 -0
  337. package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +1 -0
  338. package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts.map +1 -0
  339. package/dist/cjs/tests/api-resources/real-time-decisions.test.js +7 -13
  340. package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -1
  341. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts +2 -0
  342. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts.map +1 -0
  343. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js +115 -0
  344. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js.map +1 -0
  345. package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +1 -0
  346. package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts.map +1 -0
  347. package/dist/cjs/tests/api-resources/routing-numbers.test.js +10 -5
  348. package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -1
  349. package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
  350. package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts.map +1 -0
  351. package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +11 -8
  352. package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -1
  353. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
  354. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts.map +1 -0
  355. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +5 -4
  356. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -1
  357. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
  358. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts.map +1 -0
  359. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +18 -20
  360. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -1
  361. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
  362. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts.map +1 -0
  363. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +9 -7
  364. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -1
  365. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
  366. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts.map +1 -0
  367. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +11 -8
  368. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -1
  369. package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
  370. package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts.map +1 -0
  371. package/dist/cjs/tests/api-resources/simulations/cards.test.js +18 -10
  372. package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -1
  373. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
  374. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts.map +1 -0
  375. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +5 -4
  376. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -1
  377. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
  378. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts.map +1 -0
  379. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +23 -4
  380. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -1
  381. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +1 -0
  382. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts.map +1 -0
  383. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +11 -8
  384. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -1
  385. package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
  386. package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts.map +1 -0
  387. package/dist/cjs/tests/api-resources/simulations/documents.test.js +10 -7
  388. package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -1
  389. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +1 -0
  390. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts.map +1 -0
  391. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +41 -28
  392. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -1
  393. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts +2 -0
  394. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts.map +1 -0
  395. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js +58 -0
  396. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js.map +1 -0
  397. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +1 -0
  398. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts.map +1 -0
  399. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +25 -12
  400. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -1
  401. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
  402. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts.map +1 -0
  403. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +24 -10
  404. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -1
  405. package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
  406. package/dist/cjs/tests/api-resources/transactions.test.d.ts.map +1 -0
  407. package/dist/cjs/tests/api-resources/transactions.test.js +15 -32
  408. package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -1
  409. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
  410. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts.map +1 -0
  411. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +23 -23
  412. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -1
  413. package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
  414. package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts.map +1 -0
  415. package/dist/cjs/tests/api-resources/wire-transfers.test.js +32 -41
  416. package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -1
  417. package/dist/cjs/tests/form.test.d.ts +1 -0
  418. package/dist/cjs/tests/form.test.d.ts.map +1 -0
  419. package/dist/cjs/tests/form.test.js +4 -3
  420. package/dist/cjs/tests/index.test.d.ts +1 -0
  421. package/dist/cjs/tests/index.test.d.ts.map +1 -0
  422. package/dist/cjs/tests/index.test.js +31 -4
  423. package/dist/cjs/tests/index.test.js.map +1 -1
  424. package/dist/cjs/tests/responses.test.d.ts +1 -0
  425. package/dist/cjs/tests/responses.test.d.ts.map +1 -0
  426. package/dist/cjs/tests/responses.test.js +4 -3
  427. package/dist/cjs/version.d.ts +2 -1
  428. package/dist/cjs/version.d.ts.map +1 -0
  429. package/dist/cjs/version.js +1 -1
  430. package/dist/cjs/version.js.map +1 -1
  431. package/error.ts +337 -0
  432. package/examples/api-error.ts +21 -0
  433. package/fetch-polyfill.ts +2 -2
  434. package/index.ts +140 -2
  435. package/package.json +2 -2
  436. package/pagination.ts +3 -0
  437. package/release-please-config.json +64 -0
  438. package/resources/account-numbers.ts +52 -1
  439. package/resources/account-statements.ts +23 -2
  440. package/resources/account-transfers.ts +44 -14
  441. package/resources/accounts.ts +62 -28
  442. package/resources/ach-prenotifications.ts +32 -8
  443. package/resources/ach-transfers.ts +77 -27
  444. package/resources/balance-lookups.ts +57 -0
  445. package/resources/bookkeeping-accounts.ts +98 -0
  446. package/resources/bookkeeping-entries.ts +62 -0
  447. package/resources/bookkeeping-entry-sets.ts +114 -0
  448. package/resources/card-disputes.ts +41 -6
  449. package/resources/card-profiles.ts +91 -4
  450. package/resources/cards.ts +165 -4
  451. package/resources/check-deposits.ts +36 -2
  452. package/resources/check-transfers.ts +184 -17
  453. package/resources/declined-transactions.ts +136 -9
  454. package/resources/digital-wallet-tokens.ts +23 -2
  455. package/resources/documents.ts +183 -7
  456. package/resources/entities/entities.ts +1343 -14
  457. package/resources/event-subscriptions.ts +9 -6
  458. package/resources/events.ts +87 -5
  459. package/resources/exports.ts +298 -0
  460. package/resources/external-accounts.ts +14 -9
  461. package/resources/files.ts +55 -11
  462. package/resources/inbound-ach-transfer-returns.ts +3 -1
  463. package/resources/inbound-wire-drawdown-requests.ts +0 -1
  464. package/resources/index.ts +28 -0
  465. package/resources/limits.ts +5 -6
  466. package/resources/oauth-connections.ts +0 -1
  467. package/resources/pending-transactions.ts +177 -7
  468. package/resources/programs.ts +70 -0
  469. package/resources/real-time-decisions.ts +113 -1
  470. package/resources/real-time-payments-transfers.ts +373 -0
  471. package/resources/simulations/ach-transfers.ts +479 -13
  472. package/resources/simulations/card-disputes.ts +4 -4
  473. package/resources/simulations/cards.ts +251 -14
  474. package/resources/simulations/check-transfers.ts +19 -0
  475. package/resources/simulations/inbound-wire-drawdown-requests.ts +28 -28
  476. package/resources/simulations/index.ts +3 -0
  477. package/resources/simulations/interest-payments.ts +1667 -0
  478. package/resources/simulations/real-time-payments-transfers.ts +568 -13
  479. package/resources/simulations/simulations.ts +2 -0
  480. package/resources/simulations/wire-transfers.ts +362 -7
  481. package/resources/transactions.ts +430 -11
  482. package/resources/wire-drawdown-requests.ts +14 -11
  483. package/resources/wire-transfers.ts +80 -21
  484. package/tests/api-resources/account-numbers.test.ts +21 -23
  485. package/tests/api-resources/account-statements.test.ts +8 -23
  486. package/tests/api-resources/account-transfers.test.ts +17 -31
  487. package/tests/api-resources/accounts.test.ts +22 -21
  488. package/tests/api-resources/ach-prenotifications.test.ts +21 -25
  489. package/tests/api-resources/ach-transfers.test.ts +31 -33
  490. package/tests/api-resources/balance-lookups.test.ts +21 -0
  491. package/tests/api-resources/bookkeeping-accounts.test.ts +43 -0
  492. package/tests/api-resources/bookkeeping-entries.test.ts +25 -0
  493. package/tests/api-resources/bookkeeping-entry-sets.test.ts +31 -0
  494. package/tests/api-resources/card-disputes.test.ts +18 -26
  495. package/tests/api-resources/card-profiles.test.ts +26 -17
  496. package/tests/api-resources/cards.test.ts +21 -35
  497. package/tests/api-resources/check-deposits.test.ts +24 -29
  498. package/tests/api-resources/check-transfers.test.ts +31 -42
  499. package/tests/api-resources/declined-transactions.test.ts +8 -24
  500. package/tests/api-resources/digital-wallet-tokens.test.ts +8 -23
  501. package/tests/api-resources/documents.test.ts +12 -24
  502. package/tests/api-resources/entities/entities.test.ts +106 -29
  503. package/tests/api-resources/entities/supplemental-documents.test.ts +10 -3
  504. package/tests/api-resources/event-subscriptions.test.ts +11 -17
  505. package/tests/api-resources/events.test.ts +8 -24
  506. package/tests/api-resources/exports.test.ts +68 -0
  507. package/tests/api-resources/external-accounts.test.ts +13 -23
  508. package/tests/api-resources/files.test.ts +9 -24
  509. package/tests/api-resources/groups.test.ts +3 -2
  510. package/tests/api-resources/inbound-ach-transfer-returns.test.ts +13 -9
  511. package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +3 -6
  512. package/tests/api-resources/limits.test.ts +14 -12
  513. package/tests/api-resources/oauth-connections.test.ts +3 -6
  514. package/tests/api-resources/pending-transactions.test.ts +9 -15
  515. package/tests/api-resources/programs.test.ts +36 -0
  516. package/tests/api-resources/real-time-decisions.test.ts +4 -10
  517. package/tests/api-resources/real-time-payments-transfers.test.ts +78 -0
  518. package/tests/api-resources/routing-numbers.test.ts +7 -2
  519. package/tests/api-resources/simulations/account-statements.test.ts +8 -5
  520. package/tests/api-resources/simulations/account-transfers.test.ts +2 -1
  521. package/tests/api-resources/simulations/ach-transfers.test.ts +15 -14
  522. package/tests/api-resources/simulations/card-disputes.test.ts +6 -4
  523. package/tests/api-resources/simulations/card-refunds.test.ts +8 -5
  524. package/tests/api-resources/simulations/cards.test.ts +15 -7
  525. package/tests/api-resources/simulations/check-deposits.test.ts +2 -1
  526. package/tests/api-resources/simulations/check-transfers.test.ts +14 -1
  527. package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +8 -5
  528. package/tests/api-resources/simulations/documents.test.ts +7 -4
  529. package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +38 -25
  530. package/tests/api-resources/simulations/interest-payments.test.ts +15 -0
  531. package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +22 -9
  532. package/tests/api-resources/simulations/wire-transfers.test.ts +21 -7
  533. package/tests/api-resources/transactions.test.ts +12 -29
  534. package/tests/api-resources/wire-drawdown-requests.test.ts +20 -20
  535. package/tests/api-resources/wire-transfers.test.ts +29 -38
  536. package/tests/index.test.ts +25 -1
  537. package/tsconfig.json +2 -0
  538. package/version.ts +1 -1
@@ -0,0 +1,1364 @@
1
+ import * as Core from '../../core';
2
+ import { APIResource } from '../../resource';
3
+ export declare class InterestPayments extends APIResource {
4
+ /**
5
+ * Simulates an interest payment to your account. In production, this happens
6
+ * automatically on the first of each month.
7
+ */
8
+ create(
9
+ body: InterestPaymentCreateParams,
10
+ options?: Core.RequestOptions,
11
+ ): Promise<Core.APIResponse<InterestPaymentSimulationResult>>;
12
+ }
13
+ /**
14
+ * The results of an Interest Payment simulation.
15
+ */
16
+ export interface InterestPaymentSimulationResult {
17
+ /**
18
+ * This will contain the resulting [Transaction](#transactions) object. The
19
+ * Transaction's `source` will be of `category: interest_payment`.
20
+ */
21
+ transaction: InterestPaymentSimulationResult.Transaction;
22
+ /**
23
+ * A constant representing the object's type. For this resource it will always be
24
+ * `interest_payment_simulation_result`.
25
+ */
26
+ type: 'interest_payment_simulation_result';
27
+ }
28
+ export declare namespace InterestPaymentSimulationResult {
29
+ /**
30
+ * This will contain the resulting [Transaction](#transactions) object. The
31
+ * Transaction's `source` will be of `category: interest_payment`.
32
+ */
33
+ interface Transaction {
34
+ /**
35
+ * The identifier for the Account the Transaction belongs to.
36
+ */
37
+ account_id: string;
38
+ /**
39
+ * The Transaction amount in the minor unit of its currency. For dollars, for
40
+ * example, this is cents.
41
+ */
42
+ amount: number;
43
+ /**
44
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
45
+ * Transaction occured.
46
+ */
47
+ created_at: string;
48
+ /**
49
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
50
+ * Transaction's currency. This will match the currency on the Transcation's
51
+ * Account.
52
+ */
53
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
54
+ /**
55
+ * For a Transaction related to a transfer, this is the description you provide.
56
+ * For a Transaction related to a payment, this is the description the vendor
57
+ * provides.
58
+ */
59
+ description: string;
60
+ /**
61
+ * The Transaction identifier.
62
+ */
63
+ id: string;
64
+ /**
65
+ * The identifier for the route this Transaction came through. Routes are things
66
+ * like cards and ACH details.
67
+ */
68
+ route_id: string | null;
69
+ /**
70
+ * The type of the route this Transaction came through.
71
+ */
72
+ route_type: 'account_number' | 'card' | null;
73
+ /**
74
+ * This is an object giving more details on the network-level event that caused the
75
+ * Transaction. Note that for backwards compatibility reasons, additional
76
+ * undocumented keys may appear in this object. These should be treated as
77
+ * deprecated and will be removed in the future.
78
+ */
79
+ source: Transaction.Source;
80
+ /**
81
+ * A constant representing the object's type. For this resource it will always be
82
+ * `transaction`.
83
+ */
84
+ type: 'transaction';
85
+ }
86
+ namespace Transaction {
87
+ /**
88
+ * This is an object giving more details on the network-level event that caused the
89
+ * Transaction. Note that for backwards compatibility reasons, additional
90
+ * undocumented keys may appear in this object. These should be treated as
91
+ * deprecated and will be removed in the future.
92
+ */
93
+ interface Source {
94
+ /**
95
+ * A Account Transfer Intention object. This field will be present in the JSON
96
+ * response if and only if `category` is equal to `account_transfer_intention`.
97
+ */
98
+ account_transfer_intention: Source.AccountTransferIntention | null;
99
+ /**
100
+ * A ACH Check Conversion object. This field will be present in the JSON response
101
+ * if and only if `category` is equal to `ach_check_conversion`.
102
+ */
103
+ ach_check_conversion: Source.ACHCheckConversion | null;
104
+ /**
105
+ * A ACH Check Conversion Return object. This field will be present in the JSON
106
+ * response if and only if `category` is equal to `ach_check_conversion_return`.
107
+ */
108
+ ach_check_conversion_return: Source.ACHCheckConversionReturn | null;
109
+ /**
110
+ * A ACH Transfer Intention object. This field will be present in the JSON response
111
+ * if and only if `category` is equal to `ach_transfer_intention`.
112
+ */
113
+ ach_transfer_intention: Source.ACHTransferIntention | null;
114
+ /**
115
+ * A ACH Transfer Rejection object. This field will be present in the JSON response
116
+ * if and only if `category` is equal to `ach_transfer_rejection`.
117
+ */
118
+ ach_transfer_rejection: Source.ACHTransferRejection | null;
119
+ /**
120
+ * A ACH Transfer Return object. This field will be present in the JSON response if
121
+ * and only if `category` is equal to `ach_transfer_return`.
122
+ */
123
+ ach_transfer_return: Source.ACHTransferReturn | null;
124
+ /**
125
+ * A Card Dispute Acceptance object. This field will be present in the JSON
126
+ * response if and only if `category` is equal to `card_dispute_acceptance`.
127
+ */
128
+ card_dispute_acceptance: Source.CardDisputeAcceptance | null;
129
+ /**
130
+ * A Card Refund object. This field will be present in the JSON response if and
131
+ * only if `category` is equal to `card_refund`.
132
+ */
133
+ card_refund: Source.CardRefund | null;
134
+ /**
135
+ * A Card Revenue Payment object. This field will be present in the JSON response
136
+ * if and only if `category` is equal to `card_revenue_payment`.
137
+ */
138
+ card_revenue_payment: Source.CardRevenuePayment | null;
139
+ /**
140
+ * A Deprecated Card Refund object. This field will be present in the JSON response
141
+ * if and only if `category` is equal to `card_route_refund`.
142
+ */
143
+ card_route_refund: Source.CardRouteRefund | null;
144
+ /**
145
+ * A Deprecated Card Settlement object. This field will be present in the JSON
146
+ * response if and only if `category` is equal to `card_route_settlement`.
147
+ */
148
+ card_route_settlement: Source.CardRouteSettlement | null;
149
+ /**
150
+ * A Card Settlement object. This field will be present in the JSON response if and
151
+ * only if `category` is equal to `card_settlement`.
152
+ */
153
+ card_settlement: Source.CardSettlement | null;
154
+ /**
155
+ * The type of transaction that took place. We may add additional possible values
156
+ * for this enum over time; your application should be able to handle such
157
+ * additions gracefully.
158
+ */
159
+ category:
160
+ | 'account_transfer_intention'
161
+ | 'ach_check_conversion_return'
162
+ | 'ach_check_conversion'
163
+ | 'ach_transfer_intention'
164
+ | 'ach_transfer_rejection'
165
+ | 'ach_transfer_return'
166
+ | 'card_dispute_acceptance'
167
+ | 'card_refund'
168
+ | 'card_settlement'
169
+ | 'card_revenue_payment'
170
+ | 'check_deposit_acceptance'
171
+ | 'check_deposit_return'
172
+ | 'check_transfer_intention'
173
+ | 'check_transfer_return'
174
+ | 'check_transfer_rejection'
175
+ | 'check_transfer_stop_payment_request'
176
+ | 'dispute_resolution'
177
+ | 'empyreal_cash_deposit'
178
+ | 'fee_payment'
179
+ | 'inbound_ach_transfer'
180
+ | 'inbound_ach_transfer_return_intention'
181
+ | 'inbound_check'
182
+ | 'inbound_international_ach_transfer'
183
+ | 'inbound_real_time_payments_transfer_confirmation'
184
+ | 'inbound_wire_drawdown_payment_reversal'
185
+ | 'inbound_wire_drawdown_payment'
186
+ | 'inbound_wire_reversal'
187
+ | 'inbound_wire_transfer'
188
+ | 'interest_payment'
189
+ | 'internal_general_ledger_transaction'
190
+ | 'internal_source'
191
+ | 'card_route_refund'
192
+ | 'card_route_settlement'
193
+ | 'real_time_payments_transfer_acknowledgement'
194
+ | 'sample_funds'
195
+ | 'wire_drawdown_payment_intention'
196
+ | 'wire_drawdown_payment_rejection'
197
+ | 'wire_transfer_intention'
198
+ | 'wire_transfer_rejection'
199
+ | 'other';
200
+ /**
201
+ * A Check Deposit Acceptance object. This field will be present in the JSON
202
+ * response if and only if `category` is equal to `check_deposit_acceptance`.
203
+ */
204
+ check_deposit_acceptance: Source.CheckDepositAcceptance | null;
205
+ /**
206
+ * A Check Deposit Return object. This field will be present in the JSON response
207
+ * if and only if `category` is equal to `check_deposit_return`.
208
+ */
209
+ check_deposit_return: Source.CheckDepositReturn | null;
210
+ /**
211
+ * A Check Transfer Intention object. This field will be present in the JSON
212
+ * response if and only if `category` is equal to `check_transfer_intention`.
213
+ */
214
+ check_transfer_intention: Source.CheckTransferIntention | null;
215
+ /**
216
+ * A Check Transfer Rejection object. This field will be present in the JSON
217
+ * response if and only if `category` is equal to `check_transfer_rejection`.
218
+ */
219
+ check_transfer_rejection: Source.CheckTransferRejection | null;
220
+ /**
221
+ * A Check Transfer Return object. This field will be present in the JSON response
222
+ * if and only if `category` is equal to `check_transfer_return`.
223
+ */
224
+ check_transfer_return: Source.CheckTransferReturn | null;
225
+ /**
226
+ * A Check Transfer Stop Payment Request object. This field will be present in the
227
+ * JSON response if and only if `category` is equal to
228
+ * `check_transfer_stop_payment_request`.
229
+ */
230
+ check_transfer_stop_payment_request: Source.CheckTransferStopPaymentRequest | null;
231
+ /**
232
+ * A Dispute Resolution object. This field will be present in the JSON response if
233
+ * and only if `category` is equal to `dispute_resolution`.
234
+ */
235
+ dispute_resolution: Source.DisputeResolution | null;
236
+ /**
237
+ * A Empyreal Cash Deposit object. This field will be present in the JSON response
238
+ * if and only if `category` is equal to `empyreal_cash_deposit`.
239
+ */
240
+ empyreal_cash_deposit: Source.EmpyrealCashDeposit | null;
241
+ /**
242
+ * A Fee Payment object. This field will be present in the JSON response if and
243
+ * only if `category` is equal to `fee_payment`.
244
+ */
245
+ fee_payment: Source.FeePayment | null;
246
+ /**
247
+ * A Inbound ACH Transfer object. This field will be present in the JSON response
248
+ * if and only if `category` is equal to `inbound_ach_transfer`.
249
+ */
250
+ inbound_ach_transfer: Source.InboundACHTransfer | null;
251
+ /**
252
+ * A Inbound Check object. This field will be present in the JSON response if and
253
+ * only if `category` is equal to `inbound_check`.
254
+ */
255
+ inbound_check: Source.InboundCheck | null;
256
+ /**
257
+ * A Inbound International ACH Transfer object. This field will be present in the
258
+ * JSON response if and only if `category` is equal to
259
+ * `inbound_international_ach_transfer`.
260
+ */
261
+ inbound_international_ach_transfer: Source.InboundInternationalACHTransfer | null;
262
+ /**
263
+ * A Inbound Real Time Payments Transfer Confirmation object. This field will be
264
+ * present in the JSON response if and only if `category` is equal to
265
+ * `inbound_real_time_payments_transfer_confirmation`.
266
+ */
267
+ inbound_real_time_payments_transfer_confirmation: Source.InboundRealTimePaymentsTransferConfirmation | null;
268
+ /**
269
+ * A Inbound Wire Drawdown Payment object. This field will be present in the JSON
270
+ * response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
271
+ */
272
+ inbound_wire_drawdown_payment: Source.InboundWireDrawdownPayment | null;
273
+ /**
274
+ * A Inbound Wire Drawdown Payment Reversal object. This field will be present in
275
+ * the JSON response if and only if `category` is equal to
276
+ * `inbound_wire_drawdown_payment_reversal`.
277
+ */
278
+ inbound_wire_drawdown_payment_reversal: Source.InboundWireDrawdownPaymentReversal | null;
279
+ /**
280
+ * A Inbound Wire Reversal object. This field will be present in the JSON response
281
+ * if and only if `category` is equal to `inbound_wire_reversal`.
282
+ */
283
+ inbound_wire_reversal: Source.InboundWireReversal | null;
284
+ /**
285
+ * A Inbound Wire Transfer object. This field will be present in the JSON response
286
+ * if and only if `category` is equal to `inbound_wire_transfer`.
287
+ */
288
+ inbound_wire_transfer: Source.InboundWireTransfer | null;
289
+ /**
290
+ * A Interest Payment object. This field will be present in the JSON response if
291
+ * and only if `category` is equal to `interest_payment`.
292
+ */
293
+ interest_payment: Source.InterestPayment | null;
294
+ /**
295
+ * A Internal Source object. This field will be present in the JSON response if and
296
+ * only if `category` is equal to `internal_source`.
297
+ */
298
+ internal_source: Source.InternalSource | null;
299
+ /**
300
+ * A Real Time Payments Transfer Acknowledgement object. This field will be present
301
+ * in the JSON response if and only if `category` is equal to
302
+ * `real_time_payments_transfer_acknowledgement`.
303
+ */
304
+ real_time_payments_transfer_acknowledgement: Source.RealTimePaymentsTransferAcknowledgement | null;
305
+ /**
306
+ * A Sample Funds object. This field will be present in the JSON response if and
307
+ * only if `category` is equal to `sample_funds`.
308
+ */
309
+ sample_funds: Source.SampleFunds | null;
310
+ /**
311
+ * A Wire Drawdown Payment Intention object. This field will be present in the JSON
312
+ * response if and only if `category` is equal to
313
+ * `wire_drawdown_payment_intention`.
314
+ */
315
+ wire_drawdown_payment_intention: Source.WireDrawdownPaymentIntention | null;
316
+ /**
317
+ * A Wire Drawdown Payment Rejection object. This field will be present in the JSON
318
+ * response if and only if `category` is equal to
319
+ * `wire_drawdown_payment_rejection`.
320
+ */
321
+ wire_drawdown_payment_rejection: Source.WireDrawdownPaymentRejection | null;
322
+ /**
323
+ * A Wire Transfer Intention object. This field will be present in the JSON
324
+ * response if and only if `category` is equal to `wire_transfer_intention`.
325
+ */
326
+ wire_transfer_intention: Source.WireTransferIntention | null;
327
+ /**
328
+ * A Wire Transfer Rejection object. This field will be present in the JSON
329
+ * response if and only if `category` is equal to `wire_transfer_rejection`.
330
+ */
331
+ wire_transfer_rejection: Source.WireTransferRejection | null;
332
+ }
333
+ namespace Source {
334
+ /**
335
+ * A Account Transfer Intention object. This field will be present in the JSON
336
+ * response if and only if `category` is equal to `account_transfer_intention`.
337
+ */
338
+ interface AccountTransferIntention {
339
+ /**
340
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
341
+ * for example, this is cents.
342
+ */
343
+ amount: number;
344
+ /**
345
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
346
+ * account currency.
347
+ */
348
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
349
+ /**
350
+ * The description you chose to give the transfer.
351
+ */
352
+ description: string;
353
+ /**
354
+ * The identifier of the Account to where the Account Transfer was sent.
355
+ */
356
+ destination_account_id: string;
357
+ /**
358
+ * The identifier of the Account from where the Account Transfer was sent.
359
+ */
360
+ source_account_id: string;
361
+ /**
362
+ * The identifier of the Account Transfer that led to this Pending Transaction.
363
+ */
364
+ transfer_id: string;
365
+ }
366
+ /**
367
+ * A ACH Check Conversion Return object. This field will be present in the JSON
368
+ * response if and only if `category` is equal to `ach_check_conversion_return`.
369
+ */
370
+ interface ACHCheckConversionReturn {
371
+ /**
372
+ * The amount in the minor unit of the transaction's currency. For dollars, for
373
+ * example, this is cents.
374
+ */
375
+ amount: number;
376
+ /**
377
+ * Why the transfer was returned.
378
+ */
379
+ return_reason_code: string;
380
+ }
381
+ /**
382
+ * A ACH Check Conversion object. This field will be present in the JSON response
383
+ * if and only if `category` is equal to `ach_check_conversion`.
384
+ */
385
+ interface ACHCheckConversion {
386
+ /**
387
+ * The amount in the minor unit of the transaction's currency. For dollars, for
388
+ * example, this is cents.
389
+ */
390
+ amount: number;
391
+ /**
392
+ * The identifier of the File containing an image of the returned check.
393
+ */
394
+ file_id: string;
395
+ }
396
+ /**
397
+ * A ACH Transfer Intention object. This field will be present in the JSON response
398
+ * if and only if `category` is equal to `ach_transfer_intention`.
399
+ */
400
+ interface ACHTransferIntention {
401
+ account_number: string;
402
+ /**
403
+ * The amount in the minor unit of the transaction's currency. For dollars, for
404
+ * example, this is cents.
405
+ */
406
+ amount: number;
407
+ routing_number: string;
408
+ statement_descriptor: string;
409
+ /**
410
+ * The identifier of the ACH Transfer that led to this Transaction.
411
+ */
412
+ transfer_id: string;
413
+ }
414
+ /**
415
+ * A ACH Transfer Rejection object. This field will be present in the JSON response
416
+ * if and only if `category` is equal to `ach_transfer_rejection`.
417
+ */
418
+ interface ACHTransferRejection {
419
+ /**
420
+ * The identifier of the ACH Transfer that led to this Transaction.
421
+ */
422
+ transfer_id: string;
423
+ }
424
+ /**
425
+ * A ACH Transfer Return object. This field will be present in the JSON response if
426
+ * and only if `category` is equal to `ach_transfer_return`.
427
+ */
428
+ interface ACHTransferReturn {
429
+ /**
430
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
431
+ * the transfer was created.
432
+ */
433
+ created_at: string;
434
+ /**
435
+ * Why the ACH Transfer was returned.
436
+ */
437
+ return_reason_code:
438
+ | 'insufficient_fund'
439
+ | 'no_account'
440
+ | 'account_closed'
441
+ | 'invalid_account_number_structure'
442
+ | 'account_frozen_entry_returned_per_ofac_instruction'
443
+ | 'credit_entry_refused_by_receiver'
444
+ | 'unauthorized_debit_to_consumer_account_using_corporate_sec_code'
445
+ | 'corporate_customer_advised_not_authorized'
446
+ | 'payment_stopped'
447
+ | 'non_transaction_account'
448
+ | 'uncollected_funds'
449
+ | 'routing_number_check_digit_error'
450
+ | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
451
+ | 'amount_field_error'
452
+ | 'authorization_revoked_by_customer'
453
+ | 'invalid_ach_routing_number'
454
+ | 'file_record_edit_criteria'
455
+ | 'enr_invalid_individual_name'
456
+ | 'returned_per_odfi_request'
457
+ | 'addenda_error'
458
+ | 'limited_participation_dfi'
459
+ | 'incorrectly_coded_outbound_international_payment'
460
+ | 'other';
461
+ /**
462
+ * The identifier of the Tranasaction associated with this return.
463
+ */
464
+ transaction_id: string;
465
+ /**
466
+ * The identifier of the ACH Transfer associated with this return.
467
+ */
468
+ transfer_id: string;
469
+ }
470
+ /**
471
+ * A Card Dispute Acceptance object. This field will be present in the JSON
472
+ * response if and only if `category` is equal to `card_dispute_acceptance`.
473
+ */
474
+ interface CardDisputeAcceptance {
475
+ /**
476
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
477
+ * the Card Dispute was accepted.
478
+ */
479
+ accepted_at: string;
480
+ /**
481
+ * The identifier of the Card Dispute that was accepted.
482
+ */
483
+ card_dispute_id: string;
484
+ /**
485
+ * The identifier of the Transaction that was created to return the disputed funds
486
+ * to your account.
487
+ */
488
+ transaction_id: string;
489
+ }
490
+ /**
491
+ * A Card Refund object. This field will be present in the JSON response if and
492
+ * only if `category` is equal to `card_refund`.
493
+ */
494
+ interface CardRefund {
495
+ /**
496
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
497
+ * for example, this is cents.
498
+ */
499
+ amount: number;
500
+ /**
501
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
502
+ * transaction's currency.
503
+ */
504
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
505
+ /**
506
+ * The Card Refund identifier.
507
+ */
508
+ id: string;
509
+ /**
510
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
511
+ * is transacting with.
512
+ */
513
+ merchant_acceptor_id: string | null;
514
+ /**
515
+ * The 4-digit MCC describing the merchant's business.
516
+ */
517
+ merchant_category_code: string;
518
+ /**
519
+ * The city the merchant resides in.
520
+ */
521
+ merchant_city: string | null;
522
+ /**
523
+ * The country the merchant resides in.
524
+ */
525
+ merchant_country: string;
526
+ /**
527
+ * The name of the merchant.
528
+ */
529
+ merchant_name: string | null;
530
+ /**
531
+ * The state the merchant resides in.
532
+ */
533
+ merchant_state: string | null;
534
+ /**
535
+ * A constant representing the object's type. For this resource it will always be
536
+ * `card_refund`.
537
+ */
538
+ type: 'card_refund';
539
+ }
540
+ /**
541
+ * A Card Settlement object. This field will be present in the JSON response if and
542
+ * only if `category` is equal to `card_settlement`.
543
+ */
544
+ interface CardSettlement {
545
+ /**
546
+ * The amount in the minor unit of the transaction's settlement currency. For
547
+ * dollars, for example, this is cents.
548
+ */
549
+ amount: number;
550
+ /**
551
+ * The Card Authorization that was created prior to this Card Settlement, if on
552
+ * exists.
553
+ */
554
+ card_authorization: string | null;
555
+ /**
556
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
557
+ * transaction's settlement currency.
558
+ */
559
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
560
+ /**
561
+ * The Card Settlement identifier.
562
+ */
563
+ id: string;
564
+ /**
565
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
566
+ * is transacting with.
567
+ */
568
+ merchant_acceptor_id: string | null;
569
+ /**
570
+ * The 4-digit MCC describing the merchant's business.
571
+ */
572
+ merchant_category_code: string;
573
+ /**
574
+ * The city the merchant resides in.
575
+ */
576
+ merchant_city: string | null;
577
+ /**
578
+ * The country the merchant resides in.
579
+ */
580
+ merchant_country: string;
581
+ /**
582
+ * The name of the merchant.
583
+ */
584
+ merchant_name: string | null;
585
+ /**
586
+ * The state the merchant resides in.
587
+ */
588
+ merchant_state: string | null;
589
+ /**
590
+ * The identifier of the Pending Transaction associated with this Transaction.
591
+ */
592
+ pending_transaction_id: string | null;
593
+ /**
594
+ * The amount in the minor unit of the transaction's presentment currency.
595
+ */
596
+ presentment_amount: number;
597
+ /**
598
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
599
+ * transaction's presentment currency.
600
+ */
601
+ presentment_currency: string;
602
+ /**
603
+ * A constant representing the object's type. For this resource it will always be
604
+ * `card_settlement`.
605
+ */
606
+ type: 'card_settlement';
607
+ }
608
+ /**
609
+ * A Card Revenue Payment object. This field will be present in the JSON response
610
+ * if and only if `category` is equal to `card_revenue_payment`.
611
+ */
612
+ interface CardRevenuePayment {
613
+ /**
614
+ * The amount in the minor unit of the transaction's currency. For dollars, for
615
+ * example, this is cents.
616
+ */
617
+ amount: number;
618
+ /**
619
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
620
+ * currency.
621
+ */
622
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
623
+ /**
624
+ * The end of the period for which this transaction paid interest.
625
+ */
626
+ period_end: string;
627
+ /**
628
+ * The start of the period for which this transaction paid interest.
629
+ */
630
+ period_start: string;
631
+ /**
632
+ * The account the card belonged to.
633
+ */
634
+ transacted_on_account_id: string | null;
635
+ }
636
+ /**
637
+ * A Check Deposit Acceptance object. This field will be present in the JSON
638
+ * response if and only if `category` is equal to `check_deposit_acceptance`.
639
+ */
640
+ interface CheckDepositAcceptance {
641
+ /**
642
+ * The account number printed on the check.
643
+ */
644
+ account_number: string;
645
+ /**
646
+ * The amount to be deposited in the minor unit of the transaction's currency. For
647
+ * dollars, for example, this is cents.
648
+ */
649
+ amount: number;
650
+ /**
651
+ * An additional line of metadata printed on the check. This typically includes the
652
+ * check number for business checks.
653
+ */
654
+ auxiliary_on_us: string | null;
655
+ /**
656
+ * The ID of the Check Deposit that was accepted.
657
+ */
658
+ check_deposit_id: string;
659
+ /**
660
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
661
+ * transaction's currency.
662
+ */
663
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
664
+ /**
665
+ * The routing number printed on the check.
666
+ */
667
+ routing_number: string;
668
+ /**
669
+ * The check serial number, if present, for consumer checks. For business checks,
670
+ * the serial number is usually in the `auxiliary_on_us` field.
671
+ */
672
+ serial_number: string | null;
673
+ }
674
+ /**
675
+ * A Check Deposit Return object. This field will be present in the JSON response
676
+ * if and only if `category` is equal to `check_deposit_return`.
677
+ */
678
+ interface CheckDepositReturn {
679
+ /**
680
+ * The amount in the minor unit of the transaction's currency. For dollars, for
681
+ * example, this is cents.
682
+ */
683
+ amount: number;
684
+ /**
685
+ * The identifier of the Check Deposit that was returned.
686
+ */
687
+ check_deposit_id: string;
688
+ /**
689
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
690
+ * transaction's currency.
691
+ */
692
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
693
+ return_reason:
694
+ | 'ach_conversion_not_supported'
695
+ | 'closed_account'
696
+ | 'duplicate_submission'
697
+ | 'insufficient_funds'
698
+ | 'no_account'
699
+ | 'not_authorized'
700
+ | 'stale_dated'
701
+ | 'stop_payment'
702
+ | 'unknown_reason'
703
+ | 'unmatched_details'
704
+ | 'unreadable_image';
705
+ /**
706
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
707
+ * the check deposit was returned.
708
+ */
709
+ returned_at: string;
710
+ /**
711
+ * The identifier of the transaction that reversed the original check deposit
712
+ * transaction.
713
+ */
714
+ transaction_id: string;
715
+ }
716
+ /**
717
+ * A Check Transfer Intention object. This field will be present in the JSON
718
+ * response if and only if `category` is equal to `check_transfer_intention`.
719
+ */
720
+ interface CheckTransferIntention {
721
+ /**
722
+ * The city of the check's destination.
723
+ */
724
+ address_city: string;
725
+ /**
726
+ * The street address of the check's destination.
727
+ */
728
+ address_line1: string;
729
+ /**
730
+ * The second line of the address of the check's destination.
731
+ */
732
+ address_line2: string | null;
733
+ /**
734
+ * The state of the check's destination.
735
+ */
736
+ address_state: string;
737
+ /**
738
+ * The postal code of the check's destination.
739
+ */
740
+ address_zip: string;
741
+ /**
742
+ * The transfer amount in USD cents.
743
+ */
744
+ amount: number;
745
+ /**
746
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
747
+ * currency.
748
+ */
749
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
750
+ /**
751
+ * The name that will be printed on the check.
752
+ */
753
+ recipient_name: string;
754
+ /**
755
+ * The identifier of the Check Transfer with which this is associated.
756
+ */
757
+ transfer_id: string;
758
+ }
759
+ /**
760
+ * A Check Transfer Return object. This field will be present in the JSON response
761
+ * if and only if `category` is equal to `check_transfer_return`.
762
+ */
763
+ interface CheckTransferReturn {
764
+ /**
765
+ * If available, a document with additional information about the return.
766
+ */
767
+ file_id: string | null;
768
+ /**
769
+ * The reason why the check was returned.
770
+ */
771
+ reason: 'mail_delivery_failure' | 'refused_by_recipient' | 'returned_not_authorized';
772
+ /**
773
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
774
+ * the check was returned.
775
+ */
776
+ returned_at: string;
777
+ /**
778
+ * The identifier of the Transaction that was created to credit you for the
779
+ * returned check.
780
+ */
781
+ transaction_id: string | null;
782
+ /**
783
+ * The identifier of the returned Check Transfer.
784
+ */
785
+ transfer_id: string;
786
+ }
787
+ /**
788
+ * A Check Transfer Rejection object. This field will be present in the JSON
789
+ * response if and only if `category` is equal to `check_transfer_rejection`.
790
+ */
791
+ interface CheckTransferRejection {
792
+ /**
793
+ * The identifier of the Check Transfer that led to this Transaction.
794
+ */
795
+ transfer_id: string;
796
+ }
797
+ /**
798
+ * A Check Transfer Stop Payment Request object. This field will be present in the
799
+ * JSON response if and only if `category` is equal to
800
+ * `check_transfer_stop_payment_request`.
801
+ */
802
+ interface CheckTransferStopPaymentRequest {
803
+ /**
804
+ * The time the stop-payment was requested.
805
+ */
806
+ requested_at: string;
807
+ /**
808
+ * The transaction ID of the corresponding credit transaction.
809
+ */
810
+ transaction_id: string;
811
+ /**
812
+ * The ID of the check transfer that was stopped.
813
+ */
814
+ transfer_id: string;
815
+ /**
816
+ * A constant representing the object's type. For this resource it will always be
817
+ * `check_transfer_stop_payment_request`.
818
+ */
819
+ type: 'check_transfer_stop_payment_request';
820
+ }
821
+ /**
822
+ * A Dispute Resolution object. This field will be present in the JSON response if
823
+ * and only if `category` is equal to `dispute_resolution`.
824
+ */
825
+ interface DisputeResolution {
826
+ /**
827
+ * The amount in the minor unit of the transaction's currency. For dollars, for
828
+ * example, this is cents.
829
+ */
830
+ amount: number;
831
+ /**
832
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
833
+ * transaction's currency.
834
+ */
835
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
836
+ /**
837
+ * The identifier of the Transaction that was disputed.
838
+ */
839
+ disputed_transaction_id: string;
840
+ }
841
+ /**
842
+ * A Empyreal Cash Deposit object. This field will be present in the JSON response
843
+ * if and only if `category` is equal to `empyreal_cash_deposit`.
844
+ */
845
+ interface EmpyrealCashDeposit {
846
+ /**
847
+ * The amount in the minor unit of the transaction's currency. For dollars, for
848
+ * example, this is cents.
849
+ */
850
+ amount: number;
851
+ bag_id: string;
852
+ deposit_date: string;
853
+ }
854
+ /**
855
+ * A Fee Payment object. This field will be present in the JSON response if and
856
+ * only if `category` is equal to `fee_payment`.
857
+ */
858
+ interface FeePayment {
859
+ /**
860
+ * The amount in the minor unit of the transaction's currency. For dollars, for
861
+ * example, this is cents.
862
+ */
863
+ amount: number;
864
+ /**
865
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
866
+ * currency.
867
+ */
868
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
869
+ }
870
+ /**
871
+ * A Inbound ACH Transfer object. This field will be present in the JSON response
872
+ * if and only if `category` is equal to `inbound_ach_transfer`.
873
+ */
874
+ interface InboundACHTransfer {
875
+ /**
876
+ * The amount in the minor unit of the destination account currency. For dollars,
877
+ * for example, this is cents.
878
+ */
879
+ amount: number;
880
+ originator_company_descriptive_date: string | null;
881
+ originator_company_discretionary_data: string | null;
882
+ originator_company_entry_description: string;
883
+ originator_company_id: string;
884
+ originator_company_name: string;
885
+ receiver_id_number: string | null;
886
+ receiver_name: string | null;
887
+ trace_number: string;
888
+ }
889
+ /**
890
+ * A Inbound Check object. This field will be present in the JSON response if and
891
+ * only if `category` is equal to `inbound_check`.
892
+ */
893
+ interface InboundCheck {
894
+ /**
895
+ * The amount in the minor unit of the destination account currency. For dollars,
896
+ * for example, this is cents.
897
+ */
898
+ amount: number;
899
+ check_front_image_file_id: string | null;
900
+ check_number: string | null;
901
+ check_rear_image_file_id: string | null;
902
+ /**
903
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
904
+ * transaction's currency.
905
+ */
906
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
907
+ }
908
+ /**
909
+ * A Inbound International ACH Transfer object. This field will be present in the
910
+ * JSON response if and only if `category` is equal to
911
+ * `inbound_international_ach_transfer`.
912
+ */
913
+ interface InboundInternationalACHTransfer {
914
+ /**
915
+ * The amount in the minor unit of the destination account currency. For dollars,
916
+ * for example, this is cents.
917
+ */
918
+ amount: number;
919
+ destination_country_code: string;
920
+ destination_currency_code: string;
921
+ foreign_exchange_indicator: string;
922
+ foreign_exchange_reference: string | null;
923
+ foreign_exchange_reference_indicator: string;
924
+ foreign_payment_amount: number;
925
+ foreign_trace_number: string | null;
926
+ international_transaction_type_code: string;
927
+ originating_currency_code: string;
928
+ originating_depository_financial_institution_branch_country: string;
929
+ originating_depository_financial_institution_id: string;
930
+ originating_depository_financial_institution_id_qualifier: string;
931
+ originating_depository_financial_institution_name: string;
932
+ originator_city: string;
933
+ originator_company_entry_description: string;
934
+ originator_country: string;
935
+ originator_identification: string;
936
+ originator_name: string;
937
+ originator_postal_code: string | null;
938
+ originator_state_or_province: string | null;
939
+ originator_street_address: string;
940
+ payment_related_information: string | null;
941
+ payment_related_information2: string | null;
942
+ receiver_city: string;
943
+ receiver_country: string;
944
+ receiver_identification_number: string | null;
945
+ receiver_postal_code: string | null;
946
+ receiver_state_or_province: string | null;
947
+ receiver_street_address: string;
948
+ receiving_company_or_individual_name: string;
949
+ receiving_depository_financial_institution_country: string;
950
+ receiving_depository_financial_institution_id: string;
951
+ receiving_depository_financial_institution_id_qualifier: string;
952
+ receiving_depository_financial_institution_name: string;
953
+ trace_number: string;
954
+ }
955
+ /**
956
+ * A Inbound Real Time Payments Transfer Confirmation object. This field will be
957
+ * present in the JSON response if and only if `category` is equal to
958
+ * `inbound_real_time_payments_transfer_confirmation`.
959
+ */
960
+ interface InboundRealTimePaymentsTransferConfirmation {
961
+ /**
962
+ * The amount in the minor unit of the transfer's currency. For dollars, for
963
+ * example, this is cents.
964
+ */
965
+ amount: number;
966
+ /**
967
+ * The name the sender of the transfer specified as the recipient of the transfer.
968
+ */
969
+ creditor_name: string;
970
+ /**
971
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the transfer's
972
+ * currency. This will always be "USD" for a Real Time Payments transfer.
973
+ */
974
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
975
+ /**
976
+ * The account number of the account that sent the transfer.
977
+ */
978
+ debtor_account_number: string;
979
+ /**
980
+ * The name provided by the sender of the transfer.
981
+ */
982
+ debtor_name: string;
983
+ /**
984
+ * The routing number of the account that sent the transfer.
985
+ */
986
+ debtor_routing_number: string;
987
+ /**
988
+ * Additional information included with the transfer.
989
+ */
990
+ remittance_information: string | null;
991
+ /**
992
+ * The Real Time Payments network identification of the transfer
993
+ */
994
+ transaction_identification: string;
995
+ }
996
+ /**
997
+ * A Inbound Wire Drawdown Payment Reversal object. This field will be present in
998
+ * the JSON response if and only if `category` is equal to
999
+ * `inbound_wire_drawdown_payment_reversal`.
1000
+ */
1001
+ interface InboundWireDrawdownPaymentReversal {
1002
+ /**
1003
+ * The amount that was reversed.
1004
+ */
1005
+ amount: number;
1006
+ /**
1007
+ * The description on the reversal message from Fedwire.
1008
+ */
1009
+ description: string;
1010
+ /**
1011
+ * The Fedwire cycle date for the wire reversal.
1012
+ */
1013
+ input_cycle_date: string;
1014
+ /**
1015
+ * The Fedwire transaction identifier.
1016
+ */
1017
+ input_message_accountability_data: string;
1018
+ /**
1019
+ * The Fedwire sequence number.
1020
+ */
1021
+ input_sequence_number: string;
1022
+ /**
1023
+ * The Fedwire input source identifier.
1024
+ */
1025
+ input_source: string;
1026
+ /**
1027
+ * The Fedwire cycle date for the wire transfer that was reversed.
1028
+ */
1029
+ previous_message_input_cycle_date: string;
1030
+ /**
1031
+ * The Fedwire transaction identifier for the wire transfer that was reversed.
1032
+ */
1033
+ previous_message_input_message_accountability_data: string;
1034
+ /**
1035
+ * The Fedwire sequence number for the wire transfer that was reversed.
1036
+ */
1037
+ previous_message_input_sequence_number: string;
1038
+ /**
1039
+ * The Fedwire input source identifier for the wire transfer that was reversed.
1040
+ */
1041
+ previous_message_input_source: string;
1042
+ }
1043
+ /**
1044
+ * A Inbound Wire Drawdown Payment object. This field will be present in the JSON
1045
+ * response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
1046
+ */
1047
+ interface InboundWireDrawdownPayment {
1048
+ /**
1049
+ * The amount in the minor unit of the transaction's currency. For dollars, for
1050
+ * example, this is cents.
1051
+ */
1052
+ amount: number;
1053
+ beneficiary_address_line1: string | null;
1054
+ beneficiary_address_line2: string | null;
1055
+ beneficiary_address_line3: string | null;
1056
+ beneficiary_name: string | null;
1057
+ beneficiary_reference: string | null;
1058
+ description: string;
1059
+ input_message_accountability_data: string | null;
1060
+ originator_address_line1: string | null;
1061
+ originator_address_line2: string | null;
1062
+ originator_address_line3: string | null;
1063
+ originator_name: string | null;
1064
+ originator_to_beneficiary_information: string | null;
1065
+ }
1066
+ /**
1067
+ * A Inbound Wire Reversal object. This field will be present in the JSON response
1068
+ * if and only if `category` is equal to `inbound_wire_reversal`.
1069
+ */
1070
+ interface InboundWireReversal {
1071
+ /**
1072
+ * The amount that was reversed.
1073
+ */
1074
+ amount: number;
1075
+ /**
1076
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
1077
+ * the reversal was created.
1078
+ */
1079
+ created_at: string;
1080
+ /**
1081
+ * The description on the reversal message from Fedwire.
1082
+ */
1083
+ description: string;
1084
+ /**
1085
+ * Additional financial institution information included in the wire reversal.
1086
+ */
1087
+ financial_institution_to_financial_institution_information: string | null;
1088
+ /**
1089
+ * The Fedwire cycle date for the wire reversal.
1090
+ */
1091
+ input_cycle_date: string;
1092
+ /**
1093
+ * The Fedwire transaction identifier.
1094
+ */
1095
+ input_message_accountability_data: string;
1096
+ /**
1097
+ * The Fedwire sequence number.
1098
+ */
1099
+ input_sequence_number: string;
1100
+ /**
1101
+ * The Fedwire input source identifier.
1102
+ */
1103
+ input_source: string;
1104
+ /**
1105
+ * The Fedwire cycle date for the wire transfer that was reversed.
1106
+ */
1107
+ previous_message_input_cycle_date: string;
1108
+ /**
1109
+ * The Fedwire transaction identifier for the wire transfer that was reversed.
1110
+ */
1111
+ previous_message_input_message_accountability_data: string;
1112
+ /**
1113
+ * The Fedwire sequence number for the wire transfer that was reversed.
1114
+ */
1115
+ previous_message_input_sequence_number: string;
1116
+ /**
1117
+ * The Fedwire input source identifier for the wire transfer that was reversed.
1118
+ */
1119
+ previous_message_input_source: string;
1120
+ /**
1121
+ * Information included in the wire reversal for the receiving financial
1122
+ * institution.
1123
+ */
1124
+ receiver_financial_institution_information: string | null;
1125
+ /**
1126
+ * The ID for the Transaction associated with the transfer reversal.
1127
+ */
1128
+ transaction_id: string | null;
1129
+ /**
1130
+ * The ID for the Wire Transfer that is being reversed.
1131
+ */
1132
+ wire_transfer_id: string;
1133
+ }
1134
+ /**
1135
+ * A Inbound Wire Transfer object. This field will be present in the JSON response
1136
+ * if and only if `category` is equal to `inbound_wire_transfer`.
1137
+ */
1138
+ interface InboundWireTransfer {
1139
+ /**
1140
+ * The amount in the minor unit of the transaction's currency. For dollars, for
1141
+ * example, this is cents.
1142
+ */
1143
+ amount: number;
1144
+ beneficiary_address_line1: string | null;
1145
+ beneficiary_address_line2: string | null;
1146
+ beneficiary_address_line3: string | null;
1147
+ beneficiary_name: string | null;
1148
+ beneficiary_reference: string | null;
1149
+ description: string;
1150
+ input_message_accountability_data: string | null;
1151
+ originator_address_line1: string | null;
1152
+ originator_address_line2: string | null;
1153
+ originator_address_line3: string | null;
1154
+ originator_name: string | null;
1155
+ originator_to_beneficiary_information: string | null;
1156
+ originator_to_beneficiary_information_line1: string | null;
1157
+ originator_to_beneficiary_information_line2: string | null;
1158
+ originator_to_beneficiary_information_line3: string | null;
1159
+ originator_to_beneficiary_information_line4: string | null;
1160
+ }
1161
+ /**
1162
+ * A Interest Payment object. This field will be present in the JSON response if
1163
+ * and only if `category` is equal to `interest_payment`.
1164
+ */
1165
+ interface InterestPayment {
1166
+ /**
1167
+ * The account on which the interest was accrued.
1168
+ */
1169
+ accrued_on_account_id: string | null;
1170
+ /**
1171
+ * The amount in the minor unit of the transaction's currency. For dollars, for
1172
+ * example, this is cents.
1173
+ */
1174
+ amount: number;
1175
+ /**
1176
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
1177
+ * currency.
1178
+ */
1179
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1180
+ /**
1181
+ * The end of the period for which this transaction paid interest.
1182
+ */
1183
+ period_end: string;
1184
+ /**
1185
+ * The start of the period for which this transaction paid interest.
1186
+ */
1187
+ period_start: string;
1188
+ }
1189
+ /**
1190
+ * A Internal Source object. This field will be present in the JSON response if and
1191
+ * only if `category` is equal to `internal_source`.
1192
+ */
1193
+ interface InternalSource {
1194
+ /**
1195
+ * The amount in the minor unit of the transaction's currency. For dollars, for
1196
+ * example, this is cents.
1197
+ */
1198
+ amount: number;
1199
+ /**
1200
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
1201
+ * currency.
1202
+ */
1203
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1204
+ reason:
1205
+ | 'bank_migration'
1206
+ | 'cashback'
1207
+ | 'collection_receivable'
1208
+ | 'empyreal_adjustment'
1209
+ | 'error'
1210
+ | 'error_correction'
1211
+ | 'fees'
1212
+ | 'interest'
1213
+ | 'negative_balance_forgiveness'
1214
+ | 'sample_funds'
1215
+ | 'sample_funds_return';
1216
+ }
1217
+ /**
1218
+ * A Deprecated Card Refund object. This field will be present in the JSON response
1219
+ * if and only if `category` is equal to `card_route_refund`.
1220
+ */
1221
+ interface CardRouteRefund {
1222
+ /**
1223
+ * The refunded amount in the minor unit of the refunded currency. For dollars, for
1224
+ * example, this is cents.
1225
+ */
1226
+ amount: number;
1227
+ /**
1228
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the refund
1229
+ * currency.
1230
+ */
1231
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1232
+ merchant_acceptor_id: string;
1233
+ merchant_category_code: string | null;
1234
+ merchant_city: string | null;
1235
+ merchant_country: string;
1236
+ merchant_descriptor: string;
1237
+ merchant_state: string | null;
1238
+ }
1239
+ /**
1240
+ * A Deprecated Card Settlement object. This field will be present in the JSON
1241
+ * response if and only if `category` is equal to `card_route_settlement`.
1242
+ */
1243
+ interface CardRouteSettlement {
1244
+ /**
1245
+ * The settled amount in the minor unit of the settlement currency. For dollars,
1246
+ * for example, this is cents.
1247
+ */
1248
+ amount: number;
1249
+ /**
1250
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the settlement
1251
+ * currency.
1252
+ */
1253
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1254
+ merchant_acceptor_id: string;
1255
+ merchant_category_code: string | null;
1256
+ merchant_city: string | null;
1257
+ merchant_country: string | null;
1258
+ merchant_descriptor: string;
1259
+ merchant_state: string | null;
1260
+ }
1261
+ /**
1262
+ * A Real Time Payments Transfer Acknowledgement object. This field will be present
1263
+ * in the JSON response if and only if `category` is equal to
1264
+ * `real_time_payments_transfer_acknowledgement`.
1265
+ */
1266
+ interface RealTimePaymentsTransferAcknowledgement {
1267
+ /**
1268
+ * The transfer amount in USD cents.
1269
+ */
1270
+ amount: number;
1271
+ /**
1272
+ * The destination account number.
1273
+ */
1274
+ destination_account_number: string;
1275
+ /**
1276
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN).
1277
+ */
1278
+ destination_routing_number: string;
1279
+ /**
1280
+ * Unstructured information that will show on the recipient's bank statement.
1281
+ */
1282
+ remittance_information: string;
1283
+ /**
1284
+ * The identifier of the Real Time Payments Transfer that led to this Transaction.
1285
+ */
1286
+ transfer_id: string;
1287
+ }
1288
+ /**
1289
+ * A Sample Funds object. This field will be present in the JSON response if and
1290
+ * only if `category` is equal to `sample_funds`.
1291
+ */
1292
+ interface SampleFunds {
1293
+ /**
1294
+ * Where the sample funds came from.
1295
+ */
1296
+ originator: string;
1297
+ }
1298
+ /**
1299
+ * A Wire Drawdown Payment Intention object. This field will be present in the JSON
1300
+ * response if and only if `category` is equal to
1301
+ * `wire_drawdown_payment_intention`.
1302
+ */
1303
+ interface WireDrawdownPaymentIntention {
1304
+ account_number: string;
1305
+ /**
1306
+ * The transfer amount in USD cents.
1307
+ */
1308
+ amount: number;
1309
+ message_to_recipient: string;
1310
+ routing_number: string;
1311
+ transfer_id: string;
1312
+ }
1313
+ /**
1314
+ * A Wire Drawdown Payment Rejection object. This field will be present in the JSON
1315
+ * response if and only if `category` is equal to
1316
+ * `wire_drawdown_payment_rejection`.
1317
+ */
1318
+ interface WireDrawdownPaymentRejection {
1319
+ transfer_id: string;
1320
+ }
1321
+ /**
1322
+ * A Wire Transfer Intention object. This field will be present in the JSON
1323
+ * response if and only if `category` is equal to `wire_transfer_intention`.
1324
+ */
1325
+ interface WireTransferIntention {
1326
+ /**
1327
+ * The destination account number.
1328
+ */
1329
+ account_number: string;
1330
+ /**
1331
+ * The transfer amount in USD cents.
1332
+ */
1333
+ amount: number;
1334
+ /**
1335
+ * The message that will show on the recipient's bank statement.
1336
+ */
1337
+ message_to_recipient: string;
1338
+ /**
1339
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN).
1340
+ */
1341
+ routing_number: string;
1342
+ transfer_id: string;
1343
+ }
1344
+ /**
1345
+ * A Wire Transfer Rejection object. This field will be present in the JSON
1346
+ * response if and only if `category` is equal to `wire_transfer_rejection`.
1347
+ */
1348
+ interface WireTransferRejection {
1349
+ transfer_id: string;
1350
+ }
1351
+ }
1352
+ }
1353
+ }
1354
+ export interface InterestPaymentCreateParams {
1355
+ /**
1356
+ * The identifier of the Account Number the Interest Payment is for.
1357
+ */
1358
+ account_id: string;
1359
+ /**
1360
+ * The interest amount in cents. Must be positive.
1361
+ */
1362
+ amount: number;
1363
+ }
1364
+ //# sourceMappingURL=interest-payments.d.ts.map