increase 0.11.7 → 0.12.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 (406) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +3 -3
  3. package/_shims/auto/types.d.ts +3 -1
  4. package/_shims/index.d.ts +2 -0
  5. package/_shims/node-runtime.d.ts.map +1 -1
  6. package/_shims/node-runtime.js +3 -0
  7. package/_shims/node-runtime.js.map +1 -1
  8. package/_shims/node-runtime.mjs +2 -0
  9. package/_shims/node-runtime.mjs.map +1 -1
  10. package/_shims/node-types.d.ts +1 -1
  11. package/_shims/registry.d.ts +2 -0
  12. package/_shims/registry.d.ts.map +1 -1
  13. package/_shims/registry.js +3 -1
  14. package/_shims/registry.js.map +1 -1
  15. package/_shims/registry.mjs +2 -0
  16. package/_shims/registry.mjs.map +1 -1
  17. package/_shims/web-runtime.d.ts.map +1 -1
  18. package/_shims/web-runtime.js +8 -0
  19. package/_shims/web-runtime.js.map +1 -1
  20. package/_shims/web-runtime.mjs +8 -0
  21. package/_shims/web-runtime.mjs.map +1 -1
  22. package/_shims/web-types.d.ts +2 -1
  23. package/core.d.ts +1 -1
  24. package/core.d.ts.map +1 -1
  25. package/core.js +26 -13
  26. package/core.js.map +1 -1
  27. package/core.mjs +24 -11
  28. package/core.mjs.map +1 -1
  29. package/error.d.ts.map +1 -1
  30. package/error.js +14 -4
  31. package/error.js.map +1 -1
  32. package/error.mjs +14 -4
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts +4 -3
  35. package/index.d.ts +4 -3
  36. package/index.d.ts.map +1 -1
  37. package/index.js +3 -3
  38. package/index.js.map +1 -1
  39. package/index.mjs +3 -3
  40. package/index.mjs.map +1 -1
  41. package/package.json +3 -2
  42. package/resources/account-numbers.d.ts +7 -9
  43. package/resources/account-numbers.d.ts.map +1 -1
  44. package/resources/account-numbers.js +25 -0
  45. package/resources/account-numbers.js.map +1 -1
  46. package/resources/account-numbers.mjs +2 -0
  47. package/resources/account-numbers.mjs.map +1 -1
  48. package/resources/account-statements.d.ts +5 -7
  49. package/resources/account-statements.d.ts.map +1 -1
  50. package/resources/account-statements.js +25 -0
  51. package/resources/account-statements.js.map +1 -1
  52. package/resources/account-statements.mjs +2 -0
  53. package/resources/account-statements.mjs.map +1 -1
  54. package/resources/account-transfers.d.ts +6 -8
  55. package/resources/account-transfers.d.ts.map +1 -1
  56. package/resources/account-transfers.js +25 -0
  57. package/resources/account-transfers.js.map +1 -1
  58. package/resources/account-transfers.mjs +2 -0
  59. package/resources/account-transfers.mjs.map +1 -1
  60. package/resources/accounts.d.ts +7 -9
  61. package/resources/accounts.d.ts.map +1 -1
  62. package/resources/accounts.js +25 -0
  63. package/resources/accounts.js.map +1 -1
  64. package/resources/accounts.mjs +2 -0
  65. package/resources/accounts.mjs.map +1 -1
  66. package/resources/ach-prenotifications.d.ts +6 -8
  67. package/resources/ach-prenotifications.d.ts.map +1 -1
  68. package/resources/ach-prenotifications.js +25 -0
  69. package/resources/ach-prenotifications.js.map +1 -1
  70. package/resources/ach-prenotifications.mjs +2 -0
  71. package/resources/ach-prenotifications.mjs.map +1 -1
  72. package/resources/ach-transfers.d.ts +6 -8
  73. package/resources/ach-transfers.d.ts.map +1 -1
  74. package/resources/ach-transfers.js +25 -0
  75. package/resources/ach-transfers.js.map +1 -1
  76. package/resources/ach-transfers.mjs +2 -0
  77. package/resources/ach-transfers.mjs.map +1 -1
  78. package/resources/balance-lookups.d.ts +3 -3
  79. package/resources/balance-lookups.d.ts.map +1 -1
  80. package/resources/bookkeeping-accounts.d.ts +17 -8
  81. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  82. package/resources/bookkeeping-accounts.js +31 -0
  83. package/resources/bookkeeping-accounts.js.map +1 -1
  84. package/resources/bookkeeping-accounts.mjs +8 -0
  85. package/resources/bookkeeping-accounts.mjs.map +1 -1
  86. package/resources/bookkeeping-entries.d.ts +5 -7
  87. package/resources/bookkeeping-entries.d.ts.map +1 -1
  88. package/resources/bookkeeping-entries.js +25 -0
  89. package/resources/bookkeeping-entries.js.map +1 -1
  90. package/resources/bookkeeping-entries.mjs +2 -0
  91. package/resources/bookkeeping-entries.mjs.map +1 -1
  92. package/resources/bookkeeping-entry-sets.d.ts +3 -3
  93. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  94. package/resources/card-disputes.d.ts +6 -8
  95. package/resources/card-disputes.d.ts.map +1 -1
  96. package/resources/card-disputes.js +25 -0
  97. package/resources/card-disputes.js.map +1 -1
  98. package/resources/card-disputes.mjs +2 -0
  99. package/resources/card-disputes.mjs.map +1 -1
  100. package/resources/card-payments.d.ts +5 -7
  101. package/resources/card-payments.d.ts.map +1 -1
  102. package/resources/card-payments.js +25 -0
  103. package/resources/card-payments.js.map +1 -1
  104. package/resources/card-payments.mjs +2 -0
  105. package/resources/card-payments.mjs.map +1 -1
  106. package/resources/card-profiles.d.ts +6 -8
  107. package/resources/card-profiles.d.ts.map +1 -1
  108. package/resources/card-profiles.js +25 -0
  109. package/resources/card-profiles.js.map +1 -1
  110. package/resources/card-profiles.mjs +2 -0
  111. package/resources/card-profiles.mjs.map +1 -1
  112. package/resources/card-purchase-supplements.d.ts +5 -7
  113. package/resources/card-purchase-supplements.d.ts.map +1 -1
  114. package/resources/card-purchase-supplements.js +25 -0
  115. package/resources/card-purchase-supplements.js.map +1 -1
  116. package/resources/card-purchase-supplements.mjs +2 -0
  117. package/resources/card-purchase-supplements.mjs.map +1 -1
  118. package/resources/cards.d.ts +8 -10
  119. package/resources/cards.d.ts.map +1 -1
  120. package/resources/cards.js +25 -0
  121. package/resources/cards.js.map +1 -1
  122. package/resources/cards.mjs +2 -0
  123. package/resources/cards.mjs.map +1 -1
  124. package/resources/check-deposits.d.ts +6 -8
  125. package/resources/check-deposits.d.ts.map +1 -1
  126. package/resources/check-deposits.js +25 -0
  127. package/resources/check-deposits.js.map +1 -1
  128. package/resources/check-deposits.mjs +2 -0
  129. package/resources/check-deposits.mjs.map +1 -1
  130. package/resources/check-transfers.d.ts +11 -9
  131. package/resources/check-transfers.d.ts.map +1 -1
  132. package/resources/check-transfers.js +25 -0
  133. package/resources/check-transfers.js.map +1 -1
  134. package/resources/check-transfers.mjs +2 -0
  135. package/resources/check-transfers.mjs.map +1 -1
  136. package/resources/declined-transactions.d.ts +5 -7
  137. package/resources/declined-transactions.d.ts.map +1 -1
  138. package/resources/declined-transactions.js +25 -0
  139. package/resources/declined-transactions.js.map +1 -1
  140. package/resources/declined-transactions.mjs +2 -0
  141. package/resources/declined-transactions.mjs.map +1 -1
  142. package/resources/digital-wallet-tokens.d.ts +5 -7
  143. package/resources/digital-wallet-tokens.d.ts.map +1 -1
  144. package/resources/digital-wallet-tokens.js +25 -0
  145. package/resources/digital-wallet-tokens.js.map +1 -1
  146. package/resources/digital-wallet-tokens.mjs +2 -0
  147. package/resources/digital-wallet-tokens.mjs.map +1 -1
  148. package/resources/documents.d.ts +5 -7
  149. package/resources/documents.d.ts.map +1 -1
  150. package/resources/documents.js +25 -0
  151. package/resources/documents.js.map +1 -1
  152. package/resources/documents.mjs +2 -0
  153. package/resources/documents.mjs.map +1 -1
  154. package/resources/entities/beneficial-owners.d.ts +10 -9
  155. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  156. package/resources/entities/beneficial-owners.js.map +1 -1
  157. package/resources/entities/beneficial-owners.mjs.map +1 -1
  158. package/resources/entities/entities.d.ts +22 -23
  159. package/resources/entities/entities.d.ts.map +1 -1
  160. package/resources/entities/entities.js +9 -8
  161. package/resources/entities/entities.js.map +1 -1
  162. package/resources/entities/entities.mjs +9 -8
  163. package/resources/entities/entities.mjs.map +1 -1
  164. package/resources/entities/supplemental-documents.d.ts +8 -10
  165. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  166. package/resources/entities/supplemental-documents.js +25 -0
  167. package/resources/entities/supplemental-documents.js.map +1 -1
  168. package/resources/entities/supplemental-documents.mjs +2 -0
  169. package/resources/entities/supplemental-documents.mjs.map +1 -1
  170. package/resources/event-subscriptions.d.ts +13 -11
  171. package/resources/event-subscriptions.d.ts.map +1 -1
  172. package/resources/event-subscriptions.js +25 -0
  173. package/resources/event-subscriptions.js.map +1 -1
  174. package/resources/event-subscriptions.mjs +2 -0
  175. package/resources/event-subscriptions.mjs.map +1 -1
  176. package/resources/events.d.ts +9 -9
  177. package/resources/events.d.ts.map +1 -1
  178. package/resources/events.js +25 -0
  179. package/resources/events.js.map +1 -1
  180. package/resources/events.mjs +2 -0
  181. package/resources/events.mjs.map +1 -1
  182. package/resources/exports.d.ts +6 -8
  183. package/resources/exports.d.ts.map +1 -1
  184. package/resources/exports.js +25 -0
  185. package/resources/exports.js.map +1 -1
  186. package/resources/exports.mjs +2 -0
  187. package/resources/exports.mjs.map +1 -1
  188. package/resources/external-accounts.d.ts +7 -9
  189. package/resources/external-accounts.d.ts.map +1 -1
  190. package/resources/external-accounts.js +25 -0
  191. package/resources/external-accounts.js.map +1 -1
  192. package/resources/external-accounts.mjs +2 -0
  193. package/resources/external-accounts.mjs.map +1 -1
  194. package/resources/files.d.ts +6 -8
  195. package/resources/files.d.ts.map +1 -1
  196. package/resources/files.js +25 -0
  197. package/resources/files.js.map +1 -1
  198. package/resources/files.mjs +2 -0
  199. package/resources/files.mjs.map +1 -1
  200. package/resources/groups.d.ts +2 -2
  201. package/resources/groups.d.ts.map +1 -1
  202. package/resources/inbound-ach-transfers.d.ts +45 -9
  203. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  204. package/resources/inbound-ach-transfers.js +25 -0
  205. package/resources/inbound-ach-transfers.js.map +1 -1
  206. package/resources/inbound-ach-transfers.mjs +2 -0
  207. package/resources/inbound-ach-transfers.mjs.map +1 -1
  208. package/resources/inbound-wire-drawdown-requests.d.ts +5 -7
  209. package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
  210. package/resources/inbound-wire-drawdown-requests.js +25 -0
  211. package/resources/inbound-wire-drawdown-requests.js.map +1 -1
  212. package/resources/inbound-wire-drawdown-requests.mjs +2 -0
  213. package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
  214. package/resources/index.d.ts +1 -1
  215. package/resources/index.d.ts.map +1 -1
  216. package/resources/index.js.map +1 -1
  217. package/resources/index.mjs.map +1 -1
  218. package/resources/oauth-connections.d.ts +5 -7
  219. package/resources/oauth-connections.d.ts.map +1 -1
  220. package/resources/oauth-connections.js +25 -0
  221. package/resources/oauth-connections.js.map +1 -1
  222. package/resources/oauth-connections.mjs +2 -0
  223. package/resources/oauth-connections.mjs.map +1 -1
  224. package/resources/pending-transactions.d.ts +5 -7
  225. package/resources/pending-transactions.d.ts.map +1 -1
  226. package/resources/pending-transactions.js +25 -0
  227. package/resources/pending-transactions.js.map +1 -1
  228. package/resources/pending-transactions.mjs +2 -0
  229. package/resources/pending-transactions.mjs.map +1 -1
  230. package/resources/physical-cards.d.ts +8 -10
  231. package/resources/physical-cards.d.ts.map +1 -1
  232. package/resources/physical-cards.js +25 -0
  233. package/resources/physical-cards.js.map +1 -1
  234. package/resources/physical-cards.mjs +2 -0
  235. package/resources/physical-cards.mjs.map +1 -1
  236. package/resources/programs.d.ts +5 -7
  237. package/resources/programs.d.ts.map +1 -1
  238. package/resources/programs.js +25 -0
  239. package/resources/programs.js.map +1 -1
  240. package/resources/programs.mjs +2 -0
  241. package/resources/programs.mjs.map +1 -1
  242. package/resources/real-time-decisions.d.ts +3 -3
  243. package/resources/real-time-decisions.d.ts.map +1 -1
  244. package/resources/real-time-payments-transfers.d.ts +6 -8
  245. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  246. package/resources/real-time-payments-transfers.js +25 -0
  247. package/resources/real-time-payments-transfers.js.map +1 -1
  248. package/resources/real-time-payments-transfers.mjs +2 -0
  249. package/resources/real-time-payments-transfers.mjs.map +1 -1
  250. package/resources/routing-numbers.d.ts +5 -7
  251. package/resources/routing-numbers.d.ts.map +1 -1
  252. package/resources/routing-numbers.js +25 -0
  253. package/resources/routing-numbers.js.map +1 -1
  254. package/resources/routing-numbers.mjs +2 -0
  255. package/resources/routing-numbers.mjs.map +1 -1
  256. package/resources/simulations/account-statements.d.ts +4 -4
  257. package/resources/simulations/account-statements.d.ts.map +1 -1
  258. package/resources/simulations/account-transfers.d.ts +2 -2
  259. package/resources/simulations/account-transfers.d.ts.map +1 -1
  260. package/resources/simulations/ach-transfers.d.ts +49 -7
  261. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  262. package/resources/simulations/ach-transfers.js.map +1 -1
  263. package/resources/simulations/ach-transfers.mjs.map +1 -1
  264. package/resources/simulations/card-disputes.d.ts +4 -4
  265. package/resources/simulations/card-disputes.d.ts.map +1 -1
  266. package/resources/simulations/card-profiles.d.ts +2 -2
  267. package/resources/simulations/card-profiles.d.ts.map +1 -1
  268. package/resources/simulations/card-profiles.js.map +1 -1
  269. package/resources/simulations/card-profiles.mjs.map +1 -1
  270. package/resources/simulations/card-refunds.d.ts +4 -4
  271. package/resources/simulations/card-refunds.d.ts.map +1 -1
  272. package/resources/simulations/cards.d.ts +6 -6
  273. package/resources/simulations/cards.d.ts.map +1 -1
  274. package/resources/simulations/check-deposits.d.ts +4 -4
  275. package/resources/simulations/check-deposits.d.ts.map +1 -1
  276. package/resources/simulations/check-transfers.d.ts +3 -3
  277. package/resources/simulations/check-transfers.d.ts.map +1 -1
  278. package/resources/simulations/digital-wallet-token-requests.d.ts +3 -3
  279. package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
  280. package/resources/simulations/documents.d.ts +4 -4
  281. package/resources/simulations/documents.d.ts.map +1 -1
  282. package/resources/simulations/inbound-funds-holds.d.ts +2 -2
  283. package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
  284. package/resources/simulations/inbound-wire-drawdown-requests.d.ts +4 -4
  285. package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
  286. package/resources/simulations/interest-payments.d.ts +7 -3
  287. package/resources/simulations/interest-payments.d.ts.map +1 -1
  288. package/resources/simulations/interest-payments.js.map +1 -1
  289. package/resources/simulations/interest-payments.mjs.map +1 -1
  290. package/resources/simulations/physical-cards.d.ts +4 -4
  291. package/resources/simulations/physical-cards.d.ts.map +1 -1
  292. package/resources/simulations/programs.d.ts +4 -4
  293. package/resources/simulations/programs.d.ts.map +1 -1
  294. package/resources/simulations/real-time-payments-transfers.d.ts +10 -6
  295. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  296. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  297. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  298. package/resources/simulations/simulations.d.ts +77 -78
  299. package/resources/simulations/simulations.d.ts.map +1 -1
  300. package/resources/simulations/simulations.js +54 -55
  301. package/resources/simulations/simulations.js.map +1 -1
  302. package/resources/simulations/simulations.mjs +54 -55
  303. package/resources/simulations/simulations.mjs.map +1 -1
  304. package/resources/simulations/wire-transfers.d.ts +7 -3
  305. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  306. package/resources/simulations/wire-transfers.js.map +1 -1
  307. package/resources/simulations/wire-transfers.mjs.map +1 -1
  308. package/resources/transactions.d.ts +9 -7
  309. package/resources/transactions.d.ts.map +1 -1
  310. package/resources/transactions.js +25 -0
  311. package/resources/transactions.js.map +1 -1
  312. package/resources/transactions.mjs +2 -0
  313. package/resources/transactions.mjs.map +1 -1
  314. package/resources/wire-drawdown-requests.d.ts +6 -8
  315. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  316. package/resources/wire-drawdown-requests.js +25 -0
  317. package/resources/wire-drawdown-requests.js.map +1 -1
  318. package/resources/wire-drawdown-requests.mjs +2 -0
  319. package/resources/wire-drawdown-requests.mjs.map +1 -1
  320. package/resources/wire-transfers.d.ts +6 -8
  321. package/resources/wire-transfers.d.ts.map +1 -1
  322. package/resources/wire-transfers.js +25 -0
  323. package/resources/wire-transfers.js.map +1 -1
  324. package/resources/wire-transfers.mjs +2 -0
  325. package/resources/wire-transfers.mjs.map +1 -1
  326. package/shims/node.d.ts +1 -1
  327. package/shims/node.d.ts.map +1 -1
  328. package/shims/web.d.ts +1 -1
  329. package/shims/web.d.ts.map +1 -1
  330. package/src/_shims/auto/types.d.ts +3 -1
  331. package/src/_shims/index.d.ts +2 -0
  332. package/src/_shims/node-runtime.ts +4 -0
  333. package/src/_shims/node-types.d.ts +1 -1
  334. package/src/_shims/registry.ts +3 -0
  335. package/src/_shims/web-runtime.ts +12 -0
  336. package/src/_shims/web-types.d.ts +2 -1
  337. package/src/core.ts +26 -9
  338. package/src/error.ts +15 -5
  339. package/src/index.ts +5 -4
  340. package/src/resources/account-numbers.ts +7 -9
  341. package/src/resources/account-statements.ts +5 -7
  342. package/src/resources/account-transfers.ts +6 -8
  343. package/src/resources/accounts.ts +7 -9
  344. package/src/resources/ach-prenotifications.ts +6 -8
  345. package/src/resources/ach-transfers.ts +6 -8
  346. package/src/resources/balance-lookups.ts +3 -3
  347. package/src/resources/bookkeeping-accounts.ts +25 -8
  348. package/src/resources/bookkeeping-entries.ts +5 -7
  349. package/src/resources/bookkeeping-entry-sets.ts +3 -3
  350. package/src/resources/card-disputes.ts +6 -8
  351. package/src/resources/card-payments.ts +5 -7
  352. package/src/resources/card-profiles.ts +6 -8
  353. package/src/resources/card-purchase-supplements.ts +5 -7
  354. package/src/resources/cards.ts +8 -10
  355. package/src/resources/check-deposits.ts +6 -8
  356. package/src/resources/check-transfers.ts +12 -9
  357. package/src/resources/declined-transactions.ts +5 -7
  358. package/src/resources/digital-wallet-tokens.ts +5 -7
  359. package/src/resources/documents.ts +5 -7
  360. package/src/resources/entities/beneficial-owners.ts +13 -9
  361. package/src/resources/entities/entities.ts +25 -25
  362. package/src/resources/entities/supplemental-documents.ts +8 -10
  363. package/src/resources/event-subscriptions.ts +13 -9
  364. package/src/resources/events.ts +9 -7
  365. package/src/resources/exports.ts +6 -8
  366. package/src/resources/external-accounts.ts +7 -9
  367. package/src/resources/files.ts +6 -8
  368. package/src/resources/groups.ts +2 -2
  369. package/src/resources/inbound-ach-transfers.ts +50 -9
  370. package/src/resources/inbound-wire-drawdown-requests.ts +5 -7
  371. package/src/resources/index.ts +1 -0
  372. package/src/resources/oauth-connections.ts +5 -7
  373. package/src/resources/pending-transactions.ts +5 -7
  374. package/src/resources/physical-cards.ts +8 -10
  375. package/src/resources/programs.ts +5 -7
  376. package/src/resources/real-time-decisions.ts +3 -3
  377. package/src/resources/real-time-payments-transfers.ts +6 -8
  378. package/src/resources/routing-numbers.ts +5 -7
  379. package/src/resources/simulations/account-statements.ts +4 -4
  380. package/src/resources/simulations/account-transfers.ts +2 -2
  381. package/src/resources/simulations/ach-transfers.ts +55 -7
  382. package/src/resources/simulations/card-disputes.ts +4 -4
  383. package/src/resources/simulations/card-profiles.ts +5 -2
  384. package/src/resources/simulations/card-refunds.ts +4 -4
  385. package/src/resources/simulations/cards.ts +6 -6
  386. package/src/resources/simulations/check-deposits.ts +4 -4
  387. package/src/resources/simulations/check-transfers.ts +3 -3
  388. package/src/resources/simulations/digital-wallet-token-requests.ts +3 -3
  389. package/src/resources/simulations/documents.ts +4 -4
  390. package/src/resources/simulations/inbound-funds-holds.ts +2 -2
  391. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +4 -4
  392. package/src/resources/simulations/interest-payments.ts +8 -3
  393. package/src/resources/simulations/physical-cards.ts +4 -4
  394. package/src/resources/simulations/programs.ts +4 -4
  395. package/src/resources/simulations/real-time-payments-transfers.ts +11 -6
  396. package/src/resources/simulations/simulations.ts +88 -95
  397. package/src/resources/simulations/wire-transfers.ts +8 -3
  398. package/src/resources/transactions.ts +10 -7
  399. package/src/resources/wire-drawdown-requests.ts +6 -8
  400. package/src/resources/wire-transfers.ts +6 -8
  401. package/src/shims/node.ts +1 -1
  402. package/src/shims/web.ts +1 -1
  403. package/src/version.ts +1 -1
  404. package/version.d.ts +1 -1
  405. package/version.js +1 -1
  406. package/version.mjs +1 -1
