increase 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. package/.eslintrc.js +10 -0
  2. package/.prettierrc +6 -0
  3. package/.stats.yml +1 -0
  4. package/LICENSE +201 -0
  5. package/README.md +211 -0
  6. package/api.md +477 -0
  7. package/bin/check-test-server +50 -0
  8. package/build +12 -0
  9. package/check-version.ts +15 -0
  10. package/core.ts +908 -0
  11. package/dist/cjs/check-version.d.ts +1 -0
  12. package/dist/cjs/check-version.js +21 -0
  13. package/dist/cjs/check-version.js.map +1 -0
  14. package/dist/cjs/core.d.ts +262 -0
  15. package/dist/cjs/core.js +978 -0
  16. package/dist/cjs/core.js.map +1 -0
  17. package/dist/cjs/fetch-polyfill.d.ts +5 -0
  18. package/dist/cjs/fetch-polyfill.js +55 -0
  19. package/dist/cjs/fetch-polyfill.js.map +1 -0
  20. package/dist/cjs/index.d.ts +201 -0
  21. package/dist/cjs/index.js +180 -0
  22. package/dist/cjs/index.js.map +1 -0
  23. package/dist/cjs/pagination.d.ts +28 -0
  24. package/dist/cjs/pagination.js +30 -0
  25. package/dist/cjs/pagination.js.map +1 -0
  26. package/dist/cjs/resource.d.ts +11 -0
  27. package/dist/cjs/resource.js +17 -0
  28. package/dist/cjs/resource.js.map +1 -0
  29. package/dist/cjs/resources/account-numbers.d.ts +103 -0
  30. package/dist/cjs/resources/account-numbers.js +37 -0
  31. package/dist/cjs/resources/account-numbers.js.map +1 -0
  32. package/dist/cjs/resources/account-statements.d.ts +99 -0
  33. package/dist/cjs/resources/account-statements.js +25 -0
  34. package/dist/cjs/resources/account-statements.js.map +1 -0
  35. package/dist/cjs/resources/account-transfers.d.ts +189 -0
  36. package/dist/cjs/resources/account-transfers.js +43 -0
  37. package/dist/cjs/resources/account-transfers.js.map +1 -0
  38. package/dist/cjs/resources/accounts.d.ts +133 -0
  39. package/dist/cjs/resources/accounts.js +43 -0
  40. package/dist/cjs/resources/accounts.js.map +1 -0
  41. package/dist/cjs/resources/ach-prenotifications.d.ts +188 -0
  42. package/dist/cjs/resources/ach-prenotifications.js +35 -0
  43. package/dist/cjs/resources/ach-prenotifications.js.map +1 -0
  44. package/dist/cjs/resources/ach-transfers.d.ts +375 -0
  45. package/dist/cjs/resources/ach-transfers.js +43 -0
  46. package/dist/cjs/resources/ach-transfers.js.map +1 -0
  47. package/dist/cjs/resources/card-disputes.d.ts +143 -0
  48. package/dist/cjs/resources/card-disputes.js +31 -0
  49. package/dist/cjs/resources/card-disputes.js.map +1 -0
  50. package/dist/cjs/resources/card-profiles.d.ts +183 -0
  51. package/dist/cjs/resources/card-profiles.js +31 -0
  52. package/dist/cjs/resources/card-profiles.js.map +1 -0
  53. package/dist/cjs/resources/cards.d.ts +316 -0
  54. package/dist/cjs/resources/cards.js +43 -0
  55. package/dist/cjs/resources/cards.js.map +1 -0
  56. package/dist/cjs/resources/check-deposits.d.ts +241 -0
  57. package/dist/cjs/resources/check-deposits.js +31 -0
  58. package/dist/cjs/resources/check-deposits.js.map +1 -0
  59. package/dist/cjs/resources/check-transfers.d.ts +331 -0
  60. package/dist/cjs/resources/check-transfers.js +49 -0
  61. package/dist/cjs/resources/check-transfers.js.map +1 -0
  62. package/dist/cjs/resources/declined-transactions.d.ts +424 -0
  63. package/dist/cjs/resources/declined-transactions.js +29 -0
  64. package/dist/cjs/resources/declined-transactions.js.map +1 -0
  65. package/dist/cjs/resources/digital-wallet-tokens.d.ts +85 -0
  66. package/dist/cjs/resources/digital-wallet-tokens.js +29 -0
  67. package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -0
  68. package/dist/cjs/resources/documents.d.ts +87 -0
  69. package/dist/cjs/resources/documents.js +25 -0
  70. package/dist/cjs/resources/documents.js.map +1 -0
  71. package/dist/cjs/resources/entities/entities.d.ts +1383 -0
  72. package/dist/cjs/resources/entities/entities.js +36 -0
  73. package/dist/cjs/resources/entities/entities.js.map +1 -0
  74. package/dist/cjs/resources/entities/index.d.ts +2 -0
  75. package/dist/cjs/resources/entities/index.js +12 -0
  76. package/dist/cjs/resources/entities/index.js.map +1 -0
  77. package/dist/cjs/resources/entities/supplemental-documents.d.ts +19 -0
  78. package/dist/cjs/resources/entities/supplemental-documents.js +15 -0
  79. package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -0
  80. package/dist/cjs/resources/event-subscriptions.d.ts +196 -0
  81. package/dist/cjs/resources/event-subscriptions.js +37 -0
  82. package/dist/cjs/resources/event-subscriptions.js.map +1 -0
  83. package/dist/cjs/resources/events.d.ts +183 -0
  84. package/dist/cjs/resources/events.js +25 -0
  85. package/dist/cjs/resources/events.js.map +1 -0
  86. package/dist/cjs/resources/external-accounts.d.ts +121 -0
  87. package/dist/cjs/resources/external-accounts.js +37 -0
  88. package/dist/cjs/resources/external-accounts.js.map +1 -0
  89. package/dist/cjs/resources/files.d.ts +148 -0
  90. package/dist/cjs/resources/files.js +34 -0
  91. package/dist/cjs/resources/files.js.map +1 -0
  92. package/dist/cjs/resources/groups.d.ts +37 -0
  93. package/dist/cjs/resources/groups.js +15 -0
  94. package/dist/cjs/resources/groups.js.map +1 -0
  95. package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +106 -0
  96. package/dist/cjs/resources/inbound-ach-transfer-returns.js +35 -0
  97. package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -0
  98. package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +124 -0
  99. package/dist/cjs/resources/inbound-wire-drawdown-requests.js +29 -0
  100. package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -0
  101. package/dist/cjs/resources/index.d.ts +163 -0
  102. package/dist/cjs/resources/index.js +478 -0
  103. package/dist/cjs/resources/index.js.map +1 -0
  104. package/dist/cjs/resources/limits.d.ts +105 -0
  105. package/dist/cjs/resources/limits.js +37 -0
  106. package/dist/cjs/resources/limits.js.map +1 -0
  107. package/dist/cjs/resources/oauth-connections.d.ts +50 -0
  108. package/dist/cjs/resources/oauth-connections.js +25 -0
  109. package/dist/cjs/resources/oauth-connections.js.map +1 -0
  110. package/dist/cjs/resources/pending-transactions.d.ts +397 -0
  111. package/dist/cjs/resources/pending-transactions.js +29 -0
  112. package/dist/cjs/resources/pending-transactions.js.map +1 -0
  113. package/dist/cjs/resources/real-time-decisions.d.ts +289 -0
  114. package/dist/cjs/resources/real-time-decisions.js +21 -0
  115. package/dist/cjs/resources/real-time-decisions.js.map +1 -0
  116. package/dist/cjs/resources/routing-numbers.d.ts +49 -0
  117. package/dist/cjs/resources/routing-numbers.js +21 -0
  118. package/dist/cjs/resources/routing-numbers.js.map +1 -0
  119. package/dist/cjs/resources/shared.d.ts +15 -0
  120. package/dist/cjs/resources/shared.js +4 -0
  121. package/dist/cjs/resources/shared.js.map +1 -0
  122. package/dist/cjs/resources/simulations/account-statements.d.ts +19 -0
  123. package/dist/cjs/resources/simulations/account-statements.js +16 -0
  124. package/dist/cjs/resources/simulations/account-statements.js.map +1 -0
  125. package/dist/cjs/resources/simulations/account-transfers.d.ts +15 -0
  126. package/dist/cjs/resources/simulations/account-transfers.js +18 -0
  127. package/dist/cjs/resources/simulations/account-transfers.js.map +1 -0
  128. package/dist/cjs/resources/simulations/ach-transfers.d.ts +1488 -0
  129. package/dist/cjs/resources/simulations/ach-transfers.js +39 -0
  130. package/dist/cjs/resources/simulations/ach-transfers.js.map +1 -0
  131. package/dist/cjs/resources/simulations/card-disputes.d.ts +26 -0
  132. package/dist/cjs/resources/simulations/card-disputes.js +18 -0
  133. package/dist/cjs/resources/simulations/card-disputes.js.map +1 -0
  134. package/dist/cjs/resources/simulations/card-refunds.d.ts +20 -0
  135. package/dist/cjs/resources/simulations/card-refunds.js +16 -0
  136. package/dist/cjs/resources/simulations/card-refunds.js.map +1 -0
  137. package/dist/cjs/resources/simulations/cards.d.ts +793 -0
  138. package/dist/cjs/resources/simulations/cards.js +31 -0
  139. package/dist/cjs/resources/simulations/cards.js.map +1 -0
  140. package/dist/cjs/resources/simulations/check-deposits.d.ts +30 -0
  141. package/dist/cjs/resources/simulations/check-deposits.js +31 -0
  142. package/dist/cjs/resources/simulations/check-deposits.js.map +1 -0
  143. package/dist/cjs/resources/simulations/check-transfers.d.ts +22 -0
  144. package/dist/cjs/resources/simulations/check-transfers.js +24 -0
  145. package/dist/cjs/resources/simulations/check-transfers.js.map +1 -0
  146. package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +43 -0
  147. package/dist/cjs/resources/simulations/digital-wallet-token-requests.js +16 -0
  148. package/dist/cjs/resources/simulations/digital-wallet-token-requests.js.map +1 -0
  149. package/dist/cjs/resources/simulations/documents.d.ts +18 -0
  150. package/dist/cjs/resources/simulations/documents.js +15 -0
  151. package/dist/cjs/resources/simulations/documents.js.map +1 -0
  152. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +101 -0
  153. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js +16 -0
  154. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -0
  155. package/dist/cjs/resources/simulations/index.d.ts +20 -0
  156. package/dist/cjs/resources/simulations/index.js +4 -0
  157. package/dist/cjs/resources/simulations/index.js.map +1 -0
  158. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +1431 -0
  159. package/dist/cjs/resources/simulations/real-time-payments-transfers.js +16 -0
  160. package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -0
  161. package/dist/cjs/resources/simulations/simulations.d.ts +29 -0
  162. package/dist/cjs/resources/simulations/simulations.js +44 -0
  163. package/dist/cjs/resources/simulations/simulations.js.map +1 -0
  164. package/dist/cjs/resources/simulations/wire-transfers.d.ts +1104 -0
  165. package/dist/cjs/resources/simulations/wire-transfers.js +15 -0
  166. package/dist/cjs/resources/simulations/wire-transfers.js.map +1 -0
  167. package/dist/cjs/resources/transactions.d.ts +1101 -0
  168. package/dist/cjs/resources/transactions.js +25 -0
  169. package/dist/cjs/resources/transactions.js.map +1 -0
  170. package/dist/cjs/resources/wire-drawdown-requests.d.ts +148 -0
  171. package/dist/cjs/resources/wire-drawdown-requests.js +35 -0
  172. package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -0
  173. package/dist/cjs/resources/wire-transfers.d.ts +310 -0
  174. package/dist/cjs/resources/wire-transfers.js +60 -0
  175. package/dist/cjs/resources/wire-transfers.js.map +1 -0
  176. package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
  177. package/dist/cjs/tests/api-resources/account-numbers.test.js +104 -0
  178. package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -0
  179. package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
  180. package/dist/cjs/tests/api-resources/account-statements.test.js +101 -0
  181. package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -0
  182. package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
  183. package/dist/cjs/tests/api-resources/account-transfers.test.js +146 -0
  184. package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -0
  185. package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
  186. package/dist/cjs/tests/api-resources/accounts.test.js +119 -0
  187. package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -0
  188. package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
  189. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +125 -0
  190. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -0
  191. package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
  192. package/dist/cjs/tests/api-resources/ach-transfers.test.js +159 -0
  193. package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -0
  194. package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +1 -0
  195. package/dist/cjs/tests/api-resources/card-disputes.test.js +108 -0
  196. package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -0
  197. package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
  198. package/dist/cjs/tests/api-resources/card-profiles.test.js +97 -0
  199. package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -0
  200. package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
  201. package/dist/cjs/tests/api-resources/cards.test.js +138 -0
  202. package/dist/cjs/tests/api-resources/cards.test.js.map +1 -0
  203. package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
  204. package/dist/cjs/tests/api-resources/check-deposits.test.js +113 -0
  205. package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -0
  206. package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
  207. package/dist/cjs/tests/api-resources/check-transfers.test.js +172 -0
  208. package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -0
  209. package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
  210. package/dist/cjs/tests/api-resources/declined-transactions.test.js +105 -0
  211. package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -0
  212. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
  213. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +103 -0
  214. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -0
  215. package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
  216. package/dist/cjs/tests/api-resources/documents.test.js +101 -0
  217. package/dist/cjs/tests/api-resources/documents.test.js.map +1 -0
  218. package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
  219. package/dist/cjs/tests/api-resources/entities/entities.test.js +280 -0
  220. package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -0
  221. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
  222. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +49 -0
  223. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -0
  224. package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
  225. package/dist/cjs/tests/api-resources/event-subscriptions.test.js +109 -0
  226. package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -0
  227. package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
  228. package/dist/cjs/tests/api-resources/events.test.js +101 -0
  229. package/dist/cjs/tests/api-resources/events.test.js.map +1 -0
  230. package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
  231. package/dist/cjs/tests/api-resources/external-accounts.test.js +113 -0
  232. package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -0
  233. package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
  234. package/dist/cjs/tests/api-resources/files.test.js +117 -0
  235. package/dist/cjs/tests/api-resources/files.test.js.map +1 -0
  236. package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
  237. package/dist/cjs/tests/api-resources/groups.test.js +54 -0
  238. package/dist/cjs/tests/api-resources/groups.test.js.map +1 -0
  239. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +1 -0
  240. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +90 -0
  241. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -0
  242. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +1 -0
  243. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +83 -0
  244. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -0
  245. package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
  246. package/dist/cjs/tests/api-resources/limits.test.js +100 -0
  247. package/dist/cjs/tests/api-resources/limits.test.js.map +1 -0
  248. package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
  249. package/dist/cjs/tests/api-resources/oauth-connections.test.js +78 -0
  250. package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -0
  251. package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
  252. package/dist/cjs/tests/api-resources/pending-transactions.test.js +97 -0
  253. package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -0
  254. package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +1 -0
  255. package/dist/cjs/tests/api-resources/real-time-decisions.test.js +71 -0
  256. package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -0
  257. package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +1 -0
  258. package/dist/cjs/tests/api-resources/routing-numbers.test.js +55 -0
  259. package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -0
  260. package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
  261. package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +49 -0
  262. package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -0
  263. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
  264. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +60 -0
  265. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -0
  266. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
  267. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +92 -0
  268. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -0
  269. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
  270. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +56 -0
  271. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -0
  272. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
  273. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +49 -0
  274. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -0
  275. package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
  276. package/dist/cjs/tests/api-resources/simulations/cards.test.js +70 -0
  277. package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -0
  278. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
  279. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +86 -0
  280. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -0
  281. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
  282. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +73 -0
  283. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -0
  284. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +1 -0
  285. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +49 -0
  286. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -0
  287. package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
  288. package/dist/cjs/tests/api-resources/simulations/documents.test.js +49 -0
  289. package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -0
  290. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +1 -0
  291. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +81 -0
  292. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -0
  293. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +1 -0
  294. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +62 -0
  295. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -0
  296. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
  297. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +70 -0
  298. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -0
  299. package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
  300. package/dist/cjs/tests/api-resources/transactions.test.js +109 -0
  301. package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -0
  302. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
  303. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +110 -0
  304. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -0
  305. package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
  306. package/dist/cjs/tests/api-resources/wire-transfers.test.js +184 -0
  307. package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -0
  308. package/dist/cjs/tests/form.test.d.ts +1 -0
  309. package/dist/cjs/tests/form.test.js +60 -0
  310. package/dist/cjs/tests/form.test.js.map +1 -0
  311. package/dist/cjs/tests/index.test.d.ts +1 -0
  312. package/dist/cjs/tests/index.test.js +44 -0
  313. package/dist/cjs/tests/index.test.js.map +1 -0
  314. package/dist/cjs/tests/responses.test.d.ts +1 -0
  315. package/dist/cjs/tests/responses.test.js +59 -0
  316. package/dist/cjs/tests/responses.test.js.map +1 -0
  317. package/dist/cjs/version.d.ts +1 -0
  318. package/dist/cjs/version.js +5 -0
  319. package/dist/cjs/version.js.map +1 -0
  320. package/fetch-polyfill.ts +69 -0
  321. package/index.ts +276 -0
  322. package/jest.config.js +8 -0
  323. package/package.json +47 -0
  324. package/pagination.ts +58 -0
  325. package/resource.ts +24 -0
  326. package/resources/account-numbers.ts +141 -0
  327. package/resources/account-statements.ts +132 -0
  328. package/resources/account-transfers.ts +244 -0
  329. package/resources/accounts.ts +179 -0
  330. package/resources/ach-prenotifications.ts +242 -0
  331. package/resources/ach-transfers.ts +465 -0
  332. package/resources/card-disputes.ts +187 -0
  333. package/resources/card-profiles.ts +236 -0
  334. package/resources/cards.ts +398 -0
  335. package/resources/check-deposits.ts +303 -0
  336. package/resources/check-transfers.ts +422 -0
  337. package/resources/declined-transactions.ts +547 -0
  338. package/resources/digital-wallet-tokens.ts +115 -0
  339. package/resources/documents.ts +119 -0
  340. package/resources/entities/entities.ts +1668 -0
  341. package/resources/entities/index.ts +4 -0
  342. package/resources/entities/supplemental-documents.ts +25 -0
  343. package/resources/event-subscriptions.ts +232 -0
  344. package/resources/events.ts +215 -0
  345. package/resources/external-accounts.ts +162 -0
  346. package/resources/files.ts +188 -0
  347. package/resources/groups.ts +47 -0
  348. package/resources/inbound-ach-transfer-returns.ts +142 -0
  349. package/resources/inbound-wire-drawdown-requests.ts +168 -0
  350. package/resources/index.ts +165 -0
  351. package/resources/limits.ts +144 -0
  352. package/resources/oauth-connections.ts +74 -0
  353. package/resources/pending-transactions.ts +491 -0
  354. package/resources/real-time-decisions.ts +345 -0
  355. package/resources/routing-numbers.ts +62 -0
  356. package/resources/shared.ts +17 -0
  357. package/resources/simulations/account-statements.ts +25 -0
  358. package/resources/simulations/account-transfers.ts +20 -0
  359. package/resources/simulations/ach-transfers.ts +1873 -0
  360. package/resources/simulations/card-disputes.ts +33 -0
  361. package/resources/simulations/card-refunds.ts +26 -0
  362. package/resources/simulations/cards.ts +979 -0
  363. package/resources/simulations/check-deposits.ts +41 -0
  364. package/resources/simulations/check-transfers.ts +30 -0
  365. package/resources/simulations/digital-wallet-token-requests.ts +52 -0
  366. package/resources/simulations/documents.ts +24 -0
  367. package/resources/simulations/inbound-wire-drawdown-requests.ts +126 -0
  368. package/resources/simulations/index.ts +22 -0
  369. package/resources/simulations/real-time-payments-transfers.ts +1809 -0
  370. package/resources/simulations/simulations.ts +32 -0
  371. package/resources/simulations/wire-transfers.ts +1391 -0
  372. package/resources/transactions.ts +1393 -0
  373. package/resources/wire-drawdown-requests.ts +195 -0
  374. package/resources/wire-transfers.ts +399 -0
  375. package/tests/api-resources/account-numbers.test.ts +67 -0
  376. package/tests/api-resources/account-statements.test.ts +64 -0
  377. package/tests/api-resources/account-transfers.test.ts +109 -0
  378. package/tests/api-resources/accounts.test.ts +82 -0
  379. package/tests/api-resources/ach-prenotifications.test.ts +86 -0
  380. package/tests/api-resources/ach-transfers.test.ts +120 -0
  381. package/tests/api-resources/card-disputes.test.ts +71 -0
  382. package/tests/api-resources/card-profiles.test.ts +60 -0
  383. package/tests/api-resources/cards.test.ts +101 -0
  384. package/tests/api-resources/check-deposits.test.ts +74 -0
  385. package/tests/api-resources/check-transfers.test.ts +135 -0
  386. package/tests/api-resources/declined-transactions.test.ts +68 -0
  387. package/tests/api-resources/digital-wallet-tokens.test.ts +64 -0
  388. package/tests/api-resources/documents.test.ts +64 -0
  389. package/tests/api-resources/entities/entities.test.ts +243 -0
  390. package/tests/api-resources/entities/supplemental-documents.test.ts +12 -0
  391. package/tests/api-resources/event-subscriptions.test.ts +69 -0
  392. package/tests/api-resources/events.test.ts +64 -0
  393. package/tests/api-resources/external-accounts.test.ts +76 -0
  394. package/tests/api-resources/files.test.ts +81 -0
  395. package/tests/api-resources/groups.test.ts +17 -0
  396. package/tests/api-resources/inbound-ach-transfer-returns.test.ts +53 -0
  397. package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +46 -0
  398. package/tests/api-resources/limits.test.ts +63 -0
  399. package/tests/api-resources/oauth-connections.test.ts +41 -0
  400. package/tests/api-resources/pending-transactions.test.ts +58 -0
  401. package/tests/api-resources/real-time-decisions.test.ts +34 -0
  402. package/tests/api-resources/routing-numbers.test.ts +18 -0
  403. package/tests/api-resources/simulations/account-statements.test.ts +12 -0
  404. package/tests/api-resources/simulations/account-transfers.test.ts +23 -0
  405. package/tests/api-resources/simulations/ach-transfers.test.ts +52 -0
  406. package/tests/api-resources/simulations/card-disputes.test.ts +19 -0
  407. package/tests/api-resources/simulations/card-refunds.test.ts +12 -0
  408. package/tests/api-resources/simulations/cards.test.ts +33 -0
  409. package/tests/api-resources/simulations/check-deposits.test.ts +49 -0
  410. package/tests/api-resources/simulations/check-transfers.test.ts +34 -0
  411. package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +12 -0
  412. package/tests/api-resources/simulations/documents.test.ts +12 -0
  413. package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +44 -0
  414. package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +25 -0
  415. package/tests/api-resources/simulations/wire-transfers.test.ts +33 -0
  416. package/tests/api-resources/transactions.test.ts +70 -0
  417. package/tests/api-resources/wire-drawdown-requests.test.ts +73 -0
  418. package/tests/api-resources/wire-transfers.test.ts +147 -0
  419. package/tests/form.test.ts +27 -0
  420. package/tests/index.test.ts +47 -0
  421. package/tests/responses.test.ts +25 -0
  422. package/tsconfig.cjs.json +8 -0
  423. package/tsconfig.json +37 -0
  424. package/typings/digest-fetch/index.d.ts +33 -0
  425. package/version.ts +1 -0
