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
@@ -2,9 +2,26 @@
2
2
 
3
3
  import * as Core from '~/core';
4
4
  import { APIResource } from '~/resource';
5
+ import * as RealTimePaymentsTransfers_ from '~/resources/real-time-payments-transfers';
5
6
  import * as Shared from '~/resources/shared';
6
7
 
7
8
  export class RealTimePaymentsTransfers extends APIResource {
9
+ /**
10
+ * Simulates submission of a Real Time Payments transfer and handling the response
11
+ * from the destination financial institution. This transfer must first have a
12
+ * `status` of `pending_submission`.
13
+ */
14
+ complete(
15
+ realTimePaymentsTransferId: string,
16
+ body: RealTimePaymentsTransferCompleteParams,
17
+ options?: Core.RequestOptions,
18
+ ): Promise<Core.APIResponse<RealTimePaymentsTransfers_.RealTimePaymentsTransfer>> {
19
+ return this.post(`/simulations/real_time_payments_transfers/${realTimePaymentsTransferId}/complete`, {
20
+ body,
21
+ ...options,
22
+ });
23
+ }
24
+
8
25
  /**
9
26
  * Simulates an inbound Real Time Payments transfer to your account. Real Time
10
27
  * Payments are a beta feature.
@@ -44,6 +61,11 @@ export interface InboundRealTimePaymentsTransferSimulationResult {
44
61
  }
45
62
 
46
63
  export namespace InboundRealTimePaymentsTransferSimulationResult {
64
+ /**
65
+ * If the Real Time Payments Transfer attempt succeeds, this will contain the
66
+ * resulting [Transaction](#transactions) object. The Transaction's `source` will
67
+ * be of `category: inbound_real_time_payments_transfer_confirmation`.
68
+ */
47
69
  export interface Transaction {
48
70
  /**
49
71
  * The identifier for the Account the Transaction belongs to.
@@ -90,7 +112,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
90
112
  /**
91
113
  * The type of the route this Transaction came through.
92
114
  */
93
- route_type: string | null;
115
+ route_type: 'account_number' | 'card' | null;
94
116
 
95
117
  /**
96
118
  * This is an object giving more details on the network-level event that caused the
@@ -108,6 +130,12 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
108
130
  }
109
131
 
110
132
  export namespace Transaction {
133
+ /**
134
+ * This is an object giving more details on the network-level event that caused the
135
+ * Transaction. Note that for backwards compatibility reasons, additional
136
+ * undocumented keys may appear in this object. These should be treated as
137
+ * deprecated and will be removed in the future.
138
+ */
111
139
  export interface Source {
112
140
  /**
113
141
  * A Account Transfer Intention object. This field will be present in the JSON
@@ -115,18 +143,6 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
115
143
  */
116
144
  account_transfer_intention: Source.AccountTransferIntention | null;
117
145
 
118
- /**
119
- * A ACH Check Conversion object. This field will be present in the JSON response
120
- * if and only if `category` is equal to `ach_check_conversion`.
121
- */
122
- ach_check_conversion: Source.ACHCheckConversion | null;
123
-
124
- /**
125
- * A ACH Check Conversion Return object. This field will be present in the JSON
126
- * response if and only if `category` is equal to `ach_check_conversion_return`.
127
- */
128
- ach_check_conversion_return: Source.ACHCheckConversionReturn | null;
129
-
130
146
  /**
131
147
  * A ACH Transfer Intention object. This field will be present in the JSON response
132
148
  * if and only if `category` is equal to `ach_transfer_intention`.
@@ -158,16 +174,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
158
174
  card_refund: Source.CardRefund | null;
159
175
 
160
176
  /**
161
- * A Deprecated Card Refund object. This field will be present in the JSON response
162
- * if and only if `category` is equal to `card_route_refund`.
177
+ * A Card Revenue Payment object. This field will be present in the JSON response
178
+ * if and only if `category` is equal to `card_revenue_payment`.
163
179
  */
164
- card_route_refund: Source.CardRouteRefund | null;
165
-
166
- /**
167
- * A Deprecated Card Settlement object. This field will be present in the JSON
168
- * response if and only if `category` is equal to `card_route_settlement`.
169
- */
170
- card_route_settlement: Source.CardRouteSettlement | null;
180
+ card_revenue_payment: Source.CardRevenuePayment | null;
171
181
 
172
182
  /**
173
183
  * A Card Settlement object. This field will be present in the JSON response if and
@@ -182,22 +192,20 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
182
192
  */
183
193
  category:
184
194
  | 'account_transfer_intention'
185
- | 'ach_check_conversion_return'
186
- | 'ach_check_conversion'
187
195
  | 'ach_transfer_intention'
188
196
  | 'ach_transfer_rejection'
189
197
  | 'ach_transfer_return'
190
198
  | 'card_dispute_acceptance'
191
199
  | 'card_refund'
192
200
  | 'card_settlement'
201
+ | 'card_revenue_payment'
193
202
  | 'check_deposit_acceptance'
194
203
  | 'check_deposit_return'
195
204
  | 'check_transfer_intention'
196
205
  | 'check_transfer_return'
197
206
  | 'check_transfer_rejection'
198
207
  | 'check_transfer_stop_payment_request'
199
- | 'dispute_resolution'
200
- | 'empyreal_cash_deposit'
208
+ | 'fee_payment'
201
209
  | 'inbound_ach_transfer'
202
210
  | 'inbound_ach_transfer_return_intention'
203
211
  | 'inbound_check'
@@ -208,14 +216,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
208
216
  | 'inbound_wire_reversal'
209
217
  | 'inbound_wire_transfer'
210
218
  | 'interest_payment'
211
- | 'internal_general_ledger_transaction'
212
219
  | 'internal_source'
213
- | 'card_route_refund'
214
- | 'card_route_settlement'
215
220
  | 'real_time_payments_transfer_acknowledgement'
216
221
  | 'sample_funds'
217
- | 'wire_drawdown_payment_intention'
218
- | 'wire_drawdown_payment_rejection'
219
222
  | 'wire_transfer_intention'
220
223
  | 'wire_transfer_rejection'
221
224
  | 'other';
@@ -258,16 +261,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
258
261
  check_transfer_stop_payment_request: Source.CheckTransferStopPaymentRequest | null;
259
262
 
260
263
  /**
261
- * A Dispute Resolution object. This field will be present in the JSON response if
262
- * and only if `category` is equal to `dispute_resolution`.
264
+ * A Fee Payment object. This field will be present in the JSON response if and
265
+ * only if `category` is equal to `fee_payment`.
263
266
  */
264
- dispute_resolution: Source.DisputeResolution | null;
265
-
266
- /**
267
- * A Empyreal Cash Deposit object. This field will be present in the JSON response
268
- * if and only if `category` is equal to `empyreal_cash_deposit`.
269
- */
270
- empyreal_cash_deposit: Source.EmpyrealCashDeposit | null;
267
+ fee_payment: Source.FeePayment | null;
271
268
 
272
269
  /**
273
270
  * A Inbound ACH Transfer object. This field will be present in the JSON response
@@ -333,24 +330,17 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
333
330
  internal_source: Source.InternalSource | null;
334
331
 
335
332
  /**
336
- * A Sample Funds object. This field will be present in the JSON response if and
337
- * only if `category` is equal to `sample_funds`.
338
- */
339
- sample_funds: Source.SampleFunds | null;
340
-
341
- /**
342
- * A Wire Drawdown Payment Intention object. This field will be present in the JSON
343
- * response if and only if `category` is equal to
344
- * `wire_drawdown_payment_intention`.
333
+ * A Real Time Payments Transfer Acknowledgement object. This field will be present
334
+ * in the JSON response if and only if `category` is equal to
335
+ * `real_time_payments_transfer_acknowledgement`.
345
336
  */
346
- wire_drawdown_payment_intention: Source.WireDrawdownPaymentIntention | null;
337
+ real_time_payments_transfer_acknowledgement: Source.RealTimePaymentsTransferAcknowledgement | null;
347
338
 
348
339
  /**
349
- * A Wire Drawdown Payment Rejection object. This field will be present in the JSON
350
- * response if and only if `category` is equal to
351
- * `wire_drawdown_payment_rejection`.
340
+ * A Sample Funds object. This field will be present in the JSON response if and
341
+ * only if `category` is equal to `sample_funds`.
352
342
  */
353
- wire_drawdown_payment_rejection: Source.WireDrawdownPaymentRejection | null;
343
+ sample_funds: Source.SampleFunds | null;
354
344
 
355
345
  /**
356
346
  * A Wire Transfer Intention object. This field will be present in the JSON
@@ -366,6 +356,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
366
356
  }
367
357
 
368
358
  export namespace Source {
359
+ /**
360
+ * A Account Transfer Intention object. This field will be present in the JSON
361
+ * response if and only if `category` is equal to `account_transfer_intention`.
362
+ */
369
363
  export interface AccountTransferIntention {
370
364
  /**
371
365
  * The pending amount in the minor unit of the transaction's currency. For dollars,
@@ -400,32 +394,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
400
394
  transfer_id: string;
401
395
  }
402
396
 
403
- export interface ACHCheckConversionReturn {
404
- /**
405
- * The amount in the minor unit of the transaction's currency. For dollars, for
406
- * example, this is cents.
407
- */
408
- amount: number;
409
-
410
- /**
411
- * Why the transfer was returned.
412
- */
413
- return_reason_code: string;
414
- }
415
-
416
- export interface ACHCheckConversion {
417
- /**
418
- * The amount in the minor unit of the transaction's currency. For dollars, for
419
- * example, this is cents.
420
- */
421
- amount: number;
422
-
423
- /**
424
- * The identifier of the File containing an image of the returned check.
425
- */
426
- file_id: string;
427
- }
428
-
397
+ /**
398
+ * A ACH Transfer Intention object. This field will be present in the JSON response
399
+ * if and only if `category` is equal to `ach_transfer_intention`.
400
+ */
429
401
  export interface ACHTransferIntention {
430
402
  account_number: string;
431
403
 
@@ -445,6 +417,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
445
417
  transfer_id: string;
446
418
  }
447
419
 
420
+ /**
421
+ * A ACH Transfer Rejection object. This field will be present in the JSON response
422
+ * if and only if `category` is equal to `ach_transfer_rejection`.
423
+ */
448
424
  export interface ACHTransferRejection {
449
425
  /**
450
426
  * The identifier of the ACH Transfer that led to this Transaction.
@@ -452,6 +428,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
452
428
  transfer_id: string;
453
429
  }
454
430
 
431
+ /**
432
+ * A ACH Transfer Return object. This field will be present in the JSON response if
433
+ * and only if `category` is equal to `ach_transfer_return`.
434
+ */
455
435
  export interface ACHTransferReturn {
456
436
  /**
457
437
  * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -459,6 +439,11 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
459
439
  */
460
440
  created_at: string;
461
441
 
442
+ /**
443
+ * The three character ACH return code, in the range R01 to R85.
444
+ */
445
+ raw_return_reason_code: string;
446
+
462
447
  /**
463
448
  * Why the ACH Transfer was returned.
464
449
  */
@@ -482,10 +467,58 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
482
467
  | 'file_record_edit_criteria'
483
468
  | 'enr_invalid_individual_name'
484
469
  | 'returned_per_odfi_request'
485
- | 'addenda_error'
486
470
  | 'limited_participation_dfi'
487
471
  | 'incorrectly_coded_outbound_international_payment'
488
- | 'other';
472
+ | 'other'
473
+ | 'account_sold_to_another_dfi'
474
+ | 'addenda_error'
475
+ | 'beneficiary_or_account_holder_deceased'
476
+ | 'customer_advised_not_within_authorization_terms'
477
+ | 'corrected_return'
478
+ | 'duplicate_entry'
479
+ | 'duplicate_return'
480
+ | 'enr_duplicate_enrollment'
481
+ | 'enr_invalid_dfi_account_number'
482
+ | 'enr_invalid_individual_id_number'
483
+ | 'enr_invalid_representative_payee_indicator'
484
+ | 'enr_invalid_transaction_code'
485
+ | 'enr_return_of_enr_entry'
486
+ | 'enr_routing_number_check_digit_error'
487
+ | 'entry_not_processed_by_gateway'
488
+ | 'field_error'
489
+ | 'foreign_receiving_dfi_unable_to_settle'
490
+ | 'iat_entry_coding_error'
491
+ | 'improper_effective_entry_date'
492
+ | 'improper_source_document_source_document_presented'
493
+ | 'invalid_company_id'
494
+ | 'invalid_foreign_receiving_dfi_identification'
495
+ | 'invalid_individual_id_number'
496
+ | 'item_and_rck_entry_presented_for_payment'
497
+ | 'item_related_to_rck_entry_is_ineligible'
498
+ | 'mandatory_field_error'
499
+ | 'misrouted_dishonored_return'
500
+ | 'misrouted_return'
501
+ | 'no_errors_found'
502
+ | 'non_acceptance_of_r62_dishonored_return'
503
+ | 'non_participant_in_iat_program'
504
+ | 'permissible_return_entry'
505
+ | 'permissible_return_entry_not_accepted'
506
+ | 'rdfi_non_settlement'
507
+ | 'rdfi_participant_in_check_truncation_program'
508
+ | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
509
+ | 'return_not_a_duplicate'
510
+ | 'return_of_erroneous_or_reversing_debit'
511
+ | 'return_of_improper_credit_entry'
512
+ | 'return_of_improper_debit_entry'
513
+ | 'return_of_xck_entry'
514
+ | 'source_document_presented_for_payment'
515
+ | 'state_law_affecting_rck_acceptance'
516
+ | 'stop_payment_on_item_related_to_rck_entry'
517
+ | 'stop_payment_on_source_document'
518
+ | 'timely_original_return'
519
+ | 'trace_number_error'
520
+ | 'untimely_dishonored_return'
521
+ | 'untimely_return';
489
522
 
490
523
  /**
491
524
  * The identifier of the Tranasaction associated with this return.
@@ -498,6 +531,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
498
531
  transfer_id: string;
499
532
  }
500
533
 
534
+ /**
535
+ * A Card Dispute Acceptance object. This field will be present in the JSON
536
+ * response if and only if `category` is equal to `card_dispute_acceptance`.
537
+ */
501
538
  export interface CardDisputeAcceptance {
502
539
  /**
503
540
  * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -514,9 +551,13 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
514
551
  * The identifier of the Transaction that was created to return the disputed funds
515
552
  * to your account.
516
553
  */
517
- transaction_id: string | null;
554
+ transaction_id: string;
518
555
  }
519
556
 
557
+ /**
558
+ * A Card Refund object. This field will be present in the JSON response if and
559
+ * only if `category` is equal to `card_refund`.
560
+ */
520
561
  export interface CardRefund {
521
562
  /**
522
563
  * The pending amount in the minor unit of the transaction's currency. For dollars,
@@ -524,17 +565,48 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
524
565
  */
525
566
  amount: number;
526
567
 
527
- /**
528
- * The identifier for the Transaction this refunds, if any.
529
- */
530
- card_settlement_transaction_id: string | null;
531
-
532
568
  /**
533
569
  * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
534
570
  * transaction's currency.
535
571
  */
536
572
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
537
573
 
574
+ /**
575
+ * The Card Refund identifier.
576
+ */
577
+ id: string;
578
+
579
+ /**
580
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
581
+ * is transacting with.
582
+ */
583
+ merchant_acceptor_id: string | null;
584
+
585
+ /**
586
+ * The 4-digit MCC describing the merchant's business.
587
+ */
588
+ merchant_category_code: string;
589
+
590
+ /**
591
+ * The city the merchant resides in.
592
+ */
593
+ merchant_city: string | null;
594
+
595
+ /**
596
+ * The country the merchant resides in.
597
+ */
598
+ merchant_country: string;
599
+
600
+ /**
601
+ * The name of the merchant.
602
+ */
603
+ merchant_name: string | null;
604
+
605
+ /**
606
+ * The state the merchant resides in.
607
+ */
608
+ merchant_state: string | null;
609
+
538
610
  /**
539
611
  * A constant representing the object's type. For this resource it will always be
540
612
  * `card_refund`.
@@ -542,6 +614,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
542
614
  type: 'card_refund';
543
615
  }
544
616
 
617
+ /**
618
+ * A Card Settlement object. This field will be present in the JSON response if and
619
+ * only if `category` is equal to `card_settlement`.
620
+ */
545
621
  export interface CardSettlement {
546
622
  /**
547
623
  * The amount in the minor unit of the transaction's settlement currency. For
@@ -549,20 +625,52 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
549
625
  */
550
626
  amount: number;
551
627
 
628
+ /**
629
+ * The Card Authorization that was created prior to this Card Settlement, if on
630
+ * exists.
631
+ */
632
+ card_authorization: string | null;
633
+
552
634
  /**
553
635
  * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
554
636
  * transaction's settlement currency.
555
637
  */
556
638
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
557
639
 
640
+ /**
641
+ * The Card Settlement identifier.
642
+ */
643
+ id: string;
644
+
645
+ /**
646
+ * The merchant identifier (commonly abbreviated as MID) of the merchant the card
647
+ * is transacting with.
648
+ */
649
+ merchant_acceptor_id: string | null;
650
+
651
+ /**
652
+ * The 4-digit MCC describing the merchant's business.
653
+ */
558
654
  merchant_category_code: string;
559
655
 
656
+ /**
657
+ * The city the merchant resides in.
658
+ */
560
659
  merchant_city: string | null;
561
660
 
661
+ /**
662
+ * The country the merchant resides in.
663
+ */
562
664
  merchant_country: string;
563
665
 
666
+ /**
667
+ * The name of the merchant.
668
+ */
564
669
  merchant_name: string | null;
565
670
 
671
+ /**
672
+ * The state the merchant resides in.
673
+ */
566
674
  merchant_state: string | null;
567
675
 
568
676
  /**
@@ -588,6 +696,43 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
588
696
  type: 'card_settlement';
589
697
  }
590
698
 
699
+ /**
700
+ * A Card Revenue Payment object. This field will be present in the JSON response
701
+ * if and only if `category` is equal to `card_revenue_payment`.
702
+ */
703
+ export interface CardRevenuePayment {
704
+ /**
705
+ * The amount in the minor unit of the transaction's currency. For dollars, for
706
+ * example, this is cents.
707
+ */
708
+ amount: number;
709
+
710
+ /**
711
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
712
+ * currency.
713
+ */
714
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
715
+
716
+ /**
717
+ * The end of the period for which this transaction paid interest.
718
+ */
719
+ period_end: string;
720
+
721
+ /**
722
+ * The start of the period for which this transaction paid interest.
723
+ */
724
+ period_start: string;
725
+
726
+ /**
727
+ * The account the card belonged to.
728
+ */
729
+ transacted_on_account_id: string | null;
730
+ }
731
+
732
+ /**
733
+ * A Check Deposit Acceptance object. This field will be present in the JSON
734
+ * response if and only if `category` is equal to `check_deposit_acceptance`.
735
+ */
591
736
  export interface CheckDepositAcceptance {
592
737
  /**
593
738
  * The account number printed on the check.
@@ -629,6 +774,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
629
774
  serial_number: string | null;
630
775
  }
631
776
 
777
+ /**
778
+ * A Check Deposit Return object. This field will be present in the JSON response
779
+ * if and only if `category` is equal to `check_deposit_return`.
780
+ */
632
781
  export interface CheckDepositReturn {
633
782
  /**
634
783
  * The amount in the minor unit of the transaction's currency. For dollars, for
@@ -658,7 +807,8 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
658
807
  | 'stop_payment'
659
808
  | 'unknown_reason'
660
809
  | 'unmatched_details'
661
- | 'unreadable_image';
810
+ | 'unreadable_image'
811
+ | 'endorsement_irregular';
662
812
 
663
813
  /**
664
814
  * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -673,6 +823,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
673
823
  transaction_id: string;
674
824
  }
675
825
 
826
+ /**
827
+ * A Check Transfer Intention object. This field will be present in the JSON
828
+ * response if and only if `category` is equal to `check_transfer_intention`.
829
+ */
676
830
  export interface CheckTransferIntention {
677
831
  /**
678
832
  * The city of the check's destination.
@@ -721,18 +875,43 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
721
875
  transfer_id: string;
722
876
  }
723
877
 
878
+ /**
879
+ * A Check Transfer Return object. This field will be present in the JSON response
880
+ * if and only if `category` is equal to `check_transfer_return`.
881
+ */
724
882
  export interface CheckTransferReturn {
725
883
  /**
726
884
  * If available, a document with additional information about the return.
727
885
  */
728
886
  file_id: string | null;
729
887
 
888
+ /**
889
+ * The reason why the check was returned.
890
+ */
891
+ reason: 'mail_delivery_failure' | 'refused_by_recipient' | 'returned_not_authorized';
892
+
893
+ /**
894
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
895
+ * the check was returned.
896
+ */
897
+ returned_at: string;
898
+
899
+ /**
900
+ * The identifier of the Transaction that was created to credit you for the
901
+ * returned check.
902
+ */
903
+ transaction_id: string | null;
904
+
730
905
  /**
731
906
  * The identifier of the returned Check Transfer.
732
907
  */
733
908
  transfer_id: string;
734
909
  }
735
910
 
911
+ /**
912
+ * A Check Transfer Rejection object. This field will be present in the JSON
913
+ * response if and only if `category` is equal to `check_transfer_rejection`.
914
+ */
736
915
  export interface CheckTransferRejection {
737
916
  /**
738
917
  * The identifier of the Check Transfer that led to this Transaction.
@@ -740,6 +919,11 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
740
919
  transfer_id: string;
741
920
  }
742
921
 
922
+ /**
923
+ * A Check Transfer Stop Payment Request object. This field will be present in the
924
+ * JSON response if and only if `category` is equal to
925
+ * `check_transfer_stop_payment_request`.
926
+ */
743
927
  export interface CheckTransferStopPaymentRequest {
744
928
  /**
745
929
  * The time the stop-payment was requested.
@@ -763,7 +947,11 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
763
947
  type: 'check_transfer_stop_payment_request';
764
948
  }
765
949
 
766
- export interface DisputeResolution {
950
+ /**
951
+ * A Fee Payment object. This field will be present in the JSON response if and
952
+ * only if `category` is equal to `fee_payment`.
953
+ */
954
+ export interface FeePayment {
767
955
  /**
768
956
  * The amount in the minor unit of the transaction's currency. For dollars, for
769
957
  * example, this is cents.
@@ -771,29 +959,16 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
771
959
  amount: number;
772
960
 
773
961
  /**
774
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
775
- * transaction's currency.
962
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transaction
963
+ * currency.
776
964
  */
777
965
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
778
-
779
- /**
780
- * The identifier of the Transaction that was disputed.
781
- */
782
- disputed_transaction_id: string;
783
- }
784
-
785
- export interface EmpyrealCashDeposit {
786
- /**
787
- * The amount in the minor unit of the transaction's currency. For dollars, for
788
- * example, this is cents.
789
- */
790
- amount: number;
791
-
792
- bag_id: string;
793
-
794
- deposit_date: string;
795
966
  }
796
967
 
968
+ /**
969
+ * A Inbound ACH Transfer object. This field will be present in the JSON response
970
+ * if and only if `category` is equal to `inbound_ach_transfer`.
971
+ */
797
972
  export interface InboundACHTransfer {
798
973
  /**
799
974
  * The amount in the minor unit of the destination account currency. For dollars,
@@ -818,6 +993,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
818
993
  trace_number: string;
819
994
  }
820
995
 
996
+ /**
997
+ * A Inbound Check object. This field will be present in the JSON response if and
998
+ * only if `category` is equal to `inbound_check`.
999
+ */
821
1000
  export interface InboundCheck {
822
1001
  /**
823
1002
  * The amount in the minor unit of the destination account currency. For dollars,
@@ -838,6 +1017,11 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
838
1017
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
839
1018
  }
840
1019
 
1020
+ /**
1021
+ * A Inbound International ACH Transfer object. This field will be present in the
1022
+ * JSON response if and only if `category` is equal to
1023
+ * `inbound_international_ach_transfer`.
1024
+ */
841
1025
  export interface InboundInternationalACHTransfer {
842
1026
  /**
843
1027
  * The amount in the minor unit of the destination account currency. For dollars,
@@ -916,6 +1100,11 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
916
1100
  trace_number: string;
917
1101
  }
918
1102
 
1103
+ /**
1104
+ * A Inbound Real Time Payments Transfer Confirmation object. This field will be
1105
+ * present in the JSON response if and only if `category` is equal to
1106
+ * `inbound_real_time_payments_transfer_confirmation`.
1107
+ */
919
1108
  export interface InboundRealTimePaymentsTransferConfirmation {
920
1109
  /**
921
1110
  * The amount in the minor unit of the transfer's currency. For dollars, for
@@ -960,6 +1149,11 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
960
1149
  transaction_identification: string;
961
1150
  }
962
1151
 
1152
+ /**
1153
+ * A Inbound Wire Drawdown Payment Reversal object. This field will be present in
1154
+ * the JSON response if and only if `category` is equal to
1155
+ * `inbound_wire_drawdown_payment_reversal`.
1156
+ */
963
1157
  export interface InboundWireDrawdownPaymentReversal {
964
1158
  /**
965
1159
  * The amount that was reversed.
@@ -1012,6 +1206,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1012
1206
  previous_message_input_source: string;
1013
1207
  }
1014
1208
 
1209
+ /**
1210
+ * A Inbound Wire Drawdown Payment object. This field will be present in the JSON
1211
+ * response if and only if `category` is equal to `inbound_wire_drawdown_payment`.
1212
+ */
1015
1213
  export interface InboundWireDrawdownPayment {
1016
1214
  /**
1017
1215
  * The amount in the minor unit of the transaction's currency. For dollars, for
@@ -1044,12 +1242,22 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1044
1242
  originator_to_beneficiary_information: string | null;
1045
1243
  }
1046
1244
 
1245
+ /**
1246
+ * A Inbound Wire Reversal object. This field will be present in the JSON response
1247
+ * if and only if `category` is equal to `inbound_wire_reversal`.
1248
+ */
1047
1249
  export interface InboundWireReversal {
1048
1250
  /**
1049
1251
  * The amount that was reversed.
1050
1252
  */
1051
1253
  amount: number;
1052
1254
 
1255
+ /**
1256
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
1257
+ * the reversal was created.
1258
+ */
1259
+ created_at: string;
1260
+
1053
1261
  /**
1054
1262
  * The description on the reversal message from Fedwire.
1055
1263
  */
@@ -1105,8 +1313,22 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1105
1313
  * institution.
1106
1314
  */
1107
1315
  receiver_financial_institution_information: string | null;
1316
+
1317
+ /**
1318
+ * The ID for the Transaction associated with the transfer reversal.
1319
+ */
1320
+ transaction_id: string | null;
1321
+
1322
+ /**
1323
+ * The ID for the Wire Transfer that is being reversed.
1324
+ */
1325
+ wire_transfer_id: string;
1108
1326
  }
1109
1327
 
1328
+ /**
1329
+ * A Inbound Wire Transfer object. This field will be present in the JSON response
1330
+ * if and only if `category` is equal to `inbound_wire_transfer`.
1331
+ */
1110
1332
  export interface InboundWireTransfer {
1111
1333
  /**
1112
1334
  * The amount in the minor unit of the transaction's currency. For dollars, for
@@ -1147,6 +1369,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1147
1369
  originator_to_beneficiary_information_line4: string | null;
1148
1370
  }
1149
1371
 
1372
+ /**
1373
+ * A Interest Payment object. This field will be present in the JSON response if
1374
+ * and only if `category` is equal to `interest_payment`.
1375
+ */
1150
1376
  export interface InterestPayment {
1151
1377
  /**
1152
1378
  * The account on which the interest was accrued.
@@ -1176,6 +1402,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1176
1402
  period_start: string;
1177
1403
  }
1178
1404
 
1405
+ /**
1406
+ * A Internal Source object. This field will be present in the JSON response if and
1407
+ * only if `category` is equal to `internal_source`.
1408
+ */
1179
1409
  export interface InternalSource {
1180
1410
  /**
1181
1411
  * The amount in the minor unit of the transaction's currency. For dollars, for
@@ -1190,69 +1420,56 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1190
1420
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1191
1421
 
1192
1422
  reason:
1423
+ | 'account_closure'
1193
1424
  | 'bank_migration'
1194
1425
  | 'cashback'
1426
+ | 'collection_receivable'
1195
1427
  | 'empyreal_adjustment'
1196
1428
  | 'error'
1197
1429
  | 'error_correction'
1198
1430
  | 'fees'
1199
1431
  | 'interest'
1432
+ | 'negative_balance_forgiveness'
1200
1433
  | 'sample_funds'
1201
1434
  | 'sample_funds_return';
1202
1435
  }
1203
1436
 
1204
- export interface CardRouteRefund {
1437
+ /**
1438
+ * A Real Time Payments Transfer Acknowledgement object. This field will be present
1439
+ * in the JSON response if and only if `category` is equal to
1440
+ * `real_time_payments_transfer_acknowledgement`.
1441
+ */
1442
+ export interface RealTimePaymentsTransferAcknowledgement {
1205
1443
  /**
1206
- * The refunded amount in the minor unit of the refunded currency. For dollars, for
1207
- * example, this is cents.
1444
+ * The transfer amount in USD cents.
1208
1445
  */
1209
1446
  amount: number;
1210
1447
 
1211
1448
  /**
1212
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the refund
1213
- * currency.
1449
+ * The destination account number.
1214
1450
  */
1215
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1216
-
1217
- merchant_acceptor_id: string;
1218
-
1219
- merchant_category_code: string | null;
1220
-
1221
- merchant_city: string | null;
1451
+ destination_account_number: string;
1222
1452
 
1223
- merchant_country: string;
1224
-
1225
- merchant_descriptor: string;
1226
-
1227
- merchant_state: string | null;
1228
- }
1229
-
1230
- export interface CardRouteSettlement {
1231
1453
  /**
1232
- * The settled amount in the minor unit of the settlement currency. For dollars,
1233
- * for example, this is cents.
1454
+ * The American Bankers' Association (ABA) Routing Transit Number (RTN).
1234
1455
  */
1235
- amount: number;
1456
+ destination_routing_number: string;
1236
1457
 
1237
1458
  /**
1238
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the settlement
1239
- * currency.
1459
+ * Unstructured information that will show on the recipient's bank statement.
1240
1460
  */
1241
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
1242
-
1243
- merchant_acceptor_id: string;
1461
+ remittance_information: string;
1244
1462
 
1245
- merchant_category_code: string | null;
1246
-
1247
- merchant_city: string | null;
1248
-
1249
- merchant_country: string | null;
1250
-
1251
- merchant_descriptor: string;
1252
-
1253
- merchant_state: string | null;
1463
+ /**
1464
+ * The identifier of the Real Time Payments Transfer that led to this Transaction.
1465
+ */
1466
+ transfer_id: string;
1254
1467
  }
1255
1468
 
1469
+ /**
1470
+ * A Sample Funds object. This field will be present in the JSON response if and
1471
+ * only if `category` is equal to `sample_funds`.
1472
+ */
1256
1473
  export interface SampleFunds {
1257
1474
  /**
1258
1475
  * Where the sample funds came from.
@@ -1260,25 +1477,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1260
1477
  originator: string;
1261
1478
  }
1262
1479
 
1263
- export interface WireDrawdownPaymentIntention {
1264
- account_number: string;
1265
-
1266
- /**
1267
- * The transfer amount in USD cents.
1268
- */
1269
- amount: number;
1270
-
1271
- message_to_recipient: string;
1272
-
1273
- routing_number: string;
1274
-
1275
- transfer_id: string;
1276
- }
1277
-
1278
- export interface WireDrawdownPaymentRejection {
1279
- transfer_id: string;
1280
- }
1281
-
1480
+ /**
1481
+ * A Wire Transfer Intention object. This field will be present in the JSON
1482
+ * response if and only if `category` is equal to `wire_transfer_intention`.
1483
+ */
1282
1484
  export interface WireTransferIntention {
1283
1485
  /**
1284
1486
  * The destination account number.
@@ -1303,12 +1505,22 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1303
1505
  transfer_id: string;
1304
1506
  }
1305
1507
 
1508
+ /**
1509
+ * A Wire Transfer Rejection object. This field will be present in the JSON
1510
+ * response if and only if `category` is equal to `wire_transfer_rejection`.
1511
+ */
1306
1512
  export interface WireTransferRejection {
1307
1513
  transfer_id: string;
1308
1514
  }
1309
1515
  }
1310
1516
  }
1311
1517
 
1518
+ /**
1519
+ * If the Real Time Payments Transfer attempt fails, this will contain the
1520
+ * resulting [Declined Transaction](#declined-transactions) object. The Declined
1521
+ * Transaction's `source` will be of
1522
+ * `category: inbound_real_time_payments_transfer_decline`.
1523
+ */
1312
1524
  export interface DeclinedTransaction {
1313
1525
  /**
1314
1526
  * The identifier for the Account the Declined Transaction belongs to.
@@ -1353,7 +1565,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1353
1565
  /**
1354
1566
  * The type of the route this Declined Transaction came through.
1355
1567
  */
1356
- route_type: string | null;
1568
+ route_type: 'account_number' | 'card' | null;
1357
1569
 
1358
1570
  /**
1359
1571
  * This is an object giving more details on the network-level event that caused the
@@ -1372,6 +1584,13 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1372
1584
  }
1373
1585
 
1374
1586
  export namespace DeclinedTransaction {
1587
+ /**
1588
+ * This is an object giving more details on the network-level event that caused the
1589
+ * Declined Transaction. For example, for a card transaction this lists the
1590
+ * merchant's industry and location. Note that for backwards compatibility reasons,
1591
+ * additional undocumented keys may appear in this object. These should be treated
1592
+ * as deprecated and will be removed in the future.
1593
+ */
1375
1594
  export interface Source {
1376
1595
  /**
1377
1596
  * A ACH Decline object. This field will be present in the JSON response if and
@@ -1385,12 +1604,6 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1385
1604
  */
1386
1605
  card_decline: Source.CardDecline | null;
1387
1606
 
1388
- /**
1389
- * A Deprecated Card Decline object. This field will be present in the JSON
1390
- * response if and only if `category` is equal to `card_route_decline`.
1391
- */
1392
- card_route_decline: Source.CardRouteDecline | null;
1393
-
1394
1607
  /**
1395
1608
  * The type of decline that took place. We may add additional possible values for
1396
1609
  * this enum over time; your application should be able to handle such additions
@@ -1402,7 +1615,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1402
1615
  | 'check_decline'
1403
1616
  | 'inbound_real_time_payments_transfer_decline'
1404
1617
  | 'international_ach_decline'
1405
- | 'card_route_decline'
1618
+ | 'wire_decline'
1406
1619
  | 'other';
1407
1620
 
1408
1621
  /**
@@ -1423,9 +1636,19 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1423
1636
  * response if and only if `category` is equal to `international_ach_decline`.
1424
1637
  */
1425
1638
  international_ach_decline: Source.InternationalACHDecline | null;
1639
+
1640
+ /**
1641
+ * A Wire Decline object. This field will be present in the JSON response if and
1642
+ * only if `category` is equal to `wire_decline`.
1643
+ */
1644
+ wire_decline: Source.WireDecline | null;
1426
1645
  }
1427
1646
 
1428
1647
  export namespace Source {
1648
+ /**
1649
+ * A ACH Decline object. This field will be present in the JSON response if and
1650
+ * only if `category` is equal to `ach_decline`.
1651
+ */
1429
1652
  export interface ACHDecline {
1430
1653
  /**
1431
1654
  * The declined amount in the minor unit of the destination account currency. For
@@ -1451,11 +1674,12 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1451
1674
  | 'credit_entry_refused_by_receiver'
1452
1675
  | 'duplicate_return'
1453
1676
  | 'entity_not_active'
1454
- | 'transaction_not_allowed'
1455
1677
  | 'group_locked'
1456
1678
  | 'insufficient_funds'
1679
+ | 'misrouted_return'
1457
1680
  | 'no_ach_route'
1458
- | 'originator_request';
1681
+ | 'originator_request'
1682
+ | 'transaction_not_allowed';
1459
1683
 
1460
1684
  receiver_id_number: string | null;
1461
1685
 
@@ -1464,6 +1688,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1464
1688
  trace_number: string;
1465
1689
  }
1466
1690
 
1691
+ /**
1692
+ * A Card Decline object. This field will be present in the JSON response if and
1693
+ * only if `category` is equal to `card_decline`.
1694
+ */
1467
1695
  export interface CardDecline {
1468
1696
  /**
1469
1697
  * The declined amount in the minor unit of the destination account currency. For
@@ -1541,13 +1769,19 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1541
1769
  | 'insufficient_funds'
1542
1770
  | 'cvv2_mismatch'
1543
1771
  | 'transaction_not_allowed'
1772
+ | 'breaches_internal_limit'
1544
1773
  | 'breaches_limit'
1545
1774
  | 'webhook_declined'
1546
1775
  | 'webhook_timed_out'
1547
- | 'declined_by_stand_in_processing';
1776
+ | 'declined_by_stand_in_processing'
1777
+ | 'invalid_physical_card'
1778
+ | 'missing_original_authorization';
1548
1779
  }
1549
1780
 
1550
1781
  export namespace CardDecline {
1782
+ /**
1783
+ * Fields specific to the `network`
1784
+ */
1551
1785
  export interface NetworkDetails {
1552
1786
  /**
1553
1787
  * Fields specific to the `visa` network
@@ -1556,6 +1790,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1556
1790
  }
1557
1791
 
1558
1792
  export namespace NetworkDetails {
1793
+ /**
1794
+ * Fields specific to the `visa` network
1795
+ */
1559
1796
  export interface Visa {
1560
1797
  /**
1561
1798
  * For electronic commerce transactions, this identifies the level of security used
@@ -1577,11 +1814,15 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1577
1814
  * The method used to enter the cardholder's primary account number and card
1578
1815
  * expiration date
1579
1816
  */
1580
- point_of_service_entry_mode: Shared.PointOfServiceEntryMode;
1817
+ point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
1581
1818
  }
1582
1819
  }
1583
1820
  }
1584
1821
 
1822
+ /**
1823
+ * A Check Decline object. This field will be present in the JSON response if and
1824
+ * only if `category` is equal to `check_decline`.
1825
+ */
1585
1826
  export interface CheckDecline {
1586
1827
  /**
1587
1828
  * The declined amount in the minor unit of the destination account currency. For
@@ -1602,12 +1843,21 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1602
1843
  | 'group_locked'
1603
1844
  | 'insufficient_funds'
1604
1845
  | 'unable_to_locate_account'
1846
+ | 'not_our_item'
1605
1847
  | 'unable_to_process'
1606
1848
  | 'refer_to_image'
1607
1849
  | 'stop_payment_requested'
1608
- | 'returned';
1850
+ | 'returned'
1851
+ | 'duplicate_presentment'
1852
+ | 'not_authorized'
1853
+ | 'altered_or_fictitious';
1609
1854
  }
1610
1855
 
1856
+ /**
1857
+ * A Inbound Real Time Payments Transfer Decline object. This field will be present
1858
+ * in the JSON response if and only if `category` is equal to
1859
+ * `inbound_real_time_payments_transfer_decline`.
1860
+ */
1611
1861
  export interface InboundRealTimePaymentsTransferDecline {
1612
1862
  /**
1613
1863
  * The declined amount in the minor unit of the destination account currency. For
@@ -1648,6 +1898,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1648
1898
  reason:
1649
1899
  | 'account_number_canceled'
1650
1900
  | 'account_number_disabled'
1901
+ | 'account_restricted'
1651
1902
  | 'group_locked'
1652
1903
  | 'entity_not_active'
1653
1904
  | 'real_time_payments_not_enabled';
@@ -1663,6 +1914,10 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1663
1914
  transaction_identification: string;
1664
1915
  }
1665
1916
 
1917
+ /**
1918
+ * A International ACH Decline object. This field will be present in the JSON
1919
+ * response if and only if `category` is equal to `international_ach_decline`.
1920
+ */
1666
1921
  export interface InternationalACHDecline {
1667
1922
  /**
1668
1923
  * The declined amount in the minor unit of the destination account currency. For
@@ -1741,35 +1996,102 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
1741
1996
  trace_number: string;
1742
1997
  }
1743
1998
 
1744
- export interface CardRouteDecline {
1999
+ /**
2000
+ * A Wire Decline object. This field will be present in the JSON response if and
2001
+ * only if `category` is equal to `wire_decline`.
2002
+ */
2003
+ export interface WireDecline {
1745
2004
  /**
1746
2005
  * The declined amount in the minor unit of the destination account currency. For
1747
2006
  * dollars, for example, this is cents.
1748
2007
  */
1749
2008
  amount: number;
1750
2009
 
1751
- /**
1752
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1753
- * account currency.
1754
- */
1755
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
2010
+ beneficiary_address_line1: string | null;
1756
2011
 
1757
- merchant_acceptor_id: string;
2012
+ beneficiary_address_line2: string | null;
1758
2013
 
1759
- merchant_category_code: string | null;
2014
+ beneficiary_address_line3: string | null;
1760
2015
 
1761
- merchant_city: string | null;
2016
+ beneficiary_name: string | null;
1762
2017
 
1763
- merchant_country: string;
2018
+ beneficiary_reference: string | null;
1764
2019
 
1765
- merchant_descriptor: string;
2020
+ description: string;
1766
2021
 
1767
- merchant_state: string | null;
2022
+ input_message_accountability_data: string | null;
2023
+
2024
+ originator_address_line1: string | null;
2025
+
2026
+ originator_address_line2: string | null;
2027
+
2028
+ originator_address_line3: string | null;
2029
+
2030
+ originator_name: string | null;
2031
+
2032
+ originator_to_beneficiary_information_line1: string | null;
2033
+
2034
+ originator_to_beneficiary_information_line2: string | null;
2035
+
2036
+ originator_to_beneficiary_information_line3: string | null;
2037
+
2038
+ originator_to_beneficiary_information_line4: string | null;
2039
+
2040
+ /**
2041
+ * Why the wire transfer was declined.
2042
+ */
2043
+ reason:
2044
+ | 'account_number_canceled'
2045
+ | 'account_number_disabled'
2046
+ | 'entity_not_active'
2047
+ | 'group_locked'
2048
+ | 'no_account_number'
2049
+ | 'transaction_not_allowed';
1768
2050
  }
1769
2051
  }
1770
2052
  }
1771
2053
  }
1772
2054
 
2055
+ export interface RealTimePaymentsTransferCompleteParams {
2056
+ /**
2057
+ * If set, the simulation will reject the transfer.
2058
+ */
2059
+ rejection?: RealTimePaymentsTransferCompleteParams.Rejection;
2060
+ }
2061
+
2062
+ export namespace RealTimePaymentsTransferCompleteParams {
2063
+ /**
2064
+ * If set, the simulation will reject the transfer.
2065
+ */
2066
+ export interface Rejection {
2067
+ /**
2068
+ * The reason code that the simulated rejection will have.
2069
+ */
2070
+ reject_reason_code:
2071
+ | 'account_closed'
2072
+ | 'account_blocked'
2073
+ | 'invalid_creditor_account_type'
2074
+ | 'invalid_creditor_account_number'
2075
+ | 'invalid_creditor_financial_institution_identifier'
2076
+ | 'end_customer_deceased'
2077
+ | 'narrative'
2078
+ | 'transaction_forbidden'
2079
+ | 'transaction_type_not_supported'
2080
+ | 'unexpected_amount'
2081
+ | 'amount_exceeds_bank_limits'
2082
+ | 'invalid_creditor_address'
2083
+ | 'unknown_end_customer'
2084
+ | 'invalid_debtor_address'
2085
+ | 'timeout'
2086
+ | 'unsupported_message_for_recipient'
2087
+ | 'recipient_connection_not_available'
2088
+ | 'real_time_payments_suspended'
2089
+ | 'instructed_agent_signed_off'
2090
+ | 'processing_error'
2091
+ | 'other';
2092
+ }
2093
+ }
2094
+
1773
2095
  export interface RealTimePaymentsTransferCreateInboundParams {
1774
2096
  /**
1775
2097
  * The identifier of the Account Number the inbound Real Time Payments Transfer is