increase 0.2.0 → 0.4.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 (554) hide show
  1. package/.prettierignore +1 -0
  2. package/.release-please-manifest.json +3 -0
  3. package/.stats.yml +1 -1
  4. package/CHANGELOG.md +130 -0
  5. package/README.md +19 -5
  6. package/api.md +99 -0
  7. package/bin/check-release-environment +25 -0
  8. package/bin/publish-npm +6 -0
  9. package/check-version.ts +4 -1
  10. package/core.ts +32 -126
  11. package/dist/cjs/check-version.d.ts +1 -0
  12. package/dist/cjs/check-version.d.ts.map +1 -0
  13. package/dist/cjs/check-version.js +3 -1
  14. package/dist/cjs/check-version.js.map +1 -1
  15. package/dist/cjs/core.d.ts +25 -55
  16. package/dist/cjs/core.d.ts.map +1 -0
  17. package/dist/cjs/core.js +43 -168
  18. package/dist/cjs/core.js.map +1 -1
  19. package/dist/cjs/error.d.ts +208 -0
  20. package/dist/cjs/error.d.ts.map +1 -0
  21. package/dist/cjs/error.js +326 -0
  22. package/dist/cjs/error.js.map +1 -0
  23. package/dist/cjs/examples/api-error.d.ts +3 -0
  24. package/dist/cjs/examples/api-error.d.ts.map +1 -0
  25. package/dist/cjs/examples/api-error.js +92 -0
  26. package/dist/cjs/examples/api-error.js.map +1 -0
  27. package/dist/cjs/fetch-polyfill.d.ts +1 -0
  28. package/dist/cjs/fetch-polyfill.d.ts.map +1 -0
  29. package/dist/cjs/fetch-polyfill.js +2 -2
  30. package/dist/cjs/fetch-polyfill.js.map +1 -1
  31. package/dist/cjs/index.d.ts +81 -22
  32. package/dist/cjs/index.d.ts.map +1 -0
  33. package/dist/cjs/index.js +80 -26
  34. package/dist/cjs/index.js.map +1 -1
  35. package/dist/cjs/pagination.d.ts +4 -0
  36. package/dist/cjs/pagination.d.ts.map +1 -0
  37. package/dist/cjs/pagination.js.map +1 -1
  38. package/dist/cjs/resource.d.ts +1 -0
  39. package/dist/cjs/resource.d.ts.map +1 -0
  40. package/dist/cjs/resources/account-numbers.d.ts +26 -0
  41. package/dist/cjs/resources/account-numbers.d.ts.map +1 -0
  42. package/dist/cjs/resources/account-numbers.js.map +1 -1
  43. package/dist/cjs/resources/account-statements.d.ts +1 -0
  44. package/dist/cjs/resources/account-statements.d.ts.map +1 -0
  45. package/dist/cjs/resources/account-statements.js.map +1 -1
  46. package/dist/cjs/resources/account-transfers.d.ts +20 -11
  47. package/dist/cjs/resources/account-transfers.d.ts.map +1 -0
  48. package/dist/cjs/resources/account-transfers.js.map +1 -1
  49. package/dist/cjs/resources/accounts.d.ts +41 -19
  50. package/dist/cjs/resources/accounts.d.ts.map +1 -0
  51. package/dist/cjs/resources/accounts.js.map +1 -1
  52. package/dist/cjs/resources/ach-prenotifications.d.ts +4 -0
  53. package/dist/cjs/resources/ach-prenotifications.d.ts.map +1 -0
  54. package/dist/cjs/resources/ach-prenotifications.js.map +1 -1
  55. package/dist/cjs/resources/ach-transfers.d.ts +89 -9
  56. package/dist/cjs/resources/ach-transfers.d.ts.map +1 -0
  57. package/dist/cjs/resources/ach-transfers.js.map +1 -1
  58. package/dist/cjs/resources/balance-lookups.d.ts +47 -0
  59. package/dist/cjs/resources/balance-lookups.d.ts.map +1 -0
  60. package/dist/cjs/resources/balance-lookups.js +15 -0
  61. package/dist/cjs/resources/balance-lookups.js.map +1 -0
  62. package/dist/cjs/resources/bookkeeping-accounts.d.ts +71 -0
  63. package/dist/cjs/resources/bookkeeping-accounts.d.ts.map +1 -0
  64. package/dist/cjs/resources/bookkeeping-accounts.js +29 -0
  65. package/dist/cjs/resources/bookkeeping-accounts.js.map +1 -0
  66. package/dist/cjs/resources/bookkeeping-entries.d.ts +43 -0
  67. package/dist/cjs/resources/bookkeeping-entries.d.ts.map +1 -0
  68. package/dist/cjs/resources/bookkeeping-entries.js +19 -0
  69. package/dist/cjs/resources/bookkeeping-entries.js.map +1 -0
  70. package/dist/cjs/resources/bookkeeping-entry-sets.d.ts +83 -0
  71. package/dist/cjs/resources/bookkeeping-entry-sets.d.ts.map +1 -0
  72. package/dist/cjs/resources/bookkeeping-entry-sets.js +15 -0
  73. package/dist/cjs/resources/bookkeeping-entry-sets.js.map +1 -0
  74. package/dist/cjs/resources/card-disputes.d.ts +13 -3
  75. package/dist/cjs/resources/card-disputes.d.ts.map +1 -0
  76. package/dist/cjs/resources/card-disputes.js.map +1 -1
  77. package/dist/cjs/resources/card-profiles.d.ts +18 -2
  78. package/dist/cjs/resources/card-profiles.d.ts.map +1 -0
  79. package/dist/cjs/resources/card-profiles.js.map +1 -1
  80. package/dist/cjs/resources/cards.d.ts +31 -2
  81. package/dist/cjs/resources/cards.d.ts.map +1 -0
  82. package/dist/cjs/resources/cards.js.map +1 -1
  83. package/dist/cjs/resources/check-deposits.d.ts +16 -1
  84. package/dist/cjs/resources/check-deposits.d.ts.map +1 -0
  85. package/dist/cjs/resources/check-deposits.js.map +1 -1
  86. package/dist/cjs/resources/check-transfers.d.ts +104 -5
  87. package/dist/cjs/resources/check-transfers.d.ts.map +1 -0
  88. package/dist/cjs/resources/check-transfers.js.map +1 -1
  89. package/dist/cjs/resources/declined-transactions.d.ts +85 -23
  90. package/dist/cjs/resources/declined-transactions.d.ts.map +1 -0
  91. package/dist/cjs/resources/declined-transactions.js.map +1 -1
  92. package/dist/cjs/resources/digital-wallet-tokens.d.ts +1 -0
  93. package/dist/cjs/resources/digital-wallet-tokens.d.ts.map +1 -0
  94. package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -1
  95. package/dist/cjs/resources/documents.d.ts +105 -4
  96. package/dist/cjs/resources/documents.d.ts.map +1 -0
  97. package/dist/cjs/resources/documents.js.map +1 -1
  98. package/dist/cjs/resources/entities/entities.d.ts +363 -136
  99. package/dist/cjs/resources/entities/entities.d.ts.map +1 -0
  100. package/dist/cjs/resources/entities/entities.js +1 -1
  101. package/dist/cjs/resources/entities/entities.js.map +1 -1
  102. package/dist/cjs/resources/entities/index.d.ts +7 -1
  103. package/dist/cjs/resources/entities/index.d.ts.map +1 -0
  104. package/dist/cjs/resources/entities/index.js +8 -1
  105. package/dist/cjs/resources/entities/index.js.map +1 -1
  106. package/dist/cjs/resources/entities/supplemental-documents.d.ts +36 -0
  107. package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +1 -0
  108. package/dist/cjs/resources/entities/supplemental-documents.js +14 -1
  109. package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -1
  110. package/dist/cjs/resources/event-subscriptions.d.ts +5 -0
  111. package/dist/cjs/resources/event-subscriptions.d.ts.map +1 -0
  112. package/dist/cjs/resources/event-subscriptions.js.map +1 -1
  113. package/dist/cjs/resources/events.d.ts +30 -24
  114. package/dist/cjs/resources/events.d.ts.map +1 -0
  115. package/dist/cjs/resources/events.js.map +1 -1
  116. package/dist/cjs/resources/exports.d.ts +162 -0
  117. package/dist/cjs/resources/exports.d.ts.map +1 -0
  118. package/dist/cjs/resources/exports.js +31 -0
  119. package/dist/cjs/resources/exports.js.map +1 -0
  120. package/dist/cjs/resources/external-accounts.d.ts +4 -2
  121. package/dist/cjs/resources/external-accounts.d.ts.map +1 -0
  122. package/dist/cjs/resources/external-accounts.js.map +1 -1
  123. package/dist/cjs/resources/files.d.ts +10 -4
  124. package/dist/cjs/resources/files.d.ts.map +1 -0
  125. package/dist/cjs/resources/files.js.map +1 -1
  126. package/dist/cjs/resources/groups.d.ts +1 -0
  127. package/dist/cjs/resources/groups.d.ts.map +1 -0
  128. package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +4 -0
  129. package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts.map +1 -0
  130. package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -1
  131. package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +1 -0
  132. package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts.map +1 -0
  133. package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -1
  134. package/dist/cjs/resources/index.d.ts +29 -0
  135. package/dist/cjs/resources/index.d.ts.map +1 -0
  136. package/dist/cjs/resources/index.js +100 -9
  137. package/dist/cjs/resources/index.js.map +1 -1
  138. package/dist/cjs/resources/limits.d.ts +1 -0
  139. package/dist/cjs/resources/limits.d.ts.map +1 -0
  140. package/dist/cjs/resources/limits.js.map +1 -1
  141. package/dist/cjs/resources/oauth-connections.d.ts +1 -0
  142. package/dist/cjs/resources/oauth-connections.d.ts.map +1 -0
  143. package/dist/cjs/resources/oauth-connections.js.map +1 -1
  144. package/dist/cjs/resources/pending-transactions.d.ts +115 -36
  145. package/dist/cjs/resources/pending-transactions.d.ts.map +1 -0
  146. package/dist/cjs/resources/pending-transactions.js.map +1 -1
  147. package/dist/cjs/resources/programs.d.ts +48 -0
  148. package/dist/cjs/resources/programs.d.ts.map +1 -0
  149. package/dist/cjs/resources/programs.js +25 -0
  150. package/dist/cjs/resources/programs.js.map +1 -0
  151. package/dist/cjs/resources/real-time-decisions.d.ts +43 -7
  152. package/dist/cjs/resources/real-time-decisions.d.ts.map +1 -0
  153. package/dist/cjs/resources/real-time-payments-transfers.d.ts +287 -0
  154. package/dist/cjs/resources/real-time-payments-transfers.d.ts.map +1 -0
  155. package/dist/cjs/resources/real-time-payments-transfers.js +35 -0
  156. package/dist/cjs/resources/real-time-payments-transfers.js.map +1 -0
  157. package/dist/cjs/resources/routing-numbers.d.ts +1 -0
  158. package/dist/cjs/resources/routing-numbers.d.ts.map +1 -0
  159. package/dist/cjs/resources/shared.d.ts +1 -0
  160. package/dist/cjs/resources/shared.d.ts.map +1 -0
  161. package/dist/cjs/resources/simulations/account-statements.d.ts +1 -0
  162. package/dist/cjs/resources/simulations/account-statements.d.ts.map +1 -0
  163. package/dist/cjs/resources/simulations/account-transfers.d.ts +1 -0
  164. package/dist/cjs/resources/simulations/account-transfers.d.ts.map +1 -0
  165. package/dist/cjs/resources/simulations/ach-transfers.d.ts +470 -157
  166. package/dist/cjs/resources/simulations/ach-transfers.d.ts.map +1 -0
  167. package/dist/cjs/resources/simulations/card-disputes.d.ts +1 -0
  168. package/dist/cjs/resources/simulations/card-disputes.d.ts.map +1 -0
  169. package/dist/cjs/resources/simulations/card-refunds.d.ts +1 -0
  170. package/dist/cjs/resources/simulations/card-refunds.d.ts.map +1 -0
  171. package/dist/cjs/resources/simulations/cards.d.ts +188 -56
  172. package/dist/cjs/resources/simulations/cards.d.ts.map +1 -0
  173. package/dist/cjs/resources/simulations/check-deposits.d.ts +1 -0
  174. package/dist/cjs/resources/simulations/check-deposits.d.ts.map +1 -0
  175. package/dist/cjs/resources/simulations/check-transfers.d.ts +16 -0
  176. package/dist/cjs/resources/simulations/check-transfers.d.ts.map +1 -0
  177. package/dist/cjs/resources/simulations/check-transfers.js +10 -0
  178. package/dist/cjs/resources/simulations/check-transfers.js.map +1 -1
  179. package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +1 -0
  180. package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -0
  181. package/dist/cjs/resources/simulations/documents.d.ts +1 -0
  182. package/dist/cjs/resources/simulations/documents.d.ts.map +1 -0
  183. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +1 -0
  184. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -0
  185. package/dist/cjs/resources/simulations/index.d.ts +5 -0
  186. package/dist/cjs/resources/simulations/index.d.ts.map +1 -0
  187. package/dist/cjs/resources/simulations/interest-payments.d.ts +1237 -0
  188. package/dist/cjs/resources/simulations/interest-payments.d.ts.map +1 -0
  189. package/dist/cjs/resources/simulations/interest-payments.js +16 -0
  190. package/dist/cjs/resources/simulations/interest-payments.js.map +1 -0
  191. package/dist/cjs/resources/simulations/programs.d.ts +21 -0
  192. package/dist/cjs/resources/simulations/programs.d.ts.map +1 -0
  193. package/dist/cjs/resources/simulations/programs.js +17 -0
  194. package/dist/cjs/resources/simulations/programs.js.map +1 -0
  195. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +470 -155
  196. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts.map +1 -0
  197. package/dist/cjs/resources/simulations/real-time-payments-transfers.js +11 -0
  198. package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -1
  199. package/dist/cjs/resources/simulations/simulations.d.ts +5 -0
  200. package/dist/cjs/resources/simulations/simulations.d.ts.map +1 -0
  201. package/dist/cjs/resources/simulations/simulations.js +4 -0
  202. package/dist/cjs/resources/simulations/simulations.js.map +1 -1
  203. package/dist/cjs/resources/simulations/wire-transfers.d.ts +332 -133
  204. package/dist/cjs/resources/simulations/wire-transfers.d.ts.map +1 -0
  205. package/dist/cjs/resources/transactions.d.ts +353 -165
  206. package/dist/cjs/resources/transactions.d.ts.map +1 -0
  207. package/dist/cjs/resources/transactions.js.map +1 -1
  208. package/dist/cjs/resources/wire-drawdown-requests.d.ts +5 -0
  209. package/dist/cjs/resources/wire-drawdown-requests.d.ts.map +1 -0
  210. package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -1
  211. package/dist/cjs/resources/wire-transfers.d.ts +39 -4
  212. package/dist/cjs/resources/wire-transfers.d.ts.map +1 -0
  213. package/dist/cjs/resources/wire-transfers.js.map +1 -1
  214. package/dist/cjs/streaming.d.ts +13 -0
  215. package/dist/cjs/streaming.d.ts.map +1 -0
  216. package/dist/cjs/streaming.js +282 -0
  217. package/dist/cjs/streaming.js.map +1 -0
  218. package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
  219. package/dist/cjs/tests/api-resources/account-numbers.test.d.ts.map +1 -0
  220. package/dist/cjs/tests/api-resources/account-numbers.test.js +25 -28
  221. package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -1
  222. package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
  223. package/dist/cjs/tests/api-resources/account-statements.test.d.ts.map +1 -0
  224. package/dist/cjs/tests/api-resources/account-statements.test.js +7 -20
  225. package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -1
  226. package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
  227. package/dist/cjs/tests/api-resources/account-transfers.test.d.ts.map +1 -0
  228. package/dist/cjs/tests/api-resources/account-transfers.test.js +16 -29
  229. package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -1
  230. package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
  231. package/dist/cjs/tests/api-resources/accounts.test.d.ts.map +1 -0
  232. package/dist/cjs/tests/api-resources/accounts.test.js +22 -23
  233. package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -1
  234. package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
  235. package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts.map +1 -0
  236. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +12 -24
  237. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -1
  238. package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
  239. package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts.map +1 -0
  240. package/dist/cjs/tests/api-resources/ach-transfers.test.js +17 -31
  241. package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -1
  242. package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts +2 -0
  243. package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts.map +1 -0
  244. package/dist/cjs/tests/api-resources/balance-lookups.test.js +55 -0
  245. package/dist/cjs/tests/api-resources/balance-lookups.test.js.map +1 -0
  246. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts +2 -0
  247. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts.map +1 -0
  248. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js +78 -0
  249. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js.map +1 -0
  250. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts +2 -0
  251. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts.map +1 -0
  252. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js +65 -0
  253. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js.map +1 -0
  254. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts +2 -0
  255. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts.map +1 -0
  256. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js +66 -0
  257. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js.map +1 -0
  258. package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +1 -0
  259. package/dist/cjs/tests/api-resources/card-disputes.test.d.ts.map +1 -0
  260. package/dist/cjs/tests/api-resources/card-disputes.test.js +18 -24
  261. package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -1
  262. package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
  263. package/dist/cjs/tests/api-resources/card-profiles.test.d.ts.map +1 -0
  264. package/dist/cjs/tests/api-resources/card-profiles.test.js +28 -19
  265. package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -1
  266. package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
  267. package/dist/cjs/tests/api-resources/cards.test.d.ts.map +1 -0
  268. package/dist/cjs/tests/api-resources/cards.test.js +13 -35
  269. package/dist/cjs/tests/api-resources/cards.test.js.map +1 -1
  270. package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
  271. package/dist/cjs/tests/api-resources/check-deposits.test.d.ts.map +1 -0
  272. package/dist/cjs/tests/api-resources/check-deposits.test.js +24 -27
  273. package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -1
  274. package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
  275. package/dist/cjs/tests/api-resources/check-transfers.test.d.ts.map +1 -0
  276. package/dist/cjs/tests/api-resources/check-transfers.test.js +27 -40
  277. package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -1
  278. package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
  279. package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts.map +1 -0
  280. package/dist/cjs/tests/api-resources/declined-transactions.test.js +9 -23
  281. package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -1
  282. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
  283. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts.map +1 -0
  284. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +8 -21
  285. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -1
  286. package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
  287. package/dist/cjs/tests/api-resources/documents.test.d.ts.map +1 -0
  288. package/dist/cjs/tests/api-resources/documents.test.js +15 -23
  289. package/dist/cjs/tests/api-resources/documents.test.js.map +1 -1
  290. package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
  291. package/dist/cjs/tests/api-resources/entities/entities.test.d.ts.map +1 -0
  292. package/dist/cjs/tests/api-resources/entities/entities.test.js +40 -31
  293. package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -1
  294. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
  295. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts.map +1 -0
  296. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +25 -6
  297. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -1
  298. package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
  299. package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts.map +1 -0
  300. package/dist/cjs/tests/api-resources/event-subscriptions.test.js +10 -20
  301. package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -1
  302. package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
  303. package/dist/cjs/tests/api-resources/events.test.d.ts.map +1 -0
  304. package/dist/cjs/tests/api-resources/events.test.js +8 -22
  305. package/dist/cjs/tests/api-resources/events.test.js.map +1 -1
  306. package/dist/cjs/tests/api-resources/exports.test.d.ts +2 -0
  307. package/dist/cjs/tests/api-resources/exports.test.d.ts.map +1 -0
  308. package/dist/cjs/tests/api-resources/exports.test.js +101 -0
  309. package/dist/cjs/tests/api-resources/exports.test.js.map +1 -0
  310. package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
  311. package/dist/cjs/tests/api-resources/external-accounts.test.d.ts.map +1 -0
  312. package/dist/cjs/tests/api-resources/external-accounts.test.js +13 -27
  313. package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -1
  314. package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
  315. package/dist/cjs/tests/api-resources/files.test.d.ts.map +1 -0
  316. package/dist/cjs/tests/api-resources/files.test.js +8 -21
  317. package/dist/cjs/tests/api-resources/files.test.js.map +1 -1
  318. package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
  319. package/dist/cjs/tests/api-resources/groups.test.d.ts.map +1 -0
  320. package/dist/cjs/tests/api-resources/groups.test.js +6 -5
  321. package/dist/cjs/tests/api-resources/groups.test.js.map +1 -1
  322. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +1 -0
  323. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts.map +1 -0
  324. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +16 -12
  325. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -1
  326. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +1 -0
  327. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts.map +1 -0
  328. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +6 -9
  329. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -1
  330. package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
  331. package/dist/cjs/tests/api-resources/limits.test.d.ts.map +1 -0
  332. package/dist/cjs/tests/api-resources/limits.test.js +14 -17
  333. package/dist/cjs/tests/api-resources/limits.test.js.map +1 -1
  334. package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
  335. package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts.map +1 -0
  336. package/dist/cjs/tests/api-resources/oauth-connections.test.js +6 -9
  337. package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -1
  338. package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
  339. package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts.map +1 -0
  340. package/dist/cjs/tests/api-resources/pending-transactions.test.js +13 -17
  341. package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -1
  342. package/dist/cjs/tests/api-resources/programs.test.d.ts +2 -0
  343. package/dist/cjs/tests/api-resources/programs.test.d.ts.map +1 -0
  344. package/dist/cjs/tests/api-resources/programs.test.js +73 -0
  345. package/dist/cjs/tests/api-resources/programs.test.js.map +1 -0
  346. package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +1 -0
  347. package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts.map +1 -0
  348. package/dist/cjs/tests/api-resources/real-time-decisions.test.js +6 -16
  349. package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -1
  350. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts +2 -0
  351. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts.map +1 -0
  352. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js +113 -0
  353. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js.map +1 -0
  354. package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +1 -0
  355. package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts.map +1 -0
  356. package/dist/cjs/tests/api-resources/routing-numbers.test.js +6 -5
  357. package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -1
  358. package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
  359. package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts.map +1 -0
  360. package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +11 -8
  361. package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -1
  362. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
  363. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts.map +1 -0
  364. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +5 -4
  365. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -1
  366. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
  367. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts.map +1 -0
  368. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +13 -19
  369. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -1
  370. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
  371. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts.map +1 -0
  372. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +8 -7
  373. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -1
  374. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
  375. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts.map +1 -0
  376. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +11 -8
  377. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -1
  378. package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
  379. package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts.map +1 -0
  380. package/dist/cjs/tests/api-resources/simulations/cards.test.js +12 -10
  381. package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -1
  382. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
  383. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts.map +1 -0
  384. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +5 -4
  385. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -1
  386. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
  387. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts.map +1 -0
  388. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +23 -4
  389. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -1
  390. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +1 -0
  391. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts.map +1 -0
  392. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +11 -8
  393. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -1
  394. package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
  395. package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts.map +1 -0
  396. package/dist/cjs/tests/api-resources/simulations/documents.test.js +10 -7
  397. package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -1
  398. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +1 -0
  399. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts.map +1 -0
  400. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +29 -28
  401. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -1
  402. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts +2 -0
  403. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts.map +1 -0
  404. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js +58 -0
  405. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js.map +1 -0
  406. package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts +2 -0
  407. package/dist/cjs/tests/api-resources/simulations/programs.test.d.ts.map +1 -0
  408. package/dist/cjs/tests/api-resources/simulations/programs.test.js +52 -0
  409. package/dist/cjs/tests/api-resources/simulations/programs.test.js.map +1 -0
  410. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +1 -0
  411. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts.map +1 -0
  412. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +20 -12
  413. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -1
  414. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
  415. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts.map +1 -0
  416. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +11 -10
  417. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -1
  418. package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
  419. package/dist/cjs/tests/api-resources/transactions.test.d.ts.map +1 -0
  420. package/dist/cjs/tests/api-resources/transactions.test.js +11 -28
  421. package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -1
  422. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
  423. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts.map +1 -0
  424. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +20 -23
  425. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -1
  426. package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
  427. package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts.map +1 -0
  428. package/dist/cjs/tests/api-resources/wire-transfers.test.js +22 -36
  429. package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -1
  430. package/dist/cjs/tests/form.test.d.ts +1 -0
  431. package/dist/cjs/tests/form.test.d.ts.map +1 -0
  432. package/dist/cjs/tests/form.test.js +4 -3
  433. package/dist/cjs/tests/index.test.d.ts +1 -0
  434. package/dist/cjs/tests/index.test.d.ts.map +1 -0
  435. package/dist/cjs/tests/index.test.js +36 -4
  436. package/dist/cjs/tests/index.test.js.map +1 -1
  437. package/dist/cjs/tests/responses.test.d.ts +1 -0
  438. package/dist/cjs/tests/responses.test.d.ts.map +1 -0
  439. package/dist/cjs/tests/responses.test.js +4 -3
  440. package/dist/cjs/version.d.ts +2 -1
  441. package/dist/cjs/version.d.ts.map +1 -0
  442. package/dist/cjs/version.js +1 -1
  443. package/dist/cjs/version.js.map +1 -1
  444. package/error.ts +505 -0
  445. package/examples/api-error.ts +21 -0
  446. package/fetch-polyfill.ts +2 -2
  447. package/index.ts +90 -20
  448. package/package.json +2 -2
  449. package/pagination.ts +3 -0
  450. package/release-please-config.json +61 -0
  451. package/resources/account-numbers.ts +30 -1
  452. package/resources/account-statements.ts +0 -1
  453. package/resources/account-transfers.ts +21 -13
  454. package/resources/accounts.ts +48 -23
  455. package/resources/ach-prenotifications.ts +3 -1
  456. package/resources/ach-transfers.ts +92 -11
  457. package/resources/balance-lookups.ts +57 -0
  458. package/resources/bookkeeping-accounts.ts +98 -0
  459. package/resources/bookkeeping-entries.ts +62 -0
  460. package/resources/bookkeeping-entry-sets.ts +100 -0
  461. package/resources/card-disputes.ts +12 -4
  462. package/resources/card-profiles.ts +17 -3
  463. package/resources/cards.ts +30 -3
  464. package/resources/check-deposits.ts +15 -2
  465. package/resources/check-transfers.ts +117 -7
  466. package/resources/declined-transactions.ts +96 -27
  467. package/resources/digital-wallet-tokens.ts +0 -1
  468. package/resources/documents.ts +104 -5
  469. package/resources/entities/entities.ts +443 -212
  470. package/resources/entities/index.ts +6 -1
  471. package/resources/entities/supplemental-documents.ts +46 -0
  472. package/resources/event-subscriptions.ts +4 -1
  473. package/resources/events.ts +33 -29
  474. package/resources/exports.ts +204 -0
  475. package/resources/external-accounts.ts +3 -3
  476. package/resources/files.ts +9 -5
  477. package/resources/inbound-ach-transfer-returns.ts +3 -1
  478. package/resources/inbound-wire-drawdown-requests.ts +0 -1
  479. package/resources/index.ts +28 -0
  480. package/resources/limits.ts +0 -1
  481. package/resources/oauth-connections.ts +0 -1
  482. package/resources/pending-transactions.ts +126 -48
  483. package/resources/programs.ts +70 -0
  484. package/resources/real-time-decisions.ts +43 -8
  485. package/resources/real-time-payments-transfers.ts +351 -0
  486. package/resources/simulations/ach-transfers.ts +504 -192
  487. package/resources/simulations/cards.ts +206 -69
  488. package/resources/simulations/check-transfers.ts +19 -0
  489. package/resources/simulations/index.ts +4 -0
  490. package/resources/simulations/interest-payments.ts +1501 -0
  491. package/resources/simulations/programs.ts +26 -0
  492. package/resources/simulations/real-time-payments-transfers.ts +512 -190
  493. package/resources/simulations/simulations.ts +4 -0
  494. package/resources/simulations/wire-transfers.ts +354 -165
  495. package/resources/transactions.ts +379 -202
  496. package/resources/wire-drawdown-requests.ts +4 -1
  497. package/resources/wire-transfers.ts +43 -6
  498. package/streaming.ts +199 -0
  499. package/tests/api-resources/account-numbers.test.ts +22 -25
  500. package/tests/api-resources/account-statements.test.ts +4 -17
  501. package/tests/api-resources/account-transfers.test.ts +13 -26
  502. package/tests/api-resources/accounts.test.ts +19 -20
  503. package/tests/api-resources/ach-prenotifications.test.ts +9 -21
  504. package/tests/api-resources/ach-transfers.test.ts +14 -28
  505. package/tests/api-resources/balance-lookups.test.ts +18 -0
  506. package/tests/api-resources/bookkeeping-accounts.test.ts +38 -0
  507. package/tests/api-resources/bookkeeping-entries.test.ts +25 -0
  508. package/tests/api-resources/bookkeeping-entry-sets.test.ts +29 -0
  509. package/tests/api-resources/card-disputes.test.ts +15 -21
  510. package/tests/api-resources/card-profiles.test.ts +25 -16
  511. package/tests/api-resources/cards.test.ts +10 -32
  512. package/tests/api-resources/check-deposits.test.ts +21 -24
  513. package/tests/api-resources/check-transfers.test.ts +24 -37
  514. package/tests/api-resources/declined-transactions.test.ts +6 -20
  515. package/tests/api-resources/digital-wallet-tokens.test.ts +5 -18
  516. package/tests/api-resources/documents.test.ts +8 -20
  517. package/tests/api-resources/entities/entities.test.ts +37 -31
  518. package/tests/api-resources/entities/supplemental-documents.test.ts +22 -3
  519. package/tests/api-resources/event-subscriptions.test.ts +7 -17
  520. package/tests/api-resources/events.test.ts +5 -19
  521. package/tests/api-resources/exports.test.ts +64 -0
  522. package/tests/api-resources/external-accounts.test.ts +10 -24
  523. package/tests/api-resources/files.test.ts +5 -19
  524. package/tests/api-resources/groups.test.ts +3 -2
  525. package/tests/api-resources/inbound-ach-transfer-returns.test.ts +13 -9
  526. package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +3 -6
  527. package/tests/api-resources/limits.test.ts +11 -14
  528. package/tests/api-resources/oauth-connections.test.ts +3 -6
  529. package/tests/api-resources/pending-transactions.test.ts +10 -14
  530. package/tests/api-resources/programs.test.ts +36 -0
  531. package/tests/api-resources/real-time-decisions.test.ts +3 -13
  532. package/tests/api-resources/real-time-payments-transfers.test.ts +76 -0
  533. package/tests/api-resources/routing-numbers.test.ts +3 -2
  534. package/tests/api-resources/simulations/account-statements.test.ts +8 -5
  535. package/tests/api-resources/simulations/account-transfers.test.ts +2 -1
  536. package/tests/api-resources/simulations/ach-transfers.test.ts +10 -16
  537. package/tests/api-resources/simulations/card-disputes.test.ts +5 -4
  538. package/tests/api-resources/simulations/card-refunds.test.ts +8 -5
  539. package/tests/api-resources/simulations/cards.test.ts +9 -7
  540. package/tests/api-resources/simulations/check-deposits.test.ts +2 -1
  541. package/tests/api-resources/simulations/check-transfers.test.ts +14 -1
  542. package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +8 -5
  543. package/tests/api-resources/simulations/documents.test.ts +7 -4
  544. package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +26 -25
  545. package/tests/api-resources/simulations/interest-payments.test.ts +15 -0
  546. package/tests/api-resources/simulations/programs.test.ts +15 -0
  547. package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +17 -9
  548. package/tests/api-resources/simulations/wire-transfers.test.ts +8 -7
  549. package/tests/api-resources/transactions.test.ts +8 -25
  550. package/tests/api-resources/wire-drawdown-requests.test.ts +17 -20
  551. package/tests/api-resources/wire-transfers.test.ts +19 -33
  552. package/tests/index.test.ts +30 -1
  553. package/tsconfig.json +2 -0
  554. package/version.ts +1 -1