@@ -0,0 +1,63 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource limits', () => {
7
+ test('create: only required params', async () => {
8
+ const response = await increase.limits.create({
9
+ metric: 'volume',
10
+ model_id: 'account_in71c4amph0vgo2qllky',
11
+ value: 1234,
12
+ });
13
+ });
14
+
15
+ test('create: required and optional params', async () => {
16
+ const response = await increase.limits.create({
17
+ metric: 'volume',
18
+ interval: 'month',
19
+ model_id: 'account_in71c4amph0vgo2qllky',
20
+ value: 1234,
21
+ });
22
+ });
23
+
24
+ test('retrieve', async () => {
25
+ const response = await increase.limits.retrieve('limit_fku42k0qtc8ulsuas38q');
26
+ });
27
+
28
+ test('retrieve: request options instead of params are passed correctly', async () => {
29
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
30
+ await expect(
31
+ increase.limits.retrieve('limit_fku42k0qtc8ulsuas38q', { path: '/_stainless_unknown_path' }),
32
+ ).rejects.toThrow(Increase.NotFoundError);
33
+ });
34
+
35
+ test('update', async () => {
36
+ const response = await increase.limits.update('limit_fku42k0qtc8ulsuas38q', { status: 'inactive' });
37
+ });
38
+
39
+ test('list: only required params', async () => {
40
+ const response = await increase.limits.list();
41
+ });
42
+
43
+ test('list: required and optional params', async () => {
44
+ const response = await increase.limits.list({ cursor: 'string', limit: 0, model_id: 'x', status: 'x' });
45
+ });
46
+
47
+ test('list: request options instead of params are passed correctly', async () => {
48
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
49
+ await expect(increase.limits.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
50
+ Increase.NotFoundError,
51
+ );
52
+ });
53
+
54
+ test('list: request options and params are passed correctly', async () => {
55
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
56
+ await expect(
57
+ increase.limits.list(
58
+ { cursor: 'string', limit: 0, model_id: 'x', status: 'x' },
59
+ { path: '/_stainless_unknown_path' },
60
+ ),
61
+ ).rejects.toThrow(Increase.NotFoundError);
62
+ });
63
+ });
@@ -0,0 +1,41 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource oauth_connections', () => {
7
+ test('retrieve', async () => {
8
+ const response = await increase.oauthConnections.retrieve('connection_dauknoksyr4wilz4e6my');
9
+ });
10
+
11
+ test('retrieve: request options instead of params are passed correctly', async () => {
12
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
13
+ await expect(
14
+ increase.oauthConnections.retrieve('connection_dauknoksyr4wilz4e6my', {
15
+ path: '/_stainless_unknown_path',
16
+ }),
17
+ ).rejects.toThrow(Increase.NotFoundError);
18
+ });
19
+
20
+ test('list: only required params', async () => {
21
+ const response = await increase.oauthConnections.list();
22
+ });
23
+
24
+ test('list: required and optional params', async () => {
25
+ const response = await increase.oauthConnections.list({ cursor: 'string', limit: 0 });
26
+ });
27
+
28
+ test('list: request options instead of params are passed correctly', async () => {
29
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
30
+ await expect(increase.oauthConnections.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
31
+ Increase.NotFoundError,
32
+ );
33
+ });
34
+
35
+ test('list: request options and params are passed correctly', async () => {
36
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
37
+ await expect(
38
+ increase.oauthConnections.list({ cursor: 'string', limit: 0 }, { path: '/_stainless_unknown_path' }),
39
+ ).rejects.toThrow(Increase.NotFoundError);
40
+ });
41
+ });
@@ -0,0 +1,58 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource pending_transactions', () => {
7
+ test('retrieve', async () => {
8
+ const response = await increase.pendingTransactions.retrieve('pending_transaction_k1sfetcau2qbvjbzgju4');
9
+ });
10
+
11
+ test('retrieve: request options instead of params are passed correctly', async () => {
12
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
13
+ await expect(
14
+ increase.pendingTransactions.retrieve('pending_transaction_k1sfetcau2qbvjbzgju4', {
15
+ path: '/_stainless_unknown_path',
16
+ }),
17
+ ).rejects.toThrow(Increase.NotFoundError);
18
+ });
19
+
20
+ test('list: only required params', async () => {
21
+ const response = await increase.pendingTransactions.list();
22
+ });
23
+
24
+ test('list: required and optional params', async () => {
25
+ const response = await increase.pendingTransactions.list({
26
+ cursor: 'string',
27
+ limit: 0,
28
+ account_id: 'string',
29
+ route_id: 'string',
30
+ source_id: 'string',
31
+ status: { in: ['pending', 'pending', 'pending'] },
32
+ });
33
+ });
34
+
35
+ test('list: request options instead of params are passed correctly', async () => {
36
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
37
+ await expect(increase.pendingTransactions.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
38
+ Increase.NotFoundError,
39
+ );
40
+ });
41
+
42
+ test('list: request options and params are passed correctly', async () => {
43
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
44
+ await expect(
45
+ increase.pendingTransactions.list(
46
+ {
47
+ cursor: 'string',
48
+ limit: 0,
49
+ account_id: 'string',
50
+ route_id: 'string',
51
+ source_id: 'string',
52
+ status: { in: ['pending', 'pending', 'pending'] },
53
+ },
54
+ { path: '/_stainless_unknown_path' },
55
+ ),
56
+ ).rejects.toThrow(Increase.NotFoundError);
57
+ });
58
+ });
@@ -0,0 +1,34 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource real_time_decisions', () => {
7
+ test('retrieve', async () => {
8
+ const response = await increase.realTimeDecisions.retrieve('real_time_decision_j76n2e810ezcg3zh5qtn');
9
+ });
10
+
11
+ test('retrieve: request options instead of params are passed correctly', async () => {
12
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
13
+ await expect(
14
+ increase.realTimeDecisions.retrieve('real_time_decision_j76n2e810ezcg3zh5qtn', {
15
+ path: '/_stainless_unknown_path',
16
+ }),
17
+ ).rejects.toThrow(Increase.NotFoundError);
18
+ });
19
+
20
+ test('action: only required params', async () => {
21
+ const response = await increase.realTimeDecisions.action('real_time_decision_j76n2e810ezcg3zh5qtn', {});
22
+ });
23
+
24
+ test('action: required and optional params', async () => {
25
+ const response = await increase.realTimeDecisions.action('real_time_decision_j76n2e810ezcg3zh5qtn', {
26
+ card_authorization: { decision: 'approve' },
27
+ digital_wallet_token: {
28
+ approval: { card_profile_id: 'string', phone: 'x', email: 'x' },
29
+ decline: { reason: 'x' },
30
+ },
31
+ digital_wallet_authentication: { result: 'success' },
32
+ });
33
+ });
34
+ });
@@ -0,0 +1,18 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource routing_numbers', () => {
7
+ test('list: only required params', async () => {
8
+ const response = await increase.routingNumbers.list({ routing_number: 'xxxxxxxxx' });
9
+ });
10
+
11
+ test('list: required and optional params', async () => {
12
+ const response = await increase.routingNumbers.list({
13
+ cursor: 'string',
14
+ limit: 0,
15
+ routing_number: 'xxxxxxxxx',
16
+ });
17
+ });
18
+ });
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource account_statements', () => {
7
+ test('create', async () => {
8
+ const response = await increase.simulations.accountStatements.create({
9
+ account_id: 'account_in71c4amph0vgo2qllky',
10
+ });
11
+ });
12
+ });
@@ -0,0 +1,23 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource account_transfers', () => {
7
+ // Prism tests are broken
8
+ test.skip('complete', async () => {
9
+ const response = await increase.simulations.accountTransfers.complete(
10
+ 'account_transfer_7k9qe1ysdgqztnt63l7n',
11
+ );
12
+ });
13
+
14
+ // Prism tests are broken
15
+ test.skip('complete: request options instead of params are passed correctly', async () => {
16
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
17
+ await expect(
18
+ increase.simulations.accountTransfers.complete('account_transfer_7k9qe1ysdgqztnt63l7n', {
19
+ path: '/_stainless_unknown_path',
20
+ }),
21
+ ).rejects.toThrow(Increase.NotFoundError);
22
+ });
23
+ });
@@ -0,0 +1,52 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource ach_transfers', () => {
7
+ test('create_inbound: only required params', async () => {
8
+ const response = await increase.simulations.achTransfers.createInbound({
9
+ account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
10
+ amount: 1000,
11
+ });
12
+ });
13
+
14
+ test('create_inbound: required and optional params', async () => {
15
+ const response = await increase.simulations.achTransfers.createInbound({
16
+ account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
17
+ amount: 1000,
18
+ company_descriptive_date: 'x',
19
+ company_discretionary_data: 'x',
20
+ company_entry_description: 'x',
21
+ company_name: 'x',
22
+ company_id: 'x',
23
+ });
24
+ });
25
+
26
+ // Prism incorrectly returns an invalid JSON error
27
+ test.skip('return: only required params', async () => {
28
+ const response = await increase.simulations.achTransfers.return('ach_transfer_uoxatyh3lt5evrsdvo7q', {});
29
+ });
30
+
31
+ // Prism incorrectly returns an invalid JSON error
32
+ test.skip('return: required and optional params', async () => {
33
+ const response = await increase.simulations.achTransfers.return('ach_transfer_uoxatyh3lt5evrsdvo7q', {
34
+ reason: 'insufficient_fund',
35
+ });
36
+ });
37
+
38
+ // Prism incorrectly returns an invalid JSON error
39
+ test.skip('submit', async () => {
40
+ const response = await increase.simulations.achTransfers.submit('ach_transfer_uoxatyh3lt5evrsdvo7q');
41
+ });
42
+
43
+ // Prism incorrectly returns an invalid JSON error
44
+ test.skip('submit: request options instead of params are passed correctly', async () => {
45
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
46
+ await expect(
47
+ increase.simulations.achTransfers.submit('ach_transfer_uoxatyh3lt5evrsdvo7q', {
48
+ path: '/_stainless_unknown_path',
49
+ }),
50
+ ).rejects.toThrow(Increase.NotFoundError);
51
+ });
52
+ });
@@ -0,0 +1,19 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource card_disputes', () => {
7
+ test('action: only required params', async () => {
8
+ const response = await increase.simulations.cardDisputes.action('card_dispute_h9sc95nbl1cgltpp7men', {
9
+ status: 'rejected',
10
+ });
11
+ });
12
+
13
+ test('action: required and optional params', async () => {
14
+ const response = await increase.simulations.cardDisputes.action('card_dispute_h9sc95nbl1cgltpp7men', {
15
+ status: 'rejected',
16
+ explanation: 'This was a valid recurring transaction',
17
+ });
18
+ });
19
+ });
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource card_refunds', () => {
7
+ test('create', async () => {
8
+ const response = await increase.simulations.cardRefunds.create({
9
+ transaction_id: 'transaction_uyrp7fld2ium70oa7oi',
10
+ });
11
+ });
12
+ });
@@ -0,0 +1,33 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource cards', () => {
7
+ test('authorize: only required params', async () => {
8
+ const response = await increase.simulations.cards.authorize({ amount: 1000 });
9
+ });
10
+
11
+ test('authorize: required and optional params', async () => {
12
+ const response = await increase.simulations.cards.authorize({
13
+ amount: 1000,
14
+ card_id: 'card_oubs0hwk5rn6knuecxg2',
15
+ digital_wallet_token_id: 'string',
16
+ });
17
+ });
18
+
19
+ test('settlement: only required params', async () => {
20
+ const response = await increase.simulations.cards.settlement({
21
+ card_id: 'card_oubs0hwk5rn6knuecxg2',
22
+ pending_transaction_id: 'pending_transaction_k1sfetcau2qbvjbzgju4',
23
+ });
24
+ });
25
+
26
+ test('settlement: required and optional params', async () => {
27
+ const response = await increase.simulations.cards.settlement({
28
+ card_id: 'card_oubs0hwk5rn6knuecxg2',
29
+ pending_transaction_id: 'pending_transaction_k1sfetcau2qbvjbzgju4',
30
+ amount: 1,
31
+ });
32
+ });
33
+ });
@@ -0,0 +1,49 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource check_deposits', () => {
7
+ // Prism incorrectly returns an invalid JSON error
8
+ test.skip('reject', async () => {
9
+ const response = await increase.simulations.checkDeposits.reject('check_deposit_f06n9gpg7sxn8t19lfc1');
10
+ });
11
+
12
+ // Prism incorrectly returns an invalid JSON error
13
+ test.skip('reject: request options instead of params are passed correctly', async () => {
14
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
15
+ await expect(
16
+ increase.simulations.checkDeposits.reject('check_deposit_f06n9gpg7sxn8t19lfc1', {
17
+ path: '/_stainless_unknown_path',
18
+ }),
19
+ ).rejects.toThrow(Increase.NotFoundError);
20
+ });
21
+
22
+ test('return', async () => {
23
+ const response = await increase.simulations.checkDeposits.return('check_deposit_f06n9gpg7sxn8t19lfc1');
24
+ });
25
+
26
+ test('return: request options instead of params are passed correctly', async () => {
27
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
28
+ await expect(
29
+ increase.simulations.checkDeposits.return('check_deposit_f06n9gpg7sxn8t19lfc1', {
30
+ path: '/_stainless_unknown_path',
31
+ }),
32
+ ).rejects.toThrow(Increase.NotFoundError);
33
+ });
34
+
35
+ // Prism incorrectly returns an invalid JSON error
36
+ test.skip('submit', async () => {
37
+ const response = await increase.simulations.checkDeposits.submit('check_deposit_f06n9gpg7sxn8t19lfc1');
38
+ });
39
+
40
+ // Prism incorrectly returns an invalid JSON error
41
+ test.skip('submit: request options instead of params are passed correctly', async () => {
42
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
43
+ await expect(
44
+ increase.simulations.checkDeposits.submit('check_deposit_f06n9gpg7sxn8t19lfc1', {
45
+ path: '/_stainless_unknown_path',
46
+ }),
47
+ ).rejects.toThrow(Increase.NotFoundError);
48
+ });
49
+ });
@@ -0,0 +1,34 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource check_transfers', () => {
7
+ test('deposit', async () => {
8
+ const response = await increase.simulations.checkTransfers.deposit('check_transfer_30b43acfu9vw8fyc4f5');
9
+ });
10
+
11
+ test('deposit: request options instead of params are passed correctly', async () => {
12
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
13
+ await expect(
14
+ increase.simulations.checkTransfers.deposit('check_transfer_30b43acfu9vw8fyc4f5', {
15
+ path: '/_stainless_unknown_path',
16
+ }),
17
+ ).rejects.toThrow(Increase.NotFoundError);
18
+ });
19
+
20
+ // Prism incorrectly returns an invalid JSON error
21
+ test.skip('mail', async () => {
22
+ const response = await increase.simulations.checkTransfers.mail('check_transfer_30b43acfu9vw8fyc4f5');
23
+ });
24
+
25
+ // Prism incorrectly returns an invalid JSON error
26
+ test.skip('mail: request options instead of params are passed correctly', async () => {
27
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
28
+ await expect(
29
+ increase.simulations.checkTransfers.mail('check_transfer_30b43acfu9vw8fyc4f5', {
30
+ path: '/_stainless_unknown_path',
31
+ }),
32
+ ).rejects.toThrow(Increase.NotFoundError);
33
+ });
34
+ });
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource digital_wallet_token_requests', () => {
7
+ test('create', async () => {
8
+ const response = await increase.simulations.digitalWalletTokenRequests.create({
9
+ card_id: 'card_oubs0hwk5rn6knuecxg2',
10
+ });
11
+ });
12
+ });
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource documents', () => {
7
+ test('create', async () => {
8
+ const response = await increase.simulations.documents.create({
9
+ account_id: 'account_in71c4amph0vgo2qllky',
10
+ });
11
+ });
12
+ });
@@ -0,0 +1,44 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource inbound_wire_drawdown_requests', () => {
7
+ test('create: only required params', async () => {
8
+ const response = await increase.simulations.inboundWireDrawdownRequests.create({
9
+ recipient_account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
10
+ originator_account_number: '987654321',
11
+ originator_routing_number: '101050001',
12
+ beneficiary_account_number: '987654321',
13
+ beneficiary_routing_number: '101050001',
14
+ amount: 10000,
15
+ currency: 'USD',
16
+ message_to_recipient: 'Invoice 29582',
17
+ });
18
+ });
19
+
20
+ test('create: required and optional params', async () => {
21
+ const response = await increase.simulations.inboundWireDrawdownRequests.create({
22
+ recipient_account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
23
+ originator_account_number: '987654321',
24
+ originator_routing_number: '101050001',
25
+ beneficiary_account_number: '987654321',
26
+ beneficiary_routing_number: '101050001',
27
+ amount: 10000,
28
+ currency: 'USD',
29
+ message_to_recipient: 'Invoice 29582',
30
+ originator_to_beneficiary_information_line1: 'x',
31
+ originator_to_beneficiary_information_line2: 'x',
32
+ originator_to_beneficiary_information_line3: 'x',
33
+ originator_to_beneficiary_information_line4: 'x',
34
+ originator_name: 'Ian Crease',
35
+ originator_address_line1: '33 Liberty Street',
36
+ originator_address_line2: 'New York, NY, 10045',
37
+ originator_address_line3: 'x',
38
+ beneficiary_name: 'Ian Crease',
39
+ beneficiary_address_line1: '33 Liberty Street',
40
+ beneficiary_address_line2: 'New York, NY, 10045',
41
+ beneficiary_address_line3: 'x',
42
+ });
43
+ });
44
+ });
@@ -0,0 +1,25 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource real_time_payments_transfers', () => {
7
+ test('create_inbound: only required params', async () => {
8
+ const response = await increase.simulations.realTimePaymentsTransfers.createInbound({
9
+ account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
10
+ amount: 1000,
11
+ });
12
+ });
13
+
14
+ test('create_inbound: required and optional params', async () => {
15
+ const response = await increase.simulations.realTimePaymentsTransfers.createInbound({
16
+ account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
17
+ amount: 1000,
18
+ request_for_payment_id: 'real_time_payments_request_for_payment_28kcliz1oevcnqyn9qp7',
19
+ debtor_name: 'x',
20
+ debtor_account_number: 'x',
21
+ debtor_routing_number: 'xxxxxxxxx',
22
+ remittance_information: 'x',
23
+ });
24
+ });
25
+ });
@@ -0,0 +1,33 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource wire_transfers', () => {
7
+ test('create_inbound: only required params', async () => {
8
+ const response = await increase.simulations.wireTransfers.createInbound({
9
+ account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
10
+ amount: 1000,
11
+ });
12
+ });
13
+
14
+ test('create_inbound: required and optional params', async () => {
15
+ const response = await increase.simulations.wireTransfers.createInbound({
16
+ account_number_id: 'account_number_v18nkfqm6afpsrvy82b2',
17
+ amount: 1000,
18
+ beneficiary_address_line1: 'x',
19
+ beneficiary_address_line2: 'x',
20
+ beneficiary_address_line3: 'x',
21
+ beneficiary_name: 'x',
22
+ beneficiary_reference: 'x',
23
+ originator_address_line1: 'x',
24
+ originator_address_line2: 'x',
25
+ originator_address_line3: 'x',
26
+ originator_name: 'x',
27
+ originator_to_beneficiary_information_line1: 'x',
28
+ originator_to_beneficiary_information_line2: 'x',
29
+ originator_to_beneficiary_information_line3: 'x',
30
+ originator_to_beneficiary_information_line4: 'x',
31
+ });
32
+ });
33
+ });
@@ -0,0 +1,70 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+
3
+ import Increase from '~/index';
4
+ const increase = new Increase({ apiKey: 'something1234', baseURL: 'http://127.0.0.1:4010' });
5
+
6
+ describe('resource transactions', () => {
7
+ test('retrieve', async () => {
8
+ const response = await increase.transactions.retrieve('transaction_uyrp7fld2ium70oa7oi');
9
+ });
10
+
11
+ test('retrieve: request options instead of params are passed correctly', async () => {
12
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
13
+ await expect(
14
+ increase.transactions.retrieve('transaction_uyrp7fld2ium70oa7oi', { path: '/_stainless_unknown_path' }),
15
+ ).rejects.toThrow(Increase.NotFoundError);
16
+ });
17
+
18
+ test('list: only required params', async () => {
19
+ const response = await increase.transactions.list();
20
+ });
21
+
22
+ test('list: required and optional params', async () => {
23
+ const response = await increase.transactions.list({
24
+ cursor: 'string',
25
+ limit: 0,
26
+ account_id: 'string',
27
+ route_id: 'string',
28
+ created_at: {
29
+ after: '2019-12-27T18:11:19.117Z',
30
+ before: '2019-12-27T18:11:19.117Z',
31
+ on_or_after: '2019-12-27T18:11:19.117Z',
32
+ on_or_before: '2019-12-27T18:11:19.117Z',
33
+ },
34
+ category: {
35
+ in: ['account_transfer_intention', 'account_transfer_intention', 'account_transfer_intention'],
36
+ },
37
+ });
38
+ });
39
+
40
+ test('list: request options instead of params are passed correctly', async () => {
41
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
42
+ await expect(increase.transactions.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
43
+ Increase.NotFoundError,
44
+ );
45
+ });
46
+
47
+ test('list: request options and params are passed correctly', async () => {
48
+ // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
49
+ await expect(
50
+ increase.transactions.list(
51
+ {
52
+ cursor: 'string',
53
+ limit: 0,
54
+ account_id: 'string',
55
+ route_id: 'string',
56
+ created_at: {
57
+ after: '2019-12-27T18:11:19.117Z',
58
+ before: '2019-12-27T18:11:19.117Z',
59
+ on_or_after: '2019-12-27T18:11:19.117Z',
60
+ on_or_before: '2019-12-27T18:11:19.117Z',
61
+ },
62
+ category: {
63
+ in: ['account_transfer_intention', 'account_transfer_intention', 'account_transfer_intention'],
64
+ },
65
+ },
66
+ { path: '/_stainless_unknown_path' },
67
+ ),
68
+ ).rejects.toThrow(Increase.NotFoundError);
69
+ });
70
+ });