increase 0.2.0 → 0.3.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 (538) hide show
  1. package/.github/workflows/publish-npm.yml +28 -0
  2. package/.github/workflows/release-doctor.yml +20 -0
  3. package/.github/workflows/release.yml +38 -0
  4. package/.prettierignore +1 -0
  5. package/.release-please-manifest.json +3 -0
  6. package/.stats.yml +1 -1
  7. package/CHANGELOG.md +84 -0
  8. package/README.md +16 -1
  9. package/api.md +88 -0
  10. package/bin/check-release-environment +25 -0
  11. package/bin/publish-npm +6 -0
  12. package/check-version.ts +4 -1
  13. package/core.ts +56 -14
  14. package/dist/cjs/check-version.d.ts +1 -0
  15. package/dist/cjs/check-version.d.ts.map +1 -0
  16. package/dist/cjs/check-version.js +3 -1
  17. package/dist/cjs/check-version.js.map +1 -1
  18. package/dist/cjs/core.d.ts +22 -2
  19. package/dist/cjs/core.d.ts.map +1 -0
  20. package/dist/cjs/core.js +58 -16
  21. package/dist/cjs/core.js.map +1 -1
  22. package/dist/cjs/error.d.ts +163 -0
  23. package/dist/cjs/error.d.ts.map +1 -0
  24. package/dist/cjs/error.js +204 -0
  25. package/dist/cjs/error.js.map +1 -0
  26. package/dist/cjs/examples/api-error.d.ts +3 -0
  27. package/dist/cjs/examples/api-error.d.ts.map +1 -0
  28. package/dist/cjs/examples/api-error.js +92 -0
  29. package/dist/cjs/examples/api-error.js.map +1 -0
  30. package/dist/cjs/fetch-polyfill.d.ts +1 -0
  31. package/dist/cjs/fetch-polyfill.d.ts.map +1 -0
  32. package/dist/cjs/fetch-polyfill.js +2 -2
  33. package/dist/cjs/fetch-polyfill.js.map +1 -1
  34. package/dist/cjs/index.d.ts +65 -3
  35. package/dist/cjs/index.d.ts.map +1 -0
  36. package/dist/cjs/index.js +104 -3
  37. package/dist/cjs/index.js.map +1 -1
  38. package/dist/cjs/pagination.d.ts +4 -0
  39. package/dist/cjs/pagination.d.ts.map +1 -0
  40. package/dist/cjs/pagination.js.map +1 -1
  41. package/dist/cjs/resource.d.ts +1 -0
  42. package/dist/cjs/resource.d.ts.map +1 -0
  43. package/dist/cjs/resources/account-numbers.d.ts +45 -0
  44. package/dist/cjs/resources/account-numbers.d.ts.map +1 -0
  45. package/dist/cjs/resources/account-numbers.js.map +1 -1
  46. package/dist/cjs/resources/account-statements.d.ts +21 -1
  47. package/dist/cjs/resources/account-statements.d.ts.map +1 -0
  48. package/dist/cjs/resources/account-statements.js.map +1 -1
  49. package/dist/cjs/resources/account-transfers.d.ts +40 -12
  50. package/dist/cjs/resources/account-transfers.d.ts.map +1 -0
  51. package/dist/cjs/resources/account-transfers.js.map +1 -1
  52. package/dist/cjs/resources/accounts.d.ts +53 -23
  53. package/dist/cjs/resources/accounts.d.ts.map +1 -0
  54. package/dist/cjs/resources/accounts.js.map +1 -1
  55. package/dist/cjs/resources/ach-prenotifications.d.ts +29 -6
  56. package/dist/cjs/resources/ach-prenotifications.d.ts.map +1 -0
  57. package/dist/cjs/resources/ach-prenotifications.js.map +1 -1
  58. package/dist/cjs/resources/ach-transfers.d.ts +70 -23
  59. package/dist/cjs/resources/ach-transfers.d.ts.map +1 -0
  60. package/dist/cjs/resources/ach-transfers.js.map +1 -1
  61. package/dist/cjs/resources/balance-lookups.d.ts +47 -0
  62. package/dist/cjs/resources/balance-lookups.d.ts.map +1 -0
  63. package/dist/cjs/resources/balance-lookups.js +15 -0
  64. package/dist/cjs/resources/balance-lookups.js.map +1 -0
  65. package/dist/cjs/resources/bookkeeping-accounts.d.ts +71 -0
  66. package/dist/cjs/resources/bookkeeping-accounts.d.ts.map +1 -0
  67. package/dist/cjs/resources/bookkeeping-accounts.js +29 -0
  68. package/dist/cjs/resources/bookkeeping-accounts.js.map +1 -0
  69. package/dist/cjs/resources/bookkeeping-entries.d.ts +43 -0
  70. package/dist/cjs/resources/bookkeeping-entries.d.ts.map +1 -0
  71. package/dist/cjs/resources/bookkeeping-entries.js +19 -0
  72. package/dist/cjs/resources/bookkeeping-entries.js.map +1 -0
  73. package/dist/cjs/resources/bookkeeping-entry-sets.d.ts +95 -0
  74. package/dist/cjs/resources/bookkeeping-entry-sets.d.ts.map +1 -0
  75. package/dist/cjs/resources/bookkeeping-entry-sets.js +15 -0
  76. package/dist/cjs/resources/bookkeeping-entry-sets.js.map +1 -0
  77. package/dist/cjs/resources/card-disputes.d.ts +39 -5
  78. package/dist/cjs/resources/card-disputes.d.ts.map +1 -0
  79. package/dist/cjs/resources/card-disputes.js.map +1 -1
  80. package/dist/cjs/resources/card-profiles.d.ts +81 -3
  81. package/dist/cjs/resources/card-profiles.d.ts.map +1 -0
  82. package/dist/cjs/resources/card-profiles.js.map +1 -1
  83. package/dist/cjs/resources/cards.d.ts +147 -3
  84. package/dist/cjs/resources/cards.d.ts.map +1 -0
  85. package/dist/cjs/resources/cards.js.map +1 -1
  86. package/dist/cjs/resources/check-deposits.d.ts +34 -1
  87. package/dist/cjs/resources/check-deposits.d.ts.map +1 -0
  88. package/dist/cjs/resources/check-deposits.js.map +1 -1
  89. package/dist/cjs/resources/check-transfers.d.ts +161 -14
  90. package/dist/cjs/resources/check-transfers.d.ts.map +1 -0
  91. package/dist/cjs/resources/check-transfers.js.map +1 -1
  92. package/dist/cjs/resources/declined-transactions.d.ts +116 -8
  93. package/dist/cjs/resources/declined-transactions.d.ts.map +1 -0
  94. package/dist/cjs/resources/declined-transactions.js.map +1 -1
  95. package/dist/cjs/resources/digital-wallet-tokens.d.ts +21 -1
  96. package/dist/cjs/resources/digital-wallet-tokens.d.ts.map +1 -0
  97. package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -1
  98. package/dist/cjs/resources/documents.d.ts +181 -6
  99. package/dist/cjs/resources/documents.d.ts.map +1 -0
  100. package/dist/cjs/resources/documents.js.map +1 -1
  101. package/dist/cjs/resources/entities/entities.d.ts +1177 -10
  102. package/dist/cjs/resources/entities/entities.d.ts.map +1 -0
  103. package/dist/cjs/resources/entities/entities.js +1 -1
  104. package/dist/cjs/resources/entities/entities.js.map +1 -1
  105. package/dist/cjs/resources/entities/index.d.ts +1 -0
  106. package/dist/cjs/resources/entities/index.d.ts.map +1 -0
  107. package/dist/cjs/resources/entities/supplemental-documents.d.ts +1 -0
  108. package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +1 -0
  109. package/dist/cjs/resources/event-subscriptions.d.ts +9 -4
  110. package/dist/cjs/resources/event-subscriptions.d.ts.map +1 -0
  111. package/dist/cjs/resources/event-subscriptions.js.map +1 -1
  112. package/dist/cjs/resources/events.d.ts +85 -4
  113. package/dist/cjs/resources/events.d.ts.map +1 -0
  114. package/dist/cjs/resources/events.js.map +1 -1
  115. package/dist/cjs/resources/exports.d.ts +244 -0
  116. package/dist/cjs/resources/exports.d.ts.map +1 -0
  117. package/dist/cjs/resources/exports.js +31 -0
  118. package/dist/cjs/resources/exports.js.map +1 -0
  119. package/dist/cjs/resources/external-accounts.d.ts +14 -7
  120. package/dist/cjs/resources/external-accounts.d.ts.map +1 -0
  121. package/dist/cjs/resources/external-accounts.js.map +1 -1
  122. package/dist/cjs/resources/files.d.ts +53 -10
  123. package/dist/cjs/resources/files.d.ts.map +1 -0
  124. package/dist/cjs/resources/files.js.map +1 -1
  125. package/dist/cjs/resources/groups.d.ts +1 -0
  126. package/dist/cjs/resources/groups.d.ts.map +1 -0
  127. package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +4 -0
  128. package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts.map +1 -0
  129. package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -1
  130. package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +1 -0
  131. package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts.map +1 -0
  132. package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -1
  133. package/dist/cjs/resources/index.d.ts +29 -0
  134. package/dist/cjs/resources/index.d.ts.map +1 -0
  135. package/dist/cjs/resources/index.js +100 -9
  136. package/dist/cjs/resources/index.js.map +1 -1
  137. package/dist/cjs/resources/limits.d.ts +5 -4
  138. package/dist/cjs/resources/limits.d.ts.map +1 -0
  139. package/dist/cjs/resources/limits.js.map +1 -1
  140. package/dist/cjs/resources/oauth-connections.d.ts +1 -0
  141. package/dist/cjs/resources/oauth-connections.d.ts.map +1 -0
  142. package/dist/cjs/resources/oauth-connections.js.map +1 -1
  143. package/dist/cjs/resources/pending-transactions.d.ts +160 -6
  144. package/dist/cjs/resources/pending-transactions.d.ts.map +1 -0
  145. package/dist/cjs/resources/pending-transactions.js.map +1 -1
  146. package/dist/cjs/resources/programs.d.ts +48 -0
  147. package/dist/cjs/resources/programs.d.ts.map +1 -0
  148. package/dist/cjs/resources/programs.js +25 -0
  149. package/dist/cjs/resources/programs.js.map +1 -0
  150. package/dist/cjs/resources/real-time-decisions.d.ts +106 -1
  151. package/dist/cjs/resources/real-time-decisions.d.ts.map +1 -0
  152. package/dist/cjs/resources/real-time-payments-transfers.d.ts +306 -0
  153. package/dist/cjs/resources/real-time-payments-transfers.d.ts.map +1 -0
  154. package/dist/cjs/resources/real-time-payments-transfers.js +35 -0
  155. package/dist/cjs/resources/real-time-payments-transfers.js.map +1 -0
  156. package/dist/cjs/resources/routing-numbers.d.ts +1 -0
  157. package/dist/cjs/resources/routing-numbers.d.ts.map +1 -0
  158. package/dist/cjs/resources/shared.d.ts +1 -0
  159. package/dist/cjs/resources/shared.d.ts.map +1 -0
  160. package/dist/cjs/resources/simulations/account-statements.d.ts +1 -0
  161. package/dist/cjs/resources/simulations/account-statements.d.ts.map +1 -0
  162. package/dist/cjs/resources/simulations/account-transfers.d.ts +1 -0
  163. package/dist/cjs/resources/simulations/account-transfers.d.ts.map +1 -0
  164. package/dist/cjs/resources/simulations/ach-transfers.d.ts +431 -12
  165. package/dist/cjs/resources/simulations/ach-transfers.d.ts.map +1 -0
  166. package/dist/cjs/resources/simulations/card-disputes.d.ts +5 -4
  167. package/dist/cjs/resources/simulations/card-disputes.d.ts.map +1 -0
  168. package/dist/cjs/resources/simulations/card-refunds.d.ts +1 -0
  169. package/dist/cjs/resources/simulations/card-refunds.d.ts.map +1 -0
  170. package/dist/cjs/resources/simulations/cards.d.ts +222 -13
  171. package/dist/cjs/resources/simulations/cards.d.ts.map +1 -0
  172. package/dist/cjs/resources/simulations/check-deposits.d.ts +1 -0
  173. package/dist/cjs/resources/simulations/check-deposits.d.ts.map +1 -0
  174. package/dist/cjs/resources/simulations/check-transfers.d.ts +16 -0
  175. package/dist/cjs/resources/simulations/check-transfers.d.ts.map +1 -0
  176. package/dist/cjs/resources/simulations/check-transfers.js +10 -0
  177. package/dist/cjs/resources/simulations/check-transfers.js.map +1 -1
  178. package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +1 -0
  179. package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -0
  180. package/dist/cjs/resources/simulations/documents.d.ts +1 -0
  181. package/dist/cjs/resources/simulations/documents.d.ts.map +1 -0
  182. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +26 -25
  183. package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -0
  184. package/dist/cjs/resources/simulations/index.d.ts +4 -0
  185. package/dist/cjs/resources/simulations/index.d.ts.map +1 -0
  186. package/dist/cjs/resources/simulations/interest-payments.d.ts +1364 -0
  187. package/dist/cjs/resources/simulations/interest-payments.d.ts.map +1 -0
  188. package/dist/cjs/resources/simulations/interest-payments.js +16 -0
  189. package/dist/cjs/resources/simulations/interest-payments.js.map +1 -0
  190. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +511 -12
  191. package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts.map +1 -0
  192. package/dist/cjs/resources/simulations/real-time-payments-transfers.js +11 -0
  193. package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -1
  194. package/dist/cjs/resources/simulations/simulations.d.ts +3 -0
  195. package/dist/cjs/resources/simulations/simulations.d.ts.map +1 -0
  196. package/dist/cjs/resources/simulations/simulations.js +2 -0
  197. package/dist/cjs/resources/simulations/simulations.js.map +1 -1
  198. package/dist/cjs/resources/simulations/wire-transfers.d.ts +332 -6
  199. package/dist/cjs/resources/simulations/wire-transfers.d.ts.map +1 -0
  200. package/dist/cjs/resources/transactions.d.ts +397 -9
  201. package/dist/cjs/resources/transactions.d.ts.map +1 -0
  202. package/dist/cjs/resources/transactions.js.map +1 -1
  203. package/dist/cjs/resources/wire-drawdown-requests.d.ts +13 -8
  204. package/dist/cjs/resources/wire-drawdown-requests.d.ts.map +1 -0
  205. package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -1
  206. package/dist/cjs/resources/wire-transfers.d.ts +71 -17
  207. package/dist/cjs/resources/wire-transfers.d.ts.map +1 -0
  208. package/dist/cjs/resources/wire-transfers.js.map +1 -1
  209. package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
  210. package/dist/cjs/tests/api-resources/account-numbers.test.d.ts.map +1 -0
  211. package/dist/cjs/tests/api-resources/account-numbers.test.js +24 -26
  212. package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -1
  213. package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
  214. package/dist/cjs/tests/api-resources/account-statements.test.d.ts.map +1 -0
  215. package/dist/cjs/tests/api-resources/account-statements.test.js +11 -26
  216. package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -1
  217. package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
  218. package/dist/cjs/tests/api-resources/account-transfers.test.d.ts.map +1 -0
  219. package/dist/cjs/tests/api-resources/account-transfers.test.js +20 -34
  220. package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -1
  221. package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
  222. package/dist/cjs/tests/api-resources/accounts.test.d.ts.map +1 -0
  223. package/dist/cjs/tests/api-resources/accounts.test.js +25 -24
  224. package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -1
  225. package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
  226. package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts.map +1 -0
  227. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +24 -28
  228. package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -1
  229. package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
  230. package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts.map +1 -0
  231. package/dist/cjs/tests/api-resources/ach-transfers.test.js +34 -36
  232. package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -1
  233. package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts +2 -0
  234. package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts.map +1 -0
  235. package/dist/cjs/tests/api-resources/balance-lookups.test.js +58 -0
  236. package/dist/cjs/tests/api-resources/balance-lookups.test.js.map +1 -0
  237. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts +2 -0
  238. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts.map +1 -0
  239. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js +83 -0
  240. package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js.map +1 -0
  241. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts +2 -0
  242. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts.map +1 -0
  243. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js +65 -0
  244. package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js.map +1 -0
  245. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts +2 -0
  246. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts.map +1 -0
  247. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js +68 -0
  248. package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js.map +1 -0
  249. package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +1 -0
  250. package/dist/cjs/tests/api-resources/card-disputes.test.d.ts.map +1 -0
  251. package/dist/cjs/tests/api-resources/card-disputes.test.js +21 -29
  252. package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -1
  253. package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
  254. package/dist/cjs/tests/api-resources/card-profiles.test.d.ts.map +1 -0
  255. package/dist/cjs/tests/api-resources/card-profiles.test.js +29 -20
  256. package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -1
  257. package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
  258. package/dist/cjs/tests/api-resources/cards.test.d.ts.map +1 -0
  259. package/dist/cjs/tests/api-resources/cards.test.js +24 -38
  260. package/dist/cjs/tests/api-resources/cards.test.js.map +1 -1
  261. package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
  262. package/dist/cjs/tests/api-resources/check-deposits.test.d.ts.map +1 -0
  263. package/dist/cjs/tests/api-resources/check-deposits.test.js +27 -32
  264. package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -1
  265. package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
  266. package/dist/cjs/tests/api-resources/check-transfers.test.d.ts.map +1 -0
  267. package/dist/cjs/tests/api-resources/check-transfers.test.js +34 -45
  268. package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -1
  269. package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
  270. package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts.map +1 -0
  271. package/dist/cjs/tests/api-resources/declined-transactions.test.js +11 -27
  272. package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -1
  273. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
  274. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts.map +1 -0
  275. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +11 -26
  276. package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -1
  277. package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
  278. package/dist/cjs/tests/api-resources/documents.test.d.ts.map +1 -0
  279. package/dist/cjs/tests/api-resources/documents.test.js +15 -27
  280. package/dist/cjs/tests/api-resources/documents.test.js.map +1 -1
  281. package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
  282. package/dist/cjs/tests/api-resources/entities/entities.test.d.ts.map +1 -0
  283. package/dist/cjs/tests/api-resources/entities/entities.test.js +109 -32
  284. package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -1
  285. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
  286. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts.map +1 -0
  287. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +13 -6
  288. package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -1
  289. package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
  290. package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts.map +1 -0
  291. package/dist/cjs/tests/api-resources/event-subscriptions.test.js +14 -20
  292. package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -1
  293. package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
  294. package/dist/cjs/tests/api-resources/events.test.d.ts.map +1 -0
  295. package/dist/cjs/tests/api-resources/events.test.js +11 -27
  296. package/dist/cjs/tests/api-resources/events.test.js.map +1 -1
  297. package/dist/cjs/tests/api-resources/exports.test.d.ts +2 -0
  298. package/dist/cjs/tests/api-resources/exports.test.d.ts.map +1 -0
  299. package/dist/cjs/tests/api-resources/exports.test.js +105 -0
  300. package/dist/cjs/tests/api-resources/exports.test.js.map +1 -0
  301. package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
  302. package/dist/cjs/tests/api-resources/external-accounts.test.d.ts.map +1 -0
  303. package/dist/cjs/tests/api-resources/external-accounts.test.js +16 -26
  304. package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -1
  305. package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
  306. package/dist/cjs/tests/api-resources/files.test.d.ts.map +1 -0
  307. package/dist/cjs/tests/api-resources/files.test.js +12 -26
  308. package/dist/cjs/tests/api-resources/files.test.js.map +1 -1
  309. package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
  310. package/dist/cjs/tests/api-resources/groups.test.d.ts.map +1 -0
  311. package/dist/cjs/tests/api-resources/groups.test.js +6 -5
  312. package/dist/cjs/tests/api-resources/groups.test.js.map +1 -1
  313. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +1 -0
  314. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts.map +1 -0
  315. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +16 -12
  316. package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -1
  317. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +1 -0
  318. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts.map +1 -0
  319. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +6 -9
  320. package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -1
  321. package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
  322. package/dist/cjs/tests/api-resources/limits.test.d.ts.map +1 -0
  323. package/dist/cjs/tests/api-resources/limits.test.js +17 -15
  324. package/dist/cjs/tests/api-resources/limits.test.js.map +1 -1
  325. package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
  326. package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts.map +1 -0
  327. package/dist/cjs/tests/api-resources/oauth-connections.test.js +6 -9
  328. package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -1
  329. package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
  330. package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts.map +1 -0
  331. package/dist/cjs/tests/api-resources/pending-transactions.test.js +12 -18
  332. package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -1
  333. package/dist/cjs/tests/api-resources/programs.test.d.ts +2 -0
  334. package/dist/cjs/tests/api-resources/programs.test.d.ts.map +1 -0
  335. package/dist/cjs/tests/api-resources/programs.test.js +73 -0
  336. package/dist/cjs/tests/api-resources/programs.test.js.map +1 -0
  337. package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +1 -0
  338. package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts.map +1 -0
  339. package/dist/cjs/tests/api-resources/real-time-decisions.test.js +7 -13
  340. package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -1
  341. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts +2 -0
  342. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts.map +1 -0
  343. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js +115 -0
  344. package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js.map +1 -0
  345. package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +1 -0
  346. package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts.map +1 -0
  347. package/dist/cjs/tests/api-resources/routing-numbers.test.js +10 -5
  348. package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -1
  349. package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
  350. package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts.map +1 -0
  351. package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +11 -8
  352. package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -1
  353. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
  354. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts.map +1 -0
  355. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +5 -4
  356. package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -1
  357. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
  358. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts.map +1 -0
  359. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +18 -20
  360. package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -1
  361. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
  362. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts.map +1 -0
  363. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +9 -7
  364. package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -1
  365. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
  366. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts.map +1 -0
  367. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +11 -8
  368. package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -1
  369. package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
  370. package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts.map +1 -0
  371. package/dist/cjs/tests/api-resources/simulations/cards.test.js +18 -10
  372. package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -1
  373. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
  374. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts.map +1 -0
  375. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +5 -4
  376. package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -1
  377. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
  378. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts.map +1 -0
  379. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +23 -4
  380. package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -1
  381. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +1 -0
  382. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts.map +1 -0
  383. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +11 -8
  384. package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -1
  385. package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
  386. package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts.map +1 -0
  387. package/dist/cjs/tests/api-resources/simulations/documents.test.js +10 -7
  388. package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -1
  389. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +1 -0
  390. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts.map +1 -0
  391. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +41 -28
  392. package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -1
  393. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts +2 -0
  394. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts.map +1 -0
  395. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js +58 -0
  396. package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js.map +1 -0
  397. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +1 -0
  398. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts.map +1 -0
  399. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +25 -12
  400. package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -1
  401. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
  402. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts.map +1 -0
  403. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +24 -10
  404. package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -1
  405. package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
  406. package/dist/cjs/tests/api-resources/transactions.test.d.ts.map +1 -0
  407. package/dist/cjs/tests/api-resources/transactions.test.js +15 -32
  408. package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -1
  409. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
  410. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts.map +1 -0
  411. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +23 -23
  412. package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -1
  413. package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
  414. package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts.map +1 -0
  415. package/dist/cjs/tests/api-resources/wire-transfers.test.js +32 -41
  416. package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -1
  417. package/dist/cjs/tests/form.test.d.ts +1 -0
  418. package/dist/cjs/tests/form.test.d.ts.map +1 -0
  419. package/dist/cjs/tests/form.test.js +4 -3
  420. package/dist/cjs/tests/index.test.d.ts +1 -0
  421. package/dist/cjs/tests/index.test.d.ts.map +1 -0
  422. package/dist/cjs/tests/index.test.js +31 -4
  423. package/dist/cjs/tests/index.test.js.map +1 -1
  424. package/dist/cjs/tests/responses.test.d.ts +1 -0
  425. package/dist/cjs/tests/responses.test.d.ts.map +1 -0
  426. package/dist/cjs/tests/responses.test.js +4 -3
  427. package/dist/cjs/version.d.ts +2 -1
  428. package/dist/cjs/version.d.ts.map +1 -0
  429. package/dist/cjs/version.js +1 -1
  430. package/dist/cjs/version.js.map +1 -1
  431. package/error.ts +337 -0
  432. package/examples/api-error.ts +21 -0
  433. package/fetch-polyfill.ts +2 -2
  434. package/index.ts +140 -2
  435. package/package.json +2 -2
  436. package/pagination.ts +3 -0
  437. package/release-please-config.json +64 -0
  438. package/resources/account-numbers.ts +52 -1
  439. package/resources/account-statements.ts +23 -2
  440. package/resources/account-transfers.ts +44 -14
  441. package/resources/accounts.ts +62 -28
  442. package/resources/ach-prenotifications.ts +32 -8
  443. package/resources/ach-transfers.ts +77 -27
  444. package/resources/balance-lookups.ts +57 -0
  445. package/resources/bookkeeping-accounts.ts +98 -0
  446. package/resources/bookkeeping-entries.ts +62 -0
  447. package/resources/bookkeeping-entry-sets.ts +114 -0
  448. package/resources/card-disputes.ts +41 -6
  449. package/resources/card-profiles.ts +91 -4
  450. package/resources/cards.ts +165 -4
  451. package/resources/check-deposits.ts +36 -2
  452. package/resources/check-transfers.ts +184 -17
  453. package/resources/declined-transactions.ts +136 -9
  454. package/resources/digital-wallet-tokens.ts +23 -2
  455. package/resources/documents.ts +183 -7
  456. package/resources/entities/entities.ts +1343 -14
  457. package/resources/event-subscriptions.ts +9 -6
  458. package/resources/events.ts +87 -5
  459. package/resources/exports.ts +298 -0
  460. package/resources/external-accounts.ts +14 -9
  461. package/resources/files.ts +55 -11
  462. package/resources/inbound-ach-transfer-returns.ts +3 -1
  463. package/resources/inbound-wire-drawdown-requests.ts +0 -1
  464. package/resources/index.ts +28 -0
  465. package/resources/limits.ts +5 -6
  466. package/resources/oauth-connections.ts +0 -1
  467. package/resources/pending-transactions.ts +177 -7
  468. package/resources/programs.ts +70 -0
  469. package/resources/real-time-decisions.ts +113 -1
  470. package/resources/real-time-payments-transfers.ts +373 -0
  471. package/resources/simulations/ach-transfers.ts +479 -13
  472. package/resources/simulations/card-disputes.ts +4 -4
  473. package/resources/simulations/cards.ts +251 -14
  474. package/resources/simulations/check-transfers.ts +19 -0
  475. package/resources/simulations/inbound-wire-drawdown-requests.ts +28 -28
  476. package/resources/simulations/index.ts +3 -0
  477. package/resources/simulations/interest-payments.ts +1667 -0
  478. package/resources/simulations/real-time-payments-transfers.ts +568 -13
  479. package/resources/simulations/simulations.ts +2 -0
  480. package/resources/simulations/wire-transfers.ts +362 -7
  481. package/resources/transactions.ts +430 -11
  482. package/resources/wire-drawdown-requests.ts +14 -11
  483. package/resources/wire-transfers.ts +80 -21
  484. package/tests/api-resources/account-numbers.test.ts +21 -23
  485. package/tests/api-resources/account-statements.test.ts +8 -23
  486. package/tests/api-resources/account-transfers.test.ts +17 -31
  487. package/tests/api-resources/accounts.test.ts +22 -21
  488. package/tests/api-resources/ach-prenotifications.test.ts +21 -25
  489. package/tests/api-resources/ach-transfers.test.ts +31 -33
  490. package/tests/api-resources/balance-lookups.test.ts +21 -0
  491. package/tests/api-resources/bookkeeping-accounts.test.ts +43 -0
  492. package/tests/api-resources/bookkeeping-entries.test.ts +25 -0
  493. package/tests/api-resources/bookkeeping-entry-sets.test.ts +31 -0
  494. package/tests/api-resources/card-disputes.test.ts +18 -26
  495. package/tests/api-resources/card-profiles.test.ts +26 -17
  496. package/tests/api-resources/cards.test.ts +21 -35
  497. package/tests/api-resources/check-deposits.test.ts +24 -29
  498. package/tests/api-resources/check-transfers.test.ts +31 -42
  499. package/tests/api-resources/declined-transactions.test.ts +8 -24
  500. package/tests/api-resources/digital-wallet-tokens.test.ts +8 -23
  501. package/tests/api-resources/documents.test.ts +12 -24
  502. package/tests/api-resources/entities/entities.test.ts +106 -29
  503. package/tests/api-resources/entities/supplemental-documents.test.ts +10 -3
  504. package/tests/api-resources/event-subscriptions.test.ts +11 -17
  505. package/tests/api-resources/events.test.ts +8 -24
  506. package/tests/api-resources/exports.test.ts +68 -0
  507. package/tests/api-resources/external-accounts.test.ts +13 -23
  508. package/tests/api-resources/files.test.ts +9 -24
  509. package/tests/api-resources/groups.test.ts +3 -2
  510. package/tests/api-resources/inbound-ach-transfer-returns.test.ts +13 -9
  511. package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +3 -6
  512. package/tests/api-resources/limits.test.ts +14 -12
  513. package/tests/api-resources/oauth-connections.test.ts +3 -6
  514. package/tests/api-resources/pending-transactions.test.ts +9 -15
  515. package/tests/api-resources/programs.test.ts +36 -0
  516. package/tests/api-resources/real-time-decisions.test.ts +4 -10
  517. package/tests/api-resources/real-time-payments-transfers.test.ts +78 -0
  518. package/tests/api-resources/routing-numbers.test.ts +7 -2
  519. package/tests/api-resources/simulations/account-statements.test.ts +8 -5
  520. package/tests/api-resources/simulations/account-transfers.test.ts +2 -1
  521. package/tests/api-resources/simulations/ach-transfers.test.ts +15 -14
  522. package/tests/api-resources/simulations/card-disputes.test.ts +6 -4
  523. package/tests/api-resources/simulations/card-refunds.test.ts +8 -5
  524. package/tests/api-resources/simulations/cards.test.ts +15 -7
  525. package/tests/api-resources/simulations/check-deposits.test.ts +2 -1
  526. package/tests/api-resources/simulations/check-transfers.test.ts +14 -1
  527. package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +8 -5
  528. package/tests/api-resources/simulations/documents.test.ts +7 -4
  529. package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +38 -25
  530. package/tests/api-resources/simulations/interest-payments.test.ts +15 -0
  531. package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +22 -9
  532. package/tests/api-resources/simulations/wire-transfers.test.ts +21 -7
  533. package/tests/api-resources/transactions.test.ts +12 -29
  534. package/tests/api-resources/wire-drawdown-requests.test.ts +20 -20
  535. package/tests/api-resources/wire-transfers.test.ts +29 -38
  536. package/tests/index.test.ts +25 -1
  537. package/tsconfig.json +2 -0
  538. package/version.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import * as Core from '../../core';
