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