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
@@ -4,6 +4,7 @@ import * as Core from '~/core';
4
4
  import { APIResource } from '~/resource';
5
5
  import * as Transactions from '~/resources/transactions';
6
6
  import * as Shared from '~/resources/shared';
7
+ import * as API from './';
7
8
 
8
9
  export class Cards extends APIResource {
9
10
  /**
@@ -64,232 +65,200 @@ export interface CardAuthorizationSimulation {
64
65
 
65
66
  export namespace CardAuthorizationSimulation {
66
67
  /**
67
- * If the authorization attempt succeeds, this will contain the resulting Pending
68
- * Transaction object. The Pending Transaction's `source` will be of
69
- * `category: card_authorization`.
68
+ * If the authorization attempt fails, this will contain the resulting
69
+ * [Declined Transaction](#declined-transactions) object. The Declined
70
+ * Transaction's `source` will be of `category: card_decline`.
70
71
  */
71
- export interface PendingTransaction {
72
+ export interface DeclinedTransaction {
72
73
  /**
73
- * The identifier for the account this Pending Transaction belongs to.
74
+ * The Declined Transaction identifier.
74
75
  */
75
- account_id: string;
76
+ id: string;
76
77
 
77
78
  /**
78
- * The Pending Transaction amount in the minor unit of its currency. For dollars,
79
- * for example, this is cents.
79
+ * The identifier for the Account the Declined Transaction belongs to.
80
80
  */
81
- amount: number;
81
+ account_id: string;
82
82
 
83
83
  /**
84
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
85
- * Transaction was completed.
84
+ * The Declined Transaction amount in the minor unit of its currency. For dollars,
85
+ * for example, this is cents.
86
86
  */
87
- completed_at: string | null;
87
+ amount: number;
88
88
 
89
89
  /**
90
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
90
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
91
91
  * Transaction occured.
92
92
  */
93
93
  created_at: string;
94
94
 
95
95
  /**
96
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
97
- * Transaction's currency. This will match the currency on the Pending
96
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined
97
+ * Transaction's currency. This will match the currency on the Declined
98
98
  * Transcation's Account.
99
99
  */
100
100
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
101
101
 
102
102
  /**
103
- * For a Pending Transaction related to a transfer, this is the description you
104
- * provide. For a Pending Transaction related to a payment, this is the description
105
- * the vendor provides.
103
+ * This is the description the vendor provides.
106
104
  */
107
105
  description: string;
108
106
 
109
107
  /**
110
- * The Pending Transaction identifier.
111
- */
112
- id: string;
113
-
114
- /**
115
- * The identifier for the route this Pending Transaction came through. Routes are
108
+ * The identifier for the route this Declined Transaction came through. Routes are
116
109
  * things like cards and ACH details.
117
110
  */
118
111
  route_id: string | null;
119
112
 
120
113
  /**
121
- * The type of the route this Pending Transaction came through.
114
+ * The type of the route this Declined Transaction came through.
122
115
  */
123
116
  route_type: 'account_number' | 'card' | null;
124
117
 
125
118
  /**
126
119
  * This is an object giving more details on the network-level event that caused the
127
- * Pending Transaction. For example, for a card transaction this lists the
128
- * merchant's industry and location.
129
- */
130
- source: PendingTransaction.Source;
131
-
132
- /**
133
- * Whether the Pending Transaction has been confirmed and has an associated
134
- * Transaction.
120
+ * Declined Transaction. For example, for a card transaction this lists the
121
+ * merchant's industry and location. Note that for backwards compatibility reasons,
122
+ * additional undocumented keys may appear in this object. These should be treated
123
+ * as deprecated and will be removed in the future.
135
124
  */
136
- status: 'pending' | 'complete';
125
+ source: DeclinedTransaction.Source;
137
126
 
138
127
  /**
139
128
  * A constant representing the object's type. For this resource it will always be
140
- * `pending_transaction`.
129
+ * `declined_transaction`.
141
130
  */
142
- type: 'pending_transaction';
131
+ type: 'declined_transaction';
143
132
  }
144
133
 
145
- export namespace PendingTransaction {
134
+ export namespace DeclinedTransaction {
146
135
  /**
147
136
  * This is an object giving more details on the network-level event that caused the
148
- * Pending Transaction. For example, for a card transaction this lists the
149
- * merchant's industry and location.
137
+ * Declined Transaction. For example, for a card transaction this lists the
138
+ * merchant's industry and location. Note that for backwards compatibility reasons,
139
+ * additional undocumented keys may appear in this object. These should be treated
140
+ * as deprecated and will be removed in the future.
150
141
  */
151
142
  export interface Source {
152
143
  /**
153
- * A Account Transfer Instruction object. This field will be present in the JSON
154
- * response if and only if `category` is equal to `account_transfer_instruction`.
155
- */
156
- account_transfer_instruction: Source.AccountTransferInstruction | null;
157
-
158
- /**
159
- * A ACH Transfer Instruction object. This field will be present in the JSON
160
- * response if and only if `category` is equal to `ach_transfer_instruction`.
144
+ * A ACH Decline object. This field will be present in the JSON response if and
145
+ * only if `category` is equal to `ach_decline`.
161
146
  */
162
- ach_transfer_instruction: Source.ACHTransferInstruction | null;
147
+ ach_decline: Source.ACHDecline | null;
163
148
 
164
149
  /**
165
- * A Card Authorization object. This field will be present in the JSON response if
166
- * and only if `category` is equal to `card_authorization`.
150
+ * A Card Decline object. This field will be present in the JSON response if and
151
+ * only if `category` is equal to `card_decline`.
167
152
  */
168
- card_authorization: Source.CardAuthorization | null;
153
+ card_decline: Source.CardDecline | null;
169
154
 
170
155
  /**
171
- * The type of transaction that took place. We may add additional possible values
172
- * for this enum over time; your application should be able to handle such
173
- * additions gracefully.
156
+ * The type of decline that took place. We may add additional possible values for
157
+ * this enum over time; your application should be able to handle such additions
158
+ * gracefully.
174
159
  */
175
160
  category:
176
- | 'account_transfer_instruction'
177
- | 'ach_transfer_instruction'
178
- | 'card_authorization'
179
- | 'check_deposit_instruction'
180
- | 'check_transfer_instruction'
181
- | 'inbound_funds_hold'
182
- | 'real_time_payments_transfer_instruction'
183
- | 'wire_transfer_instruction'
161
+ | 'ach_decline'
162
+ | 'card_decline'
163
+ | 'check_decline'
164
+ | 'inbound_real_time_payments_transfer_decline'
165
+ | 'international_ach_decline'
166
+ | 'wire_decline'
184
167
  | 'other';
185
168
 
186
169
  /**
187
- * A Check Deposit Instruction object. This field will be present in the JSON
188
- * response if and only if `category` is equal to `check_deposit_instruction`.
189
- */
190
- check_deposit_instruction: Source.CheckDepositInstruction | null;
191
-
192
- /**
193
- * A Check Transfer Instruction object. This field will be present in the JSON
194
- * response if and only if `category` is equal to `check_transfer_instruction`.
170
+ * A Check Decline object. This field will be present in the JSON response if and
171
+ * only if `category` is equal to `check_decline`.
195
172
  */
196
- check_transfer_instruction: Source.CheckTransferInstruction | null;
173
+ check_decline: Source.CheckDecline | null;
197
174
 
198
175
  /**
199
- * A Inbound Funds Hold object. This field will be present in the JSON response if
200
- * and only if `category` is equal to `inbound_funds_hold`.
176
+ * A Inbound Real Time Payments Transfer Decline object. This field will be present
177
+ * in the JSON response if and only if `category` is equal to
178
+ * `inbound_real_time_payments_transfer_decline`.
201
179
  */
202
- inbound_funds_hold: Source.InboundFundsHold | null;
180
+ inbound_real_time_payments_transfer_decline: Source.InboundRealTimePaymentsTransferDecline | null;
203
181
 
204
182
  /**
205
- * A Real Time Payments Transfer Instruction object. This field will be present in
206
- * the JSON response if and only if `category` is equal to
207
- * `real_time_payments_transfer_instruction`.
183
+ * A International ACH Decline object. This field will be present in the JSON
184
+ * response if and only if `category` is equal to `international_ach_decline`.
208
185
  */
209
- real_time_payments_transfer_instruction: Source.RealTimePaymentsTransferInstruction | null;
186
+ international_ach_decline: Source.InternationalACHDecline | null;
210
187
 
211
188
  /**
212
- * A Wire Transfer Instruction object. This field will be present in the JSON
213
- * response if and only if `category` is equal to `wire_transfer_instruction`.
189
+ * A Wire Decline object. This field will be present in the JSON response if and
190
+ * only if `category` is equal to `wire_decline`.
214
191
  */
215
- wire_transfer_instruction: Source.WireTransferInstruction | null;
192
+ wire_decline: Source.WireDecline | null;
216
193
  }
217
194
 
218
195
  export namespace Source {
219
196
  /**
220
- * A Account Transfer Instruction object. This field will be present in the JSON
221
- * response if and only if `category` is equal to `account_transfer_instruction`.
197
+ * A ACH Decline object. This field will be present in the JSON response if and
198
+ * only if `category` is equal to `ach_decline`.
222
199
  */
223
- export interface AccountTransferInstruction {
200
+ export interface ACHDecline {
224
201
  /**
225
- * The pending amount in the minor unit of the transaction's currency. For dollars,
226
- * for example, this is cents.
202
+ * The declined amount in the minor unit of the destination account currency. For
203
+ * dollars, for example, this is cents.
227
204
  */
228
205
  amount: number;
229
206
 
230
- /**
231
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
232
- * account currency.
233
- */
234
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
207
+ originator_company_descriptive_date: string | null;
235
208
 
236
- /**
237
- * The identifier of the Account Transfer that led to this Pending Transaction.
238
- */
239
- transfer_id: string;
240
- }
209
+ originator_company_discretionary_data: string | null;
241
210
 
242
- /**
243
- * A ACH Transfer Instruction object. This field will be present in the JSON
244
- * response if and only if `category` is equal to `ach_transfer_instruction`.
245
- */
246
- export interface ACHTransferInstruction {
247
- /**
248
- * The pending amount in the minor unit of the transaction's currency. For dollars,
249
- * for example, this is cents.
250
- */
251
- amount: number;
211
+ originator_company_id: string;
212
+
213
+ originator_company_name: string;
252
214
 
253
215
  /**
254
- * The identifier of the ACH Transfer that led to this Pending Transaction.
216
+ * Why the ACH transfer was declined.
255
217
  */
256
- transfer_id: string;
218
+ reason:
219
+ | 'ach_route_canceled'
220
+ | 'ach_route_disabled'
221
+ | 'breaches_limit'
222
+ | 'credit_entry_refused_by_receiver'
223
+ | 'duplicate_return'
224
+ | 'entity_not_active'
225
+ | 'group_locked'
226
+ | 'insufficient_funds'
227
+ | 'misrouted_return'
228
+ | 'no_ach_route'
229
+ | 'originator_request'
230
+ | 'transaction_not_allowed';
231
+
232
+ receiver_id_number: string | null;
233
+
234
+ receiver_name: string | null;
235
+
236
+ trace_number: string;
257
237
  }
258
238
 
259
239
  /**
260
- * A Card Authorization object. This field will be present in the JSON response if
261
- * and only if `category` is equal to `card_authorization`.
240
+ * A Card Decline object. This field will be present in the JSON response if and
241
+ * only if `category` is equal to `card_decline`.
262
242
  */
263
- export interface CardAuthorization {
243
+ export interface CardDecline {
264
244
  /**
265
- * The pending amount in the minor unit of the transaction's currency. For dollars,
266
- * for example, this is cents.
245
+ * The declined amount in the minor unit of the destination account currency. For
246
+ * dollars, for example, this is cents.
267
247
  */
268
248
  amount: number;
269
249
 
270
250
  /**
271
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
272
- * transaction's currency.
251
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
252
+ * account currency.
273
253
  */
274
254
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
275
255
 
276
256
  /**
277
- * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
278
- * purchase), the identifier of the token that was used.
257
+ * If the authorization was attempted using a Digital Wallet Token (such as an
258
+ * Apple Pay purchase), the identifier of the token that was used.
279
259
  */
280
260
  digital_wallet_token_id: string | null;
281
261
 
282
- /**
283
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) when this authorization
284
- * will expire and the pending transaction will be released.
285
- */
286
- expires_at: string;
287
-
288
- /**
289
- * The Card Authorization identifier.
290
- */
291
- id: string;
292
-
293
262
  /**
294
263
  * The merchant identifier (commonly abbreviated as MID) of the merchant the card
295
264
  * is transacting with.
@@ -318,19 +287,19 @@ export namespace CardAuthorizationSimulation {
318
287
  merchant_descriptor: string;
319
288
 
320
289
  /**
321
- * The payment network used to process this card authorization
290
+ * The state the merchant resides in.
322
291
  */
323
- network: 'visa';
292
+ merchant_state: string | null;
324
293
 
325
294
  /**
326
- * Fields specific to the `network`
295
+ * The payment network used to process this card authorization
327
296
  */
328
- network_details: CardAuthorization.NetworkDetails;
297
+ network: 'visa';
329
298
 
330
299
  /**
331
- * The identifier of the Pending Transaction associated with this Transaction.
300
+ * Fields specific to the `network`
332
301
  */
333
- pending_transaction_id: string | null;
302
+ network_details: CardDecline.NetworkDetails;
334
303
 
335
304
  /**
336
305
  * The identifier of the Real-Time Decision sent to approve or decline this
@@ -339,13 +308,25 @@ export namespace CardAuthorizationSimulation {
339
308
  real_time_decision_id: string | null;
340
309
 
341
310
  /**
342
- * A constant representing the object's type. For this resource it will always be
343
- * `card_authorization`.
311
+ * Why the transaction was declined.
344
312
  */
345
- type: 'card_authorization';
313
+ reason:
314
+ | 'card_not_active'
315
+ | 'entity_not_active'
316
+ | 'group_locked'
317
+ | 'insufficient_funds'
318
+ | 'cvv2_mismatch'
319
+ | 'transaction_not_allowed'
320
+ | 'breaches_internal_limit'
321
+ | 'breaches_limit'
322
+ | 'webhook_declined'
323
+ | 'webhook_timed_out'
324
+ | 'declined_by_stand_in_processing'
325
+ | 'invalid_physical_card'
326
+ | 'missing_original_authorization';
346
327
  }
347
328
 
348
- export namespace CardAuthorization {
329
+ export namespace CardDecline {
349
330
  /**
350
331
  * Fields specific to the `network`
351
332
  */
@@ -387,349 +368,464 @@ export namespace CardAuthorizationSimulation {
387
368
  }
388
369
 
389
370
  /**
390
- * A Check Deposit Instruction object. This field will be present in the JSON
391
- * response if and only if `category` is equal to `check_deposit_instruction`.
371
+ * A Check Decline object. This field will be present in the JSON response if and
372
+ * only if `category` is equal to `check_decline`.
392
373
  */
393
- export interface CheckDepositInstruction {
374
+ export interface CheckDecline {
394
375
  /**
395
- * The pending amount in the minor unit of the transaction's currency. For dollars,
396
- * for example, this is cents.
376
+ * The declined amount in the minor unit of the destination account currency. For
377
+ * dollars, for example, this is cents.
397
378
  */
398
379
  amount: number;
399
380
 
400
- /**
401
- * The identifier of the File containing the image of the back of the check that
402
- * was deposited.
403
- */
404
- back_image_file_id: string | null;
405
-
406
- /**
407
- * The identifier of the Check Deposit.
408
- */
409
- check_deposit_id: string | null;
410
-
411
- /**
412
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
413
- * transaction's currency.
414
- */
415
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
381
+ auxiliary_on_us: string | null;
416
382
 
417
383
  /**
418
- * The identifier of the File containing the image of the front of the check that
419
- * was deposited.
384
+ * Why the check was declined.
420
385
  */
421
- front_image_file_id: string;
386
+ reason:
387
+ | 'ach_route_canceled'
388
+ | 'ach_route_disabled'
389
+ | 'breaches_limit'
390
+ | 'entity_not_active'
391
+ | 'group_locked'
392
+ | 'insufficient_funds'
393
+ | 'unable_to_locate_account'
394
+ | 'not_our_item'
395
+ | 'unable_to_process'
396
+ | 'refer_to_image'
397
+ | 'stop_payment_requested'
398
+ | 'returned'
399
+ | 'duplicate_presentment'
400
+ | 'not_authorized'
401
+ | 'altered_or_fictitious';
422
402
  }
423
403
 
424
404
  /**
425
- * A Check Transfer Instruction object. This field will be present in the JSON
426
- * response if and only if `category` is equal to `check_transfer_instruction`.
405
+ * A Inbound Real Time Payments Transfer Decline object. This field will be present
406
+ * in the JSON response if and only if `category` is equal to
407
+ * `inbound_real_time_payments_transfer_decline`.
427
408
  */
428
- export interface CheckTransferInstruction {
409
+ export interface InboundRealTimePaymentsTransferDecline {
429
410
  /**
430
- * The pending amount in the minor unit of the transaction's currency. For dollars,
431
- * for example, this is cents.
411
+ * The declined amount in the minor unit of the destination account currency. For
412
+ * dollars, for example, this is cents.
432
413
  */
433
414
  amount: number;
434
415
 
435
416
  /**
436
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
437
- * currency.
438
- */
439
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
440
-
441
- /**
442
- * The identifier of the Check Transfer that led to this Pending Transaction.
443
- */
444
- transfer_id: string;
445
- }
446
-
447
- /**
448
- * A Inbound Funds Hold object. This field will be present in the JSON response if
449
- * and only if `category` is equal to `inbound_funds_hold`.
450
- */
451
- export interface InboundFundsHold {
452
- /**
453
- * The held amount in the minor unit of the account's currency. For dollars, for
454
- * example, this is cents.
417
+ * The name the sender of the transfer specified as the recipient of the transfer.
455
418
  */
456
- amount: number;
419
+ creditor_name: string;
457
420
 
458
421
  /**
459
- * When the hold will be released automatically. Certain conditions may cause it to
460
- * be released before this time.
422
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
423
+ * transfer's currency. This will always be "USD" for a Real Time Payments
424
+ * transfer.
461
425
  */
462
- automatically_releases_at: string;
426
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
463
427
 
464
428
  /**
465
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold
466
- * was created.
429
+ * The account number of the account that sent the transfer.
467
430
  */
468
- created_at: string;
431
+ debtor_account_number: string;
469
432
 
470
433
  /**
471
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
472
- * currency.
434
+ * The name provided by the sender of the transfer.
473
435
  */
474
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
436
+ debtor_name: string;
475
437
 
476
438
  /**
477
- * The ID of the Transaction for which funds were held.
439
+ * The routing number of the account that sent the transfer.
478
440
  */
479
- held_transaction_id: string | null;
441
+ debtor_routing_number: string;
480
442
 
481
443
  /**
482
- * The ID of the Pending Transaction representing the held funds.
444
+ * Why the transfer was declined.
483
445
  */
484
- pending_transaction_id: string | null;
446
+ reason:
447
+ | 'account_number_canceled'
448
+ | 'account_number_disabled'
449
+ | 'account_restricted'
450
+ | 'group_locked'
451
+ | 'entity_not_active'
452
+ | 'real_time_payments_not_enabled';
485
453
 
486
454
  /**
487
- * When the hold was released (if it has been released).
455
+ * Additional information included with the transfer.
488
456
  */
489
- released_at: string | null;
457
+ remittance_information: string | null;
490
458
 
491
459
  /**
492
- * The status of the hold.
460
+ * The Real Time Payments network identification of the declined transfer.
493
461
  */
494
- status: 'held' | 'complete';
462
+ transaction_identification: string;
495
463
  }
496
464
 
497
465
  /**
498
- * A Real Time Payments Transfer Instruction object. This field will be present in
499
- * the JSON response if and only if `category` is equal to
500
- * `real_time_payments_transfer_instruction`.
466
+ * A International ACH Decline object. This field will be present in the JSON
467
+ * response if and only if `category` is equal to `international_ach_decline`.
501
468
  */
502
- export interface RealTimePaymentsTransferInstruction {
469
+ export interface InternationalACHDecline {
503
470
  /**
504
- * The pending amount in the minor unit of the transaction's currency. For dollars,
505
- * for example, this is cents.
471
+ * The declined amount in the minor unit of the destination account currency. For
472
+ * dollars, for example, this is cents.
506
473
  */
507
474
  amount: number;
508
475
 
509
- /**
510
- * The identifier of the Real Time Payments Transfer that led to this Pending
511
- * Transaction.
512
- */
513
- transfer_id: string;
476
+ destination_country_code: string;
477
+
478
+ destination_currency_code: string;
479
+
480
+ foreign_exchange_indicator: string;
481
+
482
+ foreign_exchange_reference: string | null;
483
+
484
+ foreign_exchange_reference_indicator: string;
485
+
486
+ foreign_payment_amount: number;
487
+
488
+ foreign_trace_number: string | null;
489
+
490
+ international_transaction_type_code: string;
491
+
492
+ originating_currency_code: string;
493
+
494
+ originating_depository_financial_institution_branch_country: string;
495
+
496
+ originating_depository_financial_institution_id: string;
497
+
498
+ originating_depository_financial_institution_id_qualifier: string;
499
+
500
+ originating_depository_financial_institution_name: string;
501
+
502
+ originator_city: string;
503
+
504
+ originator_company_entry_description: string;
505
+
506
+ originator_country: string;
507
+
508
+ originator_identification: string;
509
+
510
+ originator_name: string;
511
+
512
+ originator_postal_code: string | null;
513
+
514
+ originator_state_or_province: string | null;
515
+
516
+ originator_street_address: string;
517
+
518
+ payment_related_information: string | null;
519
+
520
+ payment_related_information2: string | null;
521
+
522
+ receiver_city: string;
523
+
524
+ receiver_country: string;
525
+
526
+ receiver_identification_number: string | null;
527
+
528
+ receiver_postal_code: string | null;
529
+
530
+ receiver_state_or_province: string | null;
531
+
532
+ receiver_street_address: string;
533
+
534
+ receiving_company_or_individual_name: string;
535
+
536
+ receiving_depository_financial_institution_country: string;
537
+
538
+ receiving_depository_financial_institution_id: string;
539
+
540
+ receiving_depository_financial_institution_id_qualifier: string;
541
+
542
+ receiving_depository_financial_institution_name: string;
543
+
544
+ trace_number: string;
514
545
  }
515
546
 
516
547
  /**
517
- * A Wire Transfer Instruction object. This field will be present in the JSON
518
- * response if and only if `category` is equal to `wire_transfer_instruction`.
548
+ * A Wire Decline object. This field will be present in the JSON response if and
549
+ * only if `category` is equal to `wire_decline`.
519
550
  */
520
- export interface WireTransferInstruction {
521
- account_number: string;
522
-
551
+ export interface WireDecline {
523
552
  /**
524
- * The pending amount in the minor unit of the transaction's currency. For dollars,
525
- * for example, this is cents.
553
+ * The declined amount in the minor unit of the destination account currency. For
554
+ * dollars, for example, this is cents.
526
555
  */
527
556
  amount: number;
528
557
 
529
- message_to_recipient: string;
558
+ beneficiary_address_line1: string | null;
530
559
 
531
- routing_number: string;
560
+ beneficiary_address_line2: string | null;
532
561
 
533
- transfer_id: string;
562
+ beneficiary_address_line3: string | null;
563
+
564
+ beneficiary_name: string | null;
565
+
566
+ beneficiary_reference: string | null;
567
+
568
+ description: string;
569
+
570
+ input_message_accountability_data: string | null;
571
+
572
+ originator_address_line1: string | null;
573
+
574
+ originator_address_line2: string | null;
575
+
576
+ originator_address_line3: string | null;
577
+
578
+ originator_name: string | null;
579
+
580
+ originator_to_beneficiary_information_line1: string | null;
581
+
582
+ originator_to_beneficiary_information_line2: string | null;
583
+
584
+ originator_to_beneficiary_information_line3: string | null;
585
+
586
+ originator_to_beneficiary_information_line4: string | null;
587
+
588
+ /**
589
+ * Why the wire transfer was declined.
590
+ */
591
+ reason:
592
+ | 'account_number_canceled'
593
+ | 'account_number_disabled'
594
+ | 'entity_not_active'
595
+ | 'group_locked'
596
+ | 'no_account_number'
597
+ | 'transaction_not_allowed';
534
598
  }
535
599
  }
536
600
  }
537
601
 
538
602
  /**
539
- * If the authorization attempt fails, this will contain the resulting
540
- * [Declined Transaction](#declined-transactions) object. The Declined
541
- * Transaction's `source` will be of `category: card_decline`.
603
+ * If the authorization attempt succeeds, this will contain the resulting Pending
604
+ * Transaction object. The Pending Transaction's `source` will be of
605
+ * `category: card_authorization`.
542
606
  */
543
- export interface DeclinedTransaction {
607
+ export interface PendingTransaction {
544
608
  /**
545
- * The identifier for the Account the Declined Transaction belongs to.
609
+ * The Pending Transaction identifier.
610
+ */
611
+ id: string;
612
+
613
+ /**
614
+ * The identifier for the account this Pending Transaction belongs to.
546
615
  */
547
616
  account_id: string;
548
617
 
549
618
  /**
550
- * The Declined Transaction amount in the minor unit of its currency. For dollars,
619
+ * The Pending Transaction amount in the minor unit of its currency. For dollars,
551
620
  * for example, this is cents.
552
621
  */
553
622
  amount: number;
554
623
 
555
624
  /**
556
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
625
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
626
+ * Transaction was completed.
627
+ */
628
+ completed_at: string | null;
629
+
630
+ /**
631
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
557
632
  * Transaction occured.
558
633
  */
559
634
  created_at: string;
560
635
 
561
636
  /**
562
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined
563
- * Transaction's currency. This will match the currency on the Declined
637
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
638
+ * Transaction's currency. This will match the currency on the Pending
564
639
  * Transcation's Account.
565
640
  */
566
641
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
567
642
 
568
643
  /**
569
- * This is the description the vendor provides.
644
+ * For a Pending Transaction related to a transfer, this is the description you
645
+ * provide. For a Pending Transaction related to a payment, this is the description
646
+ * the vendor provides.
570
647
  */
571
648
  description: string;
572
649
 
573
650
  /**
574
- * The Declined Transaction identifier.
575
- */
576
- id: string;
577
-
578
- /**
579
- * The identifier for the route this Declined Transaction came through. Routes are
651
+ * The identifier for the route this Pending Transaction came through. Routes are
580
652
  * things like cards and ACH details.
581
653
  */
582
654
  route_id: string | null;
583
655
 
584
656
  /**
585
- * The type of the route this Declined Transaction came through.
657
+ * The type of the route this Pending Transaction came through.
586
658
  */
587
659
  route_type: 'account_number' | 'card' | null;
588
660
 
589
661
  /**
590
662
  * This is an object giving more details on the network-level event that caused the
591
- * Declined Transaction. For example, for a card transaction this lists the
592
- * merchant's industry and location. Note that for backwards compatibility reasons,
593
- * additional undocumented keys may appear in this object. These should be treated
594
- * as deprecated and will be removed in the future.
663
+ * Pending Transaction. For example, for a card transaction this lists the
664
+ * merchant's industry and location.
595
665
  */
596
- source: DeclinedTransaction.Source;
666
+ source: PendingTransaction.Source;
667
+
668
+ /**
669
+ * Whether the Pending Transaction has been confirmed and has an associated
670
+ * Transaction.
671
+ */
672
+ status: 'pending' | 'complete';
597
673
 
598
674
  /**
599
675
  * A constant representing the object's type. For this resource it will always be
600
- * `declined_transaction`.
676
+ * `pending_transaction`.
601
677
  */
602
- type: 'declined_transaction';
678
+ type: 'pending_transaction';
603
679
  }
604
680
 
605
- export namespace DeclinedTransaction {
681
+ export namespace PendingTransaction {
606
682
  /**
607
683
  * This is an object giving more details on the network-level event that caused the
608
- * Declined Transaction. For example, for a card transaction this lists the
609
- * merchant's industry and location. Note that for backwards compatibility reasons,
610
- * additional undocumented keys may appear in this object. These should be treated
611
- * as deprecated and will be removed in the future.
684
+ * Pending Transaction. For example, for a card transaction this lists the
685
+ * merchant's industry and location.
612
686
  */
613
687
  export interface Source {
614
688
  /**
615
- * A ACH Decline object. This field will be present in the JSON response if and
616
- * only if `category` is equal to `ach_decline`.
689
+ * A Account Transfer Instruction object. This field will be present in the JSON
690
+ * response if and only if `category` is equal to `account_transfer_instruction`.
617
691
  */
618
- ach_decline: Source.ACHDecline | null;
692
+ account_transfer_instruction: Source.AccountTransferInstruction | null;
619
693
 
620
694
  /**
621
- * A Card Decline object. This field will be present in the JSON response if and
622
- * only if `category` is equal to `card_decline`.
695
+ * A ACH Transfer Instruction object. This field will be present in the JSON
696
+ * response if and only if `category` is equal to `ach_transfer_instruction`.
623
697
  */
624
- card_decline: Source.CardDecline | null;
698
+ ach_transfer_instruction: Source.ACHTransferInstruction | null;
625
699
 
626
700
  /**
627
- * The type of decline that took place. We may add additional possible values for
628
- * this enum over time; your application should be able to handle such additions
629
- * gracefully.
701
+ * A Card Authorization object. This field will be present in the JSON response if
702
+ * and only if `category` is equal to `card_authorization`.
703
+ */
704
+ card_authorization: Source.CardAuthorization | null;
705
+
706
+ /**
707
+ * The type of transaction that took place. We may add additional possible values
708
+ * for this enum over time; your application should be able to handle such
709
+ * additions gracefully.
630
710
  */
631
711
  category:
632
- | 'ach_decline'
633
- | 'card_decline'
634
- | 'check_decline'
635
- | 'inbound_real_time_payments_transfer_decline'
636
- | 'international_ach_decline'
637
- | 'wire_decline'
712
+ | 'account_transfer_instruction'
713
+ | 'ach_transfer_instruction'
714
+ | 'card_authorization'
715
+ | 'check_deposit_instruction'
716
+ | 'check_transfer_instruction'
717
+ | 'inbound_funds_hold'
718
+ | 'real_time_payments_transfer_instruction'
719
+ | 'wire_transfer_instruction'
638
720
  | 'other';
639
721
 
640
722
  /**
641
- * A Check Decline object. This field will be present in the JSON response if and
642
- * only if `category` is equal to `check_decline`.
723
+ * A Check Deposit Instruction object. This field will be present in the JSON
724
+ * response if and only if `category` is equal to `check_deposit_instruction`.
643
725
  */
644
- check_decline: Source.CheckDecline | null;
726
+ check_deposit_instruction: Source.CheckDepositInstruction | null;
645
727
 
646
728
  /**
647
- * A Inbound Real Time Payments Transfer Decline object. This field will be present
648
- * in the JSON response if and only if `category` is equal to
649
- * `inbound_real_time_payments_transfer_decline`.
729
+ * A Check Transfer Instruction object. This field will be present in the JSON
730
+ * response if and only if `category` is equal to `check_transfer_instruction`.
650
731
  */
651
- inbound_real_time_payments_transfer_decline: Source.InboundRealTimePaymentsTransferDecline | null;
732
+ check_transfer_instruction: Source.CheckTransferInstruction | null;
652
733
 
653
734
  /**
654
- * A International ACH Decline object. This field will be present in the JSON
655
- * response if and only if `category` is equal to `international_ach_decline`.
735
+ * A Inbound Funds Hold object. This field will be present in the JSON response if
736
+ * and only if `category` is equal to `inbound_funds_hold`.
656
737
  */
657
- international_ach_decline: Source.InternationalACHDecline | null;
738
+ inbound_funds_hold: Source.InboundFundsHold | null;
658
739
 
659
740
  /**
660
- * A Wire Decline object. This field will be present in the JSON response if and
661
- * only if `category` is equal to `wire_decline`.
741
+ * A Real Time Payments Transfer Instruction object. This field will be present in
742
+ * the JSON response if and only if `category` is equal to
743
+ * `real_time_payments_transfer_instruction`.
662
744
  */
663
- wire_decline: Source.WireDecline | null;
745
+ real_time_payments_transfer_instruction: Source.RealTimePaymentsTransferInstruction | null;
746
+
747
+ /**
748
+ * A Wire Transfer Instruction object. This field will be present in the JSON
749
+ * response if and only if `category` is equal to `wire_transfer_instruction`.
750
+ */
751
+ wire_transfer_instruction: Source.WireTransferInstruction | null;
664
752
  }
665
753
 
666
754
  export namespace Source {
667
755
  /**
668
- * A ACH Decline object. This field will be present in the JSON response if and
669
- * only if `category` is equal to `ach_decline`.
756
+ * A Account Transfer Instruction object. This field will be present in the JSON
757
+ * response if and only if `category` is equal to `account_transfer_instruction`.
670
758
  */
671
- export interface ACHDecline {
759
+ export interface AccountTransferInstruction {
672
760
  /**
673
- * The declined amount in the minor unit of the destination account currency. For
674
- * dollars, for example, this is cents.
761
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
762
+ * for example, this is cents.
675
763
  */
676
764
  amount: number;
677
765
 
678
- originator_company_descriptive_date: string | null;
679
-
680
- originator_company_discretionary_data: string | null;
681
-
682
- originator_company_id: string;
683
-
684
- originator_company_name: string;
685
-
686
766
  /**
687
- * Why the ACH transfer was declined.
767
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
768
+ * account currency.
688
769
  */
689
- reason:
690
- | 'ach_route_canceled'
691
- | 'ach_route_disabled'
692
- | 'breaches_limit'
693
- | 'credit_entry_refused_by_receiver'
694
- | 'duplicate_return'
695
- | 'entity_not_active'
696
- | 'group_locked'
697
- | 'insufficient_funds'
698
- | 'misrouted_return'
699
- | 'no_ach_route'
700
- | 'originator_request'
701
- | 'transaction_not_allowed';
770
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
702
771
 
703
- receiver_id_number: string | null;
772
+ /**
773
+ * The identifier of the Account Transfer that led to this Pending Transaction.
774
+ */
775
+ transfer_id: string;
776
+ }
704
777
 
705
- receiver_name: string | null;
778
+ /**
779
+ * A ACH Transfer Instruction object. This field will be present in the JSON
780
+ * response if and only if `category` is equal to `ach_transfer_instruction`.
781
+ */
782
+ export interface ACHTransferInstruction {
783
+ /**
784
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
785
+ * for example, this is cents.
786
+ */
787
+ amount: number;
706
788
 
707
- trace_number: string;
789
+ /**
790
+ * The identifier of the ACH Transfer that led to this Pending Transaction.
791
+ */
792
+ transfer_id: string;
708
793
  }
709
794
 
710
795
  /**
711
- * A Card Decline object. This field will be present in the JSON response if and
712
- * only if `category` is equal to `card_decline`.
796
+ * A Card Authorization object. This field will be present in the JSON response if
797
+ * and only if `category` is equal to `card_authorization`.
713
798
  */
714
- export interface CardDecline {
799
+ export interface CardAuthorization {
715
800
  /**
716
- * The declined amount in the minor unit of the destination account currency. For
717
- * dollars, for example, this is cents.
801
+ * The Card Authorization identifier.
802
+ */
803
+ id: string;
804
+
805
+ /**
806
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
807
+ * for example, this is cents.
718
808
  */
719
809
  amount: number;
720
810
 
721
811
  /**
722
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
723
- * account currency.
812
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
813
+ * transaction's currency.
724
814
  */
725
815
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
726
816
 
727
817
  /**
728
- * If the authorization was attempted using a Digital Wallet Token (such as an
729
- * Apple Pay purchase), the identifier of the token that was used.
818
+ * If the authorization was made via a Digital Wallet Token (such as an Apple Pay
819
+ * purchase), the identifier of the token that was used.
730
820
  */
731
821
  digital_wallet_token_id: string | null;
732
822
 
823
+ /**
824
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) when this authorization
825
+ * will expire and the pending transaction will be released.
826
+ */
827
+ expires_at: string;
828
+
733
829
  /**
734
830
  * The merchant identifier (commonly abbreviated as MID) of the merchant the card
735
831
  * is transacting with.
@@ -757,11 +853,6 @@ export namespace CardAuthorizationSimulation {
757
853
  */
758
854
  merchant_descriptor: string;
759
855
 
760
- /**
761
- * The state the merchant resides in.
762
- */
763
- merchant_state: string | null;
764
-
765
856
  /**
766
857
  * The payment network used to process this card authorization
767
858
  */
@@ -770,7 +861,12 @@ export namespace CardAuthorizationSimulation {
770
861
  /**
771
862
  * Fields specific to the `network`
772
863
  */
773
- network_details: CardDecline.NetworkDetails;
864
+ network_details: CardAuthorization.NetworkDetails;
865
+
866
+ /**
867
+ * The identifier of the Pending Transaction associated with this Transaction.
868
+ */
869
+ pending_transaction_id: string | null;
774
870
 
775
871
  /**
776
872
  * The identifier of the Real-Time Decision sent to approve or decline this
@@ -779,25 +875,13 @@ export namespace CardAuthorizationSimulation {
779
875
  real_time_decision_id: string | null;
780
876
 
781
877
  /**
782
- * Why the transaction was declined.
878
+ * A constant representing the object's type. For this resource it will always be
879
+ * `card_authorization`.
783
880
  */
784
- reason:
785
- | 'card_not_active'
786
- | 'entity_not_active'
787
- | 'group_locked'
788
- | 'insufficient_funds'
789
- | 'cvv2_mismatch'
790
- | 'transaction_not_allowed'
791
- | 'breaches_internal_limit'
792
- | 'breaches_limit'
793
- | 'webhook_declined'
794
- | 'webhook_timed_out'
795
- | 'declined_by_stand_in_processing'
796
- | 'invalid_physical_card'
797
- | 'missing_original_authorization';
881
+ type: 'card_authorization';
798
882
  }
799
883
 
800
- export namespace CardDecline {
884
+ export namespace CardAuthorization {
801
885
  /**
802
886
  * Fields specific to the `network`
803
887
  */
@@ -829,243 +913,160 @@ export namespace CardAuthorizationSimulation {
829
913
  | 'non_secure_transaction'
830
914
  | null;
831
915
 
832
- /**
833
- * The method used to enter the cardholder's primary account number and card
834
- * expiration date
835
- */
836
- point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
837
- }
838
- }
916
+ /**
917
+ * The method used to enter the cardholder's primary account number and card
918
+ * expiration date
919
+ */
920
+ point_of_service_entry_mode: Shared.PointOfServiceEntryMode | null;
921
+ }
922
+ }
923
+ }
924
+
925
+ /**
926
+ * A Check Deposit Instruction object. This field will be present in the JSON
927
+ * response if and only if `category` is equal to `check_deposit_instruction`.
928
+ */
929
+ export interface CheckDepositInstruction {
930
+ /**
931
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
932
+ * for example, this is cents.
933
+ */
934
+ amount: number;
935
+
936
+ /**
937
+ * The identifier of the File containing the image of the back of the check that
938
+ * was deposited.
939
+ */
940
+ back_image_file_id: string | null;
941
+
942
+ /**
943
+ * The identifier of the Check Deposit.
944
+ */
945
+ check_deposit_id: string | null;
946
+
947
+ /**
948
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
949
+ * transaction's currency.
950
+ */
951
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
952
+
953
+ /**
954
+ * The identifier of the File containing the image of the front of the check that
955
+ * was deposited.
956
+ */
957
+ front_image_file_id: string;
839
958
  }
840
959
 
841
960
  /**
842
- * A Check Decline object. This field will be present in the JSON response if and
843
- * only if `category` is equal to `check_decline`.
961
+ * A Check Transfer Instruction object. This field will be present in the JSON
962
+ * response if and only if `category` is equal to `check_transfer_instruction`.
844
963
  */
845
- export interface CheckDecline {
964
+ export interface CheckTransferInstruction {
846
965
  /**
847
- * The declined amount in the minor unit of the destination account currency. For
848
- * dollars, for example, this is cents.
966
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
967
+ * for example, this is cents.
849
968
  */
850
969
  amount: number;
851
970
 
852
- auxiliary_on_us: string | null;
971
+ /**
972
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
973
+ * currency.
974
+ */
975
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
853
976
 
854
977
  /**
855
- * Why the check was declined.
978
+ * The identifier of the Check Transfer that led to this Pending Transaction.
856
979
  */
857
- reason:
858
- | 'ach_route_canceled'
859
- | 'ach_route_disabled'
860
- | 'breaches_limit'
861
- | 'entity_not_active'
862
- | 'group_locked'
863
- | 'insufficient_funds'
864
- | 'unable_to_locate_account'
865
- | 'not_our_item'
866
- | 'unable_to_process'
867
- | 'refer_to_image'
868
- | 'stop_payment_requested'
869
- | 'returned'
870
- | 'duplicate_presentment'
871
- | 'not_authorized'
872
- | 'altered_or_fictitious';
980
+ transfer_id: string;
873
981
  }
874
982
 
875
983
  /**
876
- * A Inbound Real Time Payments Transfer Decline object. This field will be present
877
- * in the JSON response if and only if `category` is equal to
878
- * `inbound_real_time_payments_transfer_decline`.
984
+ * A Inbound Funds Hold object. This field will be present in the JSON response if
985
+ * and only if `category` is equal to `inbound_funds_hold`.
879
986
  */
880
- export interface InboundRealTimePaymentsTransferDecline {
987
+ export interface InboundFundsHold {
881
988
  /**
882
- * The declined amount in the minor unit of the destination account currency. For
883
- * dollars, for example, this is cents.
989
+ * The held amount in the minor unit of the account's currency. For dollars, for
990
+ * example, this is cents.
884
991
  */
885
992
  amount: number;
886
993
 
887
994
  /**
888
- * The name the sender of the transfer specified as the recipient of the transfer.
889
- */
890
- creditor_name: string;
891
-
892
- /**
893
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
894
- * transfer's currency. This will always be "USD" for a Real Time Payments
895
- * transfer.
995
+ * When the hold will be released automatically. Certain conditions may cause it to
996
+ * be released before this time.
896
997
  */
897
- currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
998
+ automatically_releases_at: string;
898
999
 
899
1000
  /**
900
- * The account number of the account that sent the transfer.
1001
+ * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold
1002
+ * was created.
901
1003
  */
902
- debtor_account_number: string;
1004
+ created_at: string;
903
1005
 
904
1006
  /**
905
- * The name provided by the sender of the transfer.
1007
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
1008
+ * currency.
906
1009
  */
907
- debtor_name: string;
1010
+ currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
908
1011
 
909
1012
  /**
910
- * The routing number of the account that sent the transfer.
1013
+ * The ID of the Transaction for which funds were held.
911
1014
  */
912
- debtor_routing_number: string;
1015
+ held_transaction_id: string | null;
913
1016
 
914
1017
  /**
915
- * Why the transfer was declined.
1018
+ * The ID of the Pending Transaction representing the held funds.
916
1019
  */
917
- reason:
918
- | 'account_number_canceled'
919
- | 'account_number_disabled'
920
- | 'account_restricted'
921
- | 'group_locked'
922
- | 'entity_not_active'
923
- | 'real_time_payments_not_enabled';
1020
+ pending_transaction_id: string | null;
924
1021
 
925
1022
  /**
926
- * Additional information included with the transfer.
1023
+ * When the hold was released (if it has been released).
927
1024
  */
928
- remittance_information: string | null;
1025
+ released_at: string | null;
929
1026
 
930
1027
  /**
931
- * The Real Time Payments network identification of the declined transfer.
1028
+ * The status of the hold.
932
1029
  */
933
- transaction_identification: string;
1030
+ status: 'held' | 'complete';
934
1031
  }
935
1032
 
936
1033
  /**
937
- * A International ACH Decline object. This field will be present in the JSON
938
- * response if and only if `category` is equal to `international_ach_decline`.
1034
+ * A Real Time Payments Transfer Instruction object. This field will be present in
1035
+ * the JSON response if and only if `category` is equal to
1036
+ * `real_time_payments_transfer_instruction`.
939
1037
  */
940
- export interface InternationalACHDecline {
1038
+ export interface RealTimePaymentsTransferInstruction {
941
1039
  /**
942
- * The declined amount in the minor unit of the destination account currency. For
943
- * dollars, for example, this is cents.
1040
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
1041
+ * for example, this is cents.
944
1042
  */
945
1043
  amount: number;
946
1044
 
947
- destination_country_code: string;
948
-
949
- destination_currency_code: string;
950
-
951
- foreign_exchange_indicator: string;
952
-
953
- foreign_exchange_reference: string | null;
954
-
955
- foreign_exchange_reference_indicator: string;
956
-
957
- foreign_payment_amount: number;
958
-
959
- foreign_trace_number: string | null;
960
-
961
- international_transaction_type_code: string;
962
-
963
- originating_currency_code: string;
964
-
965
- originating_depository_financial_institution_branch_country: string;
966
-
967
- originating_depository_financial_institution_id: string;
968
-
969
- originating_depository_financial_institution_id_qualifier: string;
970
-
971
- originating_depository_financial_institution_name: string;
972
-
973
- originator_city: string;
974
-
975
- originator_company_entry_description: string;
976
-
977
- originator_country: string;
978
-
979
- originator_identification: string;
980
-
981
- originator_name: string;
982
-
983
- originator_postal_code: string | null;
984
-
985
- originator_state_or_province: string | null;
986
-
987
- originator_street_address: string;
988
-
989
- payment_related_information: string | null;
990
-
991
- payment_related_information2: string | null;
992
-
993
- receiver_city: string;
994
-
995
- receiver_country: string;
996
-
997
- receiver_identification_number: string | null;
998
-
999
- receiver_postal_code: string | null;
1000
-
1001
- receiver_state_or_province: string | null;
1002
-
1003
- receiver_street_address: string;
1004
-
1005
- receiving_company_or_individual_name: string;
1006
-
1007
- receiving_depository_financial_institution_country: string;
1008
-
1009
- receiving_depository_financial_institution_id: string;
1010
-
1011
- receiving_depository_financial_institution_id_qualifier: string;
1012
-
1013
- receiving_depository_financial_institution_name: string;
1014
-
1015
- trace_number: string;
1045
+ /**
1046
+ * The identifier of the Real Time Payments Transfer that led to this Pending
1047
+ * Transaction.
1048
+ */
1049
+ transfer_id: string;
1016
1050
  }
1017
1051
 
1018
1052
  /**
1019
- * A Wire Decline object. This field will be present in the JSON response if and
1020
- * only if `category` is equal to `wire_decline`.
1053
+ * A Wire Transfer Instruction object. This field will be present in the JSON
1054
+ * response if and only if `category` is equal to `wire_transfer_instruction`.
1021
1055
  */
1022
- export interface WireDecline {
1056
+ export interface WireTransferInstruction {
1057
+ account_number: string;
1058
+
1023
1059
  /**
1024
- * The declined amount in the minor unit of the destination account currency. For
1025
- * dollars, for example, this is cents.
1060
+ * The pending amount in the minor unit of the transaction's currency. For dollars,
1061
+ * for example, this is cents.
1026
1062
  */
1027
1063
  amount: number;
1028
1064
 
1029
- beneficiary_address_line1: string | null;
1030
-
1031
- beneficiary_address_line2: string | null;
1032
-
1033
- beneficiary_address_line3: string | null;
1034
-
1035
- beneficiary_name: string | null;
1036
-
1037
- beneficiary_reference: string | null;
1038
-
1039
- description: string;
1040
-
1041
- input_message_accountability_data: string | null;
1042
-
1043
- originator_address_line1: string | null;
1044
-
1045
- originator_address_line2: string | null;
1046
-
1047
- originator_address_line3: string | null;
1048
-
1049
- originator_name: string | null;
1050
-
1051
- originator_to_beneficiary_information_line1: string | null;
1052
-
1053
- originator_to_beneficiary_information_line2: string | null;
1054
-
1055
- originator_to_beneficiary_information_line3: string | null;
1065
+ message_to_recipient: string;
1056
1066
 
1057
- originator_to_beneficiary_information_line4: string | null;
1067
+ routing_number: string;
1058
1068
 
1059
- /**
1060
- * Why the wire transfer was declined.
1061
- */
1062
- reason:
1063
- | 'account_number_canceled'
1064
- | 'account_number_disabled'
1065
- | 'entity_not_active'
1066
- | 'group_locked'
1067
- | 'no_account_number'
1068
- | 'transaction_not_allowed';
1069
+ transfer_id: string;
1069
1070
  }
1070
1071
  }
1071
1072
  }
@@ -1114,3 +1115,9 @@ export interface CardSettlementParams {
1114
1115
  */
1115
1116
  amount?: number;
1116
1117
  }
1118
+
1119
+ export namespace Cards {
1120
+ export import CardAuthorizationSimulation = API.CardAuthorizationSimulation;
1121
+ export import CardAuthorizeParams = API.CardAuthorizeParams;
1122
+ export import CardSettlementParams = API.CardSettlementParams;
1123
+ }