@@ -76,6 +76,11 @@ export interface ACHTransferSimulation {
76
76
  }
77
77
 
78
78
  export namespace ACHTransferSimulation {
79
+ /**
80
+ * If the ACH Transfer attempt succeeds, this will contain the resulting
81
+ * [Transaction](#transactions) object. The Transaction's `source` will be of
82
+ * `category: inbound_ach_transfer`.
83
+ */
79
84
  export interface Transaction {
80
85
  /**
81
86
  * The identifier for the Account the Transaction belongs to.
@@ -122,7 +127,7 @@ export namespace ACHTransferSimulation {
122
127
  /**
123
128
  * The type of the route this Transaction came through.
124
129
  */
125
- route_type: string | null;
130
+ route_type: 'account_number' | 'card' | null;
126
131
 
127
132
  /**
128
133
  * This is an object giving more details on the network-level event that caused the
@@ -140,6 +145,12 @@ export namespace ACHTransferSimulation {
140
145
  }
141
146
 
142
147
  export namespace Transaction {
148
+ /**
149
+ * This is an object giving more details on the network-level event that caused the
150
+ * Transaction. Note that for backwards compatibility reasons, additional
151
+ * undocumented keys may appear in this object. These should be treated as
152
+ * deprecated and will be removed in the future.
153
+ */
143
154
  export interface Source {
144
155
  /**
145
156
  * A Account Transfer Intention object. This field will be present in the JSON
@@ -147,18 +158,6 @@ export namespace ACHTransferSimulation {
147
158
  */
148
159
  account_transfer_intention: Source.AccountTransferIntention | null;
149
160
 
150
- /**
151
- * A ACH Check Conversion object. This field will be present in the JSON response
152
- * if and only if `category` is equal to `ach_check_conversion`.
153
- */
154
- ach_check_conversion: Source.ACHCheckConversion | null;
155
-
156
- /**
157
- * A ACH Check Conversion Return object. This field will be present in the JSON
158
- * response if and only if `category` is equal to `ach_check_conversion_return`.
159
- */
160
- ach_check_conversion_return: Source.ACHCheckConversionReturn | null;
161
-
162
161
  /**
163
162
  * A ACH Transfer Intention object. This field will be present in the JSON response
164
163
  * if and only if `category` is equal to `ach_transfer_intention`.
@@ -190,16 +189,10 @@ export namespace ACHTransferSimulation {
190
189
  card_refund: Source.CardRefund | null;
191
190
 
192
191
  /**
193
- * A Deprecated Card Refund object. This field will be present in the JSON response
194
- * if and only if `category` is equal to `card_route_refund`.
192
+ * A Card Revenue Payment object. This field will be present in the JSON response
193
+ * if and only if `category` is equal to `card_revenue_payment`.
195
194
  */
196
- card_route_refund: Source.CardRouteRefund | null;
197
-
198
- /**
199
- * A Deprecated Card Settlement object. This field will be present in the JSON
200
- * response if and only if `category` is equal to `card_route_settlement`.
201
- */
202
- card_route_settlement: Source.CardRouteSettlement | null;
195
+ card_revenue_payment: Source.CardRevenuePayment | null;
203
196
 
204
197
  /**
205
198
  * A Card Settlement object. This field will be present in the JSON response if and
@@ -214,22 +207,20 @@ export namespace ACHTransferSimulation {
214
207
  */
215
208
  category:
216
209
  | 'account_transfer_intention'
217
- | 'ach_check_conversion_return'
218
- | 'ach_check_conversion'
219
210
  | 'ach_transfer_intention'
220
211
  | 'ach_transfer_rejection'
221
212
  | 'ach_transfer_return'
222
213
  | 'card_dispute_acceptance'
223
214
  | 'card_refund'
224
215
  | 'card_settlement'
216
+ | 'card_revenue_payment'
225
217
  | 'check_deposit_acceptance'
226
218
  | 'check_deposit_return'
227
219
  | 'check_transfer_intention'
228
220
  | 'check_transfer_return'
229
221
  | 'check_transfer_rejection'
230
222
  | 'check_transfer_stop_payment_request'
231
- | 'dispute_resolution'
232
- | 'empyreal_cash_deposit'
223
+ | 'fee_payment'
233
224
  | 'inbound_ach_transfer'
234
225
  | 'inbound_ach_transfer_return_intention'
235
226
  | 'inbound_check'
@@ -240,14 +231,9 @@ export namespace ACHTransferSimulation {
240
231
  | 'inbound_wire_reversal'
241
232
  | 'inbound_wire_transfer'
242
233
  | 'interest_payment'
243
- | 'internal_general_ledger_transaction'
244
234
  | 'internal_source'
245
- | 'card_route_refund'
246
- | 'card_route_settlement'
247
235
  | 'real_time_payments_transfer_acknowledgement'
248
236
  | 'sample_funds'
249
- | 'wire_drawdown_payment_intention'
250
- | 'wire_drawdown_payment_rejection'
251
237
  | 'wire_transfer_intention'
252
238
  | 'wire_transfer_rejection'
253
239
  | 'other';
@@ -290,16 +276,10 @@ export namespace ACHTransferSimulation {
290
276
  check_transfer_stop_payment_request: Source.CheckTransferStopPaymentRequest | null;
291
277
 
292
278
  /**
293
- * A Dispute Resolution object. This field will be present in the JSON response if
294
- * and only if `category` is equal to `dispute_resolution`.
295
- */
296
- dispute_resolution: Source.DisputeResolution | null;
297
-
298
- /**
299
- * A Empyreal Cash Deposit object. This field will be present in the JSON response
300
- * if and only if `category` is equal to `empyreal_cash_deposit`.
279
+ * A Fee Payment object. This field will be present in the JSON response if and
280
+ * only if `category` is equal to `fee_payment`.
301
281
  */
302
- empyreal_cash_deposit: Source.EmpyrealCashDeposit | null;
282
+ fee_payment: Source.FeePayment | null;
303
283
 
304
284
  /**
305
285
  * A Inbound ACH Transfer object. This field will be present in the JSON response
@@ -365,24 +345,17 @@ export namespace ACHTransferSimulation {
365
345
  internal_source: Source.InternalSource | null;
366
346
 
367
347
  /**
368
- * A Sample Funds object. This field will be present in the JSON response if and
369
- * only if `category` is equal to `sample_funds`.
370
- */
371
- sample_funds: Source.SampleFunds | null;
372
-
373
- /**
374
- * A Wire Drawdown Payment Intention object. This field will be present in the JSON
375
- * response if and only if `category` is equal to
376
- * `wire_drawdown_payment_intention`.
348
+ * A Real Time Payments Transfer Acknowledgement object. This field will be present
349
+ * in the JSON response if and only if `category` is equal to
350
+ * `real_time_payments_transfer_acknowledgement`.
377
351
  */
378
- wire_drawdown_payment_intention: Source.WireDrawdownPaymentIntention | null;
352
+ real_time_payments_transfer_acknowledgement: Source.RealTimePaymentsTransferAcknowledgement | null;
379
353
 
380
354
  /**
381
- * A Wire Drawdown Payment Rejection object. This field will be present in the JSON
382
- * response if and only if `category` is equal to
383
- * `wire_drawdown_payment_rejection`.
355
+ * A Sample Funds object. This field will be present in the JSON response if and
356
+ * only if `category` is equal to `sample_funds`.
384
357
  */
385
- wire_drawdown_payment_rejection: Source.WireDrawdownPaymentRejection | null;
358
+ sample_funds: Source.SampleFunds | null;
386
359
 
387
360
  /**
388
361
  * A Wire Transfer Intention object. This field will be present in the JSON
@@ -398,6 +371,10 @@ export namespace ACHTransferSimulation {
398
371
  }
399
372
 
400
373
  export namespace Source {
374
+ /**
375
+ * A Account Transfer Intention object. This field will be present in the JSON
376
+ * response if and only if `category` is equal to `account_transfer_intention`.
377
+ */
401
378
  export interface AccountTransferIntention {
402
379
  /**
403
380
  * The pending amount in the minor unit of the transaction's currency. For dollars,
@@ -432,32 +409,10 @@ export namespace ACHTransferSimulation {
432
409
  transfer_id: string;
433
410
  }
434
411
 
435
- export interface ACHCheckConversionReturn {
436
- /**
437
- * The amount in the minor unit of the transaction's currency. For dollars, for
438
- * example, this is cents.
439
- */
440
- amount: number;
441
-
442
- /**
443
- * Why the transfer was returned.
444
- */
445
- return_reason_code: string;
446
- }
447
-
448
- export interface ACHCheckConversion {
449
- /**
450
- * The amount in the minor unit of the transaction's currency. For dollars, for
451
- * example, this is cents.
452
- */
453
- amount: number;
454
-
455
- /**
456
- * The identifier of the File containing an image of the returned check.
457
- */
458
- file_id: string;
459
- }
460
-
412
+ /**
413
+ * A ACH Transfer Intention object. This field will be present in the JSON response
414
+ * if and only if `category` is equal to `ach_transfer_intention`.
415
+ */
461
416
  export interface ACHTransferIntention {
462
417
  account_number: string;
463
418
 
@@ -477,6 +432,10 @@ export namespace ACHTransferSimulation {
477
432
  transfer_id: string;
478
433
  }
479
434
 
435
+ /**
436
+ * A ACH Transfer Rejection object. This field will be present in the JSON response
437
+ * if and only if `category` is equal to `ach_transfer_rejection`.
438
+ */
480
439
  export interface ACHTransferRejection {
481
440
  /**
482
441
  * The identifier of the ACH Transfer that led to this Transaction.
@@ -484,6 +443,10 @@ export namespace ACHTransferSimulation {
484
443
  transfer_id: string;
485
444
  }
486
445
 
446
+ /**
447
+ * A ACH Transfer Return object. This field will be present in the JSON response if
448
+ * and only if `category` is equal to `ach_transfer_return`.
449
+ */
487
450
  export interface ACHTransferReturn {
488
451
  /**
489
452
  * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -491,6 +454,11 @@ export namespace ACHTransferSimulation {
491
454
  */
492
455
  created_at: string;
493
456
 
457
+ /**
458
+ * The three character ACH return code, in the range R01 to R85.
459
+ */
460
+ raw_return_reason_code: string;
461
+
494
462
  /**
495
463
  * Why the ACH Transfer was returned.
496
464
  */
@@ -514,10 +482,58 @@ export namespace ACHTransferSimulation {
514
482
  | 'file_record_edit_criteria'
515
483
  | 'enr_invalid_individual_name'
516
484
  | 'returned_per_odfi_request'
517
- | 'addenda_error'
518
485
  | 'limited_participation_dfi'
519
486
  | 'incorrectly_coded_outbound_international_payment'
520
- | 'other';
487
+ | 'other'
488
+ | 'account_sold_to_another_dfi'
489
+ | 'addenda_error'
490
+ | 'beneficiary_or_account_holder_deceased'
491
+ | 'customer_advised_not_within_authorization_terms'
492
+ | 'corrected_return'
493
+ | 'duplicate_entry'
494
+ | 'duplicate_return'
495
+ | 'enr_duplicate_enrollment'
496
+ | 'enr_invalid_dfi_account_number'
497
+ | 'enr_invalid_individual_id_number'
498
+ | 'enr_invalid_representative_payee_indicator'
499
+ | 'enr_invalid_transaction_code'
500
+ | 'enr_return_of_enr_entry'
501
+ | 'enr_routing_number_check_digit_error'
502
+ | 'entry_not_processed_by_gateway'
503
+ | 'field_error'
504
+ | 'foreign_receiving_dfi_unable_to_settle'
505
+ | 'iat_entry_coding_error'
506
+ | 'improper_effective_entry_date'
507
+ | 'improper_source_document_source_document_presented'
508
+ | 'invalid_company_id'
509
+ | 'invalid_foreign_receiving_dfi_identification'
510
+ | 'invalid_individual_id_number'
511
+ | 'item_and_rck_entry_presented_for_payment'
512
+ | 'item_related_to_rck_entry_is_ineligible'
513
+ | 'mandatory_field_error'
514
+ | 'misrouted_dishonored_return'
515
+ | 'misrouted_return'
516
+ | 'no_errors_found'
517
+ | 'non_acceptance_of_r62_dishonored_return'
518
+ | 'non_participant_in_iat_program'
519
+ | 'permissible_return_entry'
520
+ | 'permissible_return_entry_not_accepted'
521
+ | 'rdfi_non_settlement'
522
+ | 'rdfi_participant_in_check_truncation_program'
523
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
524
+ | 'return_not_a_duplicate'
525
+ | 'return_of_erroneous_or_reversing_debit'
526
+ | 'return_of_improper_credit_entry'
527
+ | 'return_of_improper_debit_entry'
528
+ | 'return_of_xck_entry'
529
+ | 'source_document_presented_for_payment'
530
+ | 'state_law_affecting_rck_acceptance'
531
+ | 'stop_payment_on_item_related_to_rck_entry'
532
+ | 'stop_payment_on_source_document'
533
+ | 'timely_original_return'
534
+ | 'trace_number_error'
535
+ | 'untimely_dishonored_return'
536
+ | 'untimely_return';
521
537
 
522
538
  /**
523
539
  * The identifier of the Tranasaction associated with this return.
@@ -530,6 +546,10 @@ export namespace ACHTransferSimulation {
530
546
  transfer_id: string;
531
547
  }
532
548
 
549
+ /**
550
+ * A Card Dispute Acceptance object. This field will be present in the JSON
551
+ * response if and only if `category` is equal to `card_dispute_acceptance`.
552
+ */
533
553
  export interface CardDisputeAcceptance {
534
554
  /**
535
555
  * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -546,9 +566,13 @@ export namespace ACHTransferSimulation {
546
566
  * The identifier of the Transaction that was created to return the disputed funds
547
567
  * to your account.
548
568
  */
549
- transaction_id: string | null;
569
+ transaction_id: string;
550
570
  }
551
571
 
572
+ /**
573
+ * A Card Refund object. This field will be present in the JSON response if and
574
+ * only if `category` is equal to `card_refund`.
575
+ */
552
576
  export interface CardRefund {
553
577
  /**
554
578
  * The pending amount in the minor unit of the transaction's currency. For dollars,
@@ -556,17 +580,48 @@ export namespace ACHTransferSimulation {
556
580
  */
557
581
  amount: number;
558
582
 
559
- /**
560
- * The identifier for the Transaction this refunds, if any.
561
- */
562
- card_settlement_transaction_id: string | null;
563
-
564
583
  /**
565
584
  * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
566
585
  * transaction's currency.
567
586
  */
568
587
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
569
588
 
589
+ /**
590
+ * The Card Refund identifier.
591
+ */
592
+ id: string;
593
+
594
+ /**
595
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
596
+ * is transacting with.
597
+ */
598
+ merchant_acceptor_id: string | null;
599
+
600
+ /**
601
+ * The 4-digit MCC describing the merchant's business.
602
+ */
603
+ merchant_category_code: string;
604
+
605
+ /**
606
+ * The city the merchant resides in.
607
+ */
608
+ merchant_city: string | null;
609
+
610
+ /**
611
+ * The country the merchant resides in.
612
+ */
613
+ merchant_country: string;
614
+
615
+ /**
616
+ * The name of the merchant.
617
+ */
618
+ merchant_name: string | null;
619
+
620
+ /**
621
+ * The state the merchant resides in.
622
+ */
623
+ merchant_state: string | null;
624
+
570
625
  /**
571
626
  * A constant representing the object's type. For this resource it will always be
572
627
  * `card_refund`.
@@ -574,6 +629,10 @@ export namespace ACHTransferSimulation {
574
629
  type: 'card_refund';
575
630
  }
576
631
 
632
+ /**
633
+ * A Card Settlement object. This field will be present in the JSON response if and
634
+ * only if `category` is equal to `card_settlement`.
635
+ */
577
636
  export interface CardSettlement {
578
637
  /**
579
638
  * The amount in the minor unit of the transaction's settlement currency. For
@@ -581,20 +640,52 @@ export namespace ACHTransferSimulation {
581
640
  */
582
641
  amount: number;
583
642
 
643
+ /**
644
+ * The Card Authorization that was created prior to this Card Settlement, if on
645
+ * exists.
646
+ */
647
+ card_authorization: string | null;
648
+
584
649
  /**
585
650
  * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
586
651
  * transaction's settlement currency.
587
652
  */
588
653
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
589
654
 
655
+ /**
656
+ * The Card Settlement identifier.
657
+ */
658
+ id: string;
659
+
660
+ /**
661
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
662
+ * is transacting with.
663
+ */
664
+ merchant_acceptor_id: string | null;
665
+
666
+ /**
667
+ * The 4-digit MCC describing the merchant's business.
668
+ */
590
669
  merchant_category_code: string;
591
670
 
671
+ /**
672
+ * The city the merchant resides in.
673
+ */
592
674
  merchant_city: string | null;
593
675
 
676
+ /**
677
+ * The country the merchant resides in.
678
+ */
594
679
  merchant_country: string;
595
680
 
681
+ /**
682
+ * The name of the merchant.
683
+ */
596
684
  merchant_name: string | null;
597
685
 
686
+ /**
687
+ * The state the merchant resides in.
688
+ */
598
689
  merchant_state: string | null;
599
690
 
600
691
  /**
@@ -620,6 +711,43 @@ export namespace ACHTransferSimulation {
620
711
  type: 'card_settlement';
621
712
  }
622
713
 
714
+ /**
715
+ * A Card Revenue Payment object. This field will be present in the JSON response
716
+ * if and only if `category` is equal to `card_revenue_payment`.
717
+ */
718
+ export interface CardRevenuePayment {
719
+ /**
720
+ * The amount in the minor unit of the transaction's currency. For dollars, for
721
+ * example, this is cents.
722
+ */
723
+ amount: number;
724
+
725
+ /**
726
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
727
+ * currency.
728
+ */
729
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
730
+
731
+ /**
732
+ * The end of the period for which this transaction paid interest.
733
+ */
734
+ period_end: string;
735
+
736
+ /**
737
+ * The start of the period for which this transaction paid interest.
738
+ */
739
+ period_start: string;
740
+
741
+ /**
742
+ * The account the card belonged to.
743
+ */
744
+ transacted_on_account_id: string | null;
745
+ }
746
+
747
+ /**
748
+ * A Check Deposit Acceptance object. This field will be present in the JSON
749
+ * response if and only if `category` is equal to `check_deposit_acceptance`.
750
+ */
623
751
  export interface CheckDepositAcceptance {
624
752
  /**
625
753
  * The account number printed on the check.
@@ -661,6 +789,10 @@ export namespace ACHTransferSimulation {
661
789
  serial_number: string | null;
662
790
  }
663
791
 
792
+ /**
793
+ * A Check Deposit Return object. This field will be present in the JSON response
794
+ * if and only if `category` is equal to `check_deposit_return`.
795
+ */
664
796
  export interface CheckDepositReturn {
665
797
  /**
666
798
  * The amount in the minor unit of the transaction's currency. For dollars, for
@@ -690,7 +822,8 @@ export namespace ACHTransferSimulation {
690
822
  | 'stop_payment'
691
823
  | 'unknown_reason'
692
824
  | 'unmatched_details'
693
- | 'unreadable_image';
825
+ | 'unreadable_image'
826
+ | 'endorsement_irregular';
694
827
 
695
828
  /**
696
829
  * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -705,6 +838,10 @@ export namespace ACHTransferSimulation {
705
838
  transaction_id: string;
706
839
  }
707
840
 
841
+ /**
842
+ * A Check Transfer Intention object. This field will be present in the JSON
843
+ * response if and only if `category` is equal to `check_transfer_intention`.
844
+ */
708
845
  export interface CheckTransferIntention {
709
846
  /**
710
847
  * The city of the check's destination.
@@ -753,18 +890,43 @@ export namespace ACHTransferSimulation {
753
890
  transfer_id: string;
754
891
  }
755
892
 
893
+ /**
894
+ * A Check Transfer Return object. This field will be present in the JSON response
895
+ * if and only if `category` is equal to `check_transfer_return`.
896
+ */
756
897
  export interface CheckTransferReturn {
757
898
  /**
758
899
  * If available, a document with additional information about the return.
759
900
  */
760
901
  file_id: string | null;
761
902
 
903
+ /**
904
+ * The reason why the check was returned.
905
+ */
906
+ reason: 'mail_delivery_failure' | 'refused_by_recipient' | 'returned_not_authorized';
907
+
908
+ /**
909
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
910
+ * the check was returned.
911
+ */
912
+ returned_at: string;
913
+
914
+ /**
915
+ * The identifier of the Transaction that was created to credit you for the
916
+ * returned check.
917
+ */
918
+ transaction_id: string | null;
919
+
762
920
  /**
763
921
  * The identifier of the returned Check Transfer.
764
922
  */
765
923
  transfer_id: string;
766
924
  }
767
925
 
926
+ /**
927
+ * A Check Transfer Rejection object. This field will be present in the JSON
928
+ * response if and only if `category` is equal to `check_transfer_rejection`.
929
+ */
768
930
  export interface CheckTransferRejection {
769
931
  /**
770
932
  * The identifier of the Check Transfer that led to this Transaction.
@@ -772,6 +934,11 @@ export namespace ACHTransferSimulation {
772
934
  transfer_id: string;
773
935
  }
774
936
 
937
+ /**
938
+ * A Check Transfer Stop Payment Request object. This field will be present in the
939
+ * JSON response if and only if `category` is equal to
940
+ * `check_transfer_stop_payment_request`.
941
+ */
775
942
  export interface CheckTransferStopPaymentRequest {
776
943
  /**
777
944
  * The time the stop-payment was requested.
@@ -795,7 +962,11 @@ export namespace ACHTransferSimulation {
795
962
  type: 'check_transfer_stop_payment_request';
796
963
  }
797
964
 
798
- export interface DisputeResolution {
965
+ /**
966
+ * A Fee Payment object. This field will be present in the JSON response if and
967
+ * only if `category` is equal to `fee_payment`.
968
+ */
969
+ export interface FeePayment {
799
970
  /**
800
971
  * The amount in the minor unit of the transaction's currency. For dollars, for
801
972
  * example, this is cents.
@@ -803,29 +974,16 @@ export namespace ACHTransferSimulation {
803
974
  amount: number;
804
975
 
805
976
  /**
806
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
807
- * transaction's currency.
977
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
978
+ * currency.
808
979
  */
809
980
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
810
-
811
- /**
812
- * The identifier of the Transaction that was disputed.
813
- */
814
- disputed_transaction_id: string;
815
- }
816
-
817
- export interface EmpyrealCashDeposit {
818
- /**
819
- * The amount in the minor unit of the transaction's currency. For dollars, for
820
- * example, this is cents.
821
- */
822
- amount: number;
823
-
824
- bag_id: string;
825
-
826
- deposit_date: string;
827
981
  }
828
982
 
983
+ /**
984
+ * A Inbound ACH Transfer object. This field will be present in the JSON response
985
+ * if and only if `category` is equal to `inbound_ach_transfer`.
986
+ */
829
987
  export interface InboundACHTransfer {
830
988
  /**
831
989
  * The amount in the minor unit of the destination account currency. For dollars,
@@ -850,6 +1008,10 @@ export namespace ACHTransferSimulation {
850
1008
  trace_number: string;
851
1009
  }
852
1010
 
1011
+ /**
1012
+ * A Inbound Check object. This field will be present in the JSON response if and
1013
+ * only if `category` is equal to `inbound_check`.
1014
+ */
853
1015
  export interface InboundCheck {
854
1016
  /**
855
1017
  * The amount in the minor unit of the destination account currency. For dollars,
@@ -870,6 +1032,11 @@ export namespace ACHTransferSimulation {
870
1032
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
871
1033
  }
872
1034
 
1035
+ /**
1036
+ * A Inbound International ACH Transfer object. This field will be present in the
1037
+ * JSON response if and only if `category` is equal to
1038
+ * `inbound_international_ach_transfer`.
1039
+ */
873
1040
  export interface InboundInternationalACHTransfer {
874
1041
  /**
875
1042
  * The amount in the minor unit of the destination account currency. For dollars,
@@ -948,6 +1115,11 @@ export namespace ACHTransferSimulation {
948
1115
  trace_number: string;
949
1116
  }
950
1117
 
1118
+ /**
1119
+ * A Inbound Real Time Payments Transfer Confirmation object. This field will be
1120
+ * present in the JSON response if and only if `category` is equal to
1121
+ * `inbound_real_time_payments_transfer_confirmation`.
1122
+ */
951
1123
  export interface InboundRealTimePaymentsTransferConfirmation {
952
1124
  /**
953
1125
  * The amount in the minor unit of the transfer's currency. For dollars, for
@@ -992,6 +1164,11 @@ export namespace ACHTransferSimulation {
992
1164
  transaction_identification: string;
993
1165
  }
994
1166
 
1167
+ /**
1168
+ * A Inbound Wire Drawdown Payment Reversal object. This field will be present in
1169
+ * the JSON response if and only if `category` is equal to
1170
+ * `inbound_wire_drawdown_payment_reversal`.
1171
+ */
995
1172
  export interface InboundWireDrawdownPaymentReversal {
996
1173
  /**
997
1174
  * The amount that was reversed.
@@ -1044,6 +1221,10 @@ export namespace ACHTransferSimulation {
1044
1221
  previous_message_input_source: string;
1045
1222
  }
1046
1223
 
1224
+ /**
1225
+ * A Inbound Wire Drawdown Payment object. This field will be present in the JSON
1226
+ * response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
1227
+ */
1047
1228
  export interface InboundWireDrawdownPayment {
1048
1229
  /**
1049
1230
  * The amount in the minor unit of the transaction's currency. For dollars, for
@@ -1076,12 +1257,22 @@ export namespace ACHTransferSimulation {
1076
1257
  originator_to_beneficiary_information: string | null;
1077
1258
  }
1078
1259
 
1260
+ /**
1261
+ * A Inbound Wire Reversal object. This field will be present in the JSON response
1262
+ * if and only if `category` is equal to `inbound_wire_reversal`.
1263
+ */
1079
1264
  export interface InboundWireReversal {
1080
1265
  /**
1081
1266
  * The amount that was reversed.
1082
1267
  */
1083
1268
  amount: number;
1084
1269
 
1270
+ /**
1271
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
1272
+ * the reversal was created.
1273
+ */
1274
+ created_at: string;
1275
+
1085
1276
  /**
1086
1277
  * The description on the reversal message from Fedwire.
1087
1278
  */
@@ -1137,8 +1328,22 @@ export namespace ACHTransferSimulation {
1137
1328
  * institution.
1138
1329
  */
1139
1330
  receiver_financial_institution_information: string | null;
1331
+
1332
+ /**
1333
+ * The ID for the Transaction associated with the transfer reversal.
1334
+ */
1335
+ transaction_id: string | null;
1336
+
1337
+ /**
1338
+ * The ID for the Wire Transfer that is being reversed.
1339
+ */
1340
+ wire_transfer_id: string;
1140
1341
  }
1141
1342
 
1343
+ /**
1344
+ * A Inbound Wire Transfer object. This field will be present in the JSON response
1345
+ * if and only if `category` is equal to `inbound_wire_transfer`.
1346
+ */
1142
1347
  export interface InboundWireTransfer {
1143
1348
  /**
1144
1349
  * The amount in the minor unit of the transaction's currency. For dollars, for
@@ -1179,6 +1384,10 @@ export namespace ACHTransferSimulation {
1179
1384
  originator_to_beneficiary_information_line4: string | null;
1180
1385
  }
1181
1386
 
1387
+ /**
1388
+ * A Interest Payment object. This field will be present in the JSON response if
1389
+ * and only if `category` is equal to `interest_payment`.
1390
+ */
1182
1391
  export interface InterestPayment {
1183
1392
  /**
1184
1393
  * The account on which the interest was accrued.
@@ -1208,6 +1417,10 @@ export namespace ACHTransferSimulation {
1208
1417
  period_start: string;
1209
1418
  }
1210
1419
 
1420
+ /**
1421
+ * A Internal Source object. This field will be present in the JSON response if and
1422
+ * only if `category` is equal to `internal_source`.
1423
+ */
1211
1424
  export interface InternalSource {
1212
1425
  /**
1213
1426
  * The amount in the minor unit of the transaction's currency. For dollars, for
@@ -1222,69 +1435,56 @@ export namespace ACHTransferSimulation {
1222
1435
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1223
1436
 
1224
1437
  reason:
1438
+ | 'account_closure'
1225
1439
  | 'bank_migration'
1226
1440
  | 'cashback'
1441
+ | 'collection_receivable'
1227
1442
  | 'empyreal_adjustment'
1228
1443
  | 'error'
1229
1444
  | 'error_correction'
1230
1445
  | 'fees'
1231
1446
  | 'interest'
1447
+ | 'negative_balance_forgiveness'
1232
1448
  | 'sample_funds'
1233
1449
  | 'sample_funds_return';
1234
1450
  }
1235
1451
 
1236
- export interface CardRouteRefund {
1452
+ /**
1453
+ * A Real Time Payments Transfer Acknowledgement object. This field will be present
1454
+ * in the JSON response if and only if `category` is equal to
1455
+ * `real_time_payments_transfer_acknowledgement`.
1456
+ */
1457
+ export interface RealTimePaymentsTransferAcknowledgement {
1237
1458
  /**
1238
- * The refunded amount in the minor unit of the refunded currency. For dollars, for
1239
- * example, this is cents.
1459
+ * The transfer amount in USD cents.
1240
1460
  */
1241
1461
  amount: number;
1242
1462
 
1243
1463
  /**
1244
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the refund
1245
- * currency.
1464
+ * The destination account number.
1246
1465
  */
1247
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1248
-
1249
- merchant_acceptor_id: string;
1250
-
1251
- merchant_category_code: string | null;
1252
-
1253
- merchant_city: string | null;
1254
-
1255
- merchant_country: string;
1466
+ destination_account_number: string;
1256
1467
 
1257
- merchant_descriptor: string;
1258
-
1259
- merchant_state: string | null;
1260
- }
1261
-
1262
- export interface CardRouteSettlement {
1263
1468
  /**
1264
- * The settled amount in the minor unit of the settlement currency. For dollars,
1265
- * for example, this is cents.
1469
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN).
1266
1470
  */
1267
- amount: number;
1471
+ destination_routing_number: string;
1268
1472
 
1269
1473
  /**
1270
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the settlement
1271
- * currency.
1474
+ * Unstructured information that will show on the recipient's bank statement.
1272
1475
  */
1273
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1274
-
1275
- merchant_acceptor_id: string;
1276
-
1277
- merchant_category_code: string | null;
1476
+ remittance_information: string;
1278
1477
 
1279
- merchant_city: string | null;
1280
-
1281
- merchant_country: string | null;
1282
-
1283
- merchant_descriptor: string;
1284
-
1285
- merchant_state: string | null;
1478
+ /**
1479
+ * The identifier of the Real Time Payments Transfer that led to this Transaction.
1480
+ */
1481
+ transfer_id: string;
1286
1482
  }
1287
1483
 
1484
+ /**
1485
+ * A Sample Funds object. This field will be present in the JSON response if and
1486
+ * only if `category` is equal to `sample_funds`.
1487
+ */
1288
1488
  export interface SampleFunds {
1289
1489
  /**
1290
1490
  * Where the sample funds came from.
@@ -1292,25 +1492,10 @@ export namespace ACHTransferSimulation {
1292
1492
  originator: string;
1293
1493
  }
1294
1494
 
1295
- export interface WireDrawdownPaymentIntention {
1296
- account_number: string;
1297
-
1298
- /**
1299
- * The transfer amount in USD cents.
1300
- */
1301
- amount: number;
1302
-
1303
- message_to_recipient: string;
1304
-
1305
- routing_number: string;
1306
-
1307
- transfer_id: string;
1308
- }
1309
-
1310
- export interface WireDrawdownPaymentRejection {
1311
- transfer_id: string;
1312
- }
1313
-
1495
+ /**
1496
+ * A Wire Transfer Intention object. This field will be present in the JSON
1497
+ * response if and only if `category` is equal to `wire_transfer_intention`.
1498
+ */
1314
1499
  export interface WireTransferIntention {
1315
1500
  /**
1316
1501
  * The destination account number.
@@ -1335,12 +1520,21 @@ export namespace ACHTransferSimulation {
1335
1520
  transfer_id: string;
1336
1521
  }
1337
1522
 
1523
+ /**
1524
+ * A Wire Transfer Rejection object. This field will be present in the JSON
1525
+ * response if and only if `category` is equal to `wire_transfer_rejection`.
1526
+ */
1338
1527
  export interface WireTransferRejection {
1339
1528
  transfer_id: string;
1340
1529
  }
1341
1530
  }
1342
1531
  }
1343
1532
 
1533
+ /**
1534
+ * If the ACH Transfer attempt fails, this will contain the resulting
1535
+ * [Declined Transaction](#declined-transactions) object. The Declined
1536
+ * Transaction's `source` will be of `category: inbound_ach_transfer`.
1537
+ */
1344
1538
  export interface DeclinedTransaction {
1345
1539
  /**
1346
1540
  * The identifier for the Account the Declined Transaction belongs to.
@@ -1385,7 +1579,7 @@ export namespace ACHTransferSimulation {
1385
1579
  /**
1386
1580
  * The type of the route this Declined Transaction came through.
1387
1581
  */
1388
- route_type: string | null;
1582
+ route_type: 'account_number' | 'card' | null;
1389
1583
 
1390
1584
  /**
1391
1585
  * This is an object giving more details on the network-level event that caused the
@@ -1404,6 +1598,13 @@ export namespace ACHTransferSimulation {
1404
1598
  }
1405
1599
 
1406
1600
  export namespace DeclinedTransaction {
1601
+ /**
1602
+ * This is an object giving more details on the network-level event that caused the
1603
+ * Declined Transaction. For example, for a card transaction this lists the
1604
+ * merchant's industry and location. Note that for backwards compatibility reasons,
1605
+ * additional undocumented keys may appear in this object. These should be treated
1606
+ * as deprecated and will be removed in the future.
1607
+ */
1407
1608
  export interface Source {
1408
1609
  /**
1409
1610
  * A ACH Decline object. This field will be present in the JSON response if and
@@ -1417,12 +1618,6 @@ export namespace ACHTransferSimulation {
1417
1618
  */
1418
1619
  card_decline: Source.CardDecline | null;
1419
1620
 
1420
- /**
1421
- * A Deprecated Card Decline object. This field will be present in the JSON
1422
- * response if and only if `category` is equal to `card_route_decline`.
1423
- */
1424
- card_route_decline: Source.CardRouteDecline | null;
1425
-
1426
1621
  /**
1427
1622
  * The type of decline that took place. We may add additional possible values for
1428
1623
  * this enum over time; your application should be able to handle such additions
@@ -1434,7 +1629,7 @@ export namespace ACHTransferSimulation {
1434
1629
  | 'check_decline'
1435
1630
  | 'inbound_real_time_payments_transfer_decline'
1436
1631
  | 'international_ach_decline'
1437
- | 'card_route_decline'
1632
+ | 'wire_decline'
1438
1633
  | 'other';
1439
1634
 
1440
1635
  /**
@@ -1455,9 +1650,19 @@ export namespace ACHTransferSimulation {
1455
1650
  * response if and only if `category` is equal to `international_ach_decline`.
1456
1651
  */
1457
1652
  international_ach_decline: Source.InternationalACHDecline | null;
1653
+
1654
+ /**
1655
+ * A Wire Decline object. This field will be present in the JSON response if and
1656
+ * only if `category` is equal to `wire_decline`.
1657
+ */
1658
+ wire_decline: Source.WireDecline | null;
1458
1659
  }
1459
1660
 
1460
1661
  export namespace Source {
1662
+ /**
1663
+ * A ACH Decline object. This field will be present in the JSON response if and
1664
+ * only if `category` is equal to `ach_decline`.
1665
+ */
1461
1666
  export interface ACHDecline {
1462
1667
  /**
1463
1668
  * The declined amount in the minor unit of the destination account currency. For
@@ -1483,11 +1688,12 @@ export namespace ACHTransferSimulation {
1483
1688
  | 'credit_entry_refused_by_receiver'
1484
1689
  | 'duplicate_return'
1485
1690
  | 'entity_not_active'
1486
- | 'transaction_not_allowed'
1487
1691
  | 'group_locked'
1488
1692
  | 'insufficient_funds'
1693
+ | 'misrouted_return'
1489
1694
  | 'no_ach_route'
1490
- | 'originator_request';
1695
+ | 'originator_request'
1696
+ | 'transaction_not_allowed';
1491
1697
 
1492
1698
  receiver_id_number: string | null;
1493
1699
 
@@ -1496,6 +1702,10 @@ export namespace ACHTransferSimulation {
1496
1702
  trace_number: string;
1497
1703
  }
1498
1704
 
1705
+ /**
1706
+ * A Card Decline object. This field will be present in the JSON response if and
1707
+ * only if `category` is equal to `card_decline`.
1708
+ */
1499
1709
  export interface CardDecline {
1500
1710
  /**
1501
1711
  * The declined amount in the minor unit of the destination account currency. For
@@ -1573,13 +1783,19 @@ export namespace ACHTransferSimulation {
1573
1783
  | 'insufficient_funds'
1574
1784
  | 'cvv2_mismatch'
1575
1785
  | 'transaction_not_allowed'
1786
+ | 'breaches_internal_limit'
1576
1787
  | 'breaches_limit'
1577
1788
  | 'webhook_declined'
1578
1789
  | 'webhook_timed_out'
1579
- | 'declined_by_stand_in_processing';
1790
+ | 'declined_by_stand_in_processing'
1791
+ | 'invalid_physical_card'
1792
+ | 'missing_original_authorization';
1580
1793
  }
1581
1794
 
1582
1795
  export namespace CardDecline {
1796
+ /**
1797
+ * Fields specific to the `network`
1798
+ */
1583
1799
  export interface NetworkDetails {
1584
1800
  /**
1585
1801
  * Fields specific to the `visa` network
@@ -1588,6 +1804,9 @@ export namespace ACHTransferSimulation {
1588
1804
  }
1589
1805
 
1590
1806
  export namespace NetworkDetails {
1807
+ /**
1808
+ * Fields specific to the `visa` network
1809
+ */
1591
1810
  export interface Visa {
1592
1811
  /**
1593
1812
  * For electronic commerce transactions, this identifies the level of security used
@@ -1609,11 +1828,15 @@ export namespace ACHTransferSimulation {
1609
1828
  * The method used to enter the cardholder's primary account number and card
1610
1829
  * expiration date
1611
1830
  */
1612
- point_of_service_entry_mode: Shared.PointOfServiceEntryMode;
1831
+ point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
1613
1832
  }
1614
1833
  }
1615
1834
  }
1616
1835
 
1836
+ /**
1837
+ * A Check Decline object. This field will be present in the JSON response if and
1838
+ * only if `category` is equal to `check_decline`.
1839
+ */
1617
1840
  export interface CheckDecline {
1618
1841
  /**
1619
1842
  * The declined amount in the minor unit of the destination account currency. For
@@ -1634,12 +1857,21 @@ export namespace ACHTransferSimulation {
1634
1857
  | 'group_locked'
1635
1858
  | 'insufficient_funds'
1636
1859
  | 'unable_to_locate_account'
1860
+ | 'not_our_item'
1637
1861
  | 'unable_to_process'
1638
1862
  | 'refer_to_image'
1639
1863
  | 'stop_payment_requested'
1640
- | 'returned';
1864
+ | 'returned'
1865
+ | 'duplicate_presentment'
1866
+ | 'not_authorized'
1867
+ | 'altered_or_fictitious';
1641
1868
  }
1642
1869
 
1870
+ /**
1871
+ * A Inbound Real Time Payments Transfer Decline object. This field will be present
1872
+ * in the JSON response if and only if `category` is equal to
1873
+ * `inbound_real_time_payments_transfer_decline`.
1874
+ */
1643
1875
  export interface InboundRealTimePaymentsTransferDecline {
1644
1876
  /**
1645
1877
  * The declined amount in the minor unit of the destination account currency. For
@@ -1680,6 +1912,7 @@ export namespace ACHTransferSimulation {
1680
1912
  reason:
1681
1913
  | 'account_number_canceled'
1682
1914
  | 'account_number_disabled'
1915
+ | 'account_restricted'
1683
1916
  | 'group_locked'
1684
1917
  | 'entity_not_active'
1685
1918
  | 'real_time_payments_not_enabled';
@@ -1695,6 +1928,10 @@ export namespace ACHTransferSimulation {
1695
1928
  transaction_identification: string;
1696
1929
  }
1697
1930
 
1931
+ /**
1932
+ * A International ACH Decline object. This field will be present in the JSON
1933
+ * response if and only if `category` is equal to `international_ach_decline`.
1934
+ */
1698
1935
  export interface InternationalACHDecline {
1699
1936
  /**
1700
1937
  * The declined amount in the minor unit of the destination account currency. For
@@ -1773,30 +2010,57 @@ export namespace ACHTransferSimulation {
1773
2010
  trace_number: string;
1774
2011
  }
1775
2012
 
1776
- export interface CardRouteDecline {
2013
+ /**
2014
+ * A Wire Decline object. This field will be present in the JSON response if and
2015
+ * only if `category` is equal to `wire_decline`.
2016
+ */
2017
+ export interface WireDecline {
1777
2018
  /**
1778
2019
  * The declined amount in the minor unit of the destination account currency. For
1779
2020
  * dollars, for example, this is cents.
1780
2021
  */
1781
2022
  amount: number;
1782
2023
 
1783
- /**
1784
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1785
- * account currency.
1786
- */
1787
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2024
+ beneficiary_address_line1: string | null;
1788
2025
 
1789
- merchant_acceptor_id: string;
2026
+ beneficiary_address_line2: string | null;
1790
2027
 
1791
- merchant_category_code: string | null;
2028
+ beneficiary_address_line3: string | null;
1792
2029
 
1793
- merchant_city: string | null;
2030
+ beneficiary_name: string | null;
1794
2031
 
1795
- merchant_country: string;
2032
+ beneficiary_reference: string | null;
1796
2033
 
1797
- merchant_descriptor: string;
2034
+ description: string;
1798
2035
 
1799
- merchant_state: string | null;
2036
+ input_message_accountability_data: string | null;
2037
+
2038
+ originator_address_line1: string | null;
2039
+
2040
+ originator_address_line2: string | null;
2041
+
2042
+ originator_address_line3: string | null;
2043
+
2044
+ originator_name: string | null;
2045
+
2046
+ originator_to_beneficiary_information_line1: string | null;
2047
+
2048
+ originator_to_beneficiary_information_line2: string | null;
2049
+
2050
+ originator_to_beneficiary_information_line3: string | null;
2051
+
2052
+ originator_to_beneficiary_information_line4: string | null;
2053
+
2054
+ /**
2055
+ * Why the wire transfer was declined.
2056
+ */
2057
+ reason:
2058
+ | 'account_number_canceled'
2059
+ | 'account_number_disabled'
2060
+ | 'entity_not_active'
2061
+ | 'group_locked'
2062
+ | 'no_account_number'
2063
+ | 'transaction_not_allowed';
1800
2064
  }
1801
2065
  }
1802
2066
  }
@@ -1866,8 +2130,56 @@ export interface ACHTransferReturnParams {
1866
2130
  | 'file_record_edit_criteria'
1867
2131
  | 'enr_invalid_individual_name'
1868
2132
  | 'returned_per_odfi_request'
1869
- | 'addenda_error'
1870
2133
  | 'limited_participation_dfi'
1871
2134
  | 'incorrectly_coded_outbound_international_payment'
1872
- | 'other';
2135
+ | 'other'
2136
+ | 'account_sold_to_another_dfi'
2137
+ | 'addenda_error'
2138
+ | 'beneficiary_or_account_holder_deceased'
2139
+ | 'customer_advised_not_within_authorization_terms'
2140
+ | 'corrected_return'
2141
+ | 'duplicate_entry'
2142
+ | 'duplicate_return'
2143
+ | 'enr_duplicate_enrollment'
2144
+ | 'enr_invalid_dfi_account_number'
2145
+ | 'enr_invalid_individual_id_number'
2146
+ | 'enr_invalid_representative_payee_indicator'
2147
+ | 'enr_invalid_transaction_code'
2148
+ | 'enr_return_of_enr_entry'
2149
+ | 'enr_routing_number_check_digit_error'
2150
+ | 'entry_not_processed_by_gateway'
2151
+ | 'field_error'
2152
+ | 'foreign_receiving_dfi_unable_to_settle'
2153
+ | 'iat_entry_coding_error'
2154
+ | 'improper_effective_entry_date'
2155
+ | 'improper_source_document_source_document_presented'
2156
+ | 'invalid_company_id'
2157
+ | 'invalid_foreign_receiving_dfi_identification'
2158
+ | 'invalid_individual_id_number'
2159
+ | 'item_and_rck_entry_presented_for_payment'
2160
+ | 'item_related_to_rck_entry_is_ineligible'
2161
+ | 'mandatory_field_error'
2162
+ | 'misrouted_dishonored_return'
2163
+ | 'misrouted_return'
2164
+ | 'no_errors_found'
2165
+ | 'non_acceptance_of_r62_dishonored_return'
2166
+ | 'non_participant_in_iat_program'
2167
+ | 'permissible_return_entry'
2168
+ | 'permissible_return_entry_not_accepted'
2169
+ | 'rdfi_non_settlement'
2170
+ | 'rdfi_participant_in_check_truncation_program'
2171
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
2172
+ | 'return_not_a_duplicate'
2173
+ | 'return_of_erroneous_or_reversing_debit'
2174
+ | 'return_of_improper_credit_entry'
2175
+ | 'return_of_improper_debit_entry'
2176
+ | 'return_of_xck_entry'
2177
+ | 'source_document_presented_for_payment'
2178
+ | 'state_law_affecting_rck_acceptance'
2179
+ | 'stop_payment_on_item_related_to_rck_entry'
2180
+ | 'stop_payment_on_source_document'
2181
+ | 'timely_original_return'
2182
+ | 'trace_number_error'
2183
+ | 'untimely_dishonored_return'
2184
+ | 'untimely_return';
1873
2185
  }