@@ -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 ACHPrenotificationsAPI from "../e/resources/ach-prenotifications";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class ACHPrenotifications extends APIResource {
10
10
  /**
@@ -44,8 +44,6 @@ export class ACHPrenotifications extends APIResource {
44
44
  }
45
45
 
46
46
  export class ACHPrenotificationsPage extends Page<ACHPrenotification> {}
47
- // alias so we can export it in the namespace
48
- type _ACHPrenotificationsPage = ACHPrenotificationsPage;
49
47
 
50
48
  /**
51
49
  * ACH Prenotifications are one way you can verify account and routing numbers by
@@ -555,8 +553,8 @@ export namespace ACHPrenotificationListParams {
555
553
  }
556
554
 
557
555
  export namespace ACHPrenotifications {
558
- export import ACHPrenotification = API.ACHPrenotification;
559
- export type ACHPrenotificationsPage = _ACHPrenotificationsPage;
560
- export import ACHPrenotificationCreateParams = API.ACHPrenotificationCreateParams;
561
- export import ACHPrenotificationListParams = API.ACHPrenotificationListParams;
556
+ export import ACHPrenotification = ACHPrenotificationsAPI.ACHPrenotification;
557
+ export import ACHPrenotificationsPage = ACHPrenotificationsAPI.ACHPrenotificationsPage;
558
+ export import ACHPrenotificationCreateParams = ACHPrenotificationsAPI.ACHPrenotificationCreateParams;
559
+ export import ACHPrenotificationListParams = ACHPrenotificationsAPI.ACHPrenotificationListParams;
562
560
  }
@@ -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 ACHTransfersAPI from "../e/resources/ach-transfers";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class ACHTransfers extends APIResource {
10
10
  /**
@@ -55,8 +55,6 @@ export class ACHTransfers extends APIResource {
55
55
  }
56
56
 
57
57
  export class ACHTransfersPage extends Page<ACHTransfer> {}
58
- // alias so we can export it in the namespace
59
- type _ACHTransfersPage = ACHTransfersPage;
60
58
 
61
59
  /**
62
60
  * ACH transfers move funds between your Increase account and any other account
@@ -846,8 +844,8 @@ export namespace ACHTransferListParams {
846
844
  }
847
845
 
848
846
  export namespace ACHTransfers {
849
- export import ACHTransfer = API.ACHTransfer;
850
- export type ACHTransfersPage = _ACHTransfersPage;
851
- export import ACHTransferCreateParams = API.ACHTransferCreateParams;
852
- export import ACHTransferListParams = API.ACHTransferListParams;
847
+ export import ACHTransfer = ACHTransfersAPI.ACHTransfer;
848
+ export import ACHTransfersPage = ACHTransfersAPI.ACHTransfersPage;
849
+ export import ACHTransferCreateParams = ACHTransfersAPI.ACHTransferCreateParams;
850
+ export import ACHTransferListParams = ACHTransfersAPI.ACHTransferListParams;
853
851
  }
@@ -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 BalanceLookupsAPI from "../e/resources/balance-lookups";
6
6
 
7
7
  export class BalanceLookups extends APIResource {
8
8
  /**
@@ -58,6 +58,6 @@ export interface BalanceLookupLookupParams {
58
58
  }
59
59
 
60
60
  export namespace BalanceLookups {
61
- export import BalanceLookupLookupResponse = API.BalanceLookupLookupResponse;
62
- export import BalanceLookupLookupParams = API.BalanceLookupLookupParams;
61
+ export import BalanceLookupLookupResponse = BalanceLookupsAPI.BalanceLookupLookupResponse;
62
+ export import BalanceLookupLookupParams = BalanceLookupsAPI.BalanceLookupLookupParams;
63
63
  }
@@ -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 BookkeepingAccountsAPI from "../e/resources/bookkeeping-accounts";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class BookkeepingAccounts extends APIResource {
10
10
  /**
@@ -17,6 +17,17 @@ export class BookkeepingAccounts extends APIResource {
17
17
  return this.post('/bookkeeping_accounts', { body, ...options });
18
18
  }
19
19
 
20
+ /**
21
+ * Update a Bookkeeping Account
22
+ */
23
+ update(
24
+ bookkeepingAccountId: string,
25
+ body: BookkeepingAccountUpdateParams,
26
+ options?: Core.RequestOptions,
27
+ ): Core.APIPromise<BookkeepingAccount> {
28
+ return this.patch(`/bookkeeping_accounts/${bookkeepingAccountId}`, { body, ...options });
29
+ }
30
+
20
31
  /**
21
32
  * List Bookkeeping Accounts
22
33
  */
@@ -37,8 +48,6 @@ export class BookkeepingAccounts extends APIResource {
37
48
  }
38
49
 
39
50
  export class BookkeepingAccountsPage extends Page<BookkeepingAccount> {}
40
- // alias so we can export it in the namespace
41
- type _BookkeepingAccountsPage = BookkeepingAccountsPage;
42
51
 
43
52
  /**
44
53
  * Accounts are T-accounts. They can store accounting entries.
@@ -104,11 +113,19 @@ export interface BookkeepingAccountCreateParams {
104
113
  entity_id?: string;
105
114
  }
106
115
 
116
+ export interface BookkeepingAccountUpdateParams {
117
+ /**
118
+ * The name you choose for the account.
119
+ */
120
+ name: string;
121
+ }
122
+
107
123
  export interface BookkeepingAccountListParams extends PageParams {}
