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