increase 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +10 -0
- package/.prettierrc +6 -0
- package/.stats.yml +1 -0
- package/LICENSE +201 -0
- package/README.md +211 -0
- package/api.md +477 -0
- package/bin/check-test-server +50 -0
- package/build +12 -0
- package/check-version.ts +15 -0
- package/core.ts +908 -0
- package/dist/cjs/check-version.d.ts +1 -0
- package/dist/cjs/check-version.js +21 -0
- package/dist/cjs/check-version.js.map +1 -0
- package/dist/cjs/core.d.ts +262 -0
- package/dist/cjs/core.js +978 -0
- package/dist/cjs/core.js.map +1 -0
- package/dist/cjs/fetch-polyfill.d.ts +5 -0
- package/dist/cjs/fetch-polyfill.js +55 -0
- package/dist/cjs/fetch-polyfill.js.map +1 -0
- package/dist/cjs/index.d.ts +201 -0
- package/dist/cjs/index.js +180 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/pagination.d.ts +28 -0
- package/dist/cjs/pagination.js +30 -0
- package/dist/cjs/pagination.js.map +1 -0
- package/dist/cjs/resource.d.ts +11 -0
- package/dist/cjs/resource.js +17 -0
- package/dist/cjs/resource.js.map +1 -0
- package/dist/cjs/resources/account-numbers.d.ts +103 -0
- package/dist/cjs/resources/account-numbers.js +37 -0
- package/dist/cjs/resources/account-numbers.js.map +1 -0
- package/dist/cjs/resources/account-statements.d.ts +99 -0
- package/dist/cjs/resources/account-statements.js +25 -0
- package/dist/cjs/resources/account-statements.js.map +1 -0
- package/dist/cjs/resources/account-transfers.d.ts +189 -0
- package/dist/cjs/resources/account-transfers.js +43 -0
- package/dist/cjs/resources/account-transfers.js.map +1 -0
- package/dist/cjs/resources/accounts.d.ts +133 -0
- package/dist/cjs/resources/accounts.js +43 -0
- package/dist/cjs/resources/accounts.js.map +1 -0
- package/dist/cjs/resources/ach-prenotifications.d.ts +188 -0
- package/dist/cjs/resources/ach-prenotifications.js +35 -0
- package/dist/cjs/resources/ach-prenotifications.js.map +1 -0
- package/dist/cjs/resources/ach-transfers.d.ts +375 -0
- package/dist/cjs/resources/ach-transfers.js +43 -0
- package/dist/cjs/resources/ach-transfers.js.map +1 -0
- package/dist/cjs/resources/card-disputes.d.ts +143 -0
- package/dist/cjs/resources/card-disputes.js +31 -0
- package/dist/cjs/resources/card-disputes.js.map +1 -0
- package/dist/cjs/resources/card-profiles.d.ts +183 -0
- package/dist/cjs/resources/card-profiles.js +31 -0
- package/dist/cjs/resources/card-profiles.js.map +1 -0
- package/dist/cjs/resources/cards.d.ts +316 -0
- package/dist/cjs/resources/cards.js +43 -0
- package/dist/cjs/resources/cards.js.map +1 -0
- package/dist/cjs/resources/check-deposits.d.ts +241 -0
- package/dist/cjs/resources/check-deposits.js +31 -0
- package/dist/cjs/resources/check-deposits.js.map +1 -0
- package/dist/cjs/resources/check-transfers.d.ts +331 -0
- package/dist/cjs/resources/check-transfers.js +49 -0
- package/dist/cjs/resources/check-transfers.js.map +1 -0
- package/dist/cjs/resources/declined-transactions.d.ts +424 -0
- package/dist/cjs/resources/declined-transactions.js +29 -0
- package/dist/cjs/resources/declined-transactions.js.map +1 -0
- package/dist/cjs/resources/digital-wallet-tokens.d.ts +85 -0
- package/dist/cjs/resources/digital-wallet-tokens.js +29 -0
- package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -0
- package/dist/cjs/resources/documents.d.ts +87 -0
- package/dist/cjs/resources/documents.js +25 -0
- package/dist/cjs/resources/documents.js.map +1 -0
- package/dist/cjs/resources/entities/entities.d.ts +1383 -0
- package/dist/cjs/resources/entities/entities.js +36 -0
- package/dist/cjs/resources/entities/entities.js.map +1 -0
- package/dist/cjs/resources/entities/index.d.ts +2 -0
- package/dist/cjs/resources/entities/index.js +12 -0
- package/dist/cjs/resources/entities/index.js.map +1 -0
- package/dist/cjs/resources/entities/supplemental-documents.d.ts +19 -0
- package/dist/cjs/resources/entities/supplemental-documents.js +15 -0
- package/dist/cjs/resources/entities/supplemental-documents.js.map +1 -0
- package/dist/cjs/resources/event-subscriptions.d.ts +196 -0
- package/dist/cjs/resources/event-subscriptions.js +37 -0
- package/dist/cjs/resources/event-subscriptions.js.map +1 -0
- package/dist/cjs/resources/events.d.ts +183 -0
- package/dist/cjs/resources/events.js +25 -0
- package/dist/cjs/resources/events.js.map +1 -0
- package/dist/cjs/resources/external-accounts.d.ts +121 -0
- package/dist/cjs/resources/external-accounts.js +37 -0
- package/dist/cjs/resources/external-accounts.js.map +1 -0
- package/dist/cjs/resources/files.d.ts +148 -0
- package/dist/cjs/resources/files.js +34 -0
- package/dist/cjs/resources/files.js.map +1 -0
- package/dist/cjs/resources/groups.d.ts +37 -0
- package/dist/cjs/resources/groups.js +15 -0
- package/dist/cjs/resources/groups.js.map +1 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +106 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js +35 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +124 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js +29 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/index.d.ts +163 -0
- package/dist/cjs/resources/index.js +478 -0
- package/dist/cjs/resources/index.js.map +1 -0
- package/dist/cjs/resources/limits.d.ts +105 -0
- package/dist/cjs/resources/limits.js +37 -0
- package/dist/cjs/resources/limits.js.map +1 -0
- package/dist/cjs/resources/oauth-connections.d.ts +50 -0
- package/dist/cjs/resources/oauth-connections.js +25 -0
- package/dist/cjs/resources/oauth-connections.js.map +1 -0
- package/dist/cjs/resources/pending-transactions.d.ts +397 -0
- package/dist/cjs/resources/pending-transactions.js +29 -0
- package/dist/cjs/resources/pending-transactions.js.map +1 -0
- package/dist/cjs/resources/real-time-decisions.d.ts +289 -0
- package/dist/cjs/resources/real-time-decisions.js +21 -0
- package/dist/cjs/resources/real-time-decisions.js.map +1 -0
- package/dist/cjs/resources/routing-numbers.d.ts +49 -0
- package/dist/cjs/resources/routing-numbers.js +21 -0
- package/dist/cjs/resources/routing-numbers.js.map +1 -0
- package/dist/cjs/resources/shared.d.ts +15 -0
- package/dist/cjs/resources/shared.js +4 -0
- package/dist/cjs/resources/shared.js.map +1 -0
- package/dist/cjs/resources/simulations/account-statements.d.ts +19 -0
- package/dist/cjs/resources/simulations/account-statements.js +16 -0
- package/dist/cjs/resources/simulations/account-statements.js.map +1 -0
- package/dist/cjs/resources/simulations/account-transfers.d.ts +15 -0
- package/dist/cjs/resources/simulations/account-transfers.js +18 -0
- package/dist/cjs/resources/simulations/account-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/ach-transfers.d.ts +1488 -0
- package/dist/cjs/resources/simulations/ach-transfers.js +39 -0
- package/dist/cjs/resources/simulations/ach-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/card-disputes.d.ts +26 -0
- package/dist/cjs/resources/simulations/card-disputes.js +18 -0
- package/dist/cjs/resources/simulations/card-disputes.js.map +1 -0
- package/dist/cjs/resources/simulations/card-refunds.d.ts +20 -0
- package/dist/cjs/resources/simulations/card-refunds.js +16 -0
- package/dist/cjs/resources/simulations/card-refunds.js.map +1 -0
- package/dist/cjs/resources/simulations/cards.d.ts +793 -0
- package/dist/cjs/resources/simulations/cards.js +31 -0
- package/dist/cjs/resources/simulations/cards.js.map +1 -0
- package/dist/cjs/resources/simulations/check-deposits.d.ts +30 -0
- package/dist/cjs/resources/simulations/check-deposits.js +31 -0
- package/dist/cjs/resources/simulations/check-deposits.js.map +1 -0
- package/dist/cjs/resources/simulations/check-transfers.d.ts +22 -0
- package/dist/cjs/resources/simulations/check-transfers.js +24 -0
- package/dist/cjs/resources/simulations/check-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +43 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js +16 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.js.map +1 -0
- package/dist/cjs/resources/simulations/documents.d.ts +18 -0
- package/dist/cjs/resources/simulations/documents.js +15 -0
- package/dist/cjs/resources/simulations/documents.js.map +1 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +101 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js +16 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/simulations/index.d.ts +20 -0
- package/dist/cjs/resources/simulations/index.js +4 -0
- package/dist/cjs/resources/simulations/index.js.map +1 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +1431 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js +16 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -0
- package/dist/cjs/resources/simulations/simulations.d.ts +29 -0
- package/dist/cjs/resources/simulations/simulations.js +44 -0
- package/dist/cjs/resources/simulations/simulations.js.map +1 -0
- package/dist/cjs/resources/simulations/wire-transfers.d.ts +1104 -0
- package/dist/cjs/resources/simulations/wire-transfers.js +15 -0
- package/dist/cjs/resources/simulations/wire-transfers.js.map +1 -0
- package/dist/cjs/resources/transactions.d.ts +1101 -0
- package/dist/cjs/resources/transactions.js +25 -0
- package/dist/cjs/resources/transactions.js.map +1 -0
- package/dist/cjs/resources/wire-drawdown-requests.d.ts +148 -0
- package/dist/cjs/resources/wire-drawdown-requests.js +35 -0
- package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -0
- package/dist/cjs/resources/wire-transfers.d.ts +310 -0
- package/dist/cjs/resources/wire-transfers.js +60 -0
- package/dist/cjs/resources/wire-transfers.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.js +104 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.js +101 -0
- package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.js +146 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.js +119 -0
- package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +125 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.js +159 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.js +108 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.js +97 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/cards.test.js +138 -0
- package/dist/cjs/tests/api-resources/cards.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.js +113 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.js +172 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.js +105 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +103 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/documents.test.js +101 -0
- package/dist/cjs/tests/api-resources/documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.js +280 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +49 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js +109 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/events.test.js +101 -0
- package/dist/cjs/tests/api-resources/events.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.js +113 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/files.test.js +117 -0
- package/dist/cjs/tests/api-resources/files.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/groups.test.js +54 -0
- package/dist/cjs/tests/api-resources/groups.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +90 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +83 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/limits.test.js +100 -0
- package/dist/cjs/tests/api-resources/limits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.js +78 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.js +97 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js +71 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.js +55 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +60 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +92 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +56 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.js +70 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +86 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +73 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.js +49 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +81 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +62 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +70 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.js +109 -0
- package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +110 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.js +184 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -0
- package/dist/cjs/tests/form.test.d.ts +1 -0
- package/dist/cjs/tests/form.test.js +60 -0
- package/dist/cjs/tests/form.test.js.map +1 -0
- package/dist/cjs/tests/index.test.d.ts +1 -0
- package/dist/cjs/tests/index.test.js +44 -0
- package/dist/cjs/tests/index.test.js.map +1 -0
- package/dist/cjs/tests/responses.test.d.ts +1 -0
- package/dist/cjs/tests/responses.test.js +59 -0
- package/dist/cjs/tests/responses.test.js.map +1 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +5 -0
- package/dist/cjs/version.js.map +1 -0
- package/fetch-polyfill.ts +69 -0
- package/index.ts +276 -0
- package/jest.config.js +8 -0
- package/package.json +47 -0
- package/pagination.ts +58 -0
- package/resource.ts +24 -0
- package/resources/account-numbers.ts +141 -0
- package/resources/account-statements.ts +132 -0
- package/resources/account-transfers.ts +244 -0
- package/resources/accounts.ts +179 -0
- package/resources/ach-prenotifications.ts +242 -0
- package/resources/ach-transfers.ts +465 -0
- package/resources/card-disputes.ts +187 -0
- package/resources/card-profiles.ts +236 -0
- package/resources/cards.ts +398 -0
- package/resources/check-deposits.ts +303 -0
- package/resources/check-transfers.ts +422 -0
- package/resources/declined-transactions.ts +547 -0
- package/resources/digital-wallet-tokens.ts +115 -0
- package/resources/documents.ts +119 -0
- package/resources/entities/entities.ts +1668 -0
- package/resources/entities/index.ts +4 -0
- package/resources/entities/supplemental-documents.ts +25 -0
- package/resources/event-subscriptions.ts +232 -0
- package/resources/events.ts +215 -0
- package/resources/external-accounts.ts +162 -0
- package/resources/files.ts +188 -0
- package/resources/groups.ts +47 -0
- package/resources/inbound-ach-transfer-returns.ts +142 -0
- package/resources/inbound-wire-drawdown-requests.ts +168 -0
- package/resources/index.ts +165 -0
- package/resources/limits.ts +144 -0
- package/resources/oauth-connections.ts +74 -0
- package/resources/pending-transactions.ts +491 -0
- package/resources/real-time-decisions.ts +345 -0
- package/resources/routing-numbers.ts +62 -0
- package/resources/shared.ts +17 -0
- package/resources/simulations/account-statements.ts +25 -0
- package/resources/simulations/account-transfers.ts +20 -0
- package/resources/simulations/ach-transfers.ts +1873 -0
- package/resources/simulations/card-disputes.ts +33 -0
- package/resources/simulations/card-refunds.ts +26 -0
- package/resources/simulations/cards.ts +979 -0
- package/resources/simulations/check-deposits.ts +41 -0
- package/resources/simulations/check-transfers.ts +30 -0
- package/resources/simulations/digital-wallet-token-requests.ts +52 -0
- package/resources/simulations/documents.ts +24 -0
- package/resources/simulations/inbound-wire-drawdown-requests.ts +126 -0
- package/resources/simulations/index.ts +22 -0
- package/resources/simulations/real-time-payments-transfers.ts +1809 -0
- package/resources/simulations/simulations.ts +32 -0
- package/resources/simulations/wire-transfers.ts +1391 -0
- package/resources/transactions.ts +1393 -0
- package/resources/wire-drawdown-requests.ts +195 -0
- package/resources/wire-transfers.ts +399 -0
- package/tests/api-resources/account-numbers.test.ts +67 -0
- package/tests/api-resources/account-statements.test.ts +64 -0
- package/tests/api-resources/account-transfers.test.ts +109 -0
- package/tests/api-resources/accounts.test.ts +82 -0
- package/tests/api-resources/ach-prenotifications.test.ts +86 -0
- package/tests/api-resources/ach-transfers.test.ts +120 -0
- package/tests/api-resources/card-disputes.test.ts +71 -0
- package/tests/api-resources/card-profiles.test.ts +60 -0
- package/tests/api-resources/cards.test.ts +101 -0
- package/tests/api-resources/check-deposits.test.ts +74 -0
- package/tests/api-resources/check-transfers.test.ts +135 -0
- package/tests/api-resources/declined-transactions.test.ts +68 -0
- package/tests/api-resources/digital-wallet-tokens.test.ts +64 -0
- package/tests/api-resources/documents.test.ts +64 -0
- package/tests/api-resources/entities/entities.test.ts +243 -0
- package/tests/api-resources/entities/supplemental-documents.test.ts +12 -0
- package/tests/api-resources/event-subscriptions.test.ts +69 -0
- package/tests/api-resources/events.test.ts +64 -0
- package/tests/api-resources/external-accounts.test.ts +76 -0
- package/tests/api-resources/files.test.ts +81 -0
- package/tests/api-resources/groups.test.ts +17 -0
- package/tests/api-resources/inbound-ach-transfer-returns.test.ts +53 -0
- package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +46 -0
- package/tests/api-resources/limits.test.ts +63 -0
- package/tests/api-resources/oauth-connections.test.ts +41 -0
- package/tests/api-resources/pending-transactions.test.ts +58 -0
- package/tests/api-resources/real-time-decisions.test.ts +34 -0
- package/tests/api-resources/routing-numbers.test.ts +18 -0
- package/tests/api-resources/simulations/account-statements.test.ts +12 -0
- package/tests/api-resources/simulations/account-transfers.test.ts +23 -0
- package/tests/api-resources/simulations/ach-transfers.test.ts +52 -0
- package/tests/api-resources/simulations/card-disputes.test.ts +19 -0
- package/tests/api-resources/simulations/card-refunds.test.ts +12 -0
- package/tests/api-resources/simulations/cards.test.ts +33 -0
- package/tests/api-resources/simulations/check-deposits.test.ts +49 -0
- package/tests/api-resources/simulations/check-transfers.test.ts +34 -0
- package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +12 -0
- package/tests/api-resources/simulations/documents.test.ts +12 -0
- package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +44 -0
- package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +25 -0
- package/tests/api-resources/simulations/wire-transfers.test.ts +33 -0
- package/tests/api-resources/transactions.test.ts +70 -0
- package/tests/api-resources/wire-drawdown-requests.test.ts +73 -0
- package/tests/api-resources/wire-transfers.test.ts +147 -0
- package/tests/form.test.ts +27 -0
- package/tests/index.test.ts +47 -0
- package/tests/responses.test.ts +25 -0
- package/tsconfig.cjs.json +8 -0
- package/tsconfig.json +37 -0
- package/typings/digest-fetch/index.d.ts +33 -0
- package/version.ts +1 -0
|
@@ -0,0 +1,1383 @@
|
|
|
1
|
+
import * as Core from '../../core';
|
|
2
|
+
import { APIResource } from '../../resource';
|
|
3
|
+
import { Page, PageParams } from '../../pagination';
|
|
4
|
+
import { SupplementalDocuments } from './supplemental-documents';
|
|
5
|
+
export declare class Entities extends APIResource {
|
|
6
|
+
supplementalDocuments: SupplementalDocuments;
|
|
7
|
+
/**
|
|
8
|
+
* Create an Entity
|
|
9
|
+
*/
|
|
10
|
+
create(body: EntityCreateParams, options?: Core.RequestOptions): Promise<Core.APIResponse<Entity>>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve an Entity
|
|
13
|
+
*/
|
|
14
|
+
retrieve(entityId: string, options?: Core.RequestOptions): Promise<Core.APIResponse<Entity>>;
|
|
15
|
+
/**
|
|
16
|
+
* List Entities
|
|
17
|
+
*/
|
|
18
|
+
list(query?: EntityListParams, options?: Core.RequestOptions): Core.PagePromise<EntitiesPage>;
|
|
19
|
+
list(options?: Core.RequestOptions): Core.PagePromise<EntitiesPage>;
|
|
20
|
+
}
|
|
21
|
+
export declare class EntitiesPage extends Page<Entity> {}
|
|
22
|
+
/**
|
|
23
|
+
* Entities are the legal entities that own accounts. They can be people,
|
|
24
|
+
* corporations, partnerships, or trusts.
|
|
25
|
+
*/
|
|
26
|
+
export interface Entity {
|
|
27
|
+
/**
|
|
28
|
+
* Details of the corporation entity. Will be present if `structure` is equal to
|
|
29
|
+
* `corporation`.
|
|
30
|
+
*/
|
|
31
|
+
corporation: Entity.Corporation | null;
|
|
32
|
+
/**
|
|
33
|
+
* The entity's description for display purposes.
|
|
34
|
+
*/
|
|
35
|
+
description: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* The entity's identifier.
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* Details of the joint entity. Will be present if `structure` is equal to `joint`.
|
|
42
|
+
*/
|
|
43
|
+
joint: Entity.Joint | null;
|
|
44
|
+
/**
|
|
45
|
+
* Details of the natural person entity. Will be present if `structure` is equal to
|
|
46
|
+
* `natural_person`.
|
|
47
|
+
*/
|
|
48
|
+
natural_person: Entity.NaturalPerson | null;
|
|
49
|
+
/**
|
|
50
|
+
* The relationship between your group and the entity.
|
|
51
|
+
*/
|
|
52
|
+
relationship: 'affiliated' | 'informational' | 'unaffiliated';
|
|
53
|
+
/**
|
|
54
|
+
* The entity's legal structure.
|
|
55
|
+
*/
|
|
56
|
+
structure: 'corporation' | 'natural_person' | 'joint' | 'trust';
|
|
57
|
+
/**
|
|
58
|
+
* Additional documentation associated with the entity.
|
|
59
|
+
*/
|
|
60
|
+
supplemental_documents: Array<Entity.SupplementalDocuments>;
|
|
61
|
+
/**
|
|
62
|
+
* Details of the trust entity. Will be present if `structure` is equal to `trust`.
|
|
63
|
+
*/
|
|
64
|
+
trust: Entity.Trust | null;
|
|
65
|
+
/**
|
|
66
|
+
* A constant representing the object's type. For this resource it will always be
|
|
67
|
+
* `entity`.
|
|
68
|
+
*/
|
|
69
|
+
type: 'entity';
|
|
70
|
+
}
|
|
71
|
+
export declare namespace Entity {
|
|
72
|
+
interface Corporation {
|
|
73
|
+
/**
|
|
74
|
+
* The corporation's address.
|
|
75
|
+
*/
|
|
76
|
+
address: Corporation.Address;
|
|
77
|
+
/**
|
|
78
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
79
|
+
* corporation.
|
|
80
|
+
*/
|
|
81
|
+
beneficial_owners: Array<Corporation.BeneficialOwners>;
|
|
82
|
+
/**
|
|
83
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the
|
|
84
|
+
* corporation's state of incorporation.
|
|
85
|
+
*/
|
|
86
|
+
incorporation_state: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* The legal name of the corporation.
|
|
89
|
+
*/
|
|
90
|
+
name: string;
|
|
91
|
+
/**
|
|
92
|
+
* The Employer Identification Number (EIN) for the corporation.
|
|
93
|
+
*/
|
|
94
|
+
tax_identifier: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* The website of the corporation.
|
|
97
|
+
*/
|
|
98
|
+
website: string | null;
|
|
99
|
+
}
|
|
100
|
+
namespace Corporation {
|
|
101
|
+
interface Address {
|
|
102
|
+
/**
|
|
103
|
+
* The city of the address.
|
|
104
|
+
*/
|
|
105
|
+
city: string;
|
|
106
|
+
/**
|
|
107
|
+
* The first line of the address.
|
|
108
|
+
*/
|
|
109
|
+
line1: string;
|
|
110
|
+
/**
|
|
111
|
+
* The second line of the address.
|
|
112
|
+
*/
|
|
113
|
+
line2: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
116
|
+
* the address.
|
|
117
|
+
*/
|
|
118
|
+
state: string;
|
|
119
|
+
/**
|
|
120
|
+
* The ZIP code of the address.
|
|
121
|
+
*/
|
|
122
|
+
zip: string;
|
|
123
|
+
}
|
|
124
|
+
interface BeneficialOwners {
|
|
125
|
+
/**
|
|
126
|
+
* This person's role or title within the entity.
|
|
127
|
+
*/
|
|
128
|
+
company_title: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Personal details for the beneficial owner.
|
|
131
|
+
*/
|
|
132
|
+
individual: BeneficialOwners.Individual;
|
|
133
|
+
/**
|
|
134
|
+
* Why this person is considered a beneficial owner of the entity.
|
|
135
|
+
*/
|
|
136
|
+
prong: 'ownership' | 'control';
|
|
137
|
+
}
|
|
138
|
+
namespace BeneficialOwners {
|
|
139
|
+
interface Individual {
|
|
140
|
+
/**
|
|
141
|
+
* The person's address.
|
|
142
|
+
*/
|
|
143
|
+
address: Individual.Address;
|
|
144
|
+
/**
|
|
145
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
146
|
+
*/
|
|
147
|
+
date_of_birth: string;
|
|
148
|
+
/**
|
|
149
|
+
* A means of verifying the person's identity.
|
|
150
|
+
*/
|
|
151
|
+
identification: Individual.Identification;
|
|
152
|
+
/**
|
|
153
|
+
* The person's legal name.
|
|
154
|
+
*/
|
|
155
|
+
name: string;
|
|
156
|
+
}
|
|
157
|
+
namespace Individual {
|
|
158
|
+
interface Address {
|
|
159
|
+
/**
|
|
160
|
+
* The city of the address.
|
|
161
|
+
*/
|
|
162
|
+
city: string;
|
|
163
|
+
/**
|
|
164
|
+
* The first line of the address.
|
|
165
|
+
*/
|
|
166
|
+
line1: string;
|
|
167
|
+
/**
|
|
168
|
+
* The second line of the address.
|
|
169
|
+
*/
|
|
170
|
+
line2: string | null;
|
|
171
|
+
/**
|
|
172
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
173
|
+
* the address.
|
|
174
|
+
*/
|
|
175
|
+
state: string;
|
|
176
|
+
/**
|
|
177
|
+
* The ZIP code of the address.
|
|
178
|
+
*/
|
|
179
|
+
zip: string;
|
|
180
|
+
}
|
|
181
|
+
interface Identification {
|
|
182
|
+
/**
|
|
183
|
+
* A method that can be used to verify the individual's identity.
|
|
184
|
+
*/
|
|
185
|
+
method:
|
|
186
|
+
| 'social_security_number'
|
|
187
|
+
| 'individual_taxpayer_identification_number'
|
|
188
|
+
| 'passport'
|
|
189
|
+
| 'drivers_license'
|
|
190
|
+
| 'other';
|
|
191
|
+
/**
|
|
192
|
+
* The last 4 digits of the identification number that can be used to verify the
|
|
193
|
+
* individual's identity.
|
|
194
|
+
*/
|
|
195
|
+
number_last4: string;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
interface NaturalPerson {
|
|
201
|
+
/**
|
|
202
|
+
* The person's address.
|
|
203
|
+
*/
|
|
204
|
+
address: NaturalPerson.Address;
|
|
205
|
+
/**
|
|
206
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
207
|
+
*/
|
|
208
|
+
date_of_birth: string;
|
|
209
|
+
/**
|
|
210
|
+
* A means of verifying the person's identity.
|
|
211
|
+
*/
|
|
212
|
+
identification: NaturalPerson.Identification;
|
|
213
|
+
/**
|
|
214
|
+
* The person's legal name.
|
|
215
|
+
*/
|
|
216
|
+
name: string;
|
|
217
|
+
}
|
|
218
|
+
namespace NaturalPerson {
|
|
219
|
+
interface Address {
|
|
220
|
+
/**
|
|
221
|
+
* The city of the address.
|
|
222
|
+
*/
|
|
223
|
+
city: string;
|
|
224
|
+
/**
|
|
225
|
+
* The first line of the address.
|
|
226
|
+
*/
|
|
227
|
+
line1: string;
|
|
228
|
+
/**
|
|
229
|
+
* The second line of the address.
|
|
230
|
+
*/
|
|
231
|
+
line2: string | null;
|
|
232
|
+
/**
|
|
233
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
234
|
+
* the address.
|
|
235
|
+
*/
|
|
236
|
+
state: string;
|
|
237
|
+
/**
|
|
238
|
+
* The ZIP code of the address.
|
|
239
|
+
*/
|
|
240
|
+
zip: string;
|
|
241
|
+
}
|
|
242
|
+
interface Identification {
|
|
243
|
+
/**
|
|
244
|
+
* A method that can be used to verify the individual's identity.
|
|
245
|
+
*/
|
|
246
|
+
method:
|
|
247
|
+
| 'social_security_number'
|
|
248
|
+
| 'individual_taxpayer_identification_number'
|
|
249
|
+
| 'passport'
|
|
250
|
+
| 'drivers_license'
|
|
251
|
+
| 'other';
|
|
252
|
+
/**
|
|
253
|
+
* The last 4 digits of the identification number that can be used to verify the
|
|
254
|
+
* individual's identity.
|
|
255
|
+
*/
|
|
256
|
+
number_last4: string;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
interface Joint {
|
|
260
|
+
/**
|
|
261
|
+
* The two individuals that share control of the entity.
|
|
262
|
+
*/
|
|
263
|
+
individuals: Array<Joint.Individuals>;
|
|
264
|
+
/**
|
|
265
|
+
* The entity's name.
|
|
266
|
+
*/
|
|
267
|
+
name: string;
|
|
268
|
+
}
|
|
269
|
+
namespace Joint {
|
|
270
|
+
interface Individuals {
|
|
271
|
+
/**
|
|
272
|
+
* The person's address.
|
|
273
|
+
*/
|
|
274
|
+
address: Individuals.Address;
|
|
275
|
+
/**
|
|
276
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
277
|
+
*/
|
|
278
|
+
date_of_birth: string;
|
|
279
|
+
/**
|
|
280
|
+
* A means of verifying the person's identity.
|
|
281
|
+
*/
|
|
282
|
+
identification: Individuals.Identification;
|
|
283
|
+
/**
|
|
284
|
+
* The person's legal name.
|
|
285
|
+
*/
|
|
286
|
+
name: string;
|
|
287
|
+
}
|
|
288
|
+
namespace Individuals {
|
|
289
|
+
interface Address {
|
|
290
|
+
/**
|
|
291
|
+
* The city of the address.
|
|
292
|
+
*/
|
|
293
|
+
city: string;
|
|
294
|
+
/**
|
|
295
|
+
* The first line of the address.
|
|
296
|
+
*/
|
|
297
|
+
line1: string;
|
|
298
|
+
/**
|
|
299
|
+
* The second line of the address.
|
|
300
|
+
*/
|
|
301
|
+
line2: string | null;
|
|
302
|
+
/**
|
|
303
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
304
|
+
* the address.
|
|
305
|
+
*/
|
|
306
|
+
state: string;
|
|
307
|
+
/**
|
|
308
|
+
* The ZIP code of the address.
|
|
309
|
+
*/
|
|
310
|
+
zip: string;
|
|
311
|
+
}
|
|
312
|
+
interface Identification {
|
|
313
|
+
/**
|
|
314
|
+
* A method that can be used to verify the individual's identity.
|
|
315
|
+
*/
|
|
316
|
+
method:
|
|
317
|
+
| 'social_security_number'
|
|
318
|
+
| 'individual_taxpayer_identification_number'
|
|
319
|
+
| 'passport'
|
|
320
|
+
| 'drivers_license'
|
|
321
|
+
| 'other';
|
|
322
|
+
/**
|
|
323
|
+
* The last 4 digits of the identification number that can be used to verify the
|
|
324
|
+
* individual's identity.
|
|
325
|
+
*/
|
|
326
|
+
number_last4: string;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
interface Trust {
|
|
331
|
+
/**
|
|
332
|
+
* The trust's address.
|
|
333
|
+
*/
|
|
334
|
+
address: Trust.Address;
|
|
335
|
+
/**
|
|
336
|
+
* Whether the trust is `revocable` or `irrevocable`.
|
|
337
|
+
*/
|
|
338
|
+
category: 'revocable' | 'irrevocable';
|
|
339
|
+
/**
|
|
340
|
+
* The ID for the File containing the formation document of the trust.
|
|
341
|
+
*/
|
|
342
|
+
formation_document_file_id: string | null;
|
|
343
|
+
/**
|
|
344
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state in
|
|
345
|
+
* which the trust was formed.
|
|
346
|
+
*/
|
|
347
|
+
formation_state: string | null;
|
|
348
|
+
/**
|
|
349
|
+
* The grantor of the trust. Will be present if the `category` is `revocable`.
|
|
350
|
+
*/
|
|
351
|
+
grantor: Trust.Grantor | null;
|
|
352
|
+
/**
|
|
353
|
+
* The trust's name
|
|
354
|
+
*/
|
|
355
|
+
name: string;
|
|
356
|
+
/**
|
|
357
|
+
* The Employer Identification Number (EIN) of the trust itself.
|
|
358
|
+
*/
|
|
359
|
+
tax_identifier: string | null;
|
|
360
|
+
/**
|
|
361
|
+
* The trustees of the trust.
|
|
362
|
+
*/
|
|
363
|
+
trustees: Array<Trust.Trustees>;
|
|
364
|
+
}
|
|
365
|
+
namespace Trust {
|
|
366
|
+
interface Address {
|
|
367
|
+
/**
|
|
368
|
+
* The city of the address.
|
|
369
|
+
*/
|
|
370
|
+
city: string;
|
|
371
|
+
/**
|
|
372
|
+
* The first line of the address.
|
|
373
|
+
*/
|
|
374
|
+
line1: string;
|
|
375
|
+
/**
|
|
376
|
+
* The second line of the address.
|
|
377
|
+
*/
|
|
378
|
+
line2: string | null;
|
|
379
|
+
/**
|
|
380
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
381
|
+
* the address.
|
|
382
|
+
*/
|
|
383
|
+
state: string;
|
|
384
|
+
/**
|
|
385
|
+
* The ZIP code of the address.
|
|
386
|
+
*/
|
|
387
|
+
zip: string;
|
|
388
|
+
}
|
|
389
|
+
interface Trustees {
|
|
390
|
+
/**
|
|
391
|
+
* The individual trustee of the trust. Will be present if the trustee's
|
|
392
|
+
* `structure` is equal to `individual`.
|
|
393
|
+
*/
|
|
394
|
+
individual: Trustees.Individual | null;
|
|
395
|
+
/**
|
|
396
|
+
* The structure of the trustee. Will always be equal to `individual`.
|
|
397
|
+
*/
|
|
398
|
+
structure: 'individual';
|
|
399
|
+
}
|
|
400
|
+
namespace Trustees {
|
|
401
|
+
interface Individual {
|
|
402
|
+
/**
|
|
403
|
+
* The person's address.
|
|
404
|
+
*/
|
|
405
|
+
address: Individual.Address;
|
|
406
|
+
/**
|
|
407
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
408
|
+
*/
|
|
409
|
+
date_of_birth: string;
|
|
410
|
+
/**
|
|
411
|
+
* A means of verifying the person's identity.
|
|
412
|
+
*/
|
|
413
|
+
identification: Individual.Identification;
|
|
414
|
+
/**
|
|
415
|
+
* The person's legal name.
|
|
416
|
+
*/
|
|
417
|
+
name: string;
|
|
418
|
+
}
|
|
419
|
+
namespace Individual {
|
|
420
|
+
interface Address {
|
|
421
|
+
/**
|
|
422
|
+
* The city of the address.
|
|
423
|
+
*/
|
|
424
|
+
city: string;
|
|
425
|
+
/**
|
|
426
|
+
* The first line of the address.
|
|
427
|
+
*/
|
|
428
|
+
line1: string;
|
|
429
|
+
/**
|
|
430
|
+
* The second line of the address.
|
|
431
|
+
*/
|
|
432
|
+
line2: string | null;
|
|
433
|
+
/**
|
|
434
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
435
|
+
* the address.
|
|
436
|
+
*/
|
|
437
|
+
state: string;
|
|
438
|
+
/**
|
|
439
|
+
* The ZIP code of the address.
|
|
440
|
+
*/
|
|
441
|
+
zip: string;
|
|
442
|
+
}
|
|
443
|
+
interface Identification {
|
|
444
|
+
/**
|
|
445
|
+
* A method that can be used to verify the individual's identity.
|
|
446
|
+
*/
|
|
447
|
+
method:
|
|
448
|
+
| 'social_security_number'
|
|
449
|
+
| 'individual_taxpayer_identification_number'
|
|
450
|
+
| 'passport'
|
|
451
|
+
| 'drivers_license'
|
|
452
|
+
| 'other';
|
|
453
|
+
/**
|
|
454
|
+
* The last 4 digits of the identification number that can be used to verify the
|
|
455
|
+
* individual's identity.
|
|
456
|
+
*/
|
|
457
|
+
number_last4: string;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
interface Grantor {
|
|
462
|
+
/**
|
|
463
|
+
* The person's address.
|
|
464
|
+
*/
|
|
465
|
+
address: Grantor.Address;
|
|
466
|
+
/**
|
|
467
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
468
|
+
*/
|
|
469
|
+
date_of_birth: string;
|
|
470
|
+
/**
|
|
471
|
+
* A means of verifying the person's identity.
|
|
472
|
+
*/
|
|
473
|
+
identification: Grantor.Identification;
|
|
474
|
+
/**
|
|
475
|
+
* The person's legal name.
|
|
476
|
+
*/
|
|
477
|
+
name: string;
|
|
478
|
+
}
|
|
479
|
+
namespace Grantor {
|
|
480
|
+
interface Address {
|
|
481
|
+
/**
|
|
482
|
+
* The city of the address.
|
|
483
|
+
*/
|
|
484
|
+
city: string;
|
|
485
|
+
/**
|
|
486
|
+
* The first line of the address.
|
|
487
|
+
*/
|
|
488
|
+
line1: string;
|
|
489
|
+
/**
|
|
490
|
+
* The second line of the address.
|
|
491
|
+
*/
|
|
492
|
+
line2: string | null;
|
|
493
|
+
/**
|
|
494
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
495
|
+
* the address.
|
|
496
|
+
*/
|
|
497
|
+
state: string;
|
|
498
|
+
/**
|
|
499
|
+
* The ZIP code of the address.
|
|
500
|
+
*/
|
|
501
|
+
zip: string;
|
|
502
|
+
}
|
|
503
|
+
interface Identification {
|
|
504
|
+
/**
|
|
505
|
+
* A method that can be used to verify the individual's identity.
|
|
506
|
+
*/
|
|
507
|
+
method:
|
|
508
|
+
| 'social_security_number'
|
|
509
|
+
| 'individual_taxpayer_identification_number'
|
|
510
|
+
| 'passport'
|
|
511
|
+
| 'drivers_license'
|
|
512
|
+
| 'other';
|
|
513
|
+
/**
|
|
514
|
+
* The last 4 digits of the identification number that can be used to verify the
|
|
515
|
+
* individual's identity.
|
|
516
|
+
*/
|
|
517
|
+
number_last4: string;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
interface SupplementalDocuments {
|
|
522
|
+
/**
|
|
523
|
+
* The File containing the document.
|
|
524
|
+
*/
|
|
525
|
+
file_id: string;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
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
|
+
/**
|
|
538
|
+
* Details of the corporation entity to create. Required if `structure` is equal to
|
|
539
|
+
* `corporation`.
|
|
540
|
+
*/
|
|
541
|
+
corporation?: EntityCreateParams.Corporation;
|
|
542
|
+
/**
|
|
543
|
+
* The description you choose to give the entity.
|
|
544
|
+
*/
|
|
545
|
+
description?: string;
|
|
546
|
+
/**
|
|
547
|
+
* Details of the joint entity to create. Required if `structure` is equal to
|
|
548
|
+
* `joint`.
|
|
549
|
+
*/
|
|
550
|
+
joint?: EntityCreateParams.Joint;
|
|
551
|
+
/**
|
|
552
|
+
* Details of the natural person entity to create. Required if `structure` is equal
|
|
553
|
+
* to `natural_person`. Natural people entities should be submitted with
|
|
554
|
+
* `social_security_number` or `individual_taxpayer_identification_number`
|
|
555
|
+
* identification methods.
|
|
556
|
+
*/
|
|
557
|
+
natural_person?: EntityCreateParams.NaturalPerson;
|
|
558
|
+
/**
|
|
559
|
+
* Additional documentation associated with the entity.
|
|
560
|
+
*/
|
|
561
|
+
supplemental_documents?: Array<EntityCreateParams.SupplementalDocuments>;
|
|
562
|
+
/**
|
|
563
|
+
* Details of the trust entity to create. Required if `structure` is equal to
|
|
564
|
+
* `trust`.
|
|
565
|
+
*/
|
|
566
|
+
trust?: EntityCreateParams.Trust;
|
|
567
|
+
}
|
|
568
|
+
export declare namespace EntityCreateParams {
|
|
569
|
+
interface Corporation {
|
|
570
|
+
/**
|
|
571
|
+
* The corporation's address.
|
|
572
|
+
*/
|
|
573
|
+
address: Corporation.Address;
|
|
574
|
+
/**
|
|
575
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
576
|
+
* corporation.
|
|
577
|
+
*/
|
|
578
|
+
beneficial_owners: Array<Corporation.BeneficialOwners>;
|
|
579
|
+
/**
|
|
580
|
+
* The legal name of the corporation.
|
|
581
|
+
*/
|
|
582
|
+
name: string;
|
|
583
|
+
/**
|
|
584
|
+
* The Employer Identification Number (EIN) for the corporation.
|
|
585
|
+
*/
|
|
586
|
+
tax_identifier: string;
|
|
587
|
+
/**
|
|
588
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the
|
|
589
|
+
* corporation's state of incorporation.
|
|
590
|
+
*/
|
|
591
|
+
incorporation_state?: string;
|
|
592
|
+
/**
|
|
593
|
+
* The website of the corporation.
|
|
594
|
+
*/
|
|
595
|
+
website?: string;
|
|
596
|
+
}
|
|
597
|
+
namespace Corporation {
|
|
598
|
+
interface Address {
|
|
599
|
+
/**
|
|
600
|
+
* The city of the address.
|
|
601
|
+
*/
|
|
602
|
+
city: string;
|
|
603
|
+
/**
|
|
604
|
+
* The first line of the address. This is usually the street number and street.
|
|
605
|
+
*/
|
|
606
|
+
line1: string;
|
|
607
|
+
/**
|
|
608
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
609
|
+
* the address.
|
|
610
|
+
*/
|
|
611
|
+
state: string;
|
|
612
|
+
/**
|
|
613
|
+
* The ZIP code of the address.
|
|
614
|
+
*/
|
|
615
|
+
zip: string;
|
|
616
|
+
/**
|
|
617
|
+
* The second line of the address. This might be the floor or room number.
|
|
618
|
+
*/
|
|
619
|
+
line2?: string;
|
|
620
|
+
}
|
|
621
|
+
interface BeneficialOwners {
|
|
622
|
+
/**
|
|
623
|
+
* Personal details for the beneficial owner.
|
|
624
|
+
*/
|
|
625
|
+
individual: BeneficialOwners.Individual;
|
|
626
|
+
/**
|
|
627
|
+
* Why this person is considered a beneficial owner of the entity.
|
|
628
|
+
*/
|
|
629
|
+
prong: 'ownership' | 'control';
|
|
630
|
+
/**
|
|
631
|
+
* This person's role or title within the entity.
|
|
632
|
+
*/
|
|
633
|
+
company_title?: string;
|
|
634
|
+
}
|
|
635
|
+
namespace BeneficialOwners {
|
|
636
|
+
interface Individual {
|
|
637
|
+
/**
|
|
638
|
+
* The individual's address.
|
|
639
|
+
*/
|
|
640
|
+
address: Individual.Address;
|
|
641
|
+
/**
|
|
642
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
643
|
+
*/
|
|
644
|
+
date_of_birth: string;
|
|
645
|
+
/**
|
|
646
|
+
* A means of verifying the person's identity.
|
|
647
|
+
*/
|
|
648
|
+
identification: Individual.Identification;
|
|
649
|
+
/**
|
|
650
|
+
* The person's legal name.
|
|
651
|
+
*/
|
|
652
|
+
name: string;
|
|
653
|
+
/**
|
|
654
|
+
* The identification method for an individual can only be a passport, driver's
|
|
655
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
656
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
657
|
+
* Number).
|
|
658
|
+
*/
|
|
659
|
+
confirmed_no_us_tax_id?: boolean;
|
|
660
|
+
}
|
|
661
|
+
namespace Individual {
|
|
662
|
+
interface Address {
|
|
663
|
+
/**
|
|
664
|
+
* The city of the address.
|
|
665
|
+
*/
|
|
666
|
+
city: string;
|
|
667
|
+
/**
|
|
668
|
+
* The first line of the address. This is usually the street number and street.
|
|
669
|
+
*/
|
|
670
|
+
line1: string;
|
|
671
|
+
/**
|
|
672
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
673
|
+
* the address.
|
|
674
|
+
*/
|
|
675
|
+
state: string;
|
|
676
|
+
/**
|
|
677
|
+
* The ZIP code of the address.
|
|
678
|
+
*/
|
|
679
|
+
zip: string;
|
|
680
|
+
/**
|
|
681
|
+
* The second line of the address. This might be the floor or room number.
|
|
682
|
+
*/
|
|
683
|
+
line2?: string;
|
|
684
|
+
}
|
|
685
|
+
interface Identification {
|
|
686
|
+
/**
|
|
687
|
+
* A method that can be used to verify the individual's identity.
|
|
688
|
+
*/
|
|
689
|
+
method:
|
|
690
|
+
| 'social_security_number'
|
|
691
|
+
| 'individual_taxpayer_identification_number'
|
|
692
|
+
| 'passport'
|
|
693
|
+
| 'drivers_license'
|
|
694
|
+
| 'other';
|
|
695
|
+
/**
|
|
696
|
+
* An identification number that can be used to verify the individual's identity,
|
|
697
|
+
* such as a social security number.
|
|
698
|
+
*/
|
|
699
|
+
number: string;
|
|
700
|
+
/**
|
|
701
|
+
* Information about the United States driver's license used for identification.
|
|
702
|
+
* Required if `method` is equal to `drivers_license`.
|
|
703
|
+
*/
|
|
704
|
+
drivers_license?: Identification.DriversLicense;
|
|
705
|
+
/**
|
|
706
|
+
* Information about the identification document provided. Required if `method` is
|
|
707
|
+
* equal to `other`.
|
|
708
|
+
*/
|
|
709
|
+
other?: Identification.Other;
|
|
710
|
+
/**
|
|
711
|
+
* Information about the passport used for identification. Required if `method` is
|
|
712
|
+
* equal to `passport`.
|
|
713
|
+
*/
|
|
714
|
+
passport?: Identification.Passport;
|
|
715
|
+
}
|
|
716
|
+
namespace Identification {
|
|
717
|
+
interface Passport {
|
|
718
|
+
/**
|
|
719
|
+
* The country that issued the passport.
|
|
720
|
+
*/
|
|
721
|
+
country: string;
|
|
722
|
+
/**
|
|
723
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
724
|
+
*/
|
|
725
|
+
expiration_date: string;
|
|
726
|
+
/**
|
|
727
|
+
* The identifier of the File containing the passport.
|
|
728
|
+
*/
|
|
729
|
+
file_id: string;
|
|
730
|
+
}
|
|
731
|
+
interface DriversLicense {
|
|
732
|
+
/**
|
|
733
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
734
|
+
*/
|
|
735
|
+
expiration_date: string;
|
|
736
|
+
/**
|
|
737
|
+
* The identifier of the File containing the driver's license.
|
|
738
|
+
*/
|
|
739
|
+
file_id: string;
|
|
740
|
+
/**
|
|
741
|
+
* The state that issued the provided driver's license.
|
|
742
|
+
*/
|
|
743
|
+
state: string;
|
|
744
|
+
}
|
|
745
|
+
interface Other {
|
|
746
|
+
/**
|
|
747
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
748
|
+
* document.
|
|
749
|
+
*/
|
|
750
|
+
country: string;
|
|
751
|
+
/**
|
|
752
|
+
* A description of the document submitted.
|
|
753
|
+
*/
|
|
754
|
+
description: string;
|
|
755
|
+
/**
|
|
756
|
+
* The identifier of the File containing the document.
|
|
757
|
+
*/
|
|
758
|
+
file_id: string;
|
|
759
|
+
/**
|
|
760
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
761
|
+
*/
|
|
762
|
+
expiration_date?: string;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
interface NaturalPerson {
|
|
769
|
+
/**
|
|
770
|
+
* The individual's address.
|
|
771
|
+
*/
|
|
772
|
+
address: NaturalPerson.Address;
|
|
773
|
+
/**
|
|
774
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
775
|
+
*/
|
|
776
|
+
date_of_birth: string;
|
|
777
|
+
/**
|
|
778
|
+
* A means of verifying the person's identity.
|
|
779
|
+
*/
|
|
780
|
+
identification: NaturalPerson.Identification;
|
|
781
|
+
/**
|
|
782
|
+
* The person's legal name.
|
|
783
|
+
*/
|
|
784
|
+
name: string;
|
|
785
|
+
/**
|
|
786
|
+
* The identification method for an individual can only be a passport, driver's
|
|
787
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
788
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
789
|
+
* Number).
|
|
790
|
+
*/
|
|
791
|
+
confirmed_no_us_tax_id?: boolean;
|
|
792
|
+
}
|
|
793
|
+
namespace NaturalPerson {
|
|
794
|
+
interface Address {
|
|
795
|
+
/**
|
|
796
|
+
* The city of the address.
|
|
797
|
+
*/
|
|
798
|
+
city: string;
|
|
799
|
+
/**
|
|
800
|
+
* The first line of the address. This is usually the street number and street.
|
|
801
|
+
*/
|
|
802
|
+
line1: string;
|
|
803
|
+
/**
|
|
804
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
805
|
+
* the address.
|
|
806
|
+
*/
|
|
807
|
+
state: string;
|
|
808
|
+
/**
|
|
809
|
+
* The ZIP code of the address.
|
|
810
|
+
*/
|
|
811
|
+
zip: string;
|
|
812
|
+
/**
|
|
813
|
+
* The second line of the address. This might be the floor or room number.
|
|
814
|
+
*/
|
|
815
|
+
line2?: string;
|
|
816
|
+
}
|
|
817
|
+
interface Identification {
|
|
818
|
+
/**
|
|
819
|
+
* A method that can be used to verify the individual's identity.
|
|
820
|
+
*/
|
|
821
|
+
method:
|
|
822
|
+
| 'social_security_number'
|
|
823
|
+
| 'individual_taxpayer_identification_number'
|
|
824
|
+
| 'passport'
|
|
825
|
+
| 'drivers_license'
|
|
826
|
+
| 'other';
|
|
827
|
+
/**
|
|
828
|
+
* An identification number that can be used to verify the individual's identity,
|
|
829
|
+
* such as a social security number.
|
|
830
|
+
*/
|
|
831
|
+
number: string;
|
|
832
|
+
/**
|
|
833
|
+
* Information about the United States driver's license used for identification.
|
|
834
|
+
* Required if `method` is equal to `drivers_license`.
|
|
835
|
+
*/
|
|
836
|
+
drivers_license?: Identification.DriversLicense;
|
|
837
|
+
/**
|
|
838
|
+
* Information about the identification document provided. Required if `method` is
|
|
839
|
+
* equal to `other`.
|
|
840
|
+
*/
|
|
841
|
+
other?: Identification.Other;
|
|
842
|
+
/**
|
|
843
|
+
* Information about the passport used for identification. Required if `method` is
|
|
844
|
+
* equal to `passport`.
|
|
845
|
+
*/
|
|
846
|
+
passport?: Identification.Passport;
|
|
847
|
+
}
|
|
848
|
+
namespace Identification {
|
|
849
|
+
interface Passport {
|
|
850
|
+
/**
|
|
851
|
+
* The country that issued the passport.
|
|
852
|
+
*/
|
|
853
|
+
country: string;
|
|
854
|
+
/**
|
|
855
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
856
|
+
*/
|
|
857
|
+
expiration_date: string;
|
|
858
|
+
/**
|
|
859
|
+
* The identifier of the File containing the passport.
|
|
860
|
+
*/
|
|
861
|
+
file_id: string;
|
|
862
|
+
}
|
|
863
|
+
interface DriversLicense {
|
|
864
|
+
/**
|
|
865
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
866
|
+
*/
|
|
867
|
+
expiration_date: string;
|
|
868
|
+
/**
|
|
869
|
+
* The identifier of the File containing the driver's license.
|
|
870
|
+
*/
|
|
871
|
+
file_id: string;
|
|
872
|
+
/**
|
|
873
|
+
* The state that issued the provided driver's license.
|
|
874
|
+
*/
|
|
875
|
+
state: string;
|
|
876
|
+
}
|
|
877
|
+
interface Other {
|
|
878
|
+
/**
|
|
879
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
880
|
+
* document.
|
|
881
|
+
*/
|
|
882
|
+
country: string;
|
|
883
|
+
/**
|
|
884
|
+
* A description of the document submitted.
|
|
885
|
+
*/
|
|
886
|
+
description: string;
|
|
887
|
+
/**
|
|
888
|
+
* The identifier of the File containing the document.
|
|
889
|
+
*/
|
|
890
|
+
file_id: string;
|
|
891
|
+
/**
|
|
892
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
893
|
+
*/
|
|
894
|
+
expiration_date?: string;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
interface Joint {
|
|
899
|
+
/**
|
|
900
|
+
* The two individuals that share control of the entity.
|
|
901
|
+
*/
|
|
902
|
+
individuals: Array<Joint.Individuals>;
|
|
903
|
+
/**
|
|
904
|
+
* The name of the joint entity.
|
|
905
|
+
*/
|
|
906
|
+
name?: string;
|
|
907
|
+
}
|
|
908
|
+
namespace Joint {
|
|
909
|
+
interface Individuals {
|
|
910
|
+
/**
|
|
911
|
+
* The individual's address.
|
|
912
|
+
*/
|
|
913
|
+
address: Individuals.Address;
|
|
914
|
+
/**
|
|
915
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
916
|
+
*/
|
|
917
|
+
date_of_birth: string;
|
|
918
|
+
/**
|
|
919
|
+
* A means of verifying the person's identity.
|
|
920
|
+
*/
|
|
921
|
+
identification: Individuals.Identification;
|
|
922
|
+
/**
|
|
923
|
+
* The person's legal name.
|
|
924
|
+
*/
|
|
925
|
+
name: string;
|
|
926
|
+
/**
|
|
927
|
+
* The identification method for an individual can only be a passport, driver's
|
|
928
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
929
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
930
|
+
* Number).
|
|
931
|
+
*/
|
|
932
|
+
confirmed_no_us_tax_id?: boolean;
|
|
933
|
+
}
|
|
934
|
+
namespace Individuals {
|
|
935
|
+
interface Address {
|
|
936
|
+
/**
|
|
937
|
+
* The city of the address.
|
|
938
|
+
*/
|
|
939
|
+
city: string;
|
|
940
|
+
/**
|
|
941
|
+
* The first line of the address. This is usually the street number and street.
|
|
942
|
+
*/
|
|
943
|
+
line1: string;
|
|
944
|
+
/**
|
|
945
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
946
|
+
* the address.
|
|
947
|
+
*/
|
|
948
|
+
state: string;
|
|
949
|
+
/**
|
|
950
|
+
* The ZIP code of the address.
|
|
951
|
+
*/
|
|
952
|
+
zip: string;
|
|
953
|
+
/**
|
|
954
|
+
* The second line of the address. This might be the floor or room number.
|
|
955
|
+
*/
|
|
956
|
+
line2?: string;
|
|
957
|
+
}
|
|
958
|
+
interface Identification {
|
|
959
|
+
/**
|
|
960
|
+
* A method that can be used to verify the individual's identity.
|
|
961
|
+
*/
|
|
962
|
+
method:
|
|
963
|
+
| 'social_security_number'
|
|
964
|
+
| 'individual_taxpayer_identification_number'
|
|
965
|
+
| 'passport'
|
|
966
|
+
| 'drivers_license'
|
|
967
|
+
| 'other';
|
|
968
|
+
/**
|
|
969
|
+
* An identification number that can be used to verify the individual's identity,
|
|
970
|
+
* such as a social security number.
|
|
971
|
+
*/
|
|
972
|
+
number: string;
|
|
973
|
+
/**
|
|
974
|
+
* Information about the United States driver's license used for identification.
|
|
975
|
+
* Required if `method` is equal to `drivers_license`.
|
|
976
|
+
*/
|
|
977
|
+
drivers_license?: Identification.DriversLicense;
|
|
978
|
+
/**
|
|
979
|
+
* Information about the identification document provided. Required if `method` is
|
|
980
|
+
* equal to `other`.
|
|
981
|
+
*/
|
|
982
|
+
other?: Identification.Other;
|
|
983
|
+
/**
|
|
984
|
+
* Information about the passport used for identification. Required if `method` is
|
|
985
|
+
* equal to `passport`.
|
|
986
|
+
*/
|
|
987
|
+
passport?: Identification.Passport;
|
|
988
|
+
}
|
|
989
|
+
namespace Identification {
|
|
990
|
+
interface Passport {
|
|
991
|
+
/**
|
|
992
|
+
* The country that issued the passport.
|
|
993
|
+
*/
|
|
994
|
+
country: string;
|
|
995
|
+
/**
|
|
996
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
997
|
+
*/
|
|
998
|
+
expiration_date: string;
|
|
999
|
+
/**
|
|
1000
|
+
* The identifier of the File containing the passport.
|
|
1001
|
+
*/
|
|
1002
|
+
file_id: string;
|
|
1003
|
+
}
|
|
1004
|
+
interface DriversLicense {
|
|
1005
|
+
/**
|
|
1006
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
1007
|
+
*/
|
|
1008
|
+
expiration_date: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* The identifier of the File containing the driver's license.
|
|
1011
|
+
*/
|
|
1012
|
+
file_id: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* The state that issued the provided driver's license.
|
|
1015
|
+
*/
|
|
1016
|
+
state: string;
|
|
1017
|
+
}
|
|
1018
|
+
interface Other {
|
|
1019
|
+
/**
|
|
1020
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
1021
|
+
* document.
|
|
1022
|
+
*/
|
|
1023
|
+
country: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* A description of the document submitted.
|
|
1026
|
+
*/
|
|
1027
|
+
description: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* The identifier of the File containing the document.
|
|
1030
|
+
*/
|
|
1031
|
+
file_id: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
1034
|
+
*/
|
|
1035
|
+
expiration_date?: string;
|
|
1036
|
+
}
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
interface Trust {
|
|
1041
|
+
/**
|
|
1042
|
+
* The trust's address.
|
|
1043
|
+
*/
|
|
1044
|
+
address: Trust.Address;
|
|
1045
|
+
/**
|
|
1046
|
+
* Whether the trust is `revocable` or `irrevocable`. Irrevocable trusts require
|
|
1047
|
+
* their own Employer Identification Number. Revocable trusts require information
|
|
1048
|
+
* about the individual `grantor` who created the trust.
|
|
1049
|
+
*/
|
|
1050
|
+
category: 'revocable' | 'irrevocable';
|
|
1051
|
+
/**
|
|
1052
|
+
* The legal name of the trust.
|
|
1053
|
+
*/
|
|
1054
|
+
name: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* The trustees of the trust.
|
|
1057
|
+
*/
|
|
1058
|
+
trustees: Array<Trust.Trustees>;
|
|
1059
|
+
/**
|
|
1060
|
+
* The identifier of the File containing the formation document of the trust.
|
|
1061
|
+
*/
|
|
1062
|
+
formation_document_file_id?: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state in
|
|
1065
|
+
* which the trust was formed.
|
|
1066
|
+
*/
|
|
1067
|
+
formation_state?: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* The grantor of the trust. Required if `category` is equal to `revocable`.
|
|
1070
|
+
*/
|
|
1071
|
+
grantor?: Trust.Grantor;
|
|
1072
|
+
/**
|
|
1073
|
+
* The Employer Identification Number (EIN) for the trust. Required if `category`
|
|
1074
|
+
* is equal to `irrevocable`.
|
|
1075
|
+
*/
|
|
1076
|
+
tax_identifier?: string;
|
|
1077
|
+
}
|
|
1078
|
+
namespace Trust {
|
|
1079
|
+
interface Address {
|
|
1080
|
+
/**
|
|
1081
|
+
* The city of the address.
|
|
1082
|
+
*/
|
|
1083
|
+
city: string;
|
|
1084
|
+
/**
|
|
1085
|
+
* The first line of the address. This is usually the street number and street.
|
|
1086
|
+
*/
|
|
1087
|
+
line1: string;
|
|
1088
|
+
/**
|
|
1089
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
1090
|
+
* the address.
|
|
1091
|
+
*/
|
|
1092
|
+
state: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* The ZIP code of the address.
|
|
1095
|
+
*/
|
|
1096
|
+
zip: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* The second line of the address. This might be the floor or room number.
|
|
1099
|
+
*/
|
|
1100
|
+
line2?: string;
|
|
1101
|
+
}
|
|
1102
|
+
interface Trustees {
|
|
1103
|
+
/**
|
|
1104
|
+
* The structure of the trustee.
|
|
1105
|
+
*/
|
|
1106
|
+
structure: 'individual';
|
|
1107
|
+
/**
|
|
1108
|
+
* Details of the individual trustee. Required when the trustee `structure` is
|
|
1109
|
+
* equal to `individual`.
|
|
1110
|
+
*/
|
|
1111
|
+
individual?: Trustees.Individual;
|
|
1112
|
+
}
|
|
1113
|
+
namespace Trustees {
|
|
1114
|
+
interface Individual {
|
|
1115
|
+
/**
|
|
1116
|
+
* The individual's address.
|
|
1117
|
+
*/
|
|
1118
|
+
address: Individual.Address;
|
|
1119
|
+
/**
|
|
1120
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
1121
|
+
*/
|
|
1122
|
+
date_of_birth: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* A means of verifying the person's identity.
|
|
1125
|
+
*/
|
|
1126
|
+
identification: Individual.Identification;
|
|
1127
|
+
/**
|
|
1128
|
+
* The person's legal name.
|
|
1129
|
+
*/
|
|
1130
|
+
name: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* The identification method for an individual can only be a passport, driver's
|
|
1133
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
1134
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
1135
|
+
* Number).
|
|
1136
|
+
*/
|
|
1137
|
+
confirmed_no_us_tax_id?: boolean;
|
|
1138
|
+
}
|
|
1139
|
+
namespace Individual {
|
|
1140
|
+
interface Address {
|
|
1141
|
+
/**
|
|
1142
|
+
* The city of the address.
|
|
1143
|
+
*/
|
|
1144
|
+
city: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* The first line of the address. This is usually the street number and street.
|
|
1147
|
+
*/
|
|
1148
|
+
line1: string;
|
|
1149
|
+
/**
|
|
1150
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
1151
|
+
* the address.
|
|
1152
|
+
*/
|
|
1153
|
+
state: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* The ZIP code of the address.
|
|
1156
|
+
*/
|
|
1157
|
+
zip: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* The second line of the address. This might be the floor or room number.
|
|
1160
|
+
*/
|
|
1161
|
+
line2?: string;
|
|
1162
|
+
}
|
|
1163
|
+
interface Identification {
|
|
1164
|
+
/**
|
|
1165
|
+
* A method that can be used to verify the individual's identity.
|
|
1166
|
+
*/
|
|
1167
|
+
method:
|
|
1168
|
+
| 'social_security_number'
|
|
1169
|
+
| 'individual_taxpayer_identification_number'
|
|
1170
|
+
| 'passport'
|
|
1171
|
+
| 'drivers_license'
|
|
1172
|
+
| 'other';
|
|
1173
|
+
/**
|
|
1174
|
+
* An identification number that can be used to verify the individual's identity,
|
|
1175
|
+
* such as a social security number.
|
|
1176
|
+
*/
|
|
1177
|
+
number: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* Information about the United States driver's license used for identification.
|
|
1180
|
+
* Required if `method` is equal to `drivers_license`.
|
|
1181
|
+
*/
|
|
1182
|
+
drivers_license?: Identification.DriversLicense;
|
|
1183
|
+
/**
|
|
1184
|
+
* Information about the identification document provided. Required if `method` is
|
|
1185
|
+
* equal to `other`.
|
|
1186
|
+
*/
|
|
1187
|
+
other?: Identification.Other;
|
|
1188
|
+
/**
|
|
1189
|
+
* Information about the passport used for identification. Required if `method` is
|
|
1190
|
+
* equal to `passport`.
|
|
1191
|
+
*/
|
|
1192
|
+
passport?: Identification.Passport;
|
|
1193
|
+
}
|
|
1194
|
+
namespace Identification {
|
|
1195
|
+
interface Passport {
|
|
1196
|
+
/**
|
|
1197
|
+
* The country that issued the passport.
|
|
1198
|
+
*/
|
|
1199
|
+
country: string;
|
|
1200
|
+
/**
|
|
1201
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
1202
|
+
*/
|
|
1203
|
+
expiration_date: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* The identifier of the File containing the passport.
|
|
1206
|
+
*/
|
|
1207
|
+
file_id: string;
|
|
1208
|
+
}
|
|
1209
|
+
interface DriversLicense {
|
|
1210
|
+
/**
|
|
1211
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
1212
|
+
*/
|
|
1213
|
+
expiration_date: string;
|
|
1214
|
+
/**
|
|
1215
|
+
* The identifier of the File containing the driver's license.
|
|
1216
|
+
*/
|
|
1217
|
+
file_id: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* The state that issued the provided driver's license.
|
|
1220
|
+
*/
|
|
1221
|
+
state: string;
|
|
1222
|
+
}
|
|
1223
|
+
interface Other {
|
|
1224
|
+
/**
|
|
1225
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
1226
|
+
* document.
|
|
1227
|
+
*/
|
|
1228
|
+
country: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* A description of the document submitted.
|
|
1231
|
+
*/
|
|
1232
|
+
description: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* The identifier of the File containing the document.
|
|
1235
|
+
*/
|
|
1236
|
+
file_id: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
1239
|
+
*/
|
|
1240
|
+
expiration_date?: string;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
interface Grantor {
|
|
1246
|
+
/**
|
|
1247
|
+
* The individual's address.
|
|
1248
|
+
*/
|
|
1249
|
+
address: Grantor.Address;
|
|
1250
|
+
/**
|
|
1251
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
1252
|
+
*/
|
|
1253
|
+
date_of_birth: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* A means of verifying the person's identity.
|
|
1256
|
+
*/
|
|
1257
|
+
identification: Grantor.Identification;
|
|
1258
|
+
/**
|
|
1259
|
+
* The person's legal name.
|
|
1260
|
+
*/
|
|
1261
|
+
name: string;
|
|
1262
|
+
/**
|
|
1263
|
+
* The identification method for an individual can only be a passport, driver's
|
|
1264
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
1265
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
1266
|
+
* Number).
|
|
1267
|
+
*/
|
|
1268
|
+
confirmed_no_us_tax_id?: boolean;
|
|
1269
|
+
}
|
|
1270
|
+
namespace Grantor {
|
|
1271
|
+
interface Address {
|
|
1272
|
+
/**
|
|
1273
|
+
* The city of the address.
|
|
1274
|
+
*/
|
|
1275
|
+
city: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* The first line of the address. This is usually the street number and street.
|
|
1278
|
+
*/
|
|
1279
|
+
line1: string;
|
|
1280
|
+
/**
|
|
1281
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
1282
|
+
* the address.
|
|
1283
|
+
*/
|
|
1284
|
+
state: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* The ZIP code of the address.
|
|
1287
|
+
*/
|
|
1288
|
+
zip: string;
|
|
1289
|
+
/**
|
|
1290
|
+
* The second line of the address. This might be the floor or room number.
|
|
1291
|
+
*/
|
|
1292
|
+
line2?: string;
|
|
1293
|
+
}
|
|
1294
|
+
interface Identification {
|
|
1295
|
+
/**
|
|
1296
|
+
* A method that can be used to verify the individual's identity.
|
|
1297
|
+
*/
|
|
1298
|
+
method:
|
|
1299
|
+
| 'social_security_number'
|
|
1300
|
+
| 'individual_taxpayer_identification_number'
|
|
1301
|
+
| 'passport'
|
|
1302
|
+
| 'drivers_license'
|
|
1303
|
+
| 'other';
|
|
1304
|
+
/**
|
|
1305
|
+
* An identification number that can be used to verify the individual's identity,
|
|
1306
|
+
* such as a social security number.
|
|
1307
|
+
*/
|
|
1308
|
+
number: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Information about the United States driver's license used for identification.
|
|
1311
|
+
* Required if `method` is equal to `drivers_license`.
|
|
1312
|
+
*/
|
|
1313
|
+
drivers_license?: Identification.DriversLicense;
|
|
1314
|
+
/**
|
|
1315
|
+
* Information about the identification document provided. Required if `method` is
|
|
1316
|
+
* equal to `other`.
|
|
1317
|
+
*/
|
|
1318
|
+
other?: Identification.Other;
|
|
1319
|
+
/**
|
|
1320
|
+
* Information about the passport used for identification. Required if `method` is
|
|
1321
|
+
* equal to `passport`.
|
|
1322
|
+
*/
|
|
1323
|
+
passport?: Identification.Passport;
|
|
1324
|
+
}
|
|
1325
|
+
namespace Identification {
|
|
1326
|
+
interface Passport {
|
|
1327
|
+
/**
|
|
1328
|
+
* The country that issued the passport.
|
|
1329
|
+
*/
|
|
1330
|
+
country: string;
|
|
1331
|
+
/**
|
|
1332
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
1333
|
+
*/
|
|
1334
|
+
expiration_date: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* The identifier of the File containing the passport.
|
|
1337
|
+
*/
|
|
1338
|
+
file_id: string;
|
|
1339
|
+
}
|
|
1340
|
+
interface DriversLicense {
|
|
1341
|
+
/**
|
|
1342
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
1343
|
+
*/
|
|
1344
|
+
expiration_date: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* The identifier of the File containing the driver's license.
|
|
1347
|
+
*/
|
|
1348
|
+
file_id: string;
|
|
1349
|
+
/**
|
|
1350
|
+
* The state that issued the provided driver's license.
|
|
1351
|
+
*/
|
|
1352
|
+
state: string;
|
|
1353
|
+
}
|
|
1354
|
+
interface Other {
|
|
1355
|
+
/**
|
|
1356
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
1357
|
+
* document.
|
|
1358
|
+
*/
|
|
1359
|
+
country: string;
|
|
1360
|
+
/**
|
|
1361
|
+
* A description of the document submitted.
|
|
1362
|
+
*/
|
|
1363
|
+
description: string;
|
|
1364
|
+
/**
|
|
1365
|
+
* The identifier of the File containing the document.
|
|
1366
|
+
*/
|
|
1367
|
+
file_id: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
1370
|
+
*/
|
|
1371
|
+
expiration_date?: string;
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
interface SupplementalDocuments {
|
|
1377
|
+
/**
|
|
1378
|
+
* The identifier of the File containing the document.
|
|
1379
|
+
*/
|
|
1380
|
+
file_id: string;
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
export interface EntityListParams extends PageParams {}
|