108
124
 
109
125
  export namespace BookkeepingAccounts {
110
- export import BookkeepingAccount = API.BookkeepingAccount;
111
- export type BookkeepingAccountsPage = _BookkeepingAccountsPage;
112
- export import BookkeepingAccountCreateParams = API.BookkeepingAccountCreateParams;
113
- export import BookkeepingAccountListParams = API.BookkeepingAccountListParams;
126
+ export import BookkeepingAccount = BookkeepingAccountsAPI.BookkeepingAccount;
127
+ export import BookkeepingAccountsPage = BookkeepingAccountsAPI.BookkeepingAccountsPage;
128
+ export import BookkeepingAccountCreateParams = BookkeepingAccountsAPI.BookkeepingAccountCreateParams;
129
+ export import BookkeepingAccountUpdateParams = BookkeepingAccountsAPI.BookkeepingAccountUpdateParams;
130
+ export import BookkeepingAccountListParams = BookkeepingAccountsAPI.BookkeepingAccountListParams;
114
131
  }
@@ -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 BookkeepingEntriesAPI from "../e/resources/bookkeeping-entries";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class BookkeepingEntries extends APIResource {
10
10
  /**
@@ -27,8 +27,6 @@ export class BookkeepingEntries extends APIResource {
27
27
  }
28
28
 
29
29
  export class BookkeepingEntriesPage extends Page<BookkeepingEntry> {}
30
- // alias so we can export it in the namespace
31
- type _BookkeepingEntriesPage = BookkeepingEntriesPage;
32
30
 
33
31
  /**
34
32
  * Entries are T-account entries recording debits and credits.
@@ -65,7 +63,7 @@ export interface BookkeepingEntry {
65
63
  export interface BookkeepingEntryListParams extends PageParams {}
66
64
 
67
65
  export namespace BookkeepingEntries {
68
- export import BookkeepingEntry = API.BookkeepingEntry;
69
- export type BookkeepingEntriesPage = _BookkeepingEntriesPage;
70
- export import BookkeepingEntryListParams = API.BookkeepingEntryListParams;
66
+ export import BookkeepingEntry = BookkeepingEntriesAPI.BookkeepingEntry;
67
+ export import BookkeepingEntriesPage = BookkeepingEntriesAPI.BookkeepingEntriesPage;
68
+ export import BookkeepingEntryListParams = BookkeepingEntriesAPI.BookkeepingEntryListParams;
71
69
  }
@@ -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 BookkeepingEntrySetsAPI from "../e/resources/bookkeeping-entry-sets";
6
6
 
7
7
  export class BookkeepingEntrySets extends APIResource {
8
8
  /**
@@ -101,6 +101,6 @@ export namespace BookkeepingEntrySetCreateParams {
101
101
  }
102
102
 
103
103
  export namespace BookkeepingEntrySets {
104
- export import BookkeepingEntrySet = API.BookkeepingEntrySet;
105
- export import BookkeepingEntrySetCreateParams = API.BookkeepingEntrySetCreateParams;
104
+ export import BookkeepingEntrySet = BookkeepingEntrySetsAPI.BookkeepingEntrySet;
105
+ export import BookkeepingEntrySetCreateParams = BookkeepingEntrySetsAPI.BookkeepingEntrySetCreateParams;
106
106
  }
@@ -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 CardDisputesAPI from "../e/resources/card-disputes";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class CardDisputes extends APIResource {
10
10
  /**
@@ -41,8 +41,6 @@ export class CardDisputes extends APIResource {
41
41
  }
42
42
 
43
43
  export class CardDisputesPage extends Page<CardDispute> {}
44
- // alias so we can export it in the namespace
45
- type _CardDisputesPage = CardDisputesPage;
46
44
 
47
45
  /**
48
46
  * If unauthorized activity occurs on a card, you can create a Card Dispute and
@@ -203,8 +201,8 @@ export namespace CardDisputeListParams {
203
201
  }
204
202
 
205
203
  export namespace CardDisputes {
206
- export import CardDispute = API.CardDispute;
207
- export type CardDisputesPage = _CardDisputesPage;
208
- export import CardDisputeCreateParams = API.CardDisputeCreateParams;
209
- export import CardDisputeListParams = API.CardDisputeListParams;
204
+ export import CardDispute = CardDisputesAPI.CardDispute;
205
+ export import CardDisputesPage = CardDisputesAPI.CardDisputesPage;
206
+ export import CardDisputeCreateParams = CardDisputesAPI.CardDisputeCreateParams;
207
+ export import CardDisputeListParams = CardDisputesAPI.CardDisputeListParams;
210
208
  }
@@ -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 CardPaymentsAPI from "../e/resources/card-payments";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class CardPayments extends APIResource {
10
10
  /**
@@ -34,8 +34,6 @@ export class CardPayments extends APIResource {
34
34
  }
35
35
 
36
36
  export class CardPaymentsPage extends Page<CardPayment> {}
37
- // alias so we can export it in the namespace
38
- type _CardPaymentsPage = CardPaymentsPage;
39
37
 
40
38
  /**
41
39
  * Card Payments group together interactions related to a single card payment, such
@@ -2289,7 +2287,7 @@ export namespace CardPaymentListParams {
2289
2287
  }
2290
2288
 
2291
2289
  export namespace CardPayments {
2292
- export import CardPayment = API.CardPayment;
2293
- export type CardPaymentsPage = _CardPaymentsPage;
2294
- export import CardPaymentListParams = API.CardPaymentListParams;
2290
+ export import CardPayment = CardPaymentsAPI.CardPayment;
2291
+ export import CardPaymentsPage = CardPaymentsAPI.CardPaymentsPage;
2292
+ export import CardPaymentListParams = CardPaymentsAPI.CardPaymentListParams;
2295
2293
  }
@@ -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 CardProfilesAPI from "../e/resources/card-profiles";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class CardProfiles extends APIResource {
10
10
  /**
@@ -48,8 +48,6 @@ export class CardProfiles extends APIResource {
48
48
  }
49
49
 
50
50
  export class CardProfilesPage extends Page<CardProfile> {}
51
- // alias so we can export it in the namespace
52
- type _CardProfilesPage = CardProfilesPage;
53
51
 
54
52
  /**
55
53
  * This contains artwork and metadata relating to a Card's appearance in digital
@@ -360,8 +358,8 @@ export namespace CardProfileListParams {
360
358
  }
361
359
 
362
360
  export namespace CardProfiles {
363
- export import CardProfile = API.CardProfile;
364
- export type CardProfilesPage = _CardProfilesPage;
365
- export import CardProfileCreateParams = API.CardProfileCreateParams;
366
- export import CardProfileListParams = API.CardProfileListParams;
361
+ export import CardProfile = CardProfilesAPI.CardProfile;
362
+ export import CardProfilesPage = CardProfilesAPI.CardProfilesPage;
363
+ export import CardProfileCreateParams = CardProfilesAPI.CardProfileCreateParams;
364
+ export import CardProfileListParams = CardProfilesAPI.CardProfileListParams;
367
365
  }
@@ -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 CardPurchaseSupplementsAPI from "../e/resources/card-purchase-supplements";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class CardPurchaseSupplements extends APIResource {
10
10
  /**
@@ -37,8 +37,6 @@ export class CardPurchaseSupplements extends APIResource {
37
37
  }
38
38
 
39
39
  export class CardPurchaseSupplementsPage extends Page<CardPurchaseSupplement> {}
40
- // alias so we can export it in the namespace
41
- type _CardPurchaseSupplementsPage = CardPurchaseSupplementsPage;
42
40
 
43
41
  /**
44
42
  * Additional information about a card purchase (e.g., settlement or refund), such
@@ -325,7 +323,7 @@ export namespace CardPurchaseSupplementListParams {
325
323
  }
326
324
 
327
325
  export namespace CardPurchaseSupplements {
328
- export import CardPurchaseSupplement = API.CardPurchaseSupplement;
329
- export type CardPurchaseSupplementsPage = _CardPurchaseSupplementsPage;
330
- export import CardPurchaseSupplementListParams = API.CardPurchaseSupplementListParams;
326
+ export import CardPurchaseSupplement = CardPurchaseSupplementsAPI.CardPurchaseSupplement;
327
+ export import CardPurchaseSupplementsPage = CardPurchaseSupplementsAPI.CardPurchaseSupplementsPage;
328
+ export import CardPurchaseSupplementListParams = CardPurchaseSupplementsAPI.CardPurchaseSupplementListParams;
331
329
  }
@@ -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 CardsAPI from "../e/resources/cards";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class Cards extends APIResource {
10
10
  /**
@@ -52,8 +52,6 @@ export class Cards extends APIResource {
52
52
  }
53
53
 
54
54
  export class CardsPage extends Page<Card> {}
55
- // alias so we can export it in the namespace
56
- type _CardsPage = CardsPage;
57
55
 
58
56
  /**
59
57
  * Cards are commercial credit cards. They'll immediately work for online purchases
@@ -446,10 +444,10 @@ export namespace CardListParams {
446
444
  }
447
445
 
448
446
  export namespace Cards {
449
- export import Card = API.Card;
450
- export import CardDetails = API.CardDetails;
451
- export type CardsPage = _CardsPage;
452
- export import CardCreateParams = API.CardCreateParams;
453
- export import CardUpdateParams = API.CardUpdateParams;
454
- export import CardListParams = API.CardListParams;
447
+ export import Card = CardsAPI.Card;
448
+ export import CardDetails = CardsAPI.CardDetails;
449
+ export import CardsPage = CardsAPI.CardsPage;
450
+ export import CardCreateParams = CardsAPI.CardCreateParams;
451
+ export import CardUpdateParams = CardsAPI.CardUpdateParams;
452
+ export import CardListParams = CardsAPI.CardListParams;
455
453
  }
@@ -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 CheckDepositsAPI from "../e/resources/check-deposits";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class CheckDeposits extends APIResource {
10
10
  /**
@@ -41,8 +41,6 @@ export class CheckDeposits extends APIResource {
41
41
  }
42
42
 
43
43
  export class CheckDepositsPage extends Page<CheckDeposit> {}
44
- // alias so we can export it in the namespace
45
- type _CheckDepositsPage = CheckDepositsPage;
46
44
 
47
45
  /**
48
46
  * Check Deposits allow you to deposit images of paper checks into your account.
@@ -381,8 +379,8 @@ export namespace CheckDepositListParams {
381
379
  }
382
380
 
383
381
  export namespace CheckDeposits {
384
- export import CheckDeposit = API.CheckDeposit;
385
- export type CheckDepositsPage = _CheckDepositsPage;
386
- export import CheckDepositCreateParams = API.CheckDepositCreateParams;
387
- export import CheckDepositListParams = API.CheckDepositListParams;
382
+ export import CheckDeposit = CheckDepositsAPI.CheckDeposit;
383
+ export import CheckDepositsPage = CheckDepositsAPI.CheckDepositsPage;
384
+ export import CheckDepositCreateParams = CheckDepositsAPI.CheckDepositCreateParams;
385
+ export import CheckDepositListParams = CheckDepositsAPI.CheckDepositListParams;
388
386
  }
@@ -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 CheckTransfersAPI from "../e/resources/check-transfers";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class CheckTransfers extends APIResource {
10
10
  /**
@@ -66,8 +66,6 @@ export class CheckTransfers extends APIResource {
66
66
  }
67
67
 
68
68
  export class CheckTransfersPage extends Page<CheckTransfer> {}
69
- // alias so we can export it in the namespace
70
- type _CheckTransfersPage = CheckTransfersPage;
71
69
 
72
70
  /**
73
71
  * Check Transfers move funds from your Increase account by mailing a physical
@@ -296,6 +294,11 @@ export namespace CheckTransfer {
296
294
  */
297
295
  transaction_id: string | null;
298
296
 
297
+ /**
298
+ * The identifier of the Check Transfer object that was deposited.
299
+ */
300
+ transfer_id: string;
301
+
299
302
  /**
300
303
  * A constant representing the object's type. For this resource it will always be
301
304
  * `check_transfer_deposit`.
@@ -676,9 +679,9 @@ export interface CheckTransferStopPaymentParams {
676
679
  }
677
680
 
678
681
  export namespace CheckTransfers {
679
- export import CheckTransfer = API.CheckTransfer;
680
- export type CheckTransfersPage = _CheckTransfersPage;
681
- export import CheckTransferCreateParams = API.CheckTransferCreateParams;
682
- export import CheckTransferListParams = API.CheckTransferListParams;
683
- export import CheckTransferStopPaymentParams = API.CheckTransferStopPaymentParams;
682
+ export import CheckTransfer = CheckTransfersAPI.CheckTransfer;
683
+ export import CheckTransfersPage = CheckTransfersAPI.CheckTransfersPage;
684
+ export import CheckTransferCreateParams = CheckTransfersAPI.CheckTransferCreateParams;
685
+ export import CheckTransferListParams = CheckTransfersAPI.CheckTransferListParams;
686
+ export import CheckTransferStopPaymentParams = CheckTransfersAPI.CheckTransferStopPaymentParams;
684
687
  }
@@ -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 DeclinedTransactionsAPI from "../e/resources/declined-transactions";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class DeclinedTransactions extends APIResource {
10
10
  /**
@@ -37,8 +37,6 @@ export class DeclinedTransactions extends APIResource {
37
37
  }
38
38
 
39
39
  export class DeclinedTransactionsPage extends Page<DeclinedTransaction> {}
40
- // alias so we can export it in the namespace
41
- type _DeclinedTransactionsPage = DeclinedTransactionsPage;
42
40
 
43
41
  /**
44
42
  * Declined Transactions are refused additions and removals of money from your bank
@@ -1114,7 +1112,7 @@ export namespace DeclinedTransactionListParams {
1114
1112
  }
1115
1113
 
1116
1114
  export namespace DeclinedTransactions {
1117
- export import DeclinedTransaction = API.DeclinedTransaction;
1118
- export type DeclinedTransactionsPage = _DeclinedTransactionsPage;
1119
- export import DeclinedTransactionListParams = API.DeclinedTransactionListParams;
1115
+ export import DeclinedTransaction = DeclinedTransactionsAPI.DeclinedTransaction;
1116
+ export import DeclinedTransactionsPage = DeclinedTransactionsAPI.DeclinedTransactionsPage;
1117
+ export import DeclinedTransactionListParams = DeclinedTransactionsAPI.DeclinedTransactionListParams;
1120
1118
  }
@@ -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 DigitalWalletTokensAPI from "../e/resources/digital-wallet-tokens";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class DigitalWalletTokens extends APIResource {
10
10
  /**
@@ -34,8 +34,6 @@ export class DigitalWalletTokens extends APIResource {
34
34
  }
35
35
 
36
36
  export class DigitalWalletTokensPage extends Page<DigitalWalletToken> {}
37
- // alias so we can export it in the namespace
38
- type _DigitalWalletTokensPage = DigitalWalletTokensPage;
39
37
 
40
38
  /**
41
39
  * A Digital Wallet Token is created when a user adds a Card to their Apple Pay or
@@ -124,7 +122,7 @@ export namespace DigitalWalletTokenListParams {
124
122
  }
125
123
 
126
124
  export namespace DigitalWalletTokens {
127
- export import DigitalWalletToken = API.DigitalWalletToken;
128
- export type DigitalWalletTokensPage = _DigitalWalletTokensPage;
129
- export import DigitalWalletTokenListParams = API.DigitalWalletTokenListParams;
125
+ export import DigitalWalletToken = DigitalWalletTokensAPI.DigitalWalletToken;
126
+ export import DigitalWalletTokensPage = DigitalWalletTokensAPI.DigitalWalletTokensPage;
127
+ export import DigitalWalletTokenListParams = DigitalWalletTokensAPI.DigitalWalletTokenListParams;
130
128
  }
@@ -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 DocumentsAPI from "../e/resources/documents";
7
+ import { Page, type PageParams } from "../e/pagination";
8
8
 
9
9
  export class Documents extends APIResource {
10
10
  /**
@@ -31,8 +31,6 @@ export class Documents extends APIResource {
31
31
  }
32
32
 
33
33
  export class DocumentsPage extends Page<Document> {}
34
- // alias so we can export it in the namespace
35
- type _DocumentsPage = DocumentsPage;
36
34
 
37
35
  /**
38
36
  * Increase generates certain documents / forms automatically for your application;
@@ -128,7 +126,7 @@ export namespace DocumentListParams {
128
126
  }
129
127
 
130
128
  export namespace Documents {
131
- export import Document = API.Document;
132
- export type DocumentsPage = _DocumentsPage;
133
- export import DocumentListParams = API.DocumentListParams;
129
+ export import Document = DocumentsAPI.Document;
130
+ export import DocumentsPage = DocumentsAPI.DocumentsPage;
131
+ export import DocumentListParams = DocumentsAPI.DocumentListParams;
134
132
  }
@@ -2,14 +2,17 @@
2
2
 
3
3
  import * as Core from "../../e/core";
4
4
  import { APIResource } from "../../e/resource";
5
- import * as Entities from "../../e/resources/entities/index";
6
- import * as API from './index';
5
+ import * as BeneficialOwnersAPI from "../../e/resources/entities/beneficial-owners";
6
+ import * as EntitiesAPI from "../../e/resources/entities/entities";
7
7
 
8
8
  export class BeneficialOwners extends APIResource {
9
9
  /**
10
10
  * Create a beneficial owner for a corporate Entity
11
11
  */
12
- create(body: BeneficialOwnerCreateParams, options?: Core.RequestOptions): Core.APIPromise<Entities.Entity> {
12
+ create(
13
+ body: BeneficialOwnerCreateParams,
14
+ options?: Core.RequestOptions,
15
+ ): Core.APIPromise<EntitiesAPI.Entity> {
13
16
  return this.post('/entity_beneficial_owners', { body, ...options });
14
17
  }
15
18
 
@@ -19,7 +22,7 @@ export class BeneficialOwners extends APIResource {
19
22
  archive(
20
23
  body: BeneficialOwnerArchiveParams,
21
24
  options?: Core.RequestOptions,
22
- ): Core.APIPromise<Entities.Entity> {
25
+ ): Core.APIPromise<EntitiesAPI.Entity> {
23
26
  return this.post('/entity_beneficial_owners/archive', { body, ...options });
24
27
  }
25
28
 
@@ -29,7 +32,7 @@ export class BeneficialOwners extends APIResource {
29
32
  updateAddress(
30
33
  body: BeneficialOwnerUpdateAddressParams,
31
34
  options?: Core.RequestOptions,
32
- ): Core.APIPromise<Entities.Entity> {
35
+ ): Core.APIPromise<EntitiesAPI.Entity> {
33
36
  return this.post('/entity_beneficial_owners/address', { body, ...options });
34
37
  }
35
38
  }
@@ -60,7 +63,8 @@ export namespace BeneficialOwnerCreateParams {
60
63
 
61
64
  /**
62
65
  * Why this person is considered a beneficial owner of the entity. At least one
63
- * option is required.
66
+ * option is required, if a person is both a control person and owner, submit an
67
+ * array containing both.
64
68
  */
65
69
  prongs: Array<'ownership' | 'control'>;
66
70
 
@@ -332,7 +336,7 @@ export namespace BeneficialOwnerUpdateAddressParams {
332
336
  }
333
337
 
334
338
  export namespace BeneficialOwners {
335
- export import BeneficialOwnerCreateParams = API.BeneficialOwnerCreateParams;
336
- export import BeneficialOwnerArchiveParams = API.BeneficialOwnerArchiveParams;
337
- export import BeneficialOwnerUpdateAddressParams = API.BeneficialOwnerUpdateAddressParams;
339
+ export import BeneficialOwnerCreateParams = BeneficialOwnersAPI.BeneficialOwnerCreateParams;
340
+ export import BeneficialOwnerArchiveParams = BeneficialOwnersAPI.BeneficialOwnerArchiveParams;
341
+ export import BeneficialOwnerUpdateAddressParams = BeneficialOwnersAPI.BeneficialOwnerUpdateAddressParams;
338
342
  }