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