2
2
  import { APIResource } from '../../resource';
3
- import { Page, PageParams } from '../../pagination';
4
3
  import { SupplementalDocuments } from './supplemental-documents';
4
+ import { Page, PageParams } from '../../pagination';
5
5
  export declare class Entities extends APIResource {
6
6
  supplementalDocuments: SupplementalDocuments;
7
7
  /**
@@ -69,6 +69,10 @@ export interface Entity {
69
69
  type: 'entity';
70
70
  }
71
71
  export declare namespace Entity {
72
+ /**
73
+ * Details of the corporation entity. Will be present if `structure` is equal to
74
+ * `corporation`.
75
+ */
72
76
  interface Corporation {
73
77
  /**
74
78
  * The corporation's address.
@@ -98,6 +102,9 @@ export declare namespace Entity {
98
102
  website: string | null;
99
103
  }
100
104
  namespace Corporation {
105
+ /**
106
+ * The corporation's address.
107
+ */
101
108
  interface Address {
102
109
  /**
103
110
  * The city of the address.
@@ -136,6 +143,9 @@ export declare namespace Entity {
136
143
  prong: 'ownership' | 'control';
137
144
  }
138
145
  namespace BeneficialOwners {
146
+ /**
147
+ * Personal details for the beneficial owner.
148
+ */
139
149
  interface Individual {
140
150
  /**
141
151
  * The person's address.
@@ -155,6 +165,9 @@ export declare namespace Entity {
155
165
  name: string;
156
166
  }
157
167
  namespace Individual {
168
+ /**
169
+ * The person's address.
170
+ */
158
171
  interface Address {
159
172
  /**
160
173
  * The city of the address.
@@ -178,6 +191,9 @@ export declare namespace Entity {
178
191
  */
179
192
  zip: string;
180
193
  }
194
+ /**
195
+ * A means of verifying the person's identity.
196
+ */
181
197
  interface Identification {
182
198
  /**
183
199
  * A method that can be used to verify the individual's identity.
@@ -197,6 +213,10 @@ export declare namespace Entity {
197
213
  }
198
214
  }
199
215
  }
216
+ /**
217
+ * Details of the natural person entity. Will be present if `structure` is equal to
218
+ * `natural_person`.
219
+ */
200
220
  interface NaturalPerson {
201
221
  /**
202
222
  * The person's address.
@@ -216,6 +236,9 @@ export declare namespace Entity {
216
236
  name: string;
217
237
  }
218
238
  namespace NaturalPerson {
239
+ /**
240
+ * The person's address.
241
+ */
219
242
  interface Address {
220
243
  /**
221
244
  * The city of the address.
@@ -239,6 +262,9 @@ export declare namespace Entity {
239
262
  */
240
263
  zip: string;
241
264
  }
265
+ /**
266
+ * A means of verifying the person's identity.
267
+ */
242
268
  interface Identification {
243
269
  /**
244
270
  * A method that can be used to verify the individual's identity.
@@ -256,6 +282,9 @@ export declare namespace Entity {
256
282
  number_last4: string;
257
283
  }
258
284
  }
285
+ /**
286
+ * Details of the joint entity. Will be present if `structure` is equal to `joint`.
287
+ */
259
288
  interface Joint {
260
289
  /**
261
290
  * The two individuals that share control of the entity.
@@ -286,6 +315,9 @@ export declare namespace Entity {
286
315
  name: string;
287
316
  }
288
317
  namespace Individuals {
318
+ /**
319
+ * The person's address.
320
+ */
289
321
  interface Address {
290
322
  /**
291
323
  * The city of the address.
@@ -309,6 +341,9 @@ export declare namespace Entity {
309
341
  */
310
342
  zip: string;
311
343
  }
344
+ /**
345
+ * A means of verifying the person's identity.
346
+ */
312
347
  interface Identification {
313
348
  /**
314
349
  * A method that can be used to verify the individual's identity.
@@ -327,6 +362,9 @@ export declare namespace Entity {
327
362
  }
328
363
  }
329
364
  }
365
+ /**
366
+ * Details of the trust entity. Will be present if `structure` is equal to `trust`.
367
+ */
330
368
  interface Trust {
331
369
  /**
332
370
  * The trust's address.
@@ -363,6 +401,9 @@ export declare namespace Entity {
363
401
  trustees: Array<Trust.Trustees>;
364
402
  }
365
403
  namespace Trust {
404
+ /**
405
+ * The trust's address.
406
+ */
366
407
  interface Address {
367
408
  /**
368
409
  * The city of the address.
@@ -398,6 +439,10 @@ export declare namespace Entity {
398
439
  structure: 'individual';
399
440
  }
400
441
  namespace Trustees {
442
+ /**
443
+ * The individual trustee of the trust. Will be present if the trustee's
444
+ * `structure` is equal to `individual`.
445
+ */
401
446
  interface Individual {
402
447
  /**
403
448
  * The person's address.
@@ -417,6 +462,9 @@ export declare namespace Entity {
417
462
  name: string;
418
463
  }
419
464
  namespace Individual {
465
+ /**
466
+ * The person's address.
467
+ */
420
468
  interface Address {
421
469
  /**
422
470
  * The city of the address.
@@ -440,6 +488,9 @@ export declare namespace Entity {
440
488
  */
441
489
  zip: string;
442
490
  }
491
+ /**
492
+ * A means of verifying the person's identity.
493
+ */
443
494
  interface Identification {
444
495
  /**
445
496
  * A method that can be used to verify the individual's identity.
@@ -458,6 +509,9 @@ export declare namespace Entity {
458
509
  }
459
510
  }
460
511
  }
512
+ /**
513
+ * The grantor of the trust. Will be present if the `category` is `revocable`.
514
+ */
461
515
  interface Grantor {
462
516
  /**
463
517
  * The person's address.
@@ -477,6 +531,9 @@ export declare namespace Entity {
477
531
  name: string;
478
532
  }
479
533
  namespace Grantor {
534
+ /**
535
+ * The person's address.
536
+ */
480
537
  interface Address {
481
538
  /**
482
539
  * The city of the address.
@@ -500,6 +557,9 @@ export declare namespace Entity {
500
557
  */
501
558
  zip: string;
502
559
  }
560
+ /**
561
+ * A means of verifying the person's identity.
562
+ */
503
563
  interface Identification {
504
564
  /**
505
565
  * A method that can be used to verify the individual's identity.
@@ -526,14 +586,6 @@ export declare namespace Entity {
526
586
  }
527
587
  }
528
588
  export interface EntityCreateParams {
529
- /**
530
- * The relationship between your group and the entity.
531
- */
532
- relationship: 'affiliated' | 'informational' | 'unaffiliated';
533
- /**
534
- * The type of Entity to create.
535
- */
536
- structure: 'corporation' | 'natural_person' | 'joint' | 'trust';
537
589
  /**
538
590
  * Details of the corporation entity to create. Required if `structure` is equal to
539
591
  * `corporation`.
@@ -555,6 +607,14 @@ export interface EntityCreateParams {
555
607
  * identification methods.
556
608
  */
557
609
  natural_person?: EntityCreateParams.NaturalPerson;
610
+ /**
611
+ * The relationship between your group and the entity.
612
+ */
613
+ relationship: 'affiliated' | 'informational' | 'unaffiliated';
614
+ /**
615
+ * The type of Entity to create.
616
+ */
617
+ structure: 'corporation' | 'natural_person' | 'joint' | 'trust';
558
618
  /**
559
619
  * Additional documentation associated with the entity.
560
620
  */
@@ -566,6 +626,10 @@ export interface EntityCreateParams {
566
626
  trust?: EntityCreateParams.Trust;
567
627
  }
568
628
  export declare namespace EntityCreateParams {
629
+ /**
630
+ * Details of the corporation entity to create. Required if `structure` is equal to
631
+ * `corporation`.
632
+ */
569
633
  interface Corporation {
570
634
  /**
571
635
  * The corporation's address.
@@ -595,6 +659,9 @@ export declare namespace EntityCreateParams {
595
659
  website?: string;
596
660
  }
597
661
  namespace Corporation {
662
+ /**
663
+ * The corporation's address.
664
+ */
598
665
  interface Address {
599
666
  /**
600
667
  * The city of the address.
@@ -633,6 +700,9 @@ export declare namespace EntityCreateParams {
633
700
  company_title?: string;
634
701
  }
635
702
  namespace BeneficialOwners {
703
+ /**
704
+ * Personal details for the beneficial owner.
705
+ */
636
706
  interface Individual {
637
707
  /**
638
708
  * The individual's address.
@@ -659,6 +729,9 @@ export declare namespace EntityCreateParams {
659
729
  confirmed_no_us_tax_id?: boolean;
660
730
  }
661
731
  namespace Individual {
732
+ /**
733
+ * The individual's address.
734
+ */
662
735
  interface Address {
663
736
  /**
664
737
  * The city of the address.
@@ -682,6 +755,9 @@ export declare namespace EntityCreateParams {
682
755
  */
683
756
  line2?: string;
684
757
  }
758
+ /**
759
+ * A means of verifying the person's identity.
760
+ */
685
761
  interface Identification {
686
762
  /**
687
763
  * A method that can be used to verify the individual's identity.
@@ -714,6 +790,10 @@ export declare namespace EntityCreateParams {
714
790
  passport?: Identification.Passport;
715
791
  }
716
792
  namespace Identification {
793
+ /**
794
+ * Information about the passport used for identification. Required if `method` is
795
+ * equal to `passport`.
796
+ */
717
797
  interface Passport {
718
798
  /**
719
799
  * The country that issued the passport.
@@ -728,6 +808,10 @@ export declare namespace EntityCreateParams {
728
808
  */
729
809
  file_id: string;
730
810
  }
811
+ /**
812
+ * Information about the United States driver's license used for identification.
813
+ * Required if `method` is equal to `drivers_license`.
814
+ */
731
815
  interface DriversLicense {
732
816
  /**
733
817
  * The driver's license's expiration date in YYYY-MM-DD format.
@@ -742,6 +826,10 @@ export declare namespace EntityCreateParams {
742
826
  */
743
827
  state: string;
744
828
  }
829
+ /**
830
+ * Information about the identification document provided. Required if `method` is
831
+ * equal to `other`.
832
+ */
745
833
  interface Other {
746
834
  /**
747
835
  * The two-character ISO 3166-1 code representing the country that issued the
@@ -765,6 +853,12 @@ export declare namespace EntityCreateParams {
765
853
  }
766
854
  }
767
855
  }
856
+ /**
857
+ * Details of the natural person entity to create. Required if `structure` is equal
858
+ * to `natural_person`. Natural people entities should be submitted with
859
+ * `social_security_number` or `individual_taxpayer_identification_number`
860
+ * identification methods.
861
+ */
768
862
  interface NaturalPerson {
769
863
  /**
770
864
  * The individual's address.
@@ -791,6 +885,9 @@ export declare namespace EntityCreateParams {
791
885
  confirmed_no_us_tax_id?: boolean;
792
886
  }
793
887
  namespace NaturalPerson {
888
+ /**
889
+ * The individual's address.
890
+ */
794
891
  interface Address {
795
892
  /**
796
893
  * The city of the address.
@@ -814,6 +911,9 @@ export declare namespace EntityCreateParams {
814
911
  */
815
912
  line2?: string;
816
913
  }
914
+ /**
915
+ * A means of verifying the person's identity.
916
+ */
817
917
  interface Identification {
818
918
  /**
819
919
  * A method that can be used to verify the individual's identity.
@@ -846,6 +946,10 @@ export declare namespace EntityCreateParams {
846
946
  passport?: Identification.Passport;
847
947
  }
848
948
  namespace Identification {
949
+ /**
950
+ * Information about the passport used for identification. Required if `method` is
951
+ * equal to `passport`.
952
+ */
849
953
  interface Passport {
850
954
  /**
851
955
  * The country that issued the passport.
@@ -860,6 +964,10 @@ export declare namespace EntityCreateParams {
860
964
  */
861
965
  file_id: string;
862
966
  }
967
+ /**
968
+ * Information about the United States driver's license used for identification.
969
+ * Required if `method` is equal to `drivers_license`.
970
+ */
863
971
  interface DriversLicense {
864
972
  /**
865
973
  * The driver's license's expiration date in YYYY-MM-DD format.
@@ -874,6 +982,10 @@ export declare namespace EntityCreateParams {
874
982
  */
875
983
  state: string;
876
984
  }
985
+ /**
986
+ * Information about the identification document provided. Required if `method` is
987
+ * equal to `other`.
988
+ */
877
989
  interface Other {
878
990
  /**
879
991
  * The two-character ISO 3166-1 code representing the country that issued the
@@ -895,6 +1007,10 @@ export declare namespace EntityCreateParams {
895
1007
  }
896
1008
  }
897
1009
  }
1010
+ /**
1011
+ * Details of the joint entity to create. Required if `structure` is equal to
1012
+ * `joint`.
1013
+ */
898
1014
  interface Joint {
899
1015
  /**
900
1016
  * The two individuals that share control of the entity.
@@ -932,6 +1048,9 @@ export declare namespace EntityCreateParams {
932
1048
  confirmed_no_us_tax_id?: boolean;
933
1049
  }
934
1050
  namespace Individuals {
1051
+ /**
1052
+ * The individual's address.
1053
+ */
935
1054
  interface Address {
936
1055
  /**
937
1056
  * The city of the address.
@@ -955,6 +1074,9 @@ export declare namespace EntityCreateParams {
955
1074
  */
956
1075
  line2?: string;
957
1076
  }
1077
+ /**
1078
+ * A means of verifying the person's identity.
1079
+ */
958
1080
  interface Identification {
959
1081
  /**
960
1082
  * A method that can be used to verify the individual's identity.
@@ -987,6 +1109,10 @@ export declare namespace EntityCreateParams {
987
1109
  passport?: Identification.Passport;
988
1110
  }
989
1111
  namespace Identification {
1112
+ /**
1113
+ * Information about the passport used for identification. Required if `method` is
1114
+ * equal to `passport`.
1115
+ */
990
1116
  interface Passport {
991
1117
  /**
992
1118
  * The country that issued the passport.
@@ -1001,6 +1127,10 @@ export declare namespace EntityCreateParams {
1001
1127
  */
1002
1128
  file_id: string;
1003
1129
  }
1130
+ /**
1131
+ * Information about the United States driver's license used for identification.
1132
+ * Required if `method` is equal to `drivers_license`.
1133
+ */
1004
1134
  interface DriversLicense {
1005
1135
  /**
1006
1136
  * The driver's license's expiration date in YYYY-MM-DD format.
@@ -1015,6 +1145,10 @@ export declare namespace EntityCreateParams {
1015
1145
  */
1016
1146
  state: string;
1017
1147
  }
1148
+ /**
1149
+ * Information about the identification document provided. Required if `method` is
1150
+ * equal to `other`.
1151
+ */
1018
1152
  interface Other {
1019
1153
  /**
1020
1154
  * The two-character ISO 3166-1 code representing the country that issued the
@@ -1037,6 +1171,10 @@ export declare namespace EntityCreateParams {
1037
1171
  }
1038
1172
  }
1039
1173
  }
1174
+ /**
1175
+ * Details of the trust entity to create. Required if `structure` is equal to
1176
+ * `trust`.
1177
+ */
1040
1178
  interface Trust {
1041
1179
  /**
1042
1180
  * The trust's address.
@@ -1076,6 +1214,9 @@ export declare namespace EntityCreateParams {
1076
1214
  tax_identifier?: string;
1077
1215
  }
1078
1216
  namespace Trust {
1217
+ /**
1218
+ * The trust's address.
1219
+ */
1079
1220
  interface Address {
1080
1221
  /**
1081
1222
  * The city of the address.
@@ -1111,6 +1252,10 @@ export declare namespace EntityCreateParams {
1111
1252
  individual?: Trustees.Individual;
1112
1253
  }
1113
1254
  namespace Trustees {
1255
+ /**
1256
+ * Details of the individual trustee. Required when the trustee `structure` is
1257
+ * equal to `individual`.
1258
+ */
1114
1259
  interface Individual {
1115
1260
  /**
1116
1261
  * The individual's address.
@@ -1137,6 +1282,9 @@ export declare namespace EntityCreateParams {
1137
1282
  confirmed_no_us_tax_id?: boolean;
1138
1283
  }
1139
1284
  namespace Individual {
1285
+ /**
1286
+ * The individual's address.
1287
+ */
1140
1288
  interface Address {
1141
1289
  /**
1142
1290
  * The city of the address.
@@ -1160,6 +1308,9 @@ export declare namespace EntityCreateParams {
1160
1308
  */
1161
1309
  line2?: string;
1162
1310
  }
1311
+ /**
1312
+ * A means of verifying the person's identity.
1313
+ */
1163
1314
  interface Identification {
1164
1315
  /**
1165
1316
  * A method that can be used to verify the individual's identity.
@@ -1192,6 +1343,10 @@ export declare namespace EntityCreateParams {
1192
1343
  passport?: Identification.Passport;
1193
1344
  }
1194
1345
  namespace Identification {
1346
+ /**
1347
+ * Information about the passport used for identification. Required if `method` is
1348
+ * equal to `passport`.
1349
+ */
1195
1350
  interface Passport {
1196
1351
  /**
1197
1352
  * The country that issued the passport.
@@ -1206,6 +1361,10 @@ export declare namespace EntityCreateParams {
1206
1361
  */
1207
1362
  file_id: string;
1208
1363
  }
1364
+ /**
1365
+ * Information about the United States driver's license used for identification.
1366
+ * Required if `method` is equal to `drivers_license`.
1367
+ */
1209
1368
  interface DriversLicense {
1210
1369
  /**
1211
1370
  * The driver's license's expiration date in YYYY-MM-DD format.
@@ -1220,6 +1379,10 @@ export declare namespace EntityCreateParams {
1220
1379
  */
1221
1380
  state: string;
1222
1381
  }
1382
+ /**
1383
+ * Information about the identification document provided. Required if `method` is
1384
+ * equal to `other`.
1385
+ */
1223
1386
  interface Other {
1224
1387
  /**
1225
1388
  * The two-character ISO 3166-1 code representing the country that issued the
@@ -1242,6 +1405,9 @@ export declare namespace EntityCreateParams {
1242
1405
  }
1243
1406
  }
1244
1407
  }
1408
+ /**
1409
+ * The grantor of the trust. Required if `category` is equal to `revocable`.
1410
+ */
1245
1411
  interface Grantor {
1246
1412
  /**
1247
1413
  * The individual's address.
@@ -1268,6 +1434,9 @@ export declare namespace EntityCreateParams {
1268
1434
  confirmed_no_us_tax_id?: boolean;
1269
1435
  }
1270
1436
  namespace Grantor {
1437
+ /**
1438
+ * The individual's address.
1439
+ */
1271
1440
  interface Address {
1272
1441
  /**
1273
1442
  * The city of the address.
@@ -1291,6 +1460,9 @@ export declare namespace EntityCreateParams {
1291
1460
  */
1292
1461
  line2?: string;
1293
1462
  }
1463
+ /**
1464
+ * A means of verifying the person's identity.
1465
+ */
1294
1466
  interface Identification {
1295
1467
  /**
1296
1468
  * A method that can be used to verify the individual's identity.
@@ -1323,6 +1495,10 @@ export declare namespace EntityCreateParams {
1323
1495
  passport?: Identification.Passport;
1324
1496
  }
1325
1497
  namespace Identification {
1498
+ /**
1499
+ * Information about the passport used for identification. Required if `method` is
1500
+ * equal to `passport`.
1501
+ */
1326
1502
  interface Passport {
1327
1503
  /**
1328
1504
  * The country that issued the passport.
@@ -1337,6 +1513,10 @@ export declare namespace EntityCreateParams {
1337
1513
  */
1338
1514
  file_id: string;
1339
1515
  }
1516
+ /**
1517
+ * Information about the United States driver's license used for identification.
1518
+ * Required if `method` is equal to `drivers_license`.
1519
+ */
1340
1520
  interface DriversLicense {
1341
1521
  /**
1342
1522
  * The driver's license's expiration date in YYYY-MM-DD format.
@@ -1351,6 +1531,10 @@ export declare namespace EntityCreateParams {
1351
1531
  */
1352
1532
  state: string;
1353
1533
  }
1534
+ /**
1535
+ * Information about the identification document provided. Required if `method` is
1536
+ * equal to `other`.
1537
+ */
1354
1538
  interface Other {
1355
1539
  /**
1356
1540
  * The two-character ISO 3166-1 code representing the country that issued the
@@ -1379,5 +1563,988 @@ export declare namespace EntityCreateParams {
1379
1563
  */
1380
1564
  file_id: string;
1381
1565
  }
1566
+ /**
1567
+ * Details of the corporation entity to create. Required if `structure` is equal to
1568
+ * `corporation`.
1569
+ */
1570
+ interface Corporation {
1571
+ /**
1572
+ * The corporation's address.
1573
+ */
1574
+ address: Corporation.Address;
1575
+ /**
1576
+ * The identifying details of anyone controlling or owning 25% or more of the
1577
+ * corporation.
1578
+ */
1579
+ beneficial_owners: Array<Corporation.BeneficialOwners>;
1580
+ /**
1581
+ * The legal name of the corporation.
1582
+ */
1583
+ name: string;
1584
+ /**
1585
+ * The Employer Identification Number (EIN) for the corporation.
1586
+ */
1587
+ tax_identifier: string;
1588
+ /**
1589
+ * The two-letter United States Postal Service (USPS) abbreviation for the
1590
+ * corporation's state of incorporation.
1591
+ */
1592
+ incorporation_state?: string;
1593
+ /**
1594
+ * The website of the corporation.
1595
+ */
1596
+ website?: string;
1597
+ }
1598
+ namespace Corporation {
1599
+ /**
1600
+ * The corporation's address.
1601
+ */
1602
+ interface Address {
1603
+ /**
1604
+ * The city of the address.
1605
+ */
1606
+ city: string;
1607
+ /**
1608
+ * The first line of the address. This is usually the street number and street.
1609
+ */
1610
+ line1: string;
1611
+ /**
1612
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1613
+ * the address.
1614
+ */
1615
+ state: string;
1616
+ /**
1617
+ * The ZIP code of the address.
1618
+ */
1619
+ zip: string;
1620
+ /**
1621
+ * The second line of the address. This might be the floor or room number.
1622
+ */
1623
+ line2?: string;
1624
+ }
1625
+ interface BeneficialOwners {
1626
+ /**
1627
+ * Personal details for the beneficial owner.
1628
+ */
1629
+ individual: BeneficialOwners.Individual;
1630
+ /**
1631
+ * Why this person is considered a beneficial owner of the entity.
1632
+ */
1633
+ prong: 'ownership' | 'control';
1634
+ /**
1635
+ * This person's role or title within the entity.
1636
+ */
1637
+ company_title?: string;
1638
+ }
1639
+ namespace BeneficialOwners {
1640
+ /**
1641
+ * Personal details for the beneficial owner.
1642
+ */
1643
+ interface Individual {
1644
+ /**
1645
+ * The individual's address.
1646
+ */
1647
+ address: Individual.Address;
1648
+ /**
1649
+ * The person's date of birth in YYYY-MM-DD format.
1650
+ */
1651
+ date_of_birth: string;
1652
+ /**
1653
+ * A means of verifying the person's identity.
1654
+ */
1655
+ identification: Individual.Identification;
1656
+ /**
1657
+ * The person's legal name.
1658
+ */
1659
+ name: string;
1660
+ /**
1661
+ * The identification method for an individual can only be a passport, driver's
1662
+ * license, or other document if you've confirmed the individual does not have a US
1663
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
1664
+ * Number).
1665
+ */
1666
+ confirmed_no_us_tax_id?: boolean;
1667
+ }
1668
+ namespace Individual {
1669
+ /**
1670
+ * The individual's address.
1671
+ */
1672
+ interface Address {
1673
+ /**
1674
+ * The city of the address.
1675
+ */
1676
+ city: string;
1677
+ /**
1678
+ * The first line of the address. This is usually the street number and street.
1679
+ */
1680
+ line1: string;
1681
+ /**
1682
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1683
+ * the address.
1684
+ */
1685
+ state: string;
1686
+ /**
1687
+ * The ZIP code of the address.
1688
+ */
1689
+ zip: string;
1690
+ /**
1691
+ * The second line of the address. This might be the floor or room number.
1692
+ */
1693
+ line2?: string;
1694
+ }
1695
+ /**
1696
+ * A means of verifying the person's identity.
1697
+ */
1698
+ interface Identification {
1699
+ /**
1700
+ * A method that can be used to verify the individual's identity.
1701
+ */
1702
+ method:
1703
+ | 'social_security_number'
1704
+ | 'individual_taxpayer_identification_number'
1705
+ | 'passport'
1706
+ | 'drivers_license'
1707
+ | 'other';
1708
+ /**
1709
+ * An identification number that can be used to verify the individual's identity,
1710
+ * such as a social security number.
1711
+ */
1712
+ number: string;
1713
+ /**
1714
+ * Information about the United States driver's license used for identification.
1715
+ * Required if `method` is equal to `drivers_license`.
1716
+ */
1717
+ drivers_license?: Identification.DriversLicense;
1718
+ /**
1719
+ * Information about the identification document provided. Required if `method` is
1720
+ * equal to `other`.
1721
+ */
1722
+ other?: Identification.Other;
1723
+ /**
1724
+ * Information about the passport used for identification. Required if `method` is
1725
+ * equal to `passport`.
1726
+ */
1727
+ passport?: Identification.Passport;
1728
+ }
1729
+ namespace Identification {
1730
+ /**
1731
+ * Information about the passport used for identification. Required if `method` is
1732
+ * equal to `passport`.
1733
+ */
1734
+ interface Passport {
1735
+ /**
1736
+ * The country that issued the passport.
1737
+ */
1738
+ country: string;
1739
+ /**
1740
+ * The passport's expiration date in YYYY-MM-DD format.
1741
+ */
1742
+ expiration_date: string;
1743
+ /**
1744
+ * The identifier of the File containing the passport.
1745
+ */
1746
+ file_id: string;
1747
+ }
1748
+ /**
1749
+ * Information about the United States driver's license used for identification.
1750
+ * Required if `method` is equal to `drivers_license`.
1751
+ */
1752
+ interface DriversLicense {
1753
+ /**
1754
+ * The driver's license's expiration date in YYYY-MM-DD format.
1755
+ */
1756
+ expiration_date: string;
1757
+ /**
1758
+ * The identifier of the File containing the driver's license.
1759
+ */
1760
+ file_id: string;
1761
+ /**
1762
+ * The state that issued the provided driver's license.
1763
+ */
1764
+ state: string;
1765
+ }
1766
+ /**
1767
+ * Information about the identification document provided. Required if `method` is
1768
+ * equal to `other`.
1769
+ */
1770
+ interface Other {
1771
+ /**
1772
+ * The two-character ISO 3166-1 code representing the country that issued the
1773
+ * document.
1774
+ */
1775
+ country: string;
1776
+ /**
1777
+ * A description of the document submitted.
1778
+ */
1779
+ description: string;
1780
+ /**
1781
+ * The identifier of the File containing the document.
1782
+ */
1783
+ file_id: string;
1784
+ /**
1785
+ * The document's expiration date in YYYY-MM-DD format.
1786
+ */
1787
+ expiration_date?: string;
1788
+ }
1789
+ }
1790
+ }
1791
+ }
1792
+ }
1793
+ /**
1794
+ * Details of the joint entity to create. Required if `structure` is equal to
1795
+ * `joint`.
1796
+ */
1797
+ interface Joint {
1798
+ /**
1799
+ * The two individuals that share control of the entity.
1800
+ */
1801
+ individuals: Array<Joint.Individuals>;
1802
+ /**
1803
+ * The name of the joint entity.
1804
+ */
1805
+ name?: string;
1806
+ }
1807
+ namespace Joint {
1808
+ interface Individuals {
1809
+ /**
1810
+ * The individual's address.
1811
+ */
1812
+ address: Individuals.Address;
1813
+ /**
1814
+ * The person's date of birth in YYYY-MM-DD format.
1815
+ */
1816
+ date_of_birth: string;
1817
+ /**
1818
+ * A means of verifying the person's identity.
1819
+ */
1820
+ identification: Individuals.Identification;
1821
+ /**
1822
+ * The person's legal name.
1823
+ */
1824
+ name: string;
1825
+ /**
1826
+ * The identification method for an individual can only be a passport, driver's
1827
+ * license, or other document if you've confirmed the individual does not have a US
1828
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
1829
+ * Number).
1830
+ */
1831
+ confirmed_no_us_tax_id?: boolean;
1832
+ }
1833
+ namespace Individuals {
1834
+ /**
1835
+ * The individual's address.
1836
+ */
1837
+ interface Address {
1838
+ /**
1839
+ * The city of the address.
1840
+ */
1841
+ city: string;
1842
+ /**
1843
+ * The first line of the address. This is usually the street number and street.
1844
+ */
1845
+ line1: string;
1846
+ /**
1847
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
1848
+ * the address.
1849
+ */
1850
+ state: string;
1851
+ /**
1852
+ * The ZIP code of the address.
1853
+ */
1854
+ zip: string;
1855
+ /**
1856
+ * The second line of the address. This might be the floor or room number.
1857
+ */
1858
+ line2?: string;
1859
+ }
1860
+ /**
1861
+ * A means of verifying the person's identity.
1862
+ */
1863
+ interface Identification {
1864
+ /**
1865
+ * A method that can be used to verify the individual's identity.
1866
+ */
1867
+ method:
1868
+ | 'social_security_number'
1869
+ | 'individual_taxpayer_identification_number'
1870
+ | 'passport'
1871
+ | 'drivers_license'
1872
+ | 'other';
1873
+ /**
1874
+ * An identification number that can be used to verify the individual's identity,
1875
+ * such as a social security number.
1876
+ */
1877
+ number: string;
1878
+ /**
1879
+ * Information about the United States driver's license used for identification.
1880
+ * Required if `method` is equal to `drivers_license`.
1881
+ */
1882
+ drivers_license?: Identification.DriversLicense;
1883
+ /**
1884
+ * Information about the identification document provided. Required if `method` is
1885
+ * equal to `other`.
1886
+ */
1887
+ other?: Identification.Other;
1888
+ /**
1889
+ * Information about the passport used for identification. Required if `method` is
1890
+ * equal to `passport`.
1891
+ */
1892
+ passport?: Identification.Passport;
1893
+ }
1894
+ namespace Identification {
1895
+ /**
1896
+ * Information about the passport used for identification. Required if `method` is
1897
+ * equal to `passport`.
1898
+ */
1899
+ interface Passport {
1900
+ /**
1901
+ * The country that issued the passport.
1902
+ */
1903
+ country: string;
1904
+ /**
1905
+ * The passport's expiration date in YYYY-MM-DD format.
1906
+ */
1907
+ expiration_date: string;
1908
+ /**
1909
+ * The identifier of the File containing the passport.
1910
+ */
1911
+ file_id: string;
1912
+ }
1913
+ /**
1914
+ * Information about the United States driver's license used for identification.
1915
+ * Required if `method` is equal to `drivers_license`.
1916
+ */
1917
+ interface DriversLicense {
1918
+ /**
1919
+ * The driver's license's expiration date in YYYY-MM-DD format.
1920
+ */
1921
+ expiration_date: string;
1922
+ /**
1923
+ * The identifier of the File containing the driver's license.
1924
+ */
1925
+ file_id: string;
1926
+ /**
1927
+ * The state that issued the provided driver's license.
1928
+ */
1929
+ state: string;
1930
+ }
1931
+ /**
1932
+ * Information about the identification document provided. Required if `method` is
1933
+ * equal to `other`.
1934
+ */
1935
+ interface Other {
1936
+ /**
1937
+ * The two-character ISO 3166-1 code representing the country that issued the
1938
+ * document.
1939
+ */
1940
+ country: string;
1941
+ /**
1942
+ * A description of the document submitted.
1943
+ */
1944
+ description: string;
1945
+ /**
1946
+ * The identifier of the File containing the document.
1947
+ */
1948
+ file_id: string;
1949
+ /**
1950
+ * The document's expiration date in YYYY-MM-DD format.
1951
+ */
1952
+ expiration_date?: string;
1953
+ }
1954
+ }
1955
+ }
1956
+ }
1957
+ /**
1958
+ * Details of the natural person entity to create. Required if `structure` is equal
1959
+ * to `natural_person`. Natural people entities should be submitted with
1960
+ * `social_security_number` or `individual_taxpayer_identification_number`
1961
+ * identification methods.
1962
+ */
1963
+ interface NaturalPerson {
1964
+ /**
1965
+ * The individual's address.
1966
+ */
1967
+ address: NaturalPerson.Address;
1968
+ /**
1969
+ * The person's date of birth in YYYY-MM-DD format.
1970
+ */
1971
+ date_of_birth: string;
1972
+ /**
1973
+ * A means of verifying the person's identity.
1974
+ */
1975
+ identification: NaturalPerson.Identification;
1976
+ /**
1977
+ * The person's legal name.
1978
+ */
1979
+ name: string;
1980
+ /**
1981
+ * The identification method for an individual can only be a passport, driver's
1982
+ * license, or other document if you've confirmed the individual does not have a US
1983
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
1984
+ * Number).
1985
+ */
1986
+ confirmed_no_us_tax_id?: boolean;
1987
+ }
1988
+ namespace NaturalPerson {
1989
+ /**
1990
+ * The individual's address.
1991
+ */
1992
+ interface Address {
1993
+ /**
1994
+ * The city of the address.
1995
+ */
1996
+ city: string;
1997
+ /**
1998
+ * The first line of the address. This is usually the street number and street.
1999
+ */
2000
+ line1: string;
2001
+ /**
2002
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2003
+ * the address.
2004
+ */
2005
+ state: string;
2006
+ /**
2007
+ * The ZIP code of the address.
2008
+ */
2009
+ zip: string;
2010
+ /**
2011
+ * The second line of the address. This might be the floor or room number.
2012
+ */
2013
+ line2?: string;
2014
+ }
2015
+ /**
2016
+ * A means of verifying the person's identity.
2017
+ */
2018
+ interface Identification {
2019
+ /**
2020
+ * A method that can be used to verify the individual's identity.
2021
+ */
2022
+ method:
2023
+ | 'social_security_number'
2024
+ | 'individual_taxpayer_identification_number'
2025
+ | 'passport'
2026
+ | 'drivers_license'
2027
+ | 'other';
2028
+ /**
2029
+ * An identification number that can be used to verify the individual's identity,
2030
+ * such as a social security number.
2031
+ */
2032
+ number: string;
2033
+ /**
2034
+ * Information about the United States driver's license used for identification.
2035
+ * Required if `method` is equal to `drivers_license`.
2036
+ */
2037
+ drivers_license?: Identification.DriversLicense;
2038
+ /**
2039
+ * Information about the identification document provided. Required if `method` is
2040
+ * equal to `other`.
2041
+ */
2042
+ other?: Identification.Other;
2043
+ /**
2044
+ * Information about the passport used for identification. Required if `method` is
2045
+ * equal to `passport`.
2046
+ */
2047
+ passport?: Identification.Passport;
2048
+ }
2049
+ namespace Identification {
2050
+ /**
2051
+ * Information about the passport used for identification. Required if `method` is
2052
+ * equal to `passport`.
2053
+ */
2054
+ interface Passport {
2055
+ /**
2056
+ * The country that issued the passport.
2057
+ */
2058
+ country: string;
2059
+ /**
2060
+ * The passport's expiration date in YYYY-MM-DD format.
2061
+ */
2062
+ expiration_date: string;
2063
+ /**
2064
+ * The identifier of the File containing the passport.
2065
+ */
2066
+ file_id: string;
2067
+ }
2068
+ /**
2069
+ * Information about the United States driver's license used for identification.
2070
+ * Required if `method` is equal to `drivers_license`.
2071
+ */
2072
+ interface DriversLicense {
2073
+ /**
2074
+ * The driver's license's expiration date in YYYY-MM-DD format.
2075
+ */
2076
+ expiration_date: string;
2077
+ /**
2078
+ * The identifier of the File containing the driver's license.
2079
+ */
2080
+ file_id: string;
2081
+ /**
2082
+ * The state that issued the provided driver's license.
2083
+ */
2084
+ state: string;
2085
+ }
2086
+ /**
2087
+ * Information about the identification document provided. Required if `method` is
2088
+ * equal to `other`.
2089
+ */
2090
+ interface Other {
2091
+ /**
2092
+ * The two-character ISO 3166-1 code representing the country that issued the
2093
+ * document.
2094
+ */
2095
+ country: string;
2096
+ /**
2097
+ * A description of the document submitted.
2098
+ */
2099
+ description: string;
2100
+ /**
2101
+ * The identifier of the File containing the document.
2102
+ */
2103
+ file_id: string;
2104
+ /**
2105
+ * The document's expiration date in YYYY-MM-DD format.
2106
+ */
2107
+ expiration_date?: string;
2108
+ }
2109
+ }
2110
+ }
2111
+ interface SupplementalDocuments {
2112
+ /**
2113
+ * The identifier of the File containing the document.
2114
+ */
2115
+ file_id: string;
2116
+ }
2117
+ /**
2118
+ * Details of the trust entity to create. Required if `structure` is equal to
2119
+ * `trust`.
2120
+ */
2121
+ interface Trust {
2122
+ /**
2123
+ * The trust's address.
2124
+ */
2125
+ address: Trust.Address;
2126
+ /**
2127
+ * Whether the trust is `revocable` or `irrevocable`. Irrevocable trusts require
2128
+ * their own Employer Identification Number. Revocable trusts require information
2129
+ * about the individual `grantor` who created the trust.
2130
+ */
2131
+ category: 'revocable' | 'irrevocable';
2132
+ /**
2133
+ * The legal name of the trust.
2134
+ */
2135
+ name: string;
2136
+ /**
2137
+ * The trustees of the trust.
2138
+ */
2139
+ trustees: Array<Trust.Trustees>;
2140
+ /**
2141
+ * The identifier of the File containing the formation document of the trust.
2142
+ */
2143
+ formation_document_file_id?: string;
2144
+ /**
2145
+ * The two-letter United States Postal Service (USPS) abbreviation for the state in
2146
+ * which the trust was formed.
2147
+ */
2148
+ formation_state?: string;
2149
+ /**
2150
+ * The grantor of the trust. Required if `category` is equal to `revocable`.
2151
+ */
2152
+ grantor?: Trust.Grantor;
2153
+ /**
2154
+ * The Employer Identification Number (EIN) for the trust. Required if `category`
2155
+ * is equal to `irrevocable`.
2156
+ */
2157
+ tax_identifier?: string;
2158
+ }
2159
+ namespace Trust {
2160
+ /**
2161
+ * The trust's address.
2162
+ */
2163
+ interface Address {
2164
+ /**
2165
+ * The city of the address.
2166
+ */
2167
+ city: string;
2168
+ /**
2169
+ * The first line of the address. This is usually the street number and street.
2170
+ */
2171
+ line1: string;
2172
+ /**
2173
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2174
+ * the address.
2175
+ */
2176
+ state: string;
2177
+ /**
2178
+ * The ZIP code of the address.
2179
+ */
2180
+ zip: string;
2181
+ /**
2182
+ * The second line of the address. This might be the floor or room number.
2183
+ */
2184
+ line2?: string;
2185
+ }
2186
+ interface Trustees {
2187
+ /**
2188
+ * The structure of the trustee.
2189
+ */
2190
+ structure: 'individual';
2191
+ /**
2192
+ * Details of the individual trustee. Required when the trustee `structure` is
2193
+ * equal to `individual`.
2194
+ */
2195
+ individual?: Trustees.Individual;
2196
+ }
2197
+ namespace Trustees {
2198
+ /**
2199
+ * Details of the individual trustee. Required when the trustee `structure` is
2200
+ * equal to `individual`.
2201
+ */
2202
+ interface Individual {
2203
+ /**
2204
+ * The individual's address.
2205
+ */
2206
+ address: Individual.Address;
2207
+ /**
2208
+ * The person's date of birth in YYYY-MM-DD format.
2209
+ */
2210
+ date_of_birth: string;
2211
+ /**
2212
+ * A means of verifying the person's identity.
2213
+ */
2214
+ identification: Individual.Identification;
2215
+ /**
2216
+ * The person's legal name.
2217
+ */
2218
+ name: string;
2219
+ /**
2220
+ * The identification method for an individual can only be a passport, driver's
2221
+ * license, or other document if you've confirmed the individual does not have a US
2222
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
2223
+ * Number).
2224
+ */
2225
+ confirmed_no_us_tax_id?: boolean;
2226
+ }
2227
+ namespace Individual {
2228
+ /**
2229
+ * The individual's address.
2230
+ */
2231
+ interface Address {
2232
+ /**
2233
+ * The city of the address.
2234
+ */
2235
+ city: string;
2236
+ /**
2237
+ * The first line of the address. This is usually the street number and street.
2238
+ */
2239
+ line1: string;
2240
+ /**
2241
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2242
+ * the address.
2243
+ */
2244
+ state: string;
2245
+ /**
2246
+ * The ZIP code of the address.
2247
+ */
2248
+ zip: string;
2249
+ /**
2250
+ * The second line of the address. This might be the floor or room number.
2251
+ */
2252
+ line2?: string;
2253
+ }
2254
+ /**
2255
+ * A means of verifying the person's identity.
2256
+ */
2257
+ interface Identification {
2258
+ /**
2259
+ * A method that can be used to verify the individual's identity.
2260
+ */
2261
+ method:
2262
+ | 'social_security_number'
2263
+ | 'individual_taxpayer_identification_number'
2264
+ | 'passport'
2265
+ | 'drivers_license'
2266
+ | 'other';
2267
+ /**
2268
+ * An identification number that can be used to verify the individual's identity,
2269
+ * such as a social security number.
2270
+ */
2271
+ number: string;
2272
+ /**
2273
+ * Information about the United States driver's license used for identification.
2274
+ * Required if `method` is equal to `drivers_license`.
2275
+ */
2276
+ drivers_license?: Identification.DriversLicense;
2277
+ /**
2278
+ * Information about the identification document provided. Required if `method` is
2279
+ * equal to `other`.
2280
+ */
2281
+ other?: Identification.Other;
2282
+ /**
2283
+ * Information about the passport used for identification. Required if `method` is
2284
+ * equal to `passport`.
2285
+ */
2286
+ passport?: Identification.Passport;
2287
+ }
2288
+ namespace Identification {
2289
+ /**
2290
+ * Information about the passport used for identification. Required if `method` is
2291
+ * equal to `passport`.
2292
+ */
2293
+ interface Passport {
2294
+ /**
2295
+ * The country that issued the passport.
2296
+ */
2297
+ country: string;
2298
+ /**
2299
+ * The passport's expiration date in YYYY-MM-DD format.
2300
+ */
2301
+ expiration_date: string;
2302
+ /**
2303
+ * The identifier of the File containing the passport.
2304
+ */
2305
+ file_id: string;
2306
+ }
2307
+ /**
2308
+ * Information about the United States driver's license used for identification.
2309
+ * Required if `method` is equal to `drivers_license`.
2310
+ */
2311
+ interface DriversLicense {
2312
+ /**
2313
+ * The driver's license's expiration date in YYYY-MM-DD format.
2314
+ */
2315
+ expiration_date: string;
2316
+ /**
2317
+ * The identifier of the File containing the driver's license.
2318
+ */
2319
+ file_id: string;
2320
+ /**
2321
+ * The state that issued the provided driver's license.
2322
+ */
2323
+ state: string;
2324
+ }
2325
+ /**
2326
+ * Information about the identification document provided. Required if `method` is
2327
+ * equal to `other`.
2328
+ */
2329
+ interface Other {
2330
+ /**
2331
+ * The two-character ISO 3166-1 code representing the country that issued the
2332
+ * document.
2333
+ */
2334
+ country: string;
2335
+ /**
2336
+ * A description of the document submitted.
2337
+ */
2338
+ description: string;
2339
+ /**
2340
+ * The identifier of the File containing the document.
2341
+ */
2342
+ file_id: string;
2343
+ /**
2344
+ * The document's expiration date in YYYY-MM-DD format.
2345
+ */
2346
+ expiration_date?: string;
2347
+ }
2348
+ }
2349
+ }
2350
+ }
2351
+ /**
2352
+ * The grantor of the trust. Required if `category` is equal to `revocable`.
2353
+ */
2354
+ interface Grantor {
2355
+ /**
2356
+ * The individual's address.
2357
+ */
2358
+ address: Grantor.Address;
2359
+ /**
2360
+ * The person's date of birth in YYYY-MM-DD format.
2361
+ */
2362
+ date_of_birth: string;
2363
+ /**
2364
+ * A means of verifying the person's identity.
2365
+ */
2366
+ identification: Grantor.Identification;
2367
+ /**
2368
+ * The person's legal name.
2369
+ */
2370
+ name: string;
2371
+ /**
2372
+ * The identification method for an individual can only be a passport, driver's
2373
+ * license, or other document if you've confirmed the individual does not have a US
2374
+ * tax id (either a Social Security Number or Individual Taxpayer Identification
2375
+ * Number).
2376
+ */
2377
+ confirmed_no_us_tax_id?: boolean;
2378
+ }
2379
+ namespace Grantor {
2380
+ /**
2381
+ * The individual's address.
2382
+ */
2383
+ interface Address {
2384
+ /**
2385
+ * The city of the address.
2386
+ */
2387
+ city: string;
2388
+ /**
2389
+ * The first line of the address. This is usually the street number and street.
2390
+ */
2391
+ line1: string;
2392
+ /**
2393
+ * The two-letter United States Postal Service (USPS) abbreviation for the state of
2394
+ * the address.
2395
+ */
2396
+ state: string;
2397
+ /**
2398
+ * The ZIP code of the address.
2399
+ */
2400
+ zip: string;
2401
+ /**
2402
+ * The second line of the address. This might be the floor or room number.
2403
+ */
2404
+ line2?: string;
2405
+ }
2406
+ /**
2407
+ * A means of verifying the person's identity.
2408
+ */
2409
+ interface Identification {
2410
+ /**
2411
+ * A method that can be used to verify the individual's identity.
2412
+ */
2413
+ method:
2414
+ | 'social_security_number'
2415
+ | 'individual_taxpayer_identification_number'
2416
+ | 'passport'
2417
+ | 'drivers_license'
2418
+ | 'other';
2419
+ /**
2420
+ * An identification number that can be used to verify the individual's identity,
2421
+ * such as a social security number.
2422
+ */
2423
+ number: string;
2424
+ /**
2425
+ * Information about the United States driver's license used for identification.
2426
+ * Required if `method` is equal to `drivers_license`.
2427
+ */
2428
+ drivers_license?: Identification.DriversLicense;
2429
+ /**
2430
+ * Information about the identification document provided. Required if `method` is
2431
+ * equal to `other`.
2432
+ */
2433
+ other?: Identification.Other;
2434
+ /**
2435
+ * Information about the passport used for identification. Required if `method` is
2436
+ * equal to `passport`.
2437
+ */
2438
+ passport?: Identification.Passport;
2439
+ }
2440
+ namespace Identification {
2441
+ /**
2442
+ * Information about the passport used for identification. Required if `method` is
2443
+ * equal to `passport`.
2444
+ */
2445
+ interface Passport {
2446
+ /**
2447
+ * The country that issued the passport.
2448
+ */
2449
+ country: string;
2450
+ /**
2451
+ * The passport's expiration date in YYYY-MM-DD format.
2452
+ */
2453
+ expiration_date: string;
2454
+ /**
2455
+ * The identifier of the File containing the passport.
2456
+ */
2457
+ file_id: string;
2458
+ }
2459
+ /**
2460
+ * Information about the United States driver's license used for identification.
2461
+ * Required if `method` is equal to `drivers_license`.
2462
+ */
2463
+ interface DriversLicense {
2464
+ /**
2465
+ * The driver's license's expiration date in YYYY-MM-DD format.
2466
+ */
2467
+ expiration_date: string;
2468
+ /**
2469
+ * The identifier of the File containing the driver's license.
2470
+ */
2471
+ file_id: string;
2472
+ /**
2473
+ * The state that issued the provided driver's license.
2474
+ */
2475
+ state: string;
2476
+ }
2477
+ /**
2478
+ * Information about the identification document provided. Required if `method` is
2479
+ * equal to `other`.
2480
+ */
2481
+ interface Other {
2482
+ /**
2483
+ * The two-character ISO 3166-1 code representing the country that issued the
2484
+ * document.
2485
+ */
2486
+ country: string;
2487
+ /**
2488
+ * A description of the document submitted.
2489
+ */
2490
+ description: string;
2491
+ /**
2492
+ * The identifier of the File containing the document.
2493
+ */
2494
+ file_id: string;
2495
+ /**
2496
+ * The document's expiration date in YYYY-MM-DD format.
2497
+ */
2498
+ expiration_date?: string;
2499
+ }
2500
+ }
2501
+ }
2502
+ }
2503
+ }
2504
+ export interface EntityListParams extends PageParams {
2505
+ /**
2506
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
2507
+ * timestamp.
2508
+ */
2509
+ 'created_at.after'?: string;
2510
+ /**
2511
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
2512
+ * timestamp.
2513
+ */
2514
+ 'created_at.before'?: string;
2515
+ /**
2516
+ * Return results on or after this
2517
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
2518
+ */
2519
+ 'created_at.on_or_after'?: string;
2520
+ /**
2521
+ * Return results on or before this
2522
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
2523
+ */
2524
+ 'created_at.on_or_before'?: string;
2525
+ }
2526
+ export declare namespace EntityListParams {
2527
+ interface CreatedAt {
2528
+ /**
2529
+ * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
2530
+ * timestamp.
2531
+ */
2532
+ after?: string;
2533
+ /**
2534
+ * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
2535
+ * timestamp.
2536
+ */
2537
+ before?: string;
2538
+ /**
2539
+ * Return results on or after this
2540
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
2541
+ */
2542
+ on_or_after?: string;
2543
+ /**
2544
+ * Return results on or before this
2545
+ * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
2546
+ */
2547
+ on_or_before?: string;
2548
+ }
1382
2549
  }
1383
- export interface EntityListParams extends PageParams {}
2550
+ //# sourceMappingURL=entities.d.ts.map