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