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,398 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import * as Core from '~/core';
4
+ import { APIResource } from '~/resource';
5
+ import { isRequestOptions } from '~/core';
6
+ import { Page, PageParams } from '~/pagination';
7
+
8
+ export class Cards extends APIResource {
9
+ /**
10
+ * Create a Card
11
+ */
12
+ create(body: CardCreateParams, options?: Core.RequestOptions): Promise<Core.APIResponse<Card>> {
13
+ return this.post('/cards', { body, ...options });
14
+ }
15
+
16
+ /**
17
+ * Retrieve a Card
18
+ */
19
+ retrieve(cardId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<Card>> {
20
+ return this.get(`/cards/${cardId}`, options);
21
+ }
22
+
23
+ /**
24
+ * Update a Card
25
+ */
26
+ update(
27
+ cardId: string,
28
+ body: CardUpdateParams,
29
+ options?: Core.RequestOptions,
30
+ ): Promise<Core.APIResponse<Card>> {
31
+ return this.patch(`/cards/${cardId}`, { body, ...options });
32
+ }
33
+
34
+ /**
35
+ * List Cards
36
+ */
37
+ list(query?: CardListParams, options?: Core.RequestOptions): Core.PagePromise<CardsPage>;
38
+ list(options?: Core.RequestOptions): Core.PagePromise<CardsPage>;
39
+ list(
40
+ query: CardListParams | Core.RequestOptions = {},
41
+ options?: Core.RequestOptions,
42
+ ): Core.PagePromise<CardsPage> {
43
+ if (isRequestOptions(query)) {
44
+ return this.list({}, query);
45
+ }
46
+
47
+ return this.getAPIList('/cards', CardsPage, { query, ...options });
48
+ }
49
+
50
+ /**
51
+ * Retrieve sensitive details for a Card
52
+ */
53
+ retrieveSensitiveDetails(
54
+ cardId: string,
55
+ options?: Core.RequestOptions,
56
+ ): Promise<Core.APIResponse<CardDetails>> {
57
+ return this.get(`/cards/${cardId}/details`, options);
58
+ }
59
+ }
60
+
61
+ export class CardsPage extends Page<Card> {}
62
+
63
+ /**
64
+ * Cards are commercial credit cards. They'll immediately work for online purchases
65
+ * after you create them. All cards maintain a credit limit of 100% of the
66
+ * Account’s available balance at the time of transaction. Funds are deducted from
67
+ * the Account upon transaction settlement.
68
+ */
69
+ export interface Card {
70
+ /**
71
+ * The identifier for the account this card belongs to.
72
+ */
73
+ account_id: string;
74
+
75
+ /**
76
+ * The Card's billing address.
77
+ */
78
+ billing_address: Card.BillingAddress;
79
+
80
+ /**
81
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
82
+ * the Card was created.
83
+ */
84
+ created_at: string;
85
+
86
+ /**
87
+ * The card's description for display purposes.
88
+ */
89
+ description: string | null;
90
+
91
+ /**
92
+ * The contact information used in the two-factor steps for digital wallet card
93
+ * creation. At least one field must be present to complete the digital wallet
94
+ * steps.
95
+ */
96
+ digital_wallet: Card.DigitalWallet | null;
97
+
98
+ /**
99
+ * The month the card expires in M format (e.g., August is 8).
100
+ */
101
+ expiration_month: number;
102
+
103
+ /**
104
+ * The year the card expires in YYYY format (e.g., 2025).
105
+ */
106
+ expiration_year: number;
107
+
108
+ /**
109
+ * The card identifier.
110
+ */
111
+ id: string;
112
+
113
+ /**
114
+ * The last 4 digits of the Card's Primary Account Number.
115
+ */
116
+ last4: string;
117
+
118
+ /**
119
+ * This indicates if payments can be made with the card.
120
+ */
121
+ status: 'active' | 'disabled' | 'canceled';
122
+
123
+ /**
124
+ * A constant representing the object's type. For this resource it will always be
125
+ * `card`.
126
+ */
127
+ type: 'card';
128
+ }
129
+
130
+ export namespace Card {
131
+ export interface BillingAddress {
132
+ /**
133
+ * The city of the billing address.
134
+ */
135
+ city: string | null;
136
+
137
+ /**
138
+ * The first line of the billing address.
139
+ */
140
+ line1: string | null;
141
+
142
+ /**
143
+ * The second line of the billing address.
144
+ */
145
+ line2: string | null;
146
+
147
+ /**
148
+ * The postal code of the billing address.
149
+ */
150
+ postal_code: string | null;
151
+
152
+ /**
153
+ * The US state of the billing address.
154
+ */
155
+ state: string | null;
156
+ }
157
+
158
+ export interface DigitalWallet {
159
+ /**
160
+ * The card profile assigned to this digital card. Card profiles may also be
161
+ * assigned at the program level.
162
+ */
163
+ card_profile_id: string | null;
164
+
165
+ /**
166
+ * An email address that can be used to verify the cardholder via one-time passcode
167
+ * over email.
168
+ */
169
+ email: string | null;
170
+
171
+ /**
172
+ * A phone number that can be used to verify the cardholder via one-time passcode
173
+ * over SMS.
174
+ */
175
+ phone: string | null;
176
+ }
177
+ }
178
+
179
+ /**
180
+ * An object containing the sensitive details (card number, cvc, etc) for a Card.
181
+ */
182
+ export interface CardDetails {
183
+ /**
184
+ * The identifier for the Card for which sensitive details have been returned.
185
+ */
186
+ card_id: string;
187
+
188
+ /**
189
+ * The month the card expires in M format (e.g., August is 8).
190
+ */
191
+ expiration_month: number;
192
+
193
+ /**
194
+ * The year the card expires in YYYY format (e.g., 2025).
195
+ */
196
+ expiration_year: number;
197
+
198
+ /**
199
+ * The card number.
200
+ */
201
+ primary_account_number: string;
202
+
203
+ /**
204
+ * A constant representing the object's type. For this resource it will always be
205
+ * `card_details`.
206
+ */
207
+ type: 'card_details';
208
+
209
+ /**
210
+ * The three-digit verification code for the card. It's also known as the Card
211
+ * Verification Code (CVC), the Card Verification Value (CVV), or the Card
212
+ * Identification (CID).
213
+ */
214
+ verification_code: string;
215
+ }
216
+
217
+ export interface CardCreateParams {
218
+ /**
219
+ * The Account the card should belong to.
220
+ */
221
+ account_id: string;
222
+
223
+ /**
224
+ * The card's billing address.
225
+ */
226
+ billing_address?: CardCreateParams.BillingAddress;
227
+
228
+ /**
229
+ * The description you choose to give the card.
230
+ */
231
+ description?: string;
232
+
233
+ /**
234
+ * The contact information used in the two-factor steps for digital wallet card
235
+ * creation. At least one field must be present to complete the digital wallet
236
+ * steps.
237
+ */
238
+ digital_wallet?: CardCreateParams.DigitalWallet;
239
+ }
240
+
241
+ export namespace CardCreateParams {
242
+ export interface BillingAddress {
243
+ /**
244
+ * The city of the billing address.
245
+ */
246
+ city: string;
247
+
248
+ /**
249
+ * The first line of the billing address.
250
+ */
251
+ line1: string;
252
+
253
+ /**
254
+ * The postal code of the billing address.
255
+ */
256
+ postal_code: string;
257
+
258
+ /**
259
+ * The US state of the billing address.
260
+ */
261
+ state: string;
262
+
263
+ /**
264
+ * The second line of the billing address.
265
+ */
266
+ line2?: string;
267
+ }
268
+
269
+ export interface DigitalWallet {
270
+ /**
271
+ * The card profile assigned to this digital card. Card profiles may also be
272
+ * assigned at the program level.
273
+ */
274
+ card_profile_id?: string;
275
+
276
+ /**
277
+ * An email address that can be used to verify the cardholder via one-time passcode
278
+ * over email.
279
+ */
280
+ email?: string;
281
+
282
+ /**
283
+ * A phone number that can be used to verify the cardholder via one-time passcode
284
+ * over SMS.
285
+ */
286
+ phone?: string;
287
+ }
288
+ }
289
+
290
+ export interface CardUpdateParams {
291
+ /**
292
+ * The card's updated billing address.
293
+ */
294
+ billing_address?: CardUpdateParams.BillingAddress;
295
+
296
+ /**
297
+ * The description you choose to give the card.
298
+ */
299
+ description?: string;
300
+
301
+ /**
302
+ * The contact information used in the two-factor steps for digital wallet card
303
+ * creation. At least one field must be present to complete the digital wallet
304
+ * steps.
305
+ */
306
+ digital_wallet?: CardUpdateParams.DigitalWallet;
307
+
308
+ /**
309
+ * The status to update the Card with.
310
+ */
311
+ status?: 'active' | 'disabled' | 'canceled';
312
+ }
313
+
314
+ export namespace CardUpdateParams {
315
+ export interface BillingAddress {
316
+ /**
317
+ * The city of the billing address.
318
+ */
319
+ city: string;
320
+
321
+ /**
322
+ * The first line of the billing address.
323
+ */
324
+ line1: string;
325
+
326
+ /**
327
+ * The postal code of the billing address.
328
+ */
329
+ postal_code: string;
330
+
331
+ /**
332
+ * The US state of the billing address.
333
+ */
334
+ state: string;
335
+
336
+ /**
337
+ * The second line of the billing address.
338
+ */
339
+ line2?: string;
340
+ }
341
+
342
+ export interface DigitalWallet {
343
+ /**
344
+ * The card profile assigned to this digital card. Card profiles may also be
345
+ * assigned at the program level.
346
+ */
347
+ card_profile_id?: string;
348
+
349
+ /**
350
+ * An email address that can be used to verify the cardholder via one-time passcode
351
+ * over email.
352
+ */
353
+ email?: string;
354
+
355
+ /**
356
+ * A phone number that can be used to verify the cardholder via one-time passcode
357
+ * over SMS.
358
+ */
359
+ phone?: string;
360
+ }
361
+ }
362
+
363
+ export interface CardListParams extends PageParams {
364
+ /**
365
+ * Filter Cards to ones belonging to the specified Account.
366
+ */
367
+ account_id?: string;
368
+
369
+ created_at?: CardListParams.CreatedAt;
370
+ }
371
+
372
+ export namespace CardListParams {
373
+ export interface CreatedAt {
374
+ /**
375
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
376
+ * timestamp.
377
+ */
378
+ after?: string;
379
+
380
+ /**
381
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
382
+ * timestamp.
383
+ */
384
+ before?: string;
385
+
386
+ /**
387
+ * Return results on or after this
388
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
389
+ */
390
+ on_or_after?: string;
391
+
392
+ /**
393
+ * Return results on or before this
394
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
395
+ */
396
+ on_or_before?: string;
397
+ }
398
+ }
@@ -0,0 +1,303 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import * as Core from '~/core';
4
+ import { APIResource } from '~/resource';
5
+ import { isRequestOptions } from '~/core';
6
+ import { Page, PageParams } from '~/pagination';
7
+
8
+ export class CheckDeposits extends APIResource {
9
+ /**
10
+ * Create a Check Deposit
11
+ */
12
+ create(
13
+ body: CheckDepositCreateParams,
14
+ options?: Core.RequestOptions,
15
+ ): Promise<Core.APIResponse<CheckDeposit>> {
16
+ return this.post('/check_deposits', { body, ...options });
17
+ }
18
+
19
+ /**
20
+ * Retrieve a Check Deposit
21
+ */
22
+ retrieve(checkDepositId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<CheckDeposit>> {
23
+ return this.get(`/check_deposits/${checkDepositId}`, options);
24
+ }
25
+
26
+ /**
27
+ * List Check Deposits
28
+ */
29
+ list(query?: CheckDepositListParams, options?: Core.RequestOptions): Core.PagePromise<CheckDepositsPage>;
30
+ list(options?: Core.RequestOptions): Core.PagePromise<CheckDepositsPage>;
31
+ list(
32
+ query: CheckDepositListParams | Core.RequestOptions = {},
33
+ options?: Core.RequestOptions,
34
+ ): Core.PagePromise<CheckDepositsPage> {
35
+ if (isRequestOptions(query)) {
36
+ return this.list({}, query);
37
+ }
38
+
39
+ return this.getAPIList('/check_deposits', CheckDepositsPage, { query, ...options });
40
+ }
41
+ }
42
+
43
+ export class CheckDepositsPage extends Page<CheckDeposit> {}
44
+
45
+ /**
46
+ * Check Deposits allow you to deposit images of paper checks into your account.
47
+ */
48
+ export interface CheckDeposit {
49
+ /**
50
+ * The Account the check was deposited into.
51
+ */
52
+ account_id: string;
53
+
54
+ /**
55
+ * The deposited amount in the minor unit of the destination account currency. For
56
+ * dollars, for example, this is cents.
57
+ */
58
+ amount: number;
59
+
60
+ /**
61
+ * The ID for the File containing the image of the back of the check.
62
+ */
63
+ back_image_file_id: string | null;
64
+
65
+ /**
66
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
67
+ * the transfer was created.
68
+ */
69
+ created_at: string;
70
+
71
+ /**
72
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the deposit.
73
+ */
74
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
75
+
76
+ /**
77
+ * If your deposit is successfully parsed and accepted by Increase, this will
78
+ * contain details of the parsed check.
79
+ */
80
+ deposit_acceptance: CheckDeposit.DepositAcceptance | null;
81
+
82
+ /**
83
+ * If your deposit is rejected by Increase, this will contain details as to why it
84
+ * was rejected.
85
+ */
86
+ deposit_rejection: CheckDeposit.DepositRejection | null;
87
+
88
+ /**
89
+ * If your deposit is returned, this will contain details as to why it was
90
+ * returned.
91
+ */
92
+ deposit_return: CheckDeposit.DepositReturn | null;
93
+
94
+ /**
95
+ * The ID for the File containing the image of the front of the check.
96
+ */
97
+ front_image_file_id: string;
98
+
99
+ /**
100
+ * The deposit's identifier.
101
+ */
102
+ id: string;
103
+
104
+ /**
105
+ * The status of the Check Deposit.
106
+ */
107
+ status: 'pending' | 'submitted' | 'rejected' | 'returned';
108
+
109
+ /**
110
+ * The ID for the Transaction created by the deposit.
111
+ */
112
+ transaction_id: string | null;
113
+
114
+ /**
115
+ * A constant representing the object's type. For this resource it will always be
116
+ * `check_deposit`.
117
+ */
118
+ type: 'check_deposit';
119
+ }
120
+
121
+ export namespace CheckDeposit {
122
+ export interface DepositAcceptance {
123
+ /**
124
+ * The account number printed on the check.
125
+ */
126
+ account_number: string;
127
+
128
+ /**
129
+ * The amount to be deposited in the minor unit of the transaction's currency. For
130
+ * dollars, for example, this is cents.
131
+ */
132
+ amount: number;
133
+
134
+ /**
135
+ * An additional line of metadata printed on the check. This typically includes the
136
+ * check number for business checks.
137
+ */
138
+ auxiliary_on_us: string | null;
139
+
140
+ /**
141
+ * The ID of the Check Deposit that was accepted.
142
+ */
143
+ check_deposit_id: string;
144
+
145
+ /**
146
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
147
+ * transaction's currency.
148
+ */
149
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
150
+
151
+ /**
152
+ * The routing number printed on the check.
153
+ */
154
+ routing_number: string;
155
+
156
+ /**
157
+ * The check serial number, if present, for consumer checks. For business checks,
158
+ * the serial number is usually in the `auxiliary_on_us` field.
159
+ */
160
+ serial_number: string | null;
161
+ }
162
+
163
+ export interface DepositRejection {
164
+ /**
165
+ * The rejected amount in the minor unit of check's currency. For dollars, for
166
+ * example, this is cents.
167
+ */
168
+ amount: number;
169
+
170
+ /**
171
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
172
+ * currency.
173
+ */
174
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
175
+
176
+ /**
177
+ * Why the check deposit was rejected.
178
+ */
179
+ reason:
180
+ | 'incomplete_image'
181
+ | 'duplicate'
182
+ | 'poor_image_quality'
183
+ | 'incorrect_amount'
184
+ | 'incorrect_recipient'
185
+ | 'not_eligible_for_mobile_deposit'
186
+ | 'unknown';
187
+
188
+ /**
189
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
190
+ * the check deposit was rejected.
191
+ */
192
+ rejected_at: string;
193
+ }
194
+
195
+ export interface DepositReturn {
196
+ /**
197
+ * The amount in the minor unit of the transaction's currency. For dollars, for
198
+ * example, this is cents.
199
+ */
200
+ amount: number;
201
+
202
+ /**
203
+ * The identifier of the Check Deposit that was returned.
204
+ */
205
+ check_deposit_id: string;
206
+
207
+ /**
208
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
209
+ * transaction's currency.
210
+ */
211
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
212
+
213
+ return_reason:
214
+ | 'ach_conversion_not_supported'
215
+ | 'closed_account'
216
+ | 'duplicate_submission'
217
+ | 'insufficient_funds'
218
+ | 'no_account'
219
+ | 'not_authorized'
220
+ | 'stale_dated'
221
+ | 'stop_payment'
222
+ | 'unknown_reason'
223
+ | 'unmatched_details'
224
+ | 'unreadable_image';
225
+
226
+ /**
227
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
228
+ * the check deposit was returned.
229
+ */
230
+ returned_at: string;
231
+
232
+ /**
233
+ * The identifier of the transaction that reversed the original check deposit
234
+ * transaction.
235
+ */
236
+ transaction_id: string;
237
+ }
238
+ }
239
+
240
+ export interface CheckDepositCreateParams {
241
+ /**
242
+ * The identifier for the Account to deposit the check in.
243
+ */
244
+ account_id: string;
245
+
246
+ /**
247
+ * The deposit amount in the minor unit of the account currency. For dollars, for
248
+ * example, this is cents.
249
+ */
250
+ amount: number;
251
+
252
+ /**
253
+ * The File containing the check's back image.
254
+ */
255
+ back_image_file_id: string;
256
+
257
+ /**
258
+ * The currency to use for the deposit.
259
+ */
260
+ currency: string;
261
+
262
+ /**
263
+ * The File containing the check's front image.
264
+ */
265
+ front_image_file_id: string;
266
+ }
267
+
268
+ export interface CheckDepositListParams extends PageParams {
269
+ /**
270
+ * Filter Check Deposits to those belonging to the specified Account.
271
+ */
272
+ account_id?: string;
273
+
274
+ created_at?: CheckDepositListParams.CreatedAt;
275
+ }
276
+
277
+ export namespace CheckDepositListParams {
278
+ export interface CreatedAt {
279
+ /**
280
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
281
+ * timestamp.
282
+ */
283
+ after?: string;
284
+
285
+ /**
286
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
287
+ * timestamp.
288
+ */
289
+ before?: string;
290
+
291
+ /**
292
+ * Return results on or after this
293
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
294
+ */
295
+ on_or_after?: string;
296
+
297
+ /**
298
+ * Return results on or before this
299
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
300
+ */
301
+ on_or_before?: string;
302
+ }
303
+ }