increase 0.11.6 → 0.11.8

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 (438) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/_shims/node-runtime.js +2 -2
  4. package/_shims/node-runtime.js.map +1 -1
  5. package/_shims/node-runtime.mjs +2 -2
  6. package/_shims/node-runtime.mjs.map +1 -1
  7. package/core.js +17 -21
  8. package/core.js.map +1 -1
  9. package/core.mjs +17 -21
  10. package/core.mjs.map +1 -1
  11. package/error.js +76 -76
  12. package/error.js.map +1 -1
  13. package/error.mjs +76 -76
  14. package/error.mjs.map +1 -1
  15. package/index.d.mts +109 -109
  16. package/index.d.ts +109 -109
  17. package/index.d.ts.map +1 -1
  18. package/index.js +3 -4
  19. package/index.js.map +1 -1
  20. package/index.mjs +3 -4
  21. package/index.mjs.map +1 -1
  22. package/package.json +2 -1
  23. package/resources/account-numbers.d.ts +7 -9
  24. package/resources/account-numbers.d.ts.map +1 -1
  25. package/resources/account-numbers.js +25 -0
  26. package/resources/account-numbers.js.map +1 -1
  27. package/resources/account-numbers.mjs +2 -0
  28. package/resources/account-numbers.mjs.map +1 -1
  29. package/resources/account-statements.d.ts +5 -7
  30. package/resources/account-statements.d.ts.map +1 -1
  31. package/resources/account-statements.js +25 -0
  32. package/resources/account-statements.js.map +1 -1
  33. package/resources/account-statements.mjs +2 -0
  34. package/resources/account-statements.mjs.map +1 -1
  35. package/resources/account-transfers.d.ts +6 -8
  36. package/resources/account-transfers.d.ts.map +1 -1
  37. package/resources/account-transfers.js +25 -0
  38. package/resources/account-transfers.js.map +1 -1
  39. package/resources/account-transfers.mjs +2 -0
  40. package/resources/account-transfers.mjs.map +1 -1
  41. package/resources/accounts.d.ts +7 -9
  42. package/resources/accounts.d.ts.map +1 -1
  43. package/resources/accounts.js +25 -0
  44. package/resources/accounts.js.map +1 -1
  45. package/resources/accounts.mjs +2 -0
  46. package/resources/accounts.mjs.map +1 -1
  47. package/resources/ach-prenotifications.d.ts +6 -8
  48. package/resources/ach-prenotifications.d.ts.map +1 -1
  49. package/resources/ach-prenotifications.js +25 -0
  50. package/resources/ach-prenotifications.js.map +1 -1
  51. package/resources/ach-prenotifications.mjs +2 -0
  52. package/resources/ach-prenotifications.mjs.map +1 -1
  53. package/resources/ach-transfers.d.ts +6 -8
  54. package/resources/ach-transfers.d.ts.map +1 -1
  55. package/resources/ach-transfers.js +25 -0
  56. package/resources/ach-transfers.js.map +1 -1
  57. package/resources/ach-transfers.mjs +2 -0
  58. package/resources/ach-transfers.mjs.map +1 -1
  59. package/resources/balance-lookups.d.ts +3 -3
  60. package/resources/balance-lookups.d.ts.map +1 -1
  61. package/resources/balance-lookups.js +0 -2
  62. package/resources/balance-lookups.js.map +1 -1
  63. package/resources/balance-lookups.mjs +0 -2
  64. package/resources/balance-lookups.mjs.map +1 -1
  65. package/resources/bookkeeping-accounts.d.ts +6 -8
  66. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  67. package/resources/bookkeeping-accounts.js +25 -0
  68. package/resources/bookkeeping-accounts.js.map +1 -1
  69. package/resources/bookkeeping-accounts.mjs +2 -0
  70. package/resources/bookkeeping-accounts.mjs.map +1 -1
  71. package/resources/bookkeeping-entries.d.ts +5 -7
  72. package/resources/bookkeeping-entries.d.ts.map +1 -1
  73. package/resources/bookkeeping-entries.js +25 -0
  74. package/resources/bookkeeping-entries.js.map +1 -1
  75. package/resources/bookkeeping-entries.mjs +2 -0
  76. package/resources/bookkeeping-entries.mjs.map +1 -1
  77. package/resources/bookkeeping-entry-sets.d.ts +3 -3
  78. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  79. package/resources/bookkeeping-entry-sets.js +0 -2
  80. package/resources/bookkeeping-entry-sets.js.map +1 -1
  81. package/resources/bookkeeping-entry-sets.mjs +0 -2
  82. package/resources/bookkeeping-entry-sets.mjs.map +1 -1
  83. package/resources/card-disputes.d.ts +6 -8
  84. package/resources/card-disputes.d.ts.map +1 -1
  85. package/resources/card-disputes.js +25 -0
  86. package/resources/card-disputes.js.map +1 -1
  87. package/resources/card-disputes.mjs +2 -0
  88. package/resources/card-disputes.mjs.map +1 -1
  89. package/resources/card-payments.d.ts +5 -7
  90. package/resources/card-payments.d.ts.map +1 -1
  91. package/resources/card-payments.js +25 -0
  92. package/resources/card-payments.js.map +1 -1
  93. package/resources/card-payments.mjs +2 -0
  94. package/resources/card-payments.mjs.map +1 -1
  95. package/resources/card-profiles.d.ts +6 -8
  96. package/resources/card-profiles.d.ts.map +1 -1
  97. package/resources/card-profiles.js +25 -0
  98. package/resources/card-profiles.js.map +1 -1
  99. package/resources/card-profiles.mjs +2 -0
  100. package/resources/card-profiles.mjs.map +1 -1
  101. package/resources/card-purchase-supplements.d.ts +5 -7
  102. package/resources/card-purchase-supplements.d.ts.map +1 -1
  103. package/resources/card-purchase-supplements.js +25 -0
  104. package/resources/card-purchase-supplements.js.map +1 -1
  105. package/resources/card-purchase-supplements.mjs +2 -0
  106. package/resources/card-purchase-supplements.mjs.map +1 -1
  107. package/resources/cards.d.ts +8 -10
  108. package/resources/cards.d.ts.map +1 -1
  109. package/resources/cards.js +25 -0
  110. package/resources/cards.js.map +1 -1
  111. package/resources/cards.mjs +2 -0
  112. package/resources/cards.mjs.map +1 -1
  113. package/resources/check-deposits.d.ts +6 -8
  114. package/resources/check-deposits.d.ts.map +1 -1
  115. package/resources/check-deposits.js +25 -0
  116. package/resources/check-deposits.js.map +1 -1
  117. package/resources/check-deposits.mjs +2 -0
  118. package/resources/check-deposits.mjs.map +1 -1
  119. package/resources/check-transfers.d.ts +7 -9
  120. package/resources/check-transfers.d.ts.map +1 -1
  121. package/resources/check-transfers.js +25 -0
  122. package/resources/check-transfers.js.map +1 -1
  123. package/resources/check-transfers.mjs +2 -0
  124. package/resources/check-transfers.mjs.map +1 -1
  125. package/resources/declined-transactions.d.ts +5 -7
  126. package/resources/declined-transactions.d.ts.map +1 -1
  127. package/resources/declined-transactions.js +25 -0
  128. package/resources/declined-transactions.js.map +1 -1
  129. package/resources/declined-transactions.mjs +2 -0
  130. package/resources/declined-transactions.mjs.map +1 -1
  131. package/resources/digital-wallet-tokens.d.ts +5 -7
  132. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  133. package/resources/digital-wallet-tokens.js +25 -0
  134. package/resources/digital-wallet-tokens.js.map +1 -1
  135. package/resources/digital-wallet-tokens.mjs +2 -0
  136. package/resources/digital-wallet-tokens.mjs.map +1 -1
  137. package/resources/documents.d.ts +5 -7
  138. package/resources/documents.d.ts.map +1 -1
  139. package/resources/documents.js +25 -0
  140. package/resources/documents.js.map +1 -1
  141. package/resources/documents.mjs +2 -0
  142. package/resources/documents.mjs.map +1 -1
  143. package/resources/entities/beneficial-owners.d.ts +8 -8
  144. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  145. package/resources/entities/beneficial-owners.js +0 -2
  146. package/resources/entities/beneficial-owners.js.map +1 -1
  147. package/resources/entities/beneficial-owners.mjs +0 -2
  148. package/resources/entities/beneficial-owners.mjs.map +1 -1
  149. package/resources/entities/entities.d.ts +20 -22
  150. package/resources/entities/entities.d.ts.map +1 -1
  151. package/resources/entities/entities.js +9 -8
  152. package/resources/entities/entities.js.map +1 -1
  153. package/resources/entities/entities.mjs +9 -8
  154. package/resources/entities/entities.mjs.map +1 -1
  155. package/resources/entities/supplemental-documents.d.ts +8 -10
  156. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  157. package/resources/entities/supplemental-documents.js +25 -0
  158. package/resources/entities/supplemental-documents.js.map +1 -1
  159. package/resources/entities/supplemental-documents.mjs +2 -0
  160. package/resources/entities/supplemental-documents.mjs.map +1 -1
  161. package/resources/event-subscriptions.d.ts +7 -9
  162. package/resources/event-subscriptions.d.ts.map +1 -1
  163. package/resources/event-subscriptions.js +25 -0
  164. package/resources/event-subscriptions.js.map +1 -1
  165. package/resources/event-subscriptions.mjs +2 -0
  166. package/resources/event-subscriptions.mjs.map +1 -1
  167. package/resources/events.d.ts +5 -7
  168. package/resources/events.d.ts.map +1 -1
  169. package/resources/events.js +25 -0
  170. package/resources/events.js.map +1 -1
  171. package/resources/events.mjs +2 -0
  172. package/resources/events.mjs.map +1 -1
  173. package/resources/exports.d.ts +6 -8
  174. package/resources/exports.d.ts.map +1 -1
  175. package/resources/exports.js +25 -0
  176. package/resources/exports.js.map +1 -1
  177. package/resources/exports.mjs +2 -0
  178. package/resources/exports.mjs.map +1 -1
  179. package/resources/external-accounts.d.ts +7 -9
  180. package/resources/external-accounts.d.ts.map +1 -1
  181. package/resources/external-accounts.js +25 -0
  182. package/resources/external-accounts.js.map +1 -1
  183. package/resources/external-accounts.mjs +2 -0
  184. package/resources/external-accounts.mjs.map +1 -1
  185. package/resources/files.d.ts +6 -8
  186. package/resources/files.d.ts.map +1 -1
  187. package/resources/files.js +25 -0
  188. package/resources/files.js.map +1 -1
  189. package/resources/files.mjs +2 -0
  190. package/resources/files.mjs.map +1 -1
  191. package/resources/groups.d.ts +2 -2
  192. package/resources/groups.d.ts.map +1 -1
  193. package/resources/groups.js +0 -2
  194. package/resources/groups.js.map +1 -1
  195. package/resources/groups.mjs +0 -2
  196. package/resources/groups.mjs.map +1 -1
  197. package/resources/inbound-ach-transfers.d.ts +7 -9
  198. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  199. package/resources/inbound-ach-transfers.js +25 -0
  200. package/resources/inbound-ach-transfers.js.map +1 -1
  201. package/resources/inbound-ach-transfers.mjs +2 -0
  202. package/resources/inbound-ach-transfers.mjs.map +1 -1
  203. package/resources/inbound-wire-drawdown-requests.d.ts +5 -7
  204. package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
  205. package/resources/inbound-wire-drawdown-requests.js +25 -0
  206. package/resources/inbound-wire-drawdown-requests.js.map +1 -1
  207. package/resources/inbound-wire-drawdown-requests.mjs +2 -0
  208. package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
  209. package/resources/oauth-connections.d.ts +5 -7
  210. package/resources/oauth-connections.d.ts.map +1 -1
  211. package/resources/oauth-connections.js +25 -0
  212. package/resources/oauth-connections.js.map +1 -1
  213. package/resources/oauth-connections.mjs +2 -0
  214. package/resources/oauth-connections.mjs.map +1 -1
  215. package/resources/pending-transactions.d.ts +5 -7
  216. package/resources/pending-transactions.d.ts.map +1 -1
  217. package/resources/pending-transactions.js +25 -0
  218. package/resources/pending-transactions.js.map +1 -1
  219. package/resources/pending-transactions.mjs +2 -0
  220. package/resources/pending-transactions.mjs.map +1 -1
  221. package/resources/physical-cards.d.ts +7 -9
  222. package/resources/physical-cards.d.ts.map +1 -1
  223. package/resources/physical-cards.js +25 -0
  224. package/resources/physical-cards.js.map +1 -1
  225. package/resources/physical-cards.mjs +2 -0
  226. package/resources/physical-cards.mjs.map +1 -1
  227. package/resources/programs.d.ts +5 -7
  228. package/resources/programs.d.ts.map +1 -1
  229. package/resources/programs.js +25 -0
  230. package/resources/programs.js.map +1 -1
  231. package/resources/programs.mjs +2 -0
  232. package/resources/programs.mjs.map +1 -1
  233. package/resources/real-time-decisions.d.ts +3 -3
  234. package/resources/real-time-decisions.d.ts.map +1 -1
  235. package/resources/real-time-decisions.js +0 -2
  236. package/resources/real-time-decisions.js.map +1 -1
  237. package/resources/real-time-decisions.mjs +0 -2
  238. package/resources/real-time-decisions.mjs.map +1 -1
  239. package/resources/real-time-payments-transfers.d.ts +6 -8
  240. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  241. package/resources/real-time-payments-transfers.js +25 -0
  242. package/resources/real-time-payments-transfers.js.map +1 -1
  243. package/resources/real-time-payments-transfers.mjs +2 -0
  244. package/resources/real-time-payments-transfers.mjs.map +1 -1
  245. package/resources/routing-numbers.d.ts +5 -7
  246. package/resources/routing-numbers.d.ts.map +1 -1
  247. package/resources/routing-numbers.js +25 -0
  248. package/resources/routing-numbers.js.map +1 -1
  249. package/resources/routing-numbers.mjs +2 -0
  250. package/resources/routing-numbers.mjs.map +1 -1
  251. package/resources/simulations/account-statements.d.ts +4 -4
  252. package/resources/simulations/account-statements.d.ts.map +1 -1
  253. package/resources/simulations/account-statements.js +0 -2
  254. package/resources/simulations/account-statements.js.map +1 -1
  255. package/resources/simulations/account-statements.mjs +0 -2
  256. package/resources/simulations/account-statements.mjs.map +1 -1
  257. package/resources/simulations/account-transfers.d.ts +2 -2
  258. package/resources/simulations/account-transfers.d.ts.map +1 -1
  259. package/resources/simulations/ach-transfers.d.ts +7 -7
  260. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  261. package/resources/simulations/ach-transfers.js +0 -2
  262. package/resources/simulations/ach-transfers.js.map +1 -1
  263. package/resources/simulations/ach-transfers.mjs +0 -2
  264. package/resources/simulations/ach-transfers.mjs.map +1 -1
  265. package/resources/simulations/card-disputes.d.ts +4 -4
  266. package/resources/simulations/card-disputes.d.ts.map +1 -1
  267. package/resources/simulations/card-disputes.js +0 -2
  268. package/resources/simulations/card-disputes.js.map +1 -1
  269. package/resources/simulations/card-disputes.mjs +0 -2
  270. package/resources/simulations/card-disputes.mjs.map +1 -1
  271. package/resources/simulations/card-profiles.d.ts +2 -2
  272. package/resources/simulations/card-profiles.d.ts.map +1 -1
  273. package/resources/simulations/card-profiles.js.map +1 -1
  274. package/resources/simulations/card-profiles.mjs.map +1 -1
  275. package/resources/simulations/card-refunds.d.ts +4 -4
  276. package/resources/simulations/card-refunds.d.ts.map +1 -1
  277. package/resources/simulations/card-refunds.js +0 -2
  278. package/resources/simulations/card-refunds.js.map +1 -1
  279. package/resources/simulations/card-refunds.mjs +0 -2
  280. package/resources/simulations/card-refunds.mjs.map +1 -1
  281. package/resources/simulations/cards.d.ts +6 -6
  282. package/resources/simulations/cards.d.ts.map +1 -1
  283. package/resources/simulations/cards.js +0 -2
  284. package/resources/simulations/cards.js.map +1 -1
  285. package/resources/simulations/cards.mjs +0 -2
  286. package/resources/simulations/cards.mjs.map +1 -1
  287. package/resources/simulations/check-deposits.d.ts +4 -4
  288. package/resources/simulations/check-deposits.d.ts.map +1 -1
  289. package/resources/simulations/check-transfers.d.ts +3 -3
  290. package/resources/simulations/check-transfers.d.ts.map +1 -1
  291. package/resources/simulations/digital-wallet-token-requests.d.ts +3 -3
  292. package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
  293. package/resources/simulations/digital-wallet-token-requests.js +0 -2
  294. package/resources/simulations/digital-wallet-token-requests.js.map +1 -1
  295. package/resources/simulations/digital-wallet-token-requests.mjs +0 -2
  296. package/resources/simulations/digital-wallet-token-requests.mjs.map +1 -1
  297. package/resources/simulations/documents.d.ts +4 -4
  298. package/resources/simulations/documents.d.ts.map +1 -1
  299. package/resources/simulations/documents.js +0 -2
  300. package/resources/simulations/documents.js.map +1 -1
  301. package/resources/simulations/documents.mjs +0 -2
  302. package/resources/simulations/documents.mjs.map +1 -1
  303. package/resources/simulations/inbound-funds-holds.d.ts +2 -2
  304. package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
  305. package/resources/simulations/inbound-funds-holds.js +0 -2
  306. package/resources/simulations/inbound-funds-holds.js.map +1 -1
  307. package/resources/simulations/inbound-funds-holds.mjs +0 -2
  308. package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
  309. package/resources/simulations/inbound-wire-drawdown-requests.d.ts +4 -4
  310. package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  311. package/resources/simulations/inbound-wire-drawdown-requests.js +0 -2
  312. package/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -1
  313. package/resources/simulations/inbound-wire-drawdown-requests.mjs +0 -2
  314. package/resources/simulations/inbound-wire-drawdown-requests.mjs.map +1 -1
  315. package/resources/simulations/interest-payments.d.ts +3 -3
  316. package/resources/simulations/interest-payments.d.ts.map +1 -1
  317. package/resources/simulations/interest-payments.js +0 -2
  318. package/resources/simulations/interest-payments.js.map +1 -1
  319. package/resources/simulations/interest-payments.mjs +0 -2
  320. package/resources/simulations/interest-payments.mjs.map +1 -1
  321. package/resources/simulations/physical-cards.d.ts +4 -4
  322. package/resources/simulations/physical-cards.d.ts.map +1 -1
  323. package/resources/simulations/physical-cards.js +0 -2
  324. package/resources/simulations/physical-cards.js.map +1 -1
  325. package/resources/simulations/physical-cards.mjs +0 -2
  326. package/resources/simulations/physical-cards.mjs.map +1 -1
  327. package/resources/simulations/programs.d.ts +4 -4
  328. package/resources/simulations/programs.d.ts.map +1 -1
  329. package/resources/simulations/programs.js +0 -2
  330. package/resources/simulations/programs.js.map +1 -1
  331. package/resources/simulations/programs.mjs +0 -2
  332. package/resources/simulations/programs.mjs.map +1 -1
  333. package/resources/simulations/real-time-payments-transfers.d.ts +6 -6
  334. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  335. package/resources/simulations/real-time-payments-transfers.js +0 -2
  336. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  337. package/resources/simulations/real-time-payments-transfers.mjs +0 -2
  338. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  339. package/resources/simulations/simulations.d.ts +77 -78
  340. package/resources/simulations/simulations.d.ts.map +1 -1
  341. package/resources/simulations/simulations.js +54 -55
  342. package/resources/simulations/simulations.js.map +1 -1
  343. package/resources/simulations/simulations.mjs +54 -55
  344. package/resources/simulations/simulations.mjs.map +1 -1
  345. package/resources/simulations/wire-transfers.d.ts +3 -3
  346. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  347. package/resources/simulations/wire-transfers.js +0 -2
  348. package/resources/simulations/wire-transfers.js.map +1 -1
  349. package/resources/simulations/wire-transfers.mjs +0 -2
  350. package/resources/simulations/wire-transfers.mjs.map +1 -1
  351. package/resources/transactions.d.ts +5 -7
  352. package/resources/transactions.d.ts.map +1 -1
  353. package/resources/transactions.js +25 -0
  354. package/resources/transactions.js.map +1 -1
  355. package/resources/transactions.mjs +2 -0
  356. package/resources/transactions.mjs.map +1 -1
  357. package/resources/wire-drawdown-requests.d.ts +6 -8
  358. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  359. package/resources/wire-drawdown-requests.js +25 -0
  360. package/resources/wire-drawdown-requests.js.map +1 -1
  361. package/resources/wire-drawdown-requests.mjs +2 -0
  362. package/resources/wire-drawdown-requests.mjs.map +1 -1
  363. package/resources/wire-transfers.d.ts +6 -8
  364. package/resources/wire-transfers.d.ts.map +1 -1
  365. package/resources/wire-transfers.js +25 -0
  366. package/resources/wire-transfers.js.map +1 -1
  367. package/resources/wire-transfers.mjs +2 -0
  368. package/resources/wire-transfers.mjs.map +1 -1
  369. package/src/_shims/node-runtime.ts +2 -2
  370. package/src/index.ts +109 -109
  371. package/src/resources/account-numbers.ts +7 -9
  372. package/src/resources/account-statements.ts +5 -7
  373. package/src/resources/account-transfers.ts +6 -8
  374. package/src/resources/accounts.ts +7 -9
  375. package/src/resources/ach-prenotifications.ts +6 -8
  376. package/src/resources/ach-transfers.ts +6 -8
  377. package/src/resources/balance-lookups.ts +3 -3
  378. package/src/resources/bookkeeping-accounts.ts +6 -8
  379. package/src/resources/bookkeeping-entries.ts +5 -7
  380. package/src/resources/bookkeeping-entry-sets.ts +3 -3
  381. package/src/resources/card-disputes.ts +6 -8
  382. package/src/resources/card-payments.ts +5 -7
  383. package/src/resources/card-profiles.ts +6 -8
  384. package/src/resources/card-purchase-supplements.ts +5 -7
  385. package/src/resources/cards.ts +8 -10
  386. package/src/resources/check-deposits.ts +6 -8
  387. package/src/resources/check-transfers.ts +7 -9
  388. package/src/resources/declined-transactions.ts +5 -7
  389. package/src/resources/digital-wallet-tokens.ts +5 -7
  390. package/src/resources/documents.ts +5 -7
  391. package/src/resources/entities/beneficial-owners.ts +11 -8
  392. package/src/resources/entities/entities.ts +23 -24
  393. package/src/resources/entities/supplemental-documents.ts +8 -10
  394. package/src/resources/event-subscriptions.ts +7 -9
  395. package/src/resources/events.ts +5 -7
  396. package/src/resources/exports.ts +6 -8
  397. package/src/resources/external-accounts.ts +7 -9
  398. package/src/resources/files.ts +6 -8
  399. package/src/resources/groups.ts +2 -2
  400. package/src/resources/inbound-ach-transfers.ts +9 -9
  401. package/src/resources/inbound-wire-drawdown-requests.ts +6 -7
  402. package/src/resources/oauth-connections.ts +5 -7
  403. package/src/resources/pending-transactions.ts +5 -7
  404. package/src/resources/physical-cards.ts +7 -9
  405. package/src/resources/programs.ts +5 -7
  406. package/src/resources/real-time-decisions.ts +3 -3
  407. package/src/resources/real-time-payments-transfers.ts +8 -8
  408. package/src/resources/routing-numbers.ts +5 -7
  409. package/src/resources/simulations/account-statements.ts +4 -4
  410. package/src/resources/simulations/account-transfers.ts +2 -2
  411. package/src/resources/simulations/ach-transfers.ts +7 -7
  412. package/src/resources/simulations/card-disputes.ts +4 -4
  413. package/src/resources/simulations/card-profiles.ts +5 -2
  414. package/src/resources/simulations/card-refunds.ts +4 -4
  415. package/src/resources/simulations/cards.ts +6 -6
  416. package/src/resources/simulations/check-deposits.ts +4 -4
  417. package/src/resources/simulations/check-transfers.ts +3 -3
  418. package/src/resources/simulations/digital-wallet-token-requests.ts +5 -3
  419. package/src/resources/simulations/documents.ts +4 -4
  420. package/src/resources/simulations/inbound-funds-holds.ts +2 -2
  421. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +5 -4
  422. package/src/resources/simulations/interest-payments.ts +3 -3
  423. package/src/resources/simulations/physical-cards.ts +5 -4
  424. package/src/resources/simulations/programs.ts +4 -4
  425. package/src/resources/simulations/real-time-payments-transfers.ts +9 -6
  426. package/src/resources/simulations/simulations.ts +94 -95
  427. package/src/resources/simulations/wire-transfers.ts +3 -3
  428. package/src/resources/transactions.ts +5 -7
  429. package/src/resources/wire-drawdown-requests.ts +6 -8
  430. package/src/resources/wire-transfers.ts +6 -8
  431. package/src/version.ts +1 -1
  432. package/uploads.js +5 -9
  433. package/uploads.js.map +1 -1
  434. package/uploads.mjs +5 -9
  435. package/uploads.mjs.map +1 -1
  436. package/version.d.ts +1 -1
  437. package/version.js +1 -1
  438. package/version.mjs +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as Core from "../../e/core";
