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