4
4
  import { APIResource } from "../../e/resource";
5
- import * as API from './index';
5
+ import * as InboundFundsHoldsAPI from "../../e/resources/simulations/inbound-funds-holds";
6
6
 
7
7
  export class InboundFundsHolds extends APIResource {
8
8
  /**
@@ -89,5 +89,5 @@ export interface InboundFundsHoldReleaseResponse {
89
89
  }
90
90
 
91
91
  export namespace InboundFundsHolds {
92
- export import InboundFundsHoldReleaseResponse = API.InboundFundsHoldReleaseResponse;
92
+ export type InboundFundsHoldReleaseResponse = InboundFundsHoldsAPI.InboundFundsHoldReleaseResponse;
93
93
  }
@@ -2,8 +2,8 @@
2
2
 
3
3
  import * as Core from "../../e/core";
4
4
  import { APIResource } from "../../e/resource";
5
- import * as InboundWireDrawdownRequests_ from "../../e/resources/inbound-wire-drawdown-requests";
6
- import * as API from './index';
5
+ import * as SimulationsInboundWireDrawdownRequestsAPI from "../../e/resources/simulations/inbound-wire-drawdown-requests";
6
+ import * as InboundWireDrawdownRequestsAPI from "../../e/resources/inbound-wire-drawdown-requests";
7
7
 
8
8
  export class InboundWireDrawdownRequests extends APIResource {
9
9
  /**
@@ -13,7 +13,7 @@ export class InboundWireDrawdownRequests extends APIResource {
13
13
  create(
14
14
  body: InboundWireDrawdownRequestCreateParams,
15
15
  options?: Core.RequestOptions,
16
- ): Core.APIPromise<InboundWireDrawdownRequests_.InboundWireDrawdownRequest> {
16
+ ): Core.APIPromise<InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequest> {
17
17
  return this.post('/simulations/inbound_wire_drawdown_requests', { body, ...options });
18
18
  }
19
19
  }
@@ -127,5 +127,6 @@ export interface InboundWireDrawdownRequestCreateParams {
127
127
  }
128
128
 
129
129
  export namespace InboundWireDrawdownRequests {
130
- export import InboundWireDrawdownRequestCreateParams = API.InboundWireDrawdownRequestCreateParams;
130
+ export type InboundWireDrawdownRequestCreateParams =
131
+ SimulationsInboundWireDrawdownRequestsAPI.InboundWireDrawdownRequestCreateParams;
131
132
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as Core from "../../e/core";
4
4
  import { APIResource } from "../../e/resource";
5
- import * as API from './index';
5
+ import * as InterestPaymentsAPI from "../../e/resources/simulations/interest-payments";
6
6
 
7
7
  export class InterestPayments extends APIResource {
8
8
  /**
@@ -3347,6 +3347,6 @@ export interface InterestPaymentCreateParams {
3347
3347
  }
3348
3348
 
3349
3349
  export namespace InterestPayments {
3350
- export import InterestPaymentSimulationResult = API.InterestPaymentSimulationResult;
3351
- export import InterestPaymentCreateParams = API.InterestPaymentCreateParams;
3350
+ export type InterestPaymentSimulationResult = InterestPaymentsAPI.InterestPaymentSimulationResult;
3351
+ export type InterestPaymentCreateParams = InterestPaymentsAPI.InterestPaymentCreateParams;
3352
3352
  }
@@ -2,8 +2,8 @@
2
2
 
3
3
  import * as Core from "../../e/core";
4
4
  import { APIResource } from "../../e/resource";
5
- import * as PhysicalCards_ from "../../e/resources/physical-cards";
6
- import * as API from './index';
5
+ import * as SimulationsPhysicalCardsAPI from "../../e/resources/simulations/physical-cards";
6
+ import * as PhysicalCardsAPI from "../../e/resources/physical-cards";
7
7
 
8
8
  export class PhysicalCards extends APIResource {
9
9
  /**
@@ -15,7 +15,7 @@ export class PhysicalCards extends APIResource {
15
15
  physicalCardId: string,
16
16
  body: PhysicalCardShipmentAdvanceParams,
17
17
  options?: Core.RequestOptions,
18
- ): Core.APIPromise<PhysicalCards_.PhysicalCard> {
18
+ ): Core.APIPromise<PhysicalCardsAPI.PhysicalCard> {
19
19
  return this.post(`/simulations/physical_cards/${physicalCardId}/shipment_advance`, { body, ...options });
20
20
  }
21
21
  }
@@ -47,5 +47,6 @@ export interface PhysicalCardShipmentAdvanceParams {
47
47
  }
48
48
 
49
49
  export namespace PhysicalCards {
50
- export import PhysicalCardShipmentAdvanceParams = API.PhysicalCardShipmentAdvanceParams;
50
+ export type PhysicalCardShipmentAdvanceParams =
51
+ SimulationsPhysicalCardsAPI.PhysicalCardShipmentAdvanceParams;
51
52
  }
@@ -2,8 +2,8 @@
2
2
 
3
3
  import * as Core from "../../e/core";
4
4
  import { APIResource } from "../../e/resource";
5
- import * as Programs_ from "../../e/resources/programs";
6
- import * as API from './index';
5
+ import * as SimulationsProgramsAPI from "../../e/resources/simulations/programs";
6
+ import * as ProgramsAPI from "../../e/resources/programs";
7
7
 
8
8
  export class Programs extends APIResource {
9
9
  /**
@@ -11,7 +11,7 @@ export class Programs extends APIResource {
11
11
  * program called Commercial Banking. Note that when your group operates more than
12
12
  * one program, `program_id` is a required field when creating accounts.
13
13
  */
14
- create(body: ProgramCreateParams, options?: Core.RequestOptions): Core.APIPromise<Programs_.Program> {
14
+ create(body: ProgramCreateParams, options?: Core.RequestOptions): Core.APIPromise<ProgramsAPI.Program> {
15
15
  return this.post('/simulations/programs', { body, ...options });
16
16
  }
17
17
  }
@@ -24,5 +24,5 @@ export interface ProgramCreateParams {
24
24
  }
25
25
 
26
26
  export namespace Programs {
27
- export import ProgramCreateParams = API.ProgramCreateParams;
27
+ export type ProgramCreateParams = SimulationsProgramsAPI.ProgramCreateParams;
28
28
  }
@@ -2,8 +2,8 @@
2
2
 
3
3
  import * as Core from "../../e/core";
4
4
  import { APIResource } from "../../e/resource";
5
- import * as RealTimePaymentsTransfers_ from "../../e/resources/real-time-payments-transfers";
6
- import * as API from './index';
5
+ import * as SimulationsRealTimePaymentsTransfersAPI from "../../e/resources/simulations/real-time-payments-transfers";
6
+ import * as RealTimePaymentsTransfersAPI from "../../e/resources/real-time-payments-transfers";
7
7
 
8
8
  export class RealTimePaymentsTransfers extends APIResource {
9
9
  /**
@@ -15,7 +15,7 @@ export class RealTimePaymentsTransfers extends APIResource {
15
15
  realTimePaymentsTransferId: string,
16
16
  body: RealTimePaymentsTransferCompleteParams,
17
17
  options?: Core.RequestOptions,
18
- ): Core.APIPromise<RealTimePaymentsTransfers_.RealTimePaymentsTransfer> {
18
+ ): Core.APIPromise<RealTimePaymentsTransfersAPI.RealTimePaymentsTransfer> {
19
19
  return this.post(`/simulations/real_time_payments_transfers/${realTimePaymentsTransferId}/complete`, {
20
20
  body,
21
21
  ...options,
@@ -4493,7 +4493,10 @@ export interface RealTimePaymentsTransferCreateInboundParams {
4493
4493
  }
4494
4494
 
4495
4495
  export namespace RealTimePaymentsTransfers {
4496
- export import InboundRealTimePaymentsTransferSimulationResult = API.InboundRealTimePaymentsTransferSimulationResult;
4497
- export import RealTimePaymentsTransferCompleteParams = API.RealTimePaymentsTransferCompleteParams;
4498
- export import RealTimePaymentsTransferCreateInboundParams = API.RealTimePaymentsTransferCreateInboundParams;
4496
+ export type InboundRealTimePaymentsTransferSimulationResult =
4497
+ SimulationsRealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferSimulationResult;
4498
+ export type RealTimePaymentsTransferCompleteParams =
4499
+ SimulationsRealTimePaymentsTransfersAPI.RealTimePaymentsTransferCompleteParams;
4500
+ export type RealTimePaymentsTransferCreateInboundParams =
4501
+ SimulationsRealTimePaymentsTransfersAPI.RealTimePaymentsTransferCreateInboundParams;
4499
4502
  }
@@ -1,104 +1,103 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
3
  import { APIResource } from "../../e/resource";
4
- import { AccountTransfers } from './account-transfers';
5
- import { AccountStatements } from './account-statements';
6
- import { ACHTransfers } from './ach-transfers';
7
- import { CardDisputes } from './card-disputes';
8
- import { CardProfiles } from './card-profiles';
9
- import { CardRefunds } from './card-refunds';
10
- import { CheckTransfers } from './check-transfers';
11
- import { Documents } from './documents';
12
- import { DigitalWalletTokenRequests } from './digital-wallet-token-requests';
13
- import { CheckDeposits } from './check-deposits';
14
- import { Programs } from './programs';
15
- import { InboundWireDrawdownRequests } from './inbound-wire-drawdown-requests';
16
- import { InboundFundsHolds } from './inbound-funds-holds';
17
- import { InterestPayments } from './interest-payments';
18
- import { WireTransfers } from './wire-transfers';
19
- import { Cards } from './cards';
20
- import { RealTimePaymentsTransfers } from './real-time-payments-transfers';
21
- import { PhysicalCards } from './physical-cards';
22
- import * as API from './index';
4
+ import * as AccountStatementsAPI from "../../e/resources/simulations/account-statements";
5
+ import * as AccountTransfersAPI from "../../e/resources/simulations/account-transfers";
6
+ import * as ACHTransfersAPI from "../../e/resources/simulations/ach-transfers";
7
+ import * as CardDisputesAPI from "../../e/resources/simulations/card-disputes";
8
+ import * as CardProfilesAPI from "../../e/resources/simulations/card-profiles";
9
+ import * as CardRefundsAPI from "../../e/resources/simulations/card-refunds";
10
+ import * as CardsAPI from "../../e/resources/simulations/cards";
11
+ import * as CheckDepositsAPI from "../../e/resources/simulations/check-deposits";
12
+ import * as CheckTransfersAPI from "../../e/resources/simulations/check-transfers";
13
+ import * as DigitalWalletTokenRequestsAPI from "../../e/resources/simulations/digital-wallet-token-requests";
14
+ import * as DocumentsAPI from "../../e/resources/simulations/documents";
15
+ import * as InboundFundsHoldsAPI from "../../e/resources/simulations/inbound-funds-holds";
16
+ import * as InboundWireDrawdownRequestsAPI from "../../e/resources/simulations/inbound-wire-drawdown-requests";
17
+ import * as InterestPaymentsAPI from "../../e/resources/simulations/interest-payments";
18
+ import * as PhysicalCardsAPI from "../../e/resources/simulations/physical-cards";
19
+ import * as ProgramsAPI from "../../e/resources/simulations/programs";
20
+ import * as RealTimePaymentsTransfersAPI from "../../e/resources/simulations/real-time-payments-transfers";
21
+ import * as WireTransfersAPI from "../../e/resources/simulations/wire-transfers";
23
22
 
24
23
  export class Simulations extends APIResource {
25
- accountTransfers: AccountTransfers = new AccountTransfers(this.client);
26
- accountStatements: AccountStatements = new AccountStatements(this.client);
27
- achTransfers: ACHTransfers = new ACHTransfers(this.client);
28
- cardDisputes: CardDisputes = new CardDisputes(this.client);
29
- cardProfiles: CardProfiles = new CardProfiles(this.client);
30
- cardRefunds: CardRefunds = new CardRefunds(this.client);
31
- checkTransfers: CheckTransfers = new CheckTransfers(this.client);
32
- documents: Documents = new Documents(this.client);
33
- digitalWalletTokenRequests: DigitalWalletTokenRequests = new DigitalWalletTokenRequests(this.client);
34
- checkDeposits: CheckDeposits = new CheckDeposits(this.client);
35
- programs: Programs = new Programs(this.client);
36
- inboundWireDrawdownRequests: InboundWireDrawdownRequests = new InboundWireDrawdownRequests(this.client);
37
- inboundFundsHolds: InboundFundsHolds = new InboundFundsHolds(this.client);
38
- interestPayments: InterestPayments = new InterestPayments(this.client);
39
- wireTransfers: WireTransfers = new WireTransfers(this.client);
40
- cards: Cards = new Cards(this.client);
41
- realTimePaymentsTransfers: RealTimePaymentsTransfers = new RealTimePaymentsTransfers(this.client);
42
- physicalCards: PhysicalCards = new PhysicalCards(this.client);
24
+ accountTransfers: AccountTransfersAPI.AccountTransfers = new AccountTransfersAPI.AccountTransfers(
25
+ this.client,
26
+ );
27
+ accountStatements: AccountStatementsAPI.AccountStatements = new AccountStatementsAPI.AccountStatements(
28
+ this.client,
29
+ );
30
+ achTransfers: ACHTransfersAPI.ACHTransfers = new ACHTransfersAPI.ACHTransfers(this.client);
31
+ cardDisputes: CardDisputesAPI.CardDisputes = new CardDisputesAPI.CardDisputes(this.client);
32
+ cardProfiles: CardProfilesAPI.CardProfiles = new CardProfilesAPI.CardProfiles(this.client);
33
+ cardRefunds: CardRefundsAPI.CardRefunds = new CardRefundsAPI.CardRefunds(this.client);
34
+ checkTransfers: CheckTransfersAPI.CheckTransfers = new CheckTransfersAPI.CheckTransfers(this.client);
35
+ documents: DocumentsAPI.Documents = new DocumentsAPI.Documents(this.client);
36
+ digitalWalletTokenRequests: DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests =
37
+ new DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests(this.client);
38
+ checkDeposits: CheckDepositsAPI.CheckDeposits = new CheckDepositsAPI.CheckDeposits(this.client);
39
+ programs: ProgramsAPI.Programs = new ProgramsAPI.Programs(this.client);
40
+ inboundWireDrawdownRequests: InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests =
41
+ new InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests(this.client);
42
+ inboundFundsHolds: InboundFundsHoldsAPI.InboundFundsHolds = new InboundFundsHoldsAPI.InboundFundsHolds(
43
+ this.client,
44
+ );
45
+ interestPayments: InterestPaymentsAPI.InterestPayments = new InterestPaymentsAPI.InterestPayments(
46
+ this.client,
47
+ );
48
+ wireTransfers: WireTransfersAPI.WireTransfers = new WireTransfersAPI.WireTransfers(this.client);
49
+ cards: CardsAPI.Cards = new CardsAPI.Cards(this.client);
50
+ realTimePaymentsTransfers: RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers =
51
+ new RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers(this.client);
52
+ physicalCards: PhysicalCardsAPI.PhysicalCards = new PhysicalCardsAPI.PhysicalCards(this.client);
43
53
  }
44
54
 
45
55
  export namespace Simulations {
46
- export import AccountTransfers = API.AccountTransfers;
47
-
48
- export import AccountStatements = API.AccountStatements;
49
- export import AccountStatementCreateParams = API.AccountStatementCreateParams;
50
-
51
- export import ACHTransfers = API.ACHTransfers;
52
- export import ACHTransferSimulation = API.ACHTransferSimulation;
53
- export import ACHTransferCreateInboundParams = API.ACHTransferCreateInboundParams;
54
- export import ACHTransferReturnParams = API.ACHTransferReturnParams;
55
-
56
- export import CardDisputes = API.CardDisputes;
57
- export import CardDisputeActionParams = API.CardDisputeActionParams;
58
-
59
- export import CardProfiles = API.CardProfiles;
60
-
61
- export import CardRefunds = API.CardRefunds;
62
- export import CardRefundCreateParams = API.CardRefundCreateParams;
63
-
64
- export import CheckTransfers = API.CheckTransfers;
65
-
66
- export import Documents = API.Documents;
67
- export import DocumentCreateParams = API.DocumentCreateParams;
68
-
69
- export import DigitalWalletTokenRequests = API.DigitalWalletTokenRequests;
70
- export import DigitalWalletTokenRequestCreateResponse = API.DigitalWalletTokenRequestCreateResponse;
71
- export import DigitalWalletTokenRequestCreateParams = API.DigitalWalletTokenRequestCreateParams;
72
-
73
- export import CheckDeposits = API.CheckDeposits;
74
-
75
- export import Programs = API.Programs;
76
- export import ProgramCreateParams = API.ProgramCreateParams;
77
-
78
- export import InboundWireDrawdownRequests = API.InboundWireDrawdownRequests;
79
- export import InboundWireDrawdownRequestCreateParams = API.InboundWireDrawdownRequestCreateParams;
80
-
81
- export import InboundFundsHolds = API.InboundFundsHolds;
82
- export import InboundFundsHoldReleaseResponse = API.InboundFundsHoldReleaseResponse;
83
-
84
- export import InterestPayments = API.InterestPayments;
85
- export import InterestPaymentSimulationResult = API.InterestPaymentSimulationResult;
86
- export import InterestPaymentCreateParams = API.InterestPaymentCreateParams;
87
-
88
- export import WireTransfers = API.WireTransfers;
89
- export import WireTransferSimulation = API.WireTransferSimulation;
90
- export import WireTransferCreateInboundParams = API.WireTransferCreateInboundParams;
91
-
92
- export import Cards = API.Cards;
93
- export import CardAuthorizationSimulation = API.CardAuthorizationSimulation;
94
- export import CardAuthorizeParams = API.CardAuthorizeParams;
95
- export import CardSettlementParams = API.CardSettlementParams;
96
-
97
- export import RealTimePaymentsTransfers = API.RealTimePaymentsTransfers;
98
- export import InboundRealTimePaymentsTransferSimulationResult = API.InboundRealTimePaymentsTransferSimulationResult;
99
- export import RealTimePaymentsTransferCompleteParams = API.RealTimePaymentsTransferCompleteParams;
100
- export import RealTimePaymentsTransferCreateInboundParams = API.RealTimePaymentsTransferCreateInboundParams;
101
-
102
- export import PhysicalCards = API.PhysicalCards;
103
- export import PhysicalCardShipmentAdvanceParams = API.PhysicalCardShipmentAdvanceParams;
56
+ export import AccountTransfers = AccountTransfersAPI.AccountTransfers;
57
+ export import AccountStatements = AccountStatementsAPI.AccountStatements;
58
+ export type AccountStatementCreateParams = AccountStatementsAPI.AccountStatementCreateParams;
59
+ export import ACHTransfers = ACHTransfersAPI.ACHTransfers;
60
+ export type ACHTransferSimulation = ACHTransfersAPI.ACHTransferSimulation;
61
+ export type ACHTransferCreateInboundParams = ACHTransfersAPI.ACHTransferCreateInboundParams;
62
+ export type ACHTransferReturnParams = ACHTransfersAPI.ACHTransferReturnParams;
63
+ export import CardDisputes = CardDisputesAPI.CardDisputes;
64
+ export type CardDisputeActionParams = CardDisputesAPI.CardDisputeActionParams;
65
+ export import CardProfiles = CardProfilesAPI.CardProfiles;
66
+ export import CardRefunds = CardRefundsAPI.CardRefunds;
67
+ export type CardRefundCreateParams = CardRefundsAPI.CardRefundCreateParams;
68
+ export import CheckTransfers = CheckTransfersAPI.CheckTransfers;
69
+ export import Documents = DocumentsAPI.Documents;
70
+ export type DocumentCreateParams = DocumentsAPI.DocumentCreateParams;
71
+ export import DigitalWalletTokenRequests = DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequests;
72
+ export type DigitalWalletTokenRequestCreateResponse =
73
+ DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequestCreateResponse;
74
+ export type DigitalWalletTokenRequestCreateParams =
75
+ DigitalWalletTokenRequestsAPI.DigitalWalletTokenRequestCreateParams;
76
+ export import CheckDeposits = CheckDepositsAPI.CheckDeposits;
77
+ export import Programs = ProgramsAPI.Programs;
78
+ export type ProgramCreateParams = ProgramsAPI.ProgramCreateParams;
79
+ export import InboundWireDrawdownRequests = InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequests;
80
+ export type InboundWireDrawdownRequestCreateParams =
81
+ InboundWireDrawdownRequestsAPI.InboundWireDrawdownRequestCreateParams;
82
+ export import InboundFundsHolds = InboundFundsHoldsAPI.InboundFundsHolds;
83
+ export type InboundFundsHoldReleaseResponse = InboundFundsHoldsAPI.InboundFundsHoldReleaseResponse;
84
+ export import InterestPayments = InterestPaymentsAPI.InterestPayments;
85
+ export type InterestPaymentSimulationResult = InterestPaymentsAPI.InterestPaymentSimulationResult;
86
+ export type InterestPaymentCreateParams = InterestPaymentsAPI.InterestPaymentCreateParams;
87
+ export import WireTransfers = WireTransfersAPI.WireTransfers;
88
+ export type WireTransferSimulation = WireTransfersAPI.WireTransferSimulation;
89
+ export type WireTransferCreateInboundParams = WireTransfersAPI.WireTransferCreateInboundParams;
90
+ export import Cards = CardsAPI.Cards;
91
+ export type CardAuthorizationSimulation = CardsAPI.CardAuthorizationSimulation;
92
+ export type CardAuthorizeParams = CardsAPI.CardAuthorizeParams;
93
+ export type CardSettlementParams = CardsAPI.CardSettlementParams;
94
+ export import RealTimePaymentsTransfers = RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers;
95
+ export type InboundRealTimePaymentsTransferSimulationResult =
96
+ RealTimePaymentsTransfersAPI.InboundRealTimePaymentsTransferSimulationResult;
97
+ export type RealTimePaymentsTransferCompleteParams =
98
+ RealTimePaymentsTransfersAPI.RealTimePaymentsTransferCompleteParams;
99
+ export type RealTimePaymentsTransferCreateInboundParams =
100
+ RealTimePaymentsTransfersAPI.RealTimePaymentsTransferCreateInboundParams;
101
+ export import PhysicalCards = PhysicalCardsAPI.PhysicalCards;
102
+ export type PhysicalCardShipmentAdvanceParams = PhysicalCardsAPI.PhysicalCardShipmentAdvanceParams;
104
103
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as Core from "../../e/core";
4
4
  import { APIResource } from "../../e/resource";
5
- import * as API from './index';
5
+ import * as WireTransfersAPI from "../../e/resources/simulations/wire-transfers";
6
6
 
7
7
  export class WireTransfers extends APIResource {
8
8
  /**
@@ -3422,6 +3422,6 @@ export interface WireTransferCreateInboundParams {
3422
3422
  }
3423
3423
 
3424
3424
  export namespace WireTransfers {
3425
- export import WireTransferSimulation = API.WireTransferSimulation;
3426
- export import WireTransferCreateInboundParams = API.WireTransferCreateInboundParams;
3425
+ export type WireTransferSimulation = WireTransfersAPI.WireTransferSimulation;
3426
+ export type WireTransferCreateInboundParams = WireTransfersAPI.WireTransferCreateInboundParams;
3427
3427
  }
@@ -3,8 +3,8 @@
3
3
  import * as Core from "../e/core";
4
4
  import { APIResource } from "../e/resource";
5
5
  import { isRequestOptions } from "../e/core";
6
- import * as API from './index';
7
- import { Page, PageParams } from "../e/pagination";
6
+ import * as TransactionsAPI from "../e/resources/transactions";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class Transactions extends APIResource {
10
10
  /**
@@ -34,8 +34,6 @@ export class Transactions extends APIResource {
34
34
  }
35
35
 
36
36
  export class TransactionsPage extends Page<Transaction> {}
37
- // alias so we can export it in the namespace
38
- type _TransactionsPage = TransactionsPage;
39
37
 
40
38
  /**
41
39
  * Transactions are the immutable additions and removals of money from your bank
@@ -3410,7 +3408,7 @@ export namespace TransactionListParams {
3410
3408
  }
3411
3409
 
3412
3410
  export namespace Transactions {
3413
- export import Transaction = API.Transaction;
3414
- export type TransactionsPage = _TransactionsPage;
3415
- export import TransactionListParams = API.TransactionListParams;
3411
+ export type Transaction = TransactionsAPI.Transaction;
3412
+ export import TransactionsPage = TransactionsAPI.TransactionsPage;
3413
+ export type TransactionListParams = TransactionsAPI.TransactionListParams;
3416
3414
  }
@@ -3,8 +3,8 @@
3
3
  import * as Core from "../e/core";
4
4
  import { APIResource } from "../e/resource";
5
5
  import { isRequestOptions } from "../e/core";
6
- import * as API from './index';
7
- import { Page, PageParams } from "../e/pagination";
6
+ import * as WireDrawdownRequestsAPI from "../e/resources/wire-drawdown-requests";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class WireDrawdownRequests extends APIResource {
10
10
  /**
@@ -47,8 +47,6 @@ export class WireDrawdownRequests extends APIResource {
47
47
  }
48
48
 
49
49
  export class WireDrawdownRequestsPage extends Page<WireDrawdownRequest> {}
50
- // alias so we can export it in the namespace
51
- type _WireDrawdownRequestsPage = WireDrawdownRequestsPage;
52
50
 
53
51
  /**
54
52
  * Wire drawdown requests enable you to request that someone else send you a wire.
@@ -208,8 +206,8 @@ export interface WireDrawdownRequestCreateParams {
208
206
  export interface WireDrawdownRequestListParams extends PageParams {}
209
207
 
210
208
  export namespace WireDrawdownRequests {
211
- export import WireDrawdownRequest = API.WireDrawdownRequest;
212
- export type WireDrawdownRequestsPage = _WireDrawdownRequestsPage;
213
- export import WireDrawdownRequestCreateParams = API.WireDrawdownRequestCreateParams;
214
- export import WireDrawdownRequestListParams = API.WireDrawdownRequestListParams;
209
+ export type WireDrawdownRequest = WireDrawdownRequestsAPI.WireDrawdownRequest;
210
+ export import WireDrawdownRequestsPage = WireDrawdownRequestsAPI.WireDrawdownRequestsPage;
211
+ export type WireDrawdownRequestCreateParams = WireDrawdownRequestsAPI.WireDrawdownRequestCreateParams;
212
+ export type WireDrawdownRequestListParams = WireDrawdownRequestsAPI.WireDrawdownRequestListParams;
215
213
  }
@@ -3,8 +3,8 @@
3
3
  import * as Core from "../e/core";
4
4
  import { APIResource } from "../e/resource";
5
5
  import { isRequestOptions } from "../e/core";
6
- import * as API from './index';
7
- import { Page, PageParams } from "../e/pagination";
6
+ import * as WireTransfersAPI from "../e/resources/wire-transfers";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class WireTransfers extends APIResource {
10
10
  /**
@@ -74,8 +74,6 @@ export class WireTransfers extends APIResource {
74
74
  }
75
75
 
76
76
  export class WireTransfersPage extends Page<WireTransfer> {}
77
- // alias so we can export it in the namespace
78
- type _WireTransfersPage = WireTransfersPage;
79
77
 
80
78
  /**
81
79
  * Wire transfers move funds between your Increase account and any other account
@@ -488,8 +486,8 @@ export namespace WireTransferListParams {
488
486
  }
489
487
 
490
488
  export namespace WireTransfers {
491
- export import WireTransfer = API.WireTransfer;
492
- export type WireTransfersPage = _WireTransfersPage;
493
- export import WireTransferCreateParams = API.WireTransferCreateParams;
494
- export import WireTransferListParams = API.WireTransferListParams;
489
+ export type WireTransfer = WireTransfersAPI.WireTransfer;
490
+ export import WireTransfersPage = WireTransfersAPI.WireTransfersPage;
491
+ export type WireTransferCreateParams = WireTransfersAPI.WireTransferCreateParams;
492
+ export type WireTransferListParams = WireTransfersAPI.WireTransferListParams;
495
493
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.11.6'; // x-release-please-version
1
+ export const VERSION = '0.11.8'; // x-release-please-version
package/uploads.js CHANGED
@@ -41,18 +41,17 @@ exports.isUploadable = isUploadable;
41
41
  * @returns a {@link File} with the given properties
42
42
  */
43
43
  async function toFile(value, name, options = {}) {
44
- var _a, _b, _c;
45
44
  // If it's a promise, resolve it.
46
45
  value = await value;
47
46
  if ((0, exports.isResponseLike)(value)) {
48
47
  const blob = await value.blob();
49
- name || (name = (_a = new URL(value.url).pathname.split(/[\\/]/).pop()) !== null && _a !== void 0 ? _a : 'unknown_file');
48
+ name || (name = new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file');
50
49
  return new index_1.File([blob], name, options);
51
50
  }
52
51
  const bits = await getBytes(value);
53
- name || (name = (_b = getName(value)) !== null && _b !== void 0 ? _b : 'unknown_file');
52
+ name || (name = getName(value) ?? 'unknown_file');
54
53
  if (!options.type) {
55
- const type = (_c = bits[0]) === null || _c === void 0 ? void 0 : _c.type;
54
+ const type = bits[0]?.type;
56
55
  if (typeof type === 'string') {
57
56
  options = { ...options, type };
58
57
  }
@@ -61,7 +60,6 @@ async function toFile(value, name, options = {}) {
61
60
  }
62
61
  exports.toFile = toFile;
63
62
  async function getBytes(value) {
64
- var _a;
65
63
  let parts = [];
66
64
  if (typeof value === 'string' ||
67
65
  ArrayBuffer.isView(value) || // includes Uint8Array, Buffer, etc.
@@ -78,7 +76,7 @@ async function getBytes(value) {
78
76
  }
79
77
  }
80
78
  else {
81
- throw new Error(`Unexpected data type: ${typeof value}; constructor: ${(_a = value === null || value === void 0 ? void 0 : value.constructor) === null || _a === void 0 ? void 0 : _a.name}; props: ${propsForError(value)}`);
79
+ throw new Error(`Unexpected data type: ${typeof value}; constructor: ${value?.constructor?.name}; props: ${propsForError(value)}`);
82
80
  }
83
81
  return parts;
84
82
  }
@@ -87,12 +85,10 @@ function propsForError(value) {
87
85
  return `[${props.map((p) => `"${p}"`).join(', ')}]`;
88
86
  }
89
87
  function getName(value) {
90
- var _a;
91
88
  return (getStringFromMaybeBuffer(value.name) ||
92
89
  getStringFromMaybeBuffer(value.filename) ||
93
- (
94
90
  // For fs.ReadStream
95
- (_a = getStringFromMaybeBuffer(value.path)) === null || _a === void 0 ? void 0 : _a.split(/[\\/]/).pop()));
91
+ getStringFromMaybeBuffer(value.path)?.split(/[\\/]/).pop());
96
92
  }
97
93
  const getStringFromMaybeBuffer = (x) => {
98
94
  if (typeof x === 'string')
package/uploads.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AACA,6CAQwB;AAExB,2CAA8C;AAArC,qGAAA,YAAY,OAAA;AAiDd,MAAM,cAAc,GAAG,CAAC,KAAU,EAAyB,EAAE,CAClE,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,GAAG,KAAK,QAAQ;IAC7B,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC;AAJtB,QAAA,cAAc,kBAIQ;AAE5B,MAAM,UAAU,GAAG,CAAC,KAAU,EAAqB,EAAE,CAC1D,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,YAAY,KAAK,QAAQ;IACtC,IAAA,kBAAU,EAAC,KAAK,CAAC,CAAC;AALP,QAAA,UAAU,cAKH;AAEpB;;;GAGG;AACI,MAAM,UAAU,GAAG,CAAC,KAAU,EAA+D,EAAE,CACpG,KAAK,IAAI,IAAI;IACb,OAAO,KAAK,KAAK,QAAQ;IACzB,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;IAC9B,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU;IAChC,OAAO,KAAK,CAAC,KAAK,KAAK,UAAU;IACjC,OAAO,KAAK,CAAC,WAAW,KAAK,UAAU,CAAC;AAP7B,QAAA,UAAU,cAOmB;AAEnC,MAAM,YAAY,GAAG,CAAC,KAAU,EAAuB,EAAE;IAC9D,OAAO,IAAA,kBAAU,EAAC,KAAK,CAAC,IAAI,IAAA,sBAAc,EAAC,KAAK,CAAC,IAAI,IAAA,sBAAc,EAAC,KAAK,CAAC,CAAC;AAC7E,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@ -33,18 +33,17 @@ export const isUploadable = (value) => {
33
33
  * @returns a {@link File} with the given properties
34
34
  */
35
35
  export async function toFile(value, name, options = {}) {
36
- var _a, _b, _c;
37
36
  // If it's a promise, resolve it.
38
37
  value = await value;
39
38
  if (isResponseLike(value)) {
40
39
  const blob = await value.blob();
41
- name || (name = (_a = new URL(value.url).pathname.split(/[\\/]/).pop()) !== null && _a !== void 0 ? _a : 'unknown_file');
40
+ name || (name = new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file');
42
41
  return new File([blob], name, options);
43
42
  }
44
43
  const bits = await getBytes(value);
45
- name || (name = (_b = getName(value)) !== null && _b !== void 0 ? _b : 'unknown_file');
44
+ name || (name = getName(value) ?? 'unknown_file');
46
45
  if (!options.type) {
47
- const type = (_c = bits[0]) === null || _c === void 0 ? void 0 : _c.type;
46
+ const type = bits[0]?.type;
48
47
  if (typeof type === 'string') {
49
48
  options = { ...options, type };
50
49
  }
@@ -52,7 +51,6 @@ export async function toFile(value, name, options = {}) {
52
51
  return new File(bits, name, options);
53
52
  }
54
53
  async function getBytes(value) {
55
- var _a;
56
54
  let parts = [];
57
55
  if (typeof value === 'string' ||
58
56
  ArrayBuffer.isView(value) || // includes Uint8Array, Buffer, etc.
@@ -69,7 +67,7 @@ async function getBytes(value) {
69
67
  }
70
68
  }
71
69
  else {
72
- throw new Error(`Unexpected data type: ${typeof value}; constructor: ${(_a = value === null || value === void 0 ? void 0 : value.constructor) === null || _a === void 0 ? void 0 : _a.name}; props: ${propsForError(value)}`);
70
+ throw new Error(`Unexpected data type: ${typeof value}; constructor: ${value?.constructor?.name}; props: ${propsForError(value)}`);
73
71
  }
74
72
  return parts;
75
73
  }
@@ -78,12 +76,10 @@ function propsForError(value) {
78
76
  return `[${props.map((p) => `"${p}"`).join(', ')}]`;
79
77
  }
80
78
  function getName(value) {
81
- var _a;
82
79
  return (getStringFromMaybeBuffer(value.name) ||
83
80
  getStringFromMaybeBuffer(value.filename) ||
84
- (
85
81
  // For fs.ReadStream
86
- (_a = getStringFromMaybeBuffer(value.path)) === null || _a === void 0 ? void 0 : _a.split(/[\\/]/).pop()));
82
+ getStringFromMaybeBuffer(value.path)?.split(/[\\/]/).pop());
87
83
  }
88
84
  const getStringFromMaybeBuffer = (x) => {
89
85
  if (typeof x === 'string')