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.
- package/.github/workflows/publish-npm.yml +28 -0
- package/.github/workflows/release-doctor.yml +20 -0
- package/.github/workflows/release.yml +38 -0
- package/.prettierignore +1 -0
- package/.release-please-manifest.json +3 -0
- package/.stats.yml +1 -1
- package/CHANGELOG.md +84 -0
- package/README.md +16 -1
- package/api.md +88 -0
- package/bin/check-release-environment +25 -0
- package/bin/publish-npm +6 -0
- package/check-version.ts +4 -1
- package/core.ts +56 -14
- package/dist/cjs/check-version.d.ts +1 -0
- package/dist/cjs/check-version.d.ts.map +1 -0
- package/dist/cjs/check-version.js +3 -1
- package/dist/cjs/check-version.js.map +1 -1
- package/dist/cjs/core.d.ts +22 -2
- package/dist/cjs/core.d.ts.map +1 -0
- package/dist/cjs/core.js +58 -16
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/error.d.ts +163 -0
- package/dist/cjs/error.d.ts.map +1 -0
- package/dist/cjs/error.js +204 -0
- package/dist/cjs/error.js.map +1 -0
- package/dist/cjs/examples/api-error.d.ts +3 -0
- package/dist/cjs/examples/api-error.d.ts.map +1 -0
- package/dist/cjs/examples/api-error.js +92 -0
- package/dist/cjs/examples/api-error.js.map +1 -0
- package/dist/cjs/fetch-polyfill.d.ts +1 -0
- package/dist/cjs/fetch-polyfill.d.ts.map +1 -0
- package/dist/cjs/fetch-polyfill.js +2 -2
- package/dist/cjs/fetch-polyfill.js.map +1 -1
- package/dist/cjs/index.d.ts +65 -3
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +104 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/pagination.d.ts +4 -0
- package/dist/cjs/pagination.d.ts.map +1 -0
- package/dist/cjs/pagination.js.map +1 -1
- package/dist/cjs/resource.d.ts +1 -0
- package/dist/cjs/resource.d.ts.map +1 -0
- package/dist/cjs/resources/account-numbers.d.ts +45 -0
- package/dist/cjs/resources/account-numbers.d.ts.map +1 -0
- package/dist/cjs/resources/account-numbers.js.map +1 -1
- package/dist/cjs/resources/account-statements.d.ts +21 -1
- package/dist/cjs/resources/account-statements.d.ts.map +1 -0
- package/dist/cjs/resources/account-statements.js.map +1 -1
- package/dist/cjs/resources/account-transfers.d.ts +40 -12
- package/dist/cjs/resources/account-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/account-transfers.js.map +1 -1
- package/dist/cjs/resources/accounts.d.ts +53 -23
- package/dist/cjs/resources/accounts.d.ts.map +1 -0
- package/dist/cjs/resources/accounts.js.map +1 -1
- package/dist/cjs/resources/ach-prenotifications.d.ts +29 -6
- package/dist/cjs/resources/ach-prenotifications.d.ts.map +1 -0
- package/dist/cjs/resources/ach-prenotifications.js.map +1 -1
- package/dist/cjs/resources/ach-transfers.d.ts +70 -23
- package/dist/cjs/resources/ach-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/ach-transfers.js.map +1 -1
- package/dist/cjs/resources/balance-lookups.d.ts +47 -0
- package/dist/cjs/resources/balance-lookups.d.ts.map +1 -0
- package/dist/cjs/resources/balance-lookups.js +15 -0
- package/dist/cjs/resources/balance-lookups.js.map +1 -0
- package/dist/cjs/resources/bookkeeping-accounts.d.ts +71 -0
- package/dist/cjs/resources/bookkeeping-accounts.d.ts.map +1 -0
- package/dist/cjs/resources/bookkeeping-accounts.js +29 -0
- package/dist/cjs/resources/bookkeeping-accounts.js.map +1 -0
- package/dist/cjs/resources/bookkeeping-entries.d.ts +43 -0
- package/dist/cjs/resources/bookkeeping-entries.d.ts.map +1 -0
- package/dist/cjs/resources/bookkeeping-entries.js +19 -0
- package/dist/cjs/resources/bookkeeping-entries.js.map +1 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.d.ts +95 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.d.ts.map +1 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.js +15 -0
- package/dist/cjs/resources/bookkeeping-entry-sets.js.map +1 -0
- package/dist/cjs/resources/card-disputes.d.ts +39 -5
- package/dist/cjs/resources/card-disputes.d.ts.map +1 -0
- package/dist/cjs/resources/card-disputes.js.map +1 -1
- package/dist/cjs/resources/card-profiles.d.ts +81 -3
- package/dist/cjs/resources/card-profiles.d.ts.map +1 -0
- package/dist/cjs/resources/card-profiles.js.map +1 -1
- package/dist/cjs/resources/cards.d.ts +147 -3
- package/dist/cjs/resources/cards.d.ts.map +1 -0
- package/dist/cjs/resources/cards.js.map +1 -1
- package/dist/cjs/resources/check-deposits.d.ts +34 -1
- package/dist/cjs/resources/check-deposits.d.ts.map +1 -0
- package/dist/cjs/resources/check-deposits.js.map +1 -1
- package/dist/cjs/resources/check-transfers.d.ts +161 -14
- package/dist/cjs/resources/check-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/check-transfers.js.map +1 -1
- package/dist/cjs/resources/declined-transactions.d.ts +116 -8
- package/dist/cjs/resources/declined-transactions.d.ts.map +1 -0
- package/dist/cjs/resources/declined-transactions.js.map +1 -1
- package/dist/cjs/resources/digital-wallet-tokens.d.ts +21 -1
- package/dist/cjs/resources/digital-wallet-tokens.d.ts.map +1 -0
- package/dist/cjs/resources/digital-wallet-tokens.js.map +1 -1
- package/dist/cjs/resources/documents.d.ts +181 -6
- package/dist/cjs/resources/documents.d.ts.map +1 -0
- package/dist/cjs/resources/documents.js.map +1 -1
- package/dist/cjs/resources/entities/entities.d.ts +1177 -10
- package/dist/cjs/resources/entities/entities.d.ts.map +1 -0
- package/dist/cjs/resources/entities/entities.js +1 -1
- package/dist/cjs/resources/entities/entities.js.map +1 -1
- package/dist/cjs/resources/entities/index.d.ts +1 -0
- package/dist/cjs/resources/entities/index.d.ts.map +1 -0
- package/dist/cjs/resources/entities/supplemental-documents.d.ts +1 -0
- package/dist/cjs/resources/entities/supplemental-documents.d.ts.map +1 -0
- package/dist/cjs/resources/event-subscriptions.d.ts +9 -4
- package/dist/cjs/resources/event-subscriptions.d.ts.map +1 -0
- package/dist/cjs/resources/event-subscriptions.js.map +1 -1
- package/dist/cjs/resources/events.d.ts +85 -4
- package/dist/cjs/resources/events.d.ts.map +1 -0
- package/dist/cjs/resources/events.js.map +1 -1
- package/dist/cjs/resources/exports.d.ts +244 -0
- package/dist/cjs/resources/exports.d.ts.map +1 -0
- package/dist/cjs/resources/exports.js +31 -0
- package/dist/cjs/resources/exports.js.map +1 -0
- package/dist/cjs/resources/external-accounts.d.ts +14 -7
- package/dist/cjs/resources/external-accounts.d.ts.map +1 -0
- package/dist/cjs/resources/external-accounts.js.map +1 -1
- package/dist/cjs/resources/files.d.ts +53 -10
- package/dist/cjs/resources/files.d.ts.map +1 -0
- package/dist/cjs/resources/files.js.map +1 -1
- package/dist/cjs/resources/groups.d.ts +1 -0
- package/dist/cjs/resources/groups.d.ts.map +1 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts +4 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.d.ts.map +1 -0
- package/dist/cjs/resources/inbound-ach-transfer-returns.js.map +1 -1
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts +1 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.d.ts.map +1 -0
- package/dist/cjs/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/dist/cjs/resources/index.d.ts +29 -0
- package/dist/cjs/resources/index.d.ts.map +1 -0
- package/dist/cjs/resources/index.js +100 -9
- package/dist/cjs/resources/index.js.map +1 -1
- package/dist/cjs/resources/limits.d.ts +5 -4
- package/dist/cjs/resources/limits.d.ts.map +1 -0
- package/dist/cjs/resources/limits.js.map +1 -1
- package/dist/cjs/resources/oauth-connections.d.ts +1 -0
- package/dist/cjs/resources/oauth-connections.d.ts.map +1 -0
- package/dist/cjs/resources/oauth-connections.js.map +1 -1
- package/dist/cjs/resources/pending-transactions.d.ts +160 -6
- package/dist/cjs/resources/pending-transactions.d.ts.map +1 -0
- package/dist/cjs/resources/pending-transactions.js.map +1 -1
- package/dist/cjs/resources/programs.d.ts +48 -0
- package/dist/cjs/resources/programs.d.ts.map +1 -0
- package/dist/cjs/resources/programs.js +25 -0
- package/dist/cjs/resources/programs.js.map +1 -0
- package/dist/cjs/resources/real-time-decisions.d.ts +106 -1
- package/dist/cjs/resources/real-time-decisions.d.ts.map +1 -0
- package/dist/cjs/resources/real-time-payments-transfers.d.ts +306 -0
- package/dist/cjs/resources/real-time-payments-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/real-time-payments-transfers.js +35 -0
- package/dist/cjs/resources/real-time-payments-transfers.js.map +1 -0
- package/dist/cjs/resources/routing-numbers.d.ts +1 -0
- package/dist/cjs/resources/routing-numbers.d.ts.map +1 -0
- package/dist/cjs/resources/shared.d.ts +1 -0
- package/dist/cjs/resources/shared.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/account-statements.d.ts +1 -0
- package/dist/cjs/resources/simulations/account-statements.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/account-transfers.d.ts +1 -0
- package/dist/cjs/resources/simulations/account-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/ach-transfers.d.ts +431 -12
- package/dist/cjs/resources/simulations/ach-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/card-disputes.d.ts +5 -4
- package/dist/cjs/resources/simulations/card-disputes.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/card-refunds.d.ts +1 -0
- package/dist/cjs/resources/simulations/card-refunds.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/cards.d.ts +222 -13
- package/dist/cjs/resources/simulations/cards.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/check-deposits.d.ts +1 -0
- package/dist/cjs/resources/simulations/check-deposits.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/check-transfers.d.ts +16 -0
- package/dist/cjs/resources/simulations/check-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/check-transfers.js +10 -0
- package/dist/cjs/resources/simulations/check-transfers.js.map +1 -1
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts +1 -0
- package/dist/cjs/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/documents.d.ts +1 -0
- package/dist/cjs/resources/simulations/documents.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts +26 -25
- package/dist/cjs/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/index.d.ts +4 -0
- package/dist/cjs/resources/simulations/index.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/interest-payments.d.ts +1364 -0
- package/dist/cjs/resources/simulations/interest-payments.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/interest-payments.js +16 -0
- package/dist/cjs/resources/simulations/interest-payments.js.map +1 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts +511 -12
- package/dist/cjs/resources/simulations/real-time-payments-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js +11 -0
- package/dist/cjs/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/dist/cjs/resources/simulations/simulations.d.ts +3 -0
- package/dist/cjs/resources/simulations/simulations.d.ts.map +1 -0
- package/dist/cjs/resources/simulations/simulations.js +2 -0
- package/dist/cjs/resources/simulations/simulations.js.map +1 -1
- package/dist/cjs/resources/simulations/wire-transfers.d.ts +332 -6
- package/dist/cjs/resources/simulations/wire-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/transactions.d.ts +397 -9
- package/dist/cjs/resources/transactions.d.ts.map +1 -0
- package/dist/cjs/resources/transactions.js.map +1 -1
- package/dist/cjs/resources/wire-drawdown-requests.d.ts +13 -8
- package/dist/cjs/resources/wire-drawdown-requests.d.ts.map +1 -0
- package/dist/cjs/resources/wire-drawdown-requests.js.map +1 -1
- package/dist/cjs/resources/wire-transfers.d.ts +71 -17
- package/dist/cjs/resources/wire-transfers.d.ts.map +1 -0
- package/dist/cjs/resources/wire-transfers.js.map +1 -1
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/account-numbers.test.js +24 -26
- package/dist/cjs/tests/api-resources/account-numbers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/account-statements.test.js +11 -26
- package/dist/cjs/tests/api-resources/account-statements.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/account-transfers.test.js +20 -34
- package/dist/cjs/tests/api-resources/account-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/accounts.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/accounts.test.js +25 -24
- package/dist/cjs/tests/api-resources/accounts.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js +24 -28
- package/dist/cjs/tests/api-resources/ach-prenotifications.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/ach-transfers.test.js +34 -36
- package/dist/cjs/tests/api-resources/ach-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/balance-lookups.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/balance-lookups.test.js +58 -0
- package/dist/cjs/tests/api-resources/balance-lookups.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js +83 -0
- package/dist/cjs/tests/api-resources/bookkeeping-accounts.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js +65 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entries.test.js.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.test.js +68 -0
- package/dist/cjs/tests/api-resources/bookkeeping-entry-sets.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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/card-disputes.test.js +21 -29
- package/dist/cjs/tests/api-resources/card-disputes.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/card-profiles.test.js +29 -20
- package/dist/cjs/tests/api-resources/card-profiles.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/cards.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/cards.test.js +24 -38
- package/dist/cjs/tests/api-resources/cards.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/check-deposits.test.js +27 -32
- package/dist/cjs/tests/api-resources/check-deposits.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/check-transfers.test.js +34 -45
- package/dist/cjs/tests/api-resources/check-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/declined-transactions.test.js +11 -27
- package/dist/cjs/tests/api-resources/declined-transactions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js +11 -26
- package/dist/cjs/tests/api-resources/digital-wallet-tokens.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/documents.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/documents.test.js +15 -27
- package/dist/cjs/tests/api-resources/documents.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/entities/entities.test.js +109 -32
- package/dist/cjs/tests/api-resources/entities/entities.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js +13 -6
- package/dist/cjs/tests/api-resources/entities/supplemental-documents.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js +14 -20
- package/dist/cjs/tests/api-resources/event-subscriptions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/events.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/events.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/events.test.js +11 -27
- package/dist/cjs/tests/api-resources/events.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/exports.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/exports.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/exports.test.js +105 -0
- package/dist/cjs/tests/api-resources/exports.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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/external-accounts.test.js +16 -26
- package/dist/cjs/tests/api-resources/external-accounts.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/files.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/files.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/files.test.js +12 -26
- package/dist/cjs/tests/api-resources/files.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/groups.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/groups.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/groups.test.js +6 -5
- package/dist/cjs/tests/api-resources/groups.test.js.map +1 -1
- 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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js +16 -12
- package/dist/cjs/tests/api-resources/inbound-ach-transfer-returns.test.js.map +1 -1
- 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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js +6 -9
- package/dist/cjs/tests/api-resources/inbound-wire-drawdown-requests.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/limits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/limits.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/limits.test.js +17 -15
- package/dist/cjs/tests/api-resources/limits.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/oauth-connections.test.js +6 -9
- package/dist/cjs/tests/api-resources/oauth-connections.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/pending-transactions.test.js +12 -18
- package/dist/cjs/tests/api-resources/pending-transactions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/programs.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/programs.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/programs.test.js +73 -0
- package/dist/cjs/tests/api-resources/programs.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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js +7 -13
- package/dist/cjs/tests/api-resources/real-time-decisions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.test.js +115 -0
- package/dist/cjs/tests/api-resources/real-time-payments-transfers.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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/routing-numbers.test.js +10 -5
- package/dist/cjs/tests/api-resources/routing-numbers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js +11 -8
- package/dist/cjs/tests/api-resources/simulations/account-statements.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js +5 -4
- package/dist/cjs/tests/api-resources/simulations/account-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js +18 -20
- package/dist/cjs/tests/api-resources/simulations/ach-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js +9 -7
- package/dist/cjs/tests/api-resources/simulations/card-disputes.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js +11 -8
- package/dist/cjs/tests/api-resources/simulations/card-refunds.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/cards.test.js +18 -10
- package/dist/cjs/tests/api-resources/simulations/cards.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js +5 -4
- package/dist/cjs/tests/api-resources/simulations/check-deposits.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js +23 -4
- package/dist/cjs/tests/api-resources/simulations/check-transfers.test.js.map +1 -1
- 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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js +11 -8
- package/dist/cjs/tests/api-resources/simulations/digital-wallet-token-requests.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/documents.test.js +10 -7
- package/dist/cjs/tests/api-resources/simulations/documents.test.js.map +1 -1
- 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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js +41 -28
- package/dist/cjs/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts +2 -0
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/interest-payments.test.js +58 -0
- package/dist/cjs/tests/api-resources/simulations/interest-payments.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.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js +25 -12
- package/dist/cjs/tests/api-resources/simulations/real-time-payments-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js +24 -10
- package/dist/cjs/tests/api-resources/simulations/wire-transfers.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/transactions.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/transactions.test.js +15 -32
- package/dist/cjs/tests/api-resources/transactions.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js +23 -23
- package/dist/cjs/tests/api-resources/wire-drawdown-requests.test.js.map +1 -1
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.d.ts.map +1 -0
- package/dist/cjs/tests/api-resources/wire-transfers.test.js +32 -41
- package/dist/cjs/tests/api-resources/wire-transfers.test.js.map +1 -1
- package/dist/cjs/tests/form.test.d.ts +1 -0
- package/dist/cjs/tests/form.test.d.ts.map +1 -0
- package/dist/cjs/tests/form.test.js +4 -3
- package/dist/cjs/tests/index.test.d.ts +1 -0
- package/dist/cjs/tests/index.test.d.ts.map +1 -0
- package/dist/cjs/tests/index.test.js +31 -4
- package/dist/cjs/tests/index.test.js.map +1 -1
- package/dist/cjs/tests/responses.test.d.ts +1 -0
- package/dist/cjs/tests/responses.test.d.ts.map +1 -0
- package/dist/cjs/tests/responses.test.js +4 -3
- package/dist/cjs/version.d.ts +2 -1
- package/dist/cjs/version.d.ts.map +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/error.ts +337 -0
- package/examples/api-error.ts +21 -0
- package/fetch-polyfill.ts +2 -2
- package/index.ts +140 -2
- package/package.json +2 -2
- package/pagination.ts +3 -0
- package/release-please-config.json +64 -0
- package/resources/account-numbers.ts +52 -1
- package/resources/account-statements.ts +23 -2
- package/resources/account-transfers.ts +44 -14
- package/resources/accounts.ts +62 -28
- package/resources/ach-prenotifications.ts +32 -8
- package/resources/ach-transfers.ts +77 -27
- package/resources/balance-lookups.ts +57 -0
- package/resources/bookkeeping-accounts.ts +98 -0
- package/resources/bookkeeping-entries.ts +62 -0
- package/resources/bookkeeping-entry-sets.ts +114 -0
- package/resources/card-disputes.ts +41 -6
- package/resources/card-profiles.ts +91 -4
- package/resources/cards.ts +165 -4
- package/resources/check-deposits.ts +36 -2
- package/resources/check-transfers.ts +184 -17
- package/resources/declined-transactions.ts +136 -9
- package/resources/digital-wallet-tokens.ts +23 -2
- package/resources/documents.ts +183 -7
- package/resources/entities/entities.ts +1343 -14
- package/resources/event-subscriptions.ts +9 -6
- package/resources/events.ts +87 -5
- package/resources/exports.ts +298 -0
- package/resources/external-accounts.ts +14 -9
- package/resources/files.ts +55 -11
- package/resources/inbound-ach-transfer-returns.ts +3 -1
- package/resources/inbound-wire-drawdown-requests.ts +0 -1
- package/resources/index.ts +28 -0
- package/resources/limits.ts +5 -6
- package/resources/oauth-connections.ts +0 -1
- package/resources/pending-transactions.ts +177 -7
- package/resources/programs.ts +70 -0
- package/resources/real-time-decisions.ts +113 -1
- package/resources/real-time-payments-transfers.ts +373 -0
- package/resources/simulations/ach-transfers.ts +479 -13
- package/resources/simulations/card-disputes.ts +4 -4
- package/resources/simulations/cards.ts +251 -14
- package/resources/simulations/check-transfers.ts +19 -0
- package/resources/simulations/inbound-wire-drawdown-requests.ts +28 -28
- package/resources/simulations/index.ts +3 -0
- package/resources/simulations/interest-payments.ts +1667 -0
- package/resources/simulations/real-time-payments-transfers.ts +568 -13
- package/resources/simulations/simulations.ts +2 -0
- package/resources/simulations/wire-transfers.ts +362 -7
- package/resources/transactions.ts +430 -11
- package/resources/wire-drawdown-requests.ts +14 -11
- package/resources/wire-transfers.ts +80 -21
- package/tests/api-resources/account-numbers.test.ts +21 -23
- package/tests/api-resources/account-statements.test.ts +8 -23
- package/tests/api-resources/account-transfers.test.ts +17 -31
- package/tests/api-resources/accounts.test.ts +22 -21
- package/tests/api-resources/ach-prenotifications.test.ts +21 -25
- package/tests/api-resources/ach-transfers.test.ts +31 -33
- package/tests/api-resources/balance-lookups.test.ts +21 -0
- package/tests/api-resources/bookkeeping-accounts.test.ts +43 -0
- package/tests/api-resources/bookkeeping-entries.test.ts +25 -0
- package/tests/api-resources/bookkeeping-entry-sets.test.ts +31 -0
- package/tests/api-resources/card-disputes.test.ts +18 -26
- package/tests/api-resources/card-profiles.test.ts +26 -17
- package/tests/api-resources/cards.test.ts +21 -35
- package/tests/api-resources/check-deposits.test.ts +24 -29
- package/tests/api-resources/check-transfers.test.ts +31 -42
- package/tests/api-resources/declined-transactions.test.ts +8 -24
- package/tests/api-resources/digital-wallet-tokens.test.ts +8 -23
- package/tests/api-resources/documents.test.ts +12 -24
- package/tests/api-resources/entities/entities.test.ts +106 -29
- package/tests/api-resources/entities/supplemental-documents.test.ts +10 -3
- package/tests/api-resources/event-subscriptions.test.ts +11 -17
- package/tests/api-resources/events.test.ts +8 -24
- package/tests/api-resources/exports.test.ts +68 -0
- package/tests/api-resources/external-accounts.test.ts +13 -23
- package/tests/api-resources/files.test.ts +9 -24
- package/tests/api-resources/groups.test.ts +3 -2
- package/tests/api-resources/inbound-ach-transfer-returns.test.ts +13 -9
- package/tests/api-resources/inbound-wire-drawdown-requests.test.ts +3 -6
- package/tests/api-resources/limits.test.ts +14 -12
- package/tests/api-resources/oauth-connections.test.ts +3 -6
- package/tests/api-resources/pending-transactions.test.ts +9 -15
- package/tests/api-resources/programs.test.ts +36 -0
- package/tests/api-resources/real-time-decisions.test.ts +4 -10
- package/tests/api-resources/real-time-payments-transfers.test.ts +78 -0
- package/tests/api-resources/routing-numbers.test.ts +7 -2
- package/tests/api-resources/simulations/account-statements.test.ts +8 -5
- package/tests/api-resources/simulations/account-transfers.test.ts +2 -1
- package/tests/api-resources/simulations/ach-transfers.test.ts +15 -14
- package/tests/api-resources/simulations/card-disputes.test.ts +6 -4
- package/tests/api-resources/simulations/card-refunds.test.ts +8 -5
- package/tests/api-resources/simulations/cards.test.ts +15 -7
- package/tests/api-resources/simulations/check-deposits.test.ts +2 -1
- package/tests/api-resources/simulations/check-transfers.test.ts +14 -1
- package/tests/api-resources/simulations/digital-wallet-token-requests.test.ts +8 -5
- package/tests/api-resources/simulations/documents.test.ts +7 -4
- package/tests/api-resources/simulations/inbound-wire-drawdown-requests.test.ts +38 -25
- package/tests/api-resources/simulations/interest-payments.test.ts +15 -0
- package/tests/api-resources/simulations/real-time-payments-transfers.test.ts +22 -9
- package/tests/api-resources/simulations/wire-transfers.test.ts +21 -7
- package/tests/api-resources/transactions.test.ts +12 -29
- package/tests/api-resources/wire-drawdown-requests.test.ts +20 -20
- package/tests/api-resources/wire-transfers.test.ts +29 -38
- package/tests/index.test.ts +25 -1
- package/tsconfig.json +2 -0
- package/version.ts +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import * as Core from '~/core';
|
|
4
4
|
import { APIResource } from '~/resource';
|
|
5
5
|
import { isRequestOptions } from '~/core';
|
|
6
|
-
import { Page, PageParams } from '~/pagination';
|
|
7
6
|
import { SupplementalDocuments } from './supplemental-documents';
|
|
7
|
+
import { Page, PageParams } from '~/pagination';
|
|
8
8
|
|
|
9
9
|
export class Entities extends APIResource {
|
|
10
10
|
supplementalDocuments: SupplementalDocuments = new SupplementalDocuments(this.client);
|
|
@@ -35,7 +35,6 @@ export class Entities extends APIResource {
|
|
|
35
35
|
if (isRequestOptions(query)) {
|
|
36
36
|
return this.list({}, query);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
38
|
return this.getAPIList('/entities', EntitiesPage, { query, ...options });
|
|
40
39
|
}
|
|
41
40
|
}
|
|
@@ -102,6 +101,10 @@ export interface Entity {
|
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
export namespace Entity {
|
|
104
|
+
/**
|
|
105
|
+
* Details of the corporation entity. Will be present if `structure` is equal to
|
|
106
|
+
* `corporation`.
|
|
107
|
+
*/
|
|
105
108
|
export interface Corporation {
|
|
106
109
|
/**
|
|
107
110
|
* The corporation's address.
|
|
@@ -137,6 +140,9 @@ export namespace Entity {
|
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
export namespace Corporation {
|
|
143
|
+
/**
|
|
144
|
+
* The corporation's address.
|
|
145
|
+
*/
|
|
140
146
|
export interface Address {
|
|
141
147
|
/**
|
|
142
148
|
* The city of the address.
|
|
@@ -183,6 +189,9 @@ export namespace Entity {
|
|
|
183
189
|
}
|
|
184
190
|
|
|
185
191
|
export namespace BeneficialOwners {
|
|
192
|
+
/**
|
|
193
|
+
* Personal details for the beneficial owner.
|
|
194
|
+
*/
|
|
186
195
|
export interface Individual {
|
|
187
196
|
/**
|
|
188
197
|
* The person's address.
|
|
@@ -206,6 +215,9 @@ export namespace Entity {
|
|
|
206
215
|
}
|
|
207
216
|
|
|
208
217
|
export namespace Individual {
|
|
218
|
+
/**
|
|
219
|
+
* The person's address.
|
|
220
|
+
*/
|
|
209
221
|
export interface Address {
|
|
210
222
|
/**
|
|
211
223
|
* The city of the address.
|
|
@@ -234,6 +246,9 @@ export namespace Entity {
|
|
|
234
246
|
zip: string;
|
|
235
247
|
}
|
|
236
248
|
|
|
249
|
+
/**
|
|
250
|
+
* A means of verifying the person's identity.
|
|
251
|
+
*/
|
|
237
252
|
export interface Identification {
|
|
238
253
|
/**
|
|
239
254
|
* A method that can be used to verify the individual's identity.
|
|
@@ -255,6 +270,10 @@ export namespace Entity {
|
|
|
255
270
|
}
|
|
256
271
|
}
|
|
257
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Details of the natural person entity. Will be present if `structure` is equal to
|
|
275
|
+
* `natural_person`.
|
|
276
|
+
*/
|
|
258
277
|
export interface NaturalPerson {
|
|
259
278
|
/**
|
|
260
279
|
* The person's address.
|
|
@@ -278,6 +297,9 @@ export namespace Entity {
|
|
|
278
297
|
}
|
|
279
298
|
|
|
280
299
|
export namespace NaturalPerson {
|
|
300
|
+
/**
|
|
301
|
+
* The person's address.
|
|
302
|
+
*/
|
|
281
303
|
export interface Address {
|
|
282
304
|
/**
|
|
283
305
|
* The city of the address.
|
|
@@ -306,6 +328,9 @@ export namespace Entity {
|
|
|
306
328
|
zip: string;
|
|
307
329
|
}
|
|
308
330
|
|
|
331
|
+
/**
|
|
332
|
+
* A means of verifying the person's identity.
|
|
333
|
+
*/
|
|
309
334
|
export interface Identification {
|
|
310
335
|
/**
|
|
311
336
|
* A method that can be used to verify the individual's identity.
|
|
@@ -325,6 +350,9 @@ export namespace Entity {
|
|
|
325
350
|
}
|
|
326
351
|
}
|
|
327
352
|
|
|
353
|
+
/**
|
|
354
|
+
* Details of the joint entity. Will be present if `structure` is equal to `joint`.
|
|
355
|
+
*/
|
|
328
356
|
export interface Joint {
|
|
329
357
|
/**
|
|
330
358
|
* The two individuals that share control of the entity.
|
|
@@ -361,6 +389,9 @@ export namespace Entity {
|
|
|
361
389
|
}
|
|
362
390
|
|
|
363
391
|
export namespace Individuals {
|
|
392
|
+
/**
|
|
393
|
+
* The person's address.
|
|
394
|
+
*/
|
|
364
395
|
export interface Address {
|
|
365
396
|
/**
|
|
366
397
|
* The city of the address.
|
|
@@ -389,6 +420,9 @@ export namespace Entity {
|
|
|
389
420
|
zip: string;
|
|
390
421
|
}
|
|
391
422
|
|
|
423
|
+
/**
|
|
424
|
+
* A means of verifying the person's identity.
|
|
425
|
+
*/
|
|
392
426
|
export interface Identification {
|
|
393
427
|
/**
|
|
394
428
|
* A method that can be used to verify the individual's identity.
|
|
@@ -409,6 +443,9 @@ export namespace Entity {
|
|
|
409
443
|
}
|
|
410
444
|
}
|
|
411
445
|
|
|
446
|
+
/**
|
|
447
|
+
* Details of the trust entity. Will be present if `structure` is equal to `trust`.
|
|
448
|
+
*/
|
|
412
449
|
export interface Trust {
|
|
413
450
|
/**
|
|
414
451
|
* The trust's address.
|
|
@@ -453,6 +490,9 @@ export namespace Entity {
|
|
|
453
490
|
}
|
|
454
491
|
|
|
455
492
|
export namespace Trust {
|
|
493
|
+
/**
|
|
494
|
+
* The trust's address.
|
|
495
|
+
*/
|
|
456
496
|
export interface Address {
|
|
457
497
|
/**
|
|
458
498
|
* The city of the address.
|
|
@@ -495,6 +535,10 @@ export namespace Entity {
|
|
|
495
535
|
}
|
|
496
536
|
|
|
497
537
|
export namespace Trustees {
|
|
538
|
+
/**
|
|
539
|
+
* The individual trustee of the trust. Will be present if the trustee's
|
|
540
|
+
* `structure` is equal to `individual`.
|
|
541
|
+
*/
|
|
498
542
|
export interface Individual {
|
|
499
543
|
/**
|
|
500
544
|
* The person's address.
|
|
@@ -518,6 +562,9 @@ export namespace Entity {
|
|
|
518
562
|
}
|
|
519
563
|
|
|
520
564
|
export namespace Individual {
|
|
565
|
+
/**
|
|
566
|
+
* The person's address.
|
|
567
|
+
*/
|
|
521
568
|
export interface Address {
|
|
522
569
|
/**
|
|
523
570
|
* The city of the address.
|
|
@@ -546,6 +593,9 @@ export namespace Entity {
|
|
|
546
593
|
zip: string;
|
|
547
594
|
}
|
|
548
595
|
|
|
596
|
+
/**
|
|
597
|
+
* A means of verifying the person's identity.
|
|
598
|
+
*/
|
|
549
599
|
export interface Identification {
|
|
550
600
|
/**
|
|
551
601
|
* A method that can be used to verify the individual's identity.
|
|
@@ -566,6 +616,9 @@ export namespace Entity {
|
|
|
566
616
|
}
|
|
567
617
|
}
|
|
568
618
|
|
|
619
|
+
/**
|
|
620
|
+
* The grantor of the trust. Will be present if the `category` is `revocable`.
|
|
621
|
+
*/
|
|
569
622
|
export interface Grantor {
|
|
570
623
|
/**
|
|
571
624
|
* The person's address.
|
|
@@ -589,6 +642,9 @@ export namespace Entity {
|
|
|
589
642
|
}
|
|
590
643
|
|
|
591
644
|
export namespace Grantor {
|
|
645
|
+
/**
|
|
646
|
+
* The person's address.
|
|
647
|
+
*/
|
|
592
648
|
export interface Address {
|
|
593
649
|
/**
|
|
594
650
|
* The city of the address.
|
|
@@ -617,6 +673,9 @@ export namespace Entity {
|
|
|
617
673
|
zip: string;
|
|
618
674
|
}
|
|
619
675
|
|
|
676
|
+
/**
|
|
677
|
+
* A means of verifying the person's identity.
|
|
678
|
+
*/
|
|
620
679
|
export interface Identification {
|
|
621
680
|
/**
|
|
622
681
|
* A method that can be used to verify the individual's identity.
|
|
@@ -646,16 +705,6 @@ export namespace Entity {
|
|
|
646
705
|
}
|
|
647
706
|
|
|
648
707
|
export interface EntityCreateParams {
|
|
649
|
-
/**
|
|
650
|
-
* The relationship between your group and the entity.
|
|
651
|
-
*/
|
|
652
|
-
relationship: 'affiliated' | 'informational' | 'unaffiliated';
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* The type of Entity to create.
|
|
656
|
-
*/
|
|
657
|
-
structure: 'corporation' | 'natural_person' | 'joint' | 'trust';
|
|
658
|
-
|
|
659
708
|
/**
|
|
660
709
|
* Details of the corporation entity to create. Required if `structure` is equal to
|
|
661
710
|
* `corporation`.
|
|
@@ -681,6 +730,16 @@ export interface EntityCreateParams {
|
|
|
681
730
|
*/
|
|
682
731
|
natural_person?: EntityCreateParams.NaturalPerson;
|
|
683
732
|
|
|
733
|
+
/**
|
|
734
|
+
* The relationship between your group and the entity.
|
|
735
|
+
*/
|
|
736
|
+
relationship: 'affiliated' | 'informational' | 'unaffiliated';
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* The type of Entity to create.
|
|
740
|
+
*/
|
|
741
|
+
structure: 'corporation' | 'natural_person' | 'joint' | 'trust';
|
|
742
|
+
|
|
684
743
|
/**
|
|
685
744
|
* Additional documentation associated with the entity.
|
|
686
745
|
*/
|
|
@@ -694,6 +753,10 @@ export interface EntityCreateParams {
|
|
|
694
753
|
}
|
|
695
754
|
|
|
696
755
|
export namespace EntityCreateParams {
|
|
756
|
+
/**
|
|
757
|
+
* Details of the corporation entity to create. Required if `structure` is equal to
|
|
758
|
+
* `corporation`.
|
|
759
|
+
*/
|
|
697
760
|
export interface Corporation {
|
|
698
761
|
/**
|
|
699
762
|
* The corporation's address.
|
|
@@ -729,6 +792,9 @@ export namespace EntityCreateParams {
|
|
|
729
792
|
}
|
|
730
793
|
|
|
731
794
|
export namespace Corporation {
|
|
795
|
+
/**
|
|
796
|
+
* The corporation's address.
|
|
797
|
+
*/
|
|
732
798
|
export interface Address {
|
|
733
799
|
/**
|
|
734
800
|
* The city of the address.
|
|
@@ -775,6 +841,9 @@ export namespace EntityCreateParams {
|
|
|
775
841
|
}
|
|
776
842
|
|
|
777
843
|
export namespace BeneficialOwners {
|
|
844
|
+
/**
|
|
845
|
+
* Personal details for the beneficial owner.
|
|
846
|
+
*/
|
|
778
847
|
export interface Individual {
|
|
779
848
|
/**
|
|
780
849
|
* The individual's address.
|
|
@@ -806,6 +875,9 @@ export namespace EntityCreateParams {
|
|
|
806
875
|
}
|
|
807
876
|
|
|
808
877
|
export namespace Individual {
|
|
878
|
+
/**
|
|
879
|
+
* The individual's address.
|
|
880
|
+
*/
|
|
809
881
|
export interface Address {
|
|
810
882
|
/**
|
|
811
883
|
* The city of the address.
|
|
@@ -834,6 +906,9 @@ export namespace EntityCreateParams {
|
|
|
834
906
|
line2?: string;
|
|
835
907
|
}
|
|
836
908
|
|
|
909
|
+
/**
|
|
910
|
+
* A means of verifying the person's identity.
|
|
911
|
+
*/
|
|
837
912
|
export interface Identification {
|
|
838
913
|
/**
|
|
839
914
|
* A method that can be used to verify the individual's identity.
|
|
@@ -871,6 +946,10 @@ export namespace EntityCreateParams {
|
|
|
871
946
|
}
|
|
872
947
|
|
|
873
948
|
export namespace Identification {
|
|
949
|
+
/**
|
|
950
|
+
* Information about the passport used for identification. Required if `method` is
|
|
951
|
+
* equal to `passport`.
|
|
952
|
+
*/
|
|
874
953
|
export interface Passport {
|
|
875
954
|
/**
|
|
876
955
|
* The country that issued the passport.
|
|
@@ -888,6 +967,10 @@ export namespace EntityCreateParams {
|
|
|
888
967
|
file_id: string;
|
|
889
968
|
}
|
|
890
969
|
|
|
970
|
+
/**
|
|
971
|
+
* Information about the United States driver's license used for identification.
|
|
972
|
+
* Required if `method` is equal to `drivers_license`.
|
|
973
|
+
*/
|
|
891
974
|
export interface DriversLicense {
|
|
892
975
|
/**
|
|
893
976
|
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
@@ -905,6 +988,10 @@ export namespace EntityCreateParams {
|
|
|
905
988
|
state: string;
|
|
906
989
|
}
|
|
907
990
|
|
|
991
|
+
/**
|
|
992
|
+
* Information about the identification document provided. Required if `method` is
|
|
993
|
+
* equal to `other`.
|
|
994
|
+
*/
|
|
908
995
|
export interface Other {
|
|
909
996
|
/**
|
|
910
997
|
* The two-character ISO 3166-1 code representing the country that issued the
|
|
@@ -932,6 +1019,12 @@ export namespace EntityCreateParams {
|
|
|
932
1019
|
}
|
|
933
1020
|
}
|
|
934
1021
|
|
|
1022
|
+
/**
|
|
1023
|
+
* Details of the natural person entity to create. Required if `structure` is equal
|
|
1024
|
+
* to `natural_person`. Natural people entities should be submitted with
|
|
1025
|
+
* `social_security_number` or `individual_taxpayer_identification_number`
|
|
1026
|
+
* identification methods.
|
|
1027
|
+
*/
|
|
935
1028
|
export interface NaturalPerson {
|
|
936
1029
|
/**
|
|
937
1030
|
* The individual's address.
|
|
@@ -963,6 +1056,9 @@ export namespace EntityCreateParams {
|
|
|
963
1056
|
}
|
|
964
1057
|
|
|
965
1058
|
export namespace NaturalPerson {
|
|
1059
|
+
/**
|
|
1060
|
+
* The individual's address.
|
|
1061
|
+
*/
|
|
966
1062
|
export interface Address {
|
|
967
1063
|
/**
|
|
968
1064
|
* The city of the address.
|
|
@@ -991,6 +1087,9 @@ export namespace EntityCreateParams {
|
|
|
991
1087
|
line2?: string;
|
|
992
1088
|
}
|
|
993
1089
|
|
|
1090
|
+
/**
|
|
1091
|
+
* A means of verifying the person's identity.
|
|
1092
|
+
*/
|
|
994
1093
|
export interface Identification {
|
|
995
1094
|
/**
|
|
996
1095
|
* A method that can be used to verify the individual's identity.
|
|
@@ -1028,6 +1127,10 @@ export namespace EntityCreateParams {
|
|
|
1028
1127
|
}
|
|
1029
1128
|
|
|
1030
1129
|
export namespace Identification {
|
|
1130
|
+
/**
|
|
1131
|
+
* Information about the passport used for identification. Required if `method` is
|
|
1132
|
+
* equal to `passport`.
|
|
1133
|
+
*/
|
|
1031
1134
|
export interface Passport {
|
|
1032
1135
|
/**
|
|
1033
1136
|
* The country that issued the passport.
|
|
@@ -1045,6 +1148,10 @@ export namespace EntityCreateParams {
|
|
|
1045
1148
|
file_id: string;
|
|
1046
1149
|
}
|
|
1047
1150
|
|
|
1151
|
+
/**
|
|
1152
|
+
* Information about the United States driver's license used for identification.
|
|
1153
|
+
* Required if `method` is equal to `drivers_license`.
|
|
1154
|
+
*/
|
|
1048
1155
|
export interface DriversLicense {
|
|
1049
1156
|
/**
|
|
1050
1157
|
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
@@ -1062,6 +1169,10 @@ export namespace EntityCreateParams {
|
|
|
1062
1169
|
state: string;
|
|
1063
1170
|
}
|
|
1064
1171
|
|
|
1172
|
+
/**
|
|
1173
|
+
* Information about the identification document provided. Required if `method` is
|
|
1174
|
+
* equal to `other`.
|
|
1175
|
+
*/
|
|
1065
1176
|
export interface Other {
|
|
1066
1177
|
/**
|
|
1067
1178
|
* The two-character ISO 3166-1 code representing the country that issued the
|
|
@@ -1087,6 +1198,10 @@ export namespace EntityCreateParams {
|
|
|
1087
1198
|
}
|
|
1088
1199
|
}
|
|
1089
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
* Details of the joint entity to create. Required if `structure` is equal to
|
|
1203
|
+
* `joint`.
|
|
1204
|
+
*/
|
|
1090
1205
|
export interface Joint {
|
|
1091
1206
|
/**
|
|
1092
1207
|
* The two individuals that share control of the entity.
|
|
@@ -1131,6 +1246,9 @@ export namespace EntityCreateParams {
|
|
|
1131
1246
|
}
|
|
1132
1247
|
|
|
1133
1248
|
export namespace Individuals {
|
|
1249
|
+
/**
|
|
1250
|
+
* The individual's address.
|
|
1251
|
+
*/
|
|
1134
1252
|
export interface Address {
|
|
1135
1253
|
/**
|
|
1136
1254
|
* The city of the address.
|
|
@@ -1159,6 +1277,9 @@ export namespace EntityCreateParams {
|
|
|
1159
1277
|
line2?: string;
|
|
1160
1278
|
}
|
|
1161
1279
|
|
|
1280
|
+
/**
|
|
1281
|
+
* A means of verifying the person's identity.
|
|
1282
|
+
*/
|
|
1162
1283
|
export interface Identification {
|
|
1163
1284
|
/**
|
|
1164
1285
|
* A method that can be used to verify the individual's identity.
|
|
@@ -1196,6 +1317,10 @@ export namespace EntityCreateParams {
|
|
|
1196
1317
|
}
|
|
1197
1318
|
|
|
1198
1319
|
export namespace Identification {
|
|
1320
|
+
/**
|
|
1321
|
+
* Information about the passport used for identification. Required if `method` is
|
|
1322
|
+
* equal to `passport`.
|
|
1323
|
+
*/
|
|
1199
1324
|
export interface Passport {
|
|
1200
1325
|
/**
|
|
1201
1326
|
* The country that issued the passport.
|
|
@@ -1213,6 +1338,10 @@ export namespace EntityCreateParams {
|
|
|
1213
1338
|
file_id: string;
|
|
1214
1339
|
}
|
|
1215
1340
|
|
|
1341
|
+
/**
|
|
1342
|
+
* Information about the United States driver's license used for identification.
|
|
1343
|
+
* Required if `method` is equal to `drivers_license`.
|
|
1344
|
+
*/
|
|
1216
1345
|
export interface DriversLicense {
|
|
1217
1346
|
/**
|
|
1218
1347
|
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
@@ -1230,6 +1359,10 @@ export namespace EntityCreateParams {
|
|
|
1230
1359
|
state: string;
|
|
1231
1360
|
}
|
|
1232
1361
|
|
|
1362
|
+
/**
|
|
1363
|
+
* Information about the identification document provided. Required if `method` is
|
|
1364
|
+
* equal to `other`.
|
|
1365
|
+
*/
|
|
1233
1366
|
export interface Other {
|
|
1234
1367
|
/**
|
|
1235
1368
|
* The two-character ISO 3166-1 code representing the country that issued the
|
|
@@ -1256,6 +1389,10 @@ export namespace EntityCreateParams {
|
|
|
1256
1389
|
}
|
|
1257
1390
|
}
|
|
1258
1391
|
|
|
1392
|
+
/**
|
|
1393
|
+
* Details of the trust entity to create. Required if `structure` is equal to
|
|
1394
|
+
* `trust`.
|
|
1395
|
+
*/
|
|
1259
1396
|
export interface Trust {
|
|
1260
1397
|
/**
|
|
1261
1398
|
* The trust's address.
|
|
@@ -1303,6 +1440,9 @@ export namespace EntityCreateParams {
|
|
|
1303
1440
|
}
|
|
1304
1441
|
|
|
1305
1442
|
export namespace Trust {
|
|
1443
|
+
/**
|
|
1444
|
+
* The trust's address.
|
|
1445
|
+
*/
|
|
1306
1446
|
export interface Address {
|
|
1307
1447
|
/**
|
|
1308
1448
|
* The city of the address.
|
|
@@ -1345,6 +1485,10 @@ export namespace EntityCreateParams {
|
|
|
1345
1485
|
}
|
|
1346
1486
|
|
|
1347
1487
|
export namespace Trustees {
|
|
1488
|
+
/**
|
|
1489
|
+
* Details of the individual trustee. Required when the trustee `structure` is
|
|
1490
|
+
* equal to `individual`.
|
|
1491
|
+
*/
|
|
1348
1492
|
export interface Individual {
|
|
1349
1493
|
/**
|
|
1350
1494
|
* The individual's address.
|
|
@@ -1376,6 +1520,9 @@ export namespace EntityCreateParams {
|
|
|
1376
1520
|
}
|
|
1377
1521
|
|
|
1378
1522
|
export namespace Individual {
|
|
1523
|
+
/**
|
|
1524
|
+
* The individual's address.
|
|
1525
|
+
*/
|
|
1379
1526
|
export interface Address {
|
|
1380
1527
|
/**
|
|
1381
1528
|
* The city of the address.
|
|
@@ -1404,6 +1551,9 @@ export namespace EntityCreateParams {
|
|
|
1404
1551
|
line2?: string;
|
|
1405
1552
|
}
|
|
1406
1553
|
|
|
1554
|
+
/**
|
|
1555
|
+
* A means of verifying the person's identity.
|
|
1556
|
+
*/
|
|
1407
1557
|
export interface Identification {
|
|
1408
1558
|
/**
|
|
1409
1559
|
* A method that can be used to verify the individual's identity.
|
|
@@ -1441,6 +1591,10 @@ export namespace EntityCreateParams {
|
|
|
1441
1591
|
}
|
|
1442
1592
|
|
|
1443
1593
|
export namespace Identification {
|
|
1594
|
+
/**
|
|
1595
|
+
* Information about the passport used for identification. Required if `method` is
|
|
1596
|
+
* equal to `passport`.
|
|
1597
|
+
*/
|
|
1444
1598
|
export interface Passport {
|
|
1445
1599
|
/**
|
|
1446
1600
|
* The country that issued the passport.
|
|
@@ -1458,6 +1612,10 @@ export namespace EntityCreateParams {
|
|
|
1458
1612
|
file_id: string;
|
|
1459
1613
|
}
|
|
1460
1614
|
|
|
1615
|
+
/**
|
|
1616
|
+
* Information about the United States driver's license used for identification.
|
|
1617
|
+
* Required if `method` is equal to `drivers_license`.
|
|
1618
|
+
*/
|
|
1461
1619
|
export interface DriversLicense {
|
|
1462
1620
|
/**
|
|
1463
1621
|
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
@@ -1475,6 +1633,10 @@ export namespace EntityCreateParams {
|
|
|
1475
1633
|
state: string;
|
|
1476
1634
|
}
|
|
1477
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Information about the identification document provided. Required if `method` is
|
|
1638
|
+
* equal to `other`.
|
|
1639
|
+
*/
|
|
1478
1640
|
export interface Other {
|
|
1479
1641
|
/**
|
|
1480
1642
|
* The two-character ISO 3166-1 code representing the country that issued the
|
|
@@ -1501,6 +1663,9 @@ export namespace EntityCreateParams {
|
|
|
1501
1663
|
}
|
|
1502
1664
|
}
|
|
1503
1665
|
|
|
1666
|
+
/**
|
|
1667
|
+
* The grantor of the trust. Required if `category` is equal to `revocable`.
|
|
1668
|
+
*/
|
|
1504
1669
|
export interface Grantor {
|
|
1505
1670
|
/**
|
|
1506
1671
|
* The individual's address.
|
|
@@ -1532,6 +1697,9 @@ export namespace EntityCreateParams {
|
|
|
1532
1697
|
}
|
|
1533
1698
|
|
|
1534
1699
|
export namespace Grantor {
|
|
1700
|
+
/**
|
|
1701
|
+
* The individual's address.
|
|
1702
|
+
*/
|
|
1535
1703
|
export interface Address {
|
|
1536
1704
|
/**
|
|
1537
1705
|
* The city of the address.
|
|
@@ -1560,6 +1728,9 @@ export namespace EntityCreateParams {
|
|
|
1560
1728
|
line2?: string;
|
|
1561
1729
|
}
|
|
1562
1730
|
|
|
1731
|
+
/**
|
|
1732
|
+
* A means of verifying the person's identity.
|
|
1733
|
+
*/
|
|
1563
1734
|
export interface Identification {
|
|
1564
1735
|
/**
|
|
1565
1736
|
* A method that can be used to verify the individual's identity.
|
|
@@ -1597,6 +1768,10 @@ export namespace EntityCreateParams {
|
|
|
1597
1768
|
}
|
|
1598
1769
|
|
|
1599
1770
|
export namespace Identification {
|
|
1771
|
+
/**
|
|
1772
|
+
* Information about the passport used for identification. Required if `method` is
|
|
1773
|
+
* equal to `passport`.
|
|
1774
|
+
*/
|
|
1600
1775
|
export interface Passport {
|
|
1601
1776
|
/**
|
|
1602
1777
|
* The country that issued the passport.
|
|
@@ -1614,6 +1789,10 @@ export namespace EntityCreateParams {
|
|
|
1614
1789
|
file_id: string;
|
|
1615
1790
|
}
|
|
1616
1791
|
|
|
1792
|
+
/**
|
|
1793
|
+
* Information about the United States driver's license used for identification.
|
|
1794
|
+
* Required if `method` is equal to `drivers_license`.
|
|
1795
|
+
*/
|
|
1617
1796
|
export interface DriversLicense {
|
|
1618
1797
|
/**
|
|
1619
1798
|
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
@@ -1631,6 +1810,10 @@ export namespace EntityCreateParams {
|
|
|
1631
1810
|
state: string;
|
|
1632
1811
|
}
|
|
1633
1812
|
|
|
1813
|
+
/**
|
|
1814
|
+
* Information about the identification document provided. Required if `method` is
|
|
1815
|
+
* equal to `other`.
|
|
1816
|
+
*/
|
|
1634
1817
|
export interface Other {
|
|
1635
1818
|
/**
|
|
1636
1819
|
* The two-character ISO 3166-1 code representing the country that issued the
|
|
@@ -1663,6 +1846,1152 @@ export namespace EntityCreateParams {
|
|
|
1663
1846
|
*/
|
|
1664
1847
|
file_id: string;
|
|
1665
1848
|
}
|
|
1666
|
-
}
|
|
1667
1849
|
|
|
1668
|
-
|
|
1850
|
+
/**
|
|
1851
|
+
* Details of the corporation entity to create. Required if `structure` is equal to
|
|
1852
|
+
* `corporation`.
|
|
1853
|
+
*/
|
|
1854
|
+
export interface Corporation {
|
|
1855
|
+
/**
|
|
1856
|
+
* The corporation's address.
|
|
1857
|
+
*/
|
|
1858
|
+
address: Corporation.Address;
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* The identifying details of anyone controlling or owning 25% or more of the
|
|
1862
|
+
* corporation.
|
|
1863
|
+
*/
|
|
1864
|
+
beneficial_owners: Array<Corporation.BeneficialOwners>;
|
|
1865
|
+
|
|
1866
|
+
/**
|
|
1867
|
+
* The legal name of the corporation.
|
|
1868
|
+
*/
|
|
1869
|
+
name: string;
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* The Employer Identification Number (EIN) for the corporation.
|
|
1873
|
+
*/
|
|
1874
|
+
tax_identifier: string;
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the
|
|
1878
|
+
* corporation's state of incorporation.
|
|
1879
|
+
*/
|
|
1880
|
+
incorporation_state?: string;
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* The website of the corporation.
|
|
1884
|
+
*/
|
|
1885
|
+
website?: string;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
export namespace Corporation {
|
|
1889
|
+
/**
|
|
1890
|
+
* The corporation's address.
|
|
1891
|
+
*/
|
|
1892
|
+
export interface Address {
|
|
1893
|
+
/**
|
|
1894
|
+
* The city of the address.
|
|
1895
|
+
*/
|
|
1896
|
+
city: string;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* The first line of the address. This is usually the street number and street.
|
|
1900
|
+
*/
|
|
1901
|
+
line1: string;
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
1905
|
+
* the address.
|
|
1906
|
+
*/
|
|
1907
|
+
state: string;
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* The ZIP code of the address.
|
|
1911
|
+
*/
|
|
1912
|
+
zip: string;
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* The second line of the address. This might be the floor or room number.
|
|
1916
|
+
*/
|
|
1917
|
+
line2?: string;
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
export interface BeneficialOwners {
|
|
1921
|
+
/**
|
|
1922
|
+
* Personal details for the beneficial owner.
|
|
1923
|
+
*/
|
|
1924
|
+
individual: BeneficialOwners.Individual;
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Why this person is considered a beneficial owner of the entity.
|
|
1928
|
+
*/
|
|
1929
|
+
prong: 'ownership' | 'control';
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* This person's role or title within the entity.
|
|
1933
|
+
*/
|
|
1934
|
+
company_title?: string;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
export namespace BeneficialOwners {
|
|
1938
|
+
/**
|
|
1939
|
+
* Personal details for the beneficial owner.
|
|
1940
|
+
*/
|
|
1941
|
+
export interface Individual {
|
|
1942
|
+
/**
|
|
1943
|
+
* The individual's address.
|
|
1944
|
+
*/
|
|
1945
|
+
address: Individual.Address;
|
|
1946
|
+
|
|
1947
|
+
/**
|
|
1948
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
1949
|
+
*/
|
|
1950
|
+
date_of_birth: string;
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
* A means of verifying the person's identity.
|
|
1954
|
+
*/
|
|
1955
|
+
identification: Individual.Identification;
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* The person's legal name.
|
|
1959
|
+
*/
|
|
1960
|
+
name: string;
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* The identification method for an individual can only be a passport, driver's
|
|
1964
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
1965
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
1966
|
+
* Number).
|
|
1967
|
+
*/
|
|
1968
|
+
confirmed_no_us_tax_id?: boolean;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
export namespace Individual {
|
|
1972
|
+
/**
|
|
1973
|
+
* The individual's address.
|
|
1974
|
+
*/
|
|
1975
|
+
export interface Address {
|
|
1976
|
+
/**
|
|
1977
|
+
* The city of the address.
|
|
1978
|
+
*/
|
|
1979
|
+
city: string;
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* The first line of the address. This is usually the street number and street.
|
|
1983
|
+
*/
|
|
1984
|
+
line1: string;
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
1988
|
+
* the address.
|
|
1989
|
+
*/
|
|
1990
|
+
state: string;
|
|
1991
|
+
|
|
1992
|
+
/**
|
|
1993
|
+
* The ZIP code of the address.
|
|
1994
|
+
*/
|
|
1995
|
+
zip: string;
|
|
1996
|
+
|
|
1997
|
+
/**
|
|
1998
|
+
* The second line of the address. This might be the floor or room number.
|
|
1999
|
+
*/
|
|
2000
|
+
line2?: string;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
/**
|
|
2004
|
+
* A means of verifying the person's identity.
|
|
2005
|
+
*/
|
|
2006
|
+
export interface Identification {
|
|
2007
|
+
/**
|
|
2008
|
+
* A method that can be used to verify the individual's identity.
|
|
2009
|
+
*/
|
|
2010
|
+
method:
|
|
2011
|
+
| 'social_security_number'
|
|
2012
|
+
| 'individual_taxpayer_identification_number'
|
|
2013
|
+
| 'passport'
|
|
2014
|
+
| 'drivers_license'
|
|
2015
|
+
| 'other';
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* An identification number that can be used to verify the individual's identity,
|
|
2019
|
+
* such as a social security number.
|
|
2020
|
+
*/
|
|
2021
|
+
number: string;
|
|
2022
|
+
|
|
2023
|
+
/**
|
|
2024
|
+
* Information about the United States driver's license used for identification.
|
|
2025
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2026
|
+
*/
|
|
2027
|
+
drivers_license?: Identification.DriversLicense;
|
|
2028
|
+
|
|
2029
|
+
/**
|
|
2030
|
+
* Information about the identification document provided. Required if `method` is
|
|
2031
|
+
* equal to `other`.
|
|
2032
|
+
*/
|
|
2033
|
+
other?: Identification.Other;
|
|
2034
|
+
|
|
2035
|
+
/**
|
|
2036
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2037
|
+
* equal to `passport`.
|
|
2038
|
+
*/
|
|
2039
|
+
passport?: Identification.Passport;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
export namespace Identification {
|
|
2043
|
+
/**
|
|
2044
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2045
|
+
* equal to `passport`.
|
|
2046
|
+
*/
|
|
2047
|
+
export interface Passport {
|
|
2048
|
+
/**
|
|
2049
|
+
* The country that issued the passport.
|
|
2050
|
+
*/
|
|
2051
|
+
country: string;
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
2055
|
+
*/
|
|
2056
|
+
expiration_date: string;
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* The identifier of the File containing the passport.
|
|
2060
|
+
*/
|
|
2061
|
+
file_id: string;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* Information about the United States driver's license used for identification.
|
|
2066
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2067
|
+
*/
|
|
2068
|
+
export interface DriversLicense {
|
|
2069
|
+
/**
|
|
2070
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
2071
|
+
*/
|
|
2072
|
+
expiration_date: string;
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* The identifier of the File containing the driver's license.
|
|
2076
|
+
*/
|
|
2077
|
+
file_id: string;
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* The state that issued the provided driver's license.
|
|
2081
|
+
*/
|
|
2082
|
+
state: string;
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Information about the identification document provided. Required if `method` is
|
|
2087
|
+
* equal to `other`.
|
|
2088
|
+
*/
|
|
2089
|
+
export interface Other {
|
|
2090
|
+
/**
|
|
2091
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
2092
|
+
* document.
|
|
2093
|
+
*/
|
|
2094
|
+
country: string;
|
|
2095
|
+
|
|
2096
|
+
/**
|
|
2097
|
+
* A description of the document submitted.
|
|
2098
|
+
*/
|
|
2099
|
+
description: string;
|
|
2100
|
+
|
|
2101
|
+
/**
|
|
2102
|
+
* The identifier of the File containing the document.
|
|
2103
|
+
*/
|
|
2104
|
+
file_id: string;
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
2108
|
+
*/
|
|
2109
|
+
expiration_date?: string;
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
/**
|
|
2117
|
+
* Details of the joint entity to create. Required if `structure` is equal to
|
|
2118
|
+
* `joint`.
|
|
2119
|
+
*/
|
|
2120
|
+
export interface Joint {
|
|
2121
|
+
/**
|
|
2122
|
+
* The two individuals that share control of the entity.
|
|
2123
|
+
*/
|
|
2124
|
+
individuals: Array<Joint.Individuals>;
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* The name of the joint entity.
|
|
2128
|
+
*/
|
|
2129
|
+
name?: string;
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
export namespace Joint {
|
|
2133
|
+
export interface Individuals {
|
|
2134
|
+
/**
|
|
2135
|
+
* The individual's address.
|
|
2136
|
+
*/
|
|
2137
|
+
address: Individuals.Address;
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
2141
|
+
*/
|
|
2142
|
+
date_of_birth: string;
|
|
2143
|
+
|
|
2144
|
+
/**
|
|
2145
|
+
* A means of verifying the person's identity.
|
|
2146
|
+
*/
|
|
2147
|
+
identification: Individuals.Identification;
|
|
2148
|
+
|
|
2149
|
+
/**
|
|
2150
|
+
* The person's legal name.
|
|
2151
|
+
*/
|
|
2152
|
+
name: string;
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* The identification method for an individual can only be a passport, driver's
|
|
2156
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
2157
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
2158
|
+
* Number).
|
|
2159
|
+
*/
|
|
2160
|
+
confirmed_no_us_tax_id?: boolean;
|
|
2161
|
+
}
|
|
2162
|
+
|
|
2163
|
+
export namespace Individuals {
|
|
2164
|
+
/**
|
|
2165
|
+
* The individual's address.
|
|
2166
|
+
*/
|
|
2167
|
+
export interface Address {
|
|
2168
|
+
/**
|
|
2169
|
+
* The city of the address.
|
|
2170
|
+
*/
|
|
2171
|
+
city: string;
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* The first line of the address. This is usually the street number and street.
|
|
2175
|
+
*/
|
|
2176
|
+
line1: string;
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
2180
|
+
* the address.
|
|
2181
|
+
*/
|
|
2182
|
+
state: string;
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* The ZIP code of the address.
|
|
2186
|
+
*/
|
|
2187
|
+
zip: string;
|
|
2188
|
+
|
|
2189
|
+
/**
|
|
2190
|
+
* The second line of the address. This might be the floor or room number.
|
|
2191
|
+
*/
|
|
2192
|
+
line2?: string;
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* A means of verifying the person's identity.
|
|
2197
|
+
*/
|
|
2198
|
+
export interface Identification {
|
|
2199
|
+
/**
|
|
2200
|
+
* A method that can be used to verify the individual's identity.
|
|
2201
|
+
*/
|
|
2202
|
+
method:
|
|
2203
|
+
| 'social_security_number'
|
|
2204
|
+
| 'individual_taxpayer_identification_number'
|
|
2205
|
+
| 'passport'
|
|
2206
|
+
| 'drivers_license'
|
|
2207
|
+
| 'other';
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* An identification number that can be used to verify the individual's identity,
|
|
2211
|
+
* such as a social security number.
|
|
2212
|
+
*/
|
|
2213
|
+
number: string;
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* Information about the United States driver's license used for identification.
|
|
2217
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2218
|
+
*/
|
|
2219
|
+
drivers_license?: Identification.DriversLicense;
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* Information about the identification document provided. Required if `method` is
|
|
2223
|
+
* equal to `other`.
|
|
2224
|
+
*/
|
|
2225
|
+
other?: Identification.Other;
|
|
2226
|
+
|
|
2227
|
+
/**
|
|
2228
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2229
|
+
* equal to `passport`.
|
|
2230
|
+
*/
|
|
2231
|
+
passport?: Identification.Passport;
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
export namespace Identification {
|
|
2235
|
+
/**
|
|
2236
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2237
|
+
* equal to `passport`.
|
|
2238
|
+
*/
|
|
2239
|
+
export interface Passport {
|
|
2240
|
+
/**
|
|
2241
|
+
* The country that issued the passport.
|
|
2242
|
+
*/
|
|
2243
|
+
country: string;
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
2247
|
+
*/
|
|
2248
|
+
expiration_date: string;
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* The identifier of the File containing the passport.
|
|
2252
|
+
*/
|
|
2253
|
+
file_id: string;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
/**
|
|
2257
|
+
* Information about the United States driver's license used for identification.
|
|
2258
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2259
|
+
*/
|
|
2260
|
+
export interface DriversLicense {
|
|
2261
|
+
/**
|
|
2262
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
2263
|
+
*/
|
|
2264
|
+
expiration_date: string;
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* The identifier of the File containing the driver's license.
|
|
2268
|
+
*/
|
|
2269
|
+
file_id: string;
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* The state that issued the provided driver's license.
|
|
2273
|
+
*/
|
|
2274
|
+
state: string;
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
/**
|
|
2278
|
+
* Information about the identification document provided. Required if `method` is
|
|
2279
|
+
* equal to `other`.
|
|
2280
|
+
*/
|
|
2281
|
+
export interface Other {
|
|
2282
|
+
/**
|
|
2283
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
2284
|
+
* document.
|
|
2285
|
+
*/
|
|
2286
|
+
country: string;
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* A description of the document submitted.
|
|
2290
|
+
*/
|
|
2291
|
+
description: string;
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* The identifier of the File containing the document.
|
|
2295
|
+
*/
|
|
2296
|
+
file_id: string;
|
|
2297
|
+
|
|
2298
|
+
/**
|
|
2299
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
2300
|
+
*/
|
|
2301
|
+
expiration_date?: string;
|
|
2302
|
+
}
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Details of the natural person entity to create. Required if `structure` is equal
|
|
2309
|
+
* to `natural_person`. Natural people entities should be submitted with
|
|
2310
|
+
* `social_security_number` or `individual_taxpayer_identification_number`
|
|
2311
|
+
* identification methods.
|
|
2312
|
+
*/
|
|
2313
|
+
export interface NaturalPerson {
|
|
2314
|
+
/**
|
|
2315
|
+
* The individual's address.
|
|
2316
|
+
*/
|
|
2317
|
+
address: NaturalPerson.Address;
|
|
2318
|
+
|
|
2319
|
+
/**
|
|
2320
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
2321
|
+
*/
|
|
2322
|
+
date_of_birth: string;
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* A means of verifying the person's identity.
|
|
2326
|
+
*/
|
|
2327
|
+
identification: NaturalPerson.Identification;
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
* The person's legal name.
|
|
2331
|
+
*/
|
|
2332
|
+
name: string;
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* The identification method for an individual can only be a passport, driver's
|
|
2336
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
2337
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
2338
|
+
* Number).
|
|
2339
|
+
*/
|
|
2340
|
+
confirmed_no_us_tax_id?: boolean;
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2343
|
+
export namespace NaturalPerson {
|
|
2344
|
+
/**
|
|
2345
|
+
* The individual's address.
|
|
2346
|
+
*/
|
|
2347
|
+
export interface Address {
|
|
2348
|
+
/**
|
|
2349
|
+
* The city of the address.
|
|
2350
|
+
*/
|
|
2351
|
+
city: string;
|
|
2352
|
+
|
|
2353
|
+
/**
|
|
2354
|
+
* The first line of the address. This is usually the street number and street.
|
|
2355
|
+
*/
|
|
2356
|
+
line1: string;
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
2360
|
+
* the address.
|
|
2361
|
+
*/
|
|
2362
|
+
state: string;
|
|
2363
|
+
|
|
2364
|
+
/**
|
|
2365
|
+
* The ZIP code of the address.
|
|
2366
|
+
*/
|
|
2367
|
+
zip: string;
|
|
2368
|
+
|
|
2369
|
+
/**
|
|
2370
|
+
* The second line of the address. This might be the floor or room number.
|
|
2371
|
+
*/
|
|
2372
|
+
line2?: string;
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
* A means of verifying the person's identity.
|
|
2377
|
+
*/
|
|
2378
|
+
export interface Identification {
|
|
2379
|
+
/**
|
|
2380
|
+
* A method that can be used to verify the individual's identity.
|
|
2381
|
+
*/
|
|
2382
|
+
method:
|
|
2383
|
+
| 'social_security_number'
|
|
2384
|
+
| 'individual_taxpayer_identification_number'
|
|
2385
|
+
| 'passport'
|
|
2386
|
+
| 'drivers_license'
|
|
2387
|
+
| 'other';
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
* An identification number that can be used to verify the individual's identity,
|
|
2391
|
+
* such as a social security number.
|
|
2392
|
+
*/
|
|
2393
|
+
number: string;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* Information about the United States driver's license used for identification.
|
|
2397
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2398
|
+
*/
|
|
2399
|
+
drivers_license?: Identification.DriversLicense;
|
|
2400
|
+
|
|
2401
|
+
/**
|
|
2402
|
+
* Information about the identification document provided. Required if `method` is
|
|
2403
|
+
* equal to `other`.
|
|
2404
|
+
*/
|
|
2405
|
+
other?: Identification.Other;
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2409
|
+
* equal to `passport`.
|
|
2410
|
+
*/
|
|
2411
|
+
passport?: Identification.Passport;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
export namespace Identification {
|
|
2415
|
+
/**
|
|
2416
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2417
|
+
* equal to `passport`.
|
|
2418
|
+
*/
|
|
2419
|
+
export interface Passport {
|
|
2420
|
+
/**
|
|
2421
|
+
* The country that issued the passport.
|
|
2422
|
+
*/
|
|
2423
|
+
country: string;
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
2427
|
+
*/
|
|
2428
|
+
expiration_date: string;
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* The identifier of the File containing the passport.
|
|
2432
|
+
*/
|
|
2433
|
+
file_id: string;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* Information about the United States driver's license used for identification.
|
|
2438
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2439
|
+
*/
|
|
2440
|
+
export interface DriversLicense {
|
|
2441
|
+
/**
|
|
2442
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
2443
|
+
*/
|
|
2444
|
+
expiration_date: string;
|
|
2445
|
+
|
|
2446
|
+
/**
|
|
2447
|
+
* The identifier of the File containing the driver's license.
|
|
2448
|
+
*/
|
|
2449
|
+
file_id: string;
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
* The state that issued the provided driver's license.
|
|
2453
|
+
*/
|
|
2454
|
+
state: string;
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* Information about the identification document provided. Required if `method` is
|
|
2459
|
+
* equal to `other`.
|
|
2460
|
+
*/
|
|
2461
|
+
export interface Other {
|
|
2462
|
+
/**
|
|
2463
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
2464
|
+
* document.
|
|
2465
|
+
*/
|
|
2466
|
+
country: string;
|
|
2467
|
+
|
|
2468
|
+
/**
|
|
2469
|
+
* A description of the document submitted.
|
|
2470
|
+
*/
|
|
2471
|
+
description: string;
|
|
2472
|
+
|
|
2473
|
+
/**
|
|
2474
|
+
* The identifier of the File containing the document.
|
|
2475
|
+
*/
|
|
2476
|
+
file_id: string;
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
2480
|
+
*/
|
|
2481
|
+
expiration_date?: string;
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
export interface SupplementalDocuments {
|
|
2487
|
+
/**
|
|
2488
|
+
* The identifier of the File containing the document.
|
|
2489
|
+
*/
|
|
2490
|
+
file_id: string;
|
|
2491
|
+
}
|
|
2492
|
+
|
|
2493
|
+
/**
|
|
2494
|
+
* Details of the trust entity to create. Required if `structure` is equal to
|
|
2495
|
+
* `trust`.
|
|
2496
|
+
*/
|
|
2497
|
+
export interface Trust {
|
|
2498
|
+
/**
|
|
2499
|
+
* The trust's address.
|
|
2500
|
+
*/
|
|
2501
|
+
address: Trust.Address;
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* Whether the trust is `revocable` or `irrevocable`. Irrevocable trusts require
|
|
2505
|
+
* their own Employer Identification Number. Revocable trusts require information
|
|
2506
|
+
* about the individual `grantor` who created the trust.
|
|
2507
|
+
*/
|
|
2508
|
+
category: 'revocable' | 'irrevocable';
|
|
2509
|
+
|
|
2510
|
+
/**
|
|
2511
|
+
* The legal name of the trust.
|
|
2512
|
+
*/
|
|
2513
|
+
name: string;
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
* The trustees of the trust.
|
|
2517
|
+
*/
|
|
2518
|
+
trustees: Array<Trust.Trustees>;
|
|
2519
|
+
|
|
2520
|
+
/**
|
|
2521
|
+
* The identifier of the File containing the formation document of the trust.
|
|
2522
|
+
*/
|
|
2523
|
+
formation_document_file_id?: string;
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state in
|
|
2527
|
+
* which the trust was formed.
|
|
2528
|
+
*/
|
|
2529
|
+
formation_state?: string;
|
|
2530
|
+
|
|
2531
|
+
/**
|
|
2532
|
+
* The grantor of the trust. Required if `category` is equal to `revocable`.
|
|
2533
|
+
*/
|
|
2534
|
+
grantor?: Trust.Grantor;
|
|
2535
|
+
|
|
2536
|
+
/**
|
|
2537
|
+
* The Employer Identification Number (EIN) for the trust. Required if `category`
|
|
2538
|
+
* is equal to `irrevocable`.
|
|
2539
|
+
*/
|
|
2540
|
+
tax_identifier?: string;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
export namespace Trust {
|
|
2544
|
+
/**
|
|
2545
|
+
* The trust's address.
|
|
2546
|
+
*/
|
|
2547
|
+
export interface Address {
|
|
2548
|
+
/**
|
|
2549
|
+
* The city of the address.
|
|
2550
|
+
*/
|
|
2551
|
+
city: string;
|
|
2552
|
+
|
|
2553
|
+
/**
|
|
2554
|
+
* The first line of the address. This is usually the street number and street.
|
|
2555
|
+
*/
|
|
2556
|
+
line1: string;
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
2560
|
+
* the address.
|
|
2561
|
+
*/
|
|
2562
|
+
state: string;
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* The ZIP code of the address.
|
|
2566
|
+
*/
|
|
2567
|
+
zip: string;
|
|
2568
|
+
|
|
2569
|
+
/**
|
|
2570
|
+
* The second line of the address. This might be the floor or room number.
|
|
2571
|
+
*/
|
|
2572
|
+
line2?: string;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
export interface Trustees {
|
|
2576
|
+
/**
|
|
2577
|
+
* The structure of the trustee.
|
|
2578
|
+
*/
|
|
2579
|
+
structure: 'individual';
|
|
2580
|
+
|
|
2581
|
+
/**
|
|
2582
|
+
* Details of the individual trustee. Required when the trustee `structure` is
|
|
2583
|
+
* equal to `individual`.
|
|
2584
|
+
*/
|
|
2585
|
+
individual?: Trustees.Individual;
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
export namespace Trustees {
|
|
2589
|
+
/**
|
|
2590
|
+
* Details of the individual trustee. Required when the trustee `structure` is
|
|
2591
|
+
* equal to `individual`.
|
|
2592
|
+
*/
|
|
2593
|
+
export interface Individual {
|
|
2594
|
+
/**
|
|
2595
|
+
* The individual's address.
|
|
2596
|
+
*/
|
|
2597
|
+
address: Individual.Address;
|
|
2598
|
+
|
|
2599
|
+
/**
|
|
2600
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
2601
|
+
*/
|
|
2602
|
+
date_of_birth: string;
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* A means of verifying the person's identity.
|
|
2606
|
+
*/
|
|
2607
|
+
identification: Individual.Identification;
|
|
2608
|
+
|
|
2609
|
+
/**
|
|
2610
|
+
* The person's legal name.
|
|
2611
|
+
*/
|
|
2612
|
+
name: string;
|
|
2613
|
+
|
|
2614
|
+
/**
|
|
2615
|
+
* The identification method for an individual can only be a passport, driver's
|
|
2616
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
2617
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
2618
|
+
* Number).
|
|
2619
|
+
*/
|
|
2620
|
+
confirmed_no_us_tax_id?: boolean;
|
|
2621
|
+
}
|
|
2622
|
+
|
|
2623
|
+
export namespace Individual {
|
|
2624
|
+
/**
|
|
2625
|
+
* The individual's address.
|
|
2626
|
+
*/
|
|
2627
|
+
export interface Address {
|
|
2628
|
+
/**
|
|
2629
|
+
* The city of the address.
|
|
2630
|
+
*/
|
|
2631
|
+
city: string;
|
|
2632
|
+
|
|
2633
|
+
/**
|
|
2634
|
+
* The first line of the address. This is usually the street number and street.
|
|
2635
|
+
*/
|
|
2636
|
+
line1: string;
|
|
2637
|
+
|
|
2638
|
+
/**
|
|
2639
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
2640
|
+
* the address.
|
|
2641
|
+
*/
|
|
2642
|
+
state: string;
|
|
2643
|
+
|
|
2644
|
+
/**
|
|
2645
|
+
* The ZIP code of the address.
|
|
2646
|
+
*/
|
|
2647
|
+
zip: string;
|
|
2648
|
+
|
|
2649
|
+
/**
|
|
2650
|
+
* The second line of the address. This might be the floor or room number.
|
|
2651
|
+
*/
|
|
2652
|
+
line2?: string;
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2655
|
+
/**
|
|
2656
|
+
* A means of verifying the person's identity.
|
|
2657
|
+
*/
|
|
2658
|
+
export interface Identification {
|
|
2659
|
+
/**
|
|
2660
|
+
* A method that can be used to verify the individual's identity.
|
|
2661
|
+
*/
|
|
2662
|
+
method:
|
|
2663
|
+
| 'social_security_number'
|
|
2664
|
+
| 'individual_taxpayer_identification_number'
|
|
2665
|
+
| 'passport'
|
|
2666
|
+
| 'drivers_license'
|
|
2667
|
+
| 'other';
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* An identification number that can be used to verify the individual's identity,
|
|
2671
|
+
* such as a social security number.
|
|
2672
|
+
*/
|
|
2673
|
+
number: string;
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* Information about the United States driver's license used for identification.
|
|
2677
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2678
|
+
*/
|
|
2679
|
+
drivers_license?: Identification.DriversLicense;
|
|
2680
|
+
|
|
2681
|
+
/**
|
|
2682
|
+
* Information about the identification document provided. Required if `method` is
|
|
2683
|
+
* equal to `other`.
|
|
2684
|
+
*/
|
|
2685
|
+
other?: Identification.Other;
|
|
2686
|
+
|
|
2687
|
+
/**
|
|
2688
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2689
|
+
* equal to `passport`.
|
|
2690
|
+
*/
|
|
2691
|
+
passport?: Identification.Passport;
|
|
2692
|
+
}
|
|
2693
|
+
|
|
2694
|
+
export namespace Identification {
|
|
2695
|
+
/**
|
|
2696
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2697
|
+
* equal to `passport`.
|
|
2698
|
+
*/
|
|
2699
|
+
export interface Passport {
|
|
2700
|
+
/**
|
|
2701
|
+
* The country that issued the passport.
|
|
2702
|
+
*/
|
|
2703
|
+
country: string;
|
|
2704
|
+
|
|
2705
|
+
/**
|
|
2706
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
2707
|
+
*/
|
|
2708
|
+
expiration_date: string;
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* The identifier of the File containing the passport.
|
|
2712
|
+
*/
|
|
2713
|
+
file_id: string;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* Information about the United States driver's license used for identification.
|
|
2718
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2719
|
+
*/
|
|
2720
|
+
export interface DriversLicense {
|
|
2721
|
+
/**
|
|
2722
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
2723
|
+
*/
|
|
2724
|
+
expiration_date: string;
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* The identifier of the File containing the driver's license.
|
|
2728
|
+
*/
|
|
2729
|
+
file_id: string;
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* The state that issued the provided driver's license.
|
|
2733
|
+
*/
|
|
2734
|
+
state: string;
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
/**
|
|
2738
|
+
* Information about the identification document provided. Required if `method` is
|
|
2739
|
+
* equal to `other`.
|
|
2740
|
+
*/
|
|
2741
|
+
export interface Other {
|
|
2742
|
+
/**
|
|
2743
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
2744
|
+
* document.
|
|
2745
|
+
*/
|
|
2746
|
+
country: string;
|
|
2747
|
+
|
|
2748
|
+
/**
|
|
2749
|
+
* A description of the document submitted.
|
|
2750
|
+
*/
|
|
2751
|
+
description: string;
|
|
2752
|
+
|
|
2753
|
+
/**
|
|
2754
|
+
* The identifier of the File containing the document.
|
|
2755
|
+
*/
|
|
2756
|
+
file_id: string;
|
|
2757
|
+
|
|
2758
|
+
/**
|
|
2759
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
2760
|
+
*/
|
|
2761
|
+
expiration_date?: string;
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* The grantor of the trust. Required if `category` is equal to `revocable`.
|
|
2769
|
+
*/
|
|
2770
|
+
export interface Grantor {
|
|
2771
|
+
/**
|
|
2772
|
+
* The individual's address.
|
|
2773
|
+
*/
|
|
2774
|
+
address: Grantor.Address;
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* The person's date of birth in YYYY-MM-DD format.
|
|
2778
|
+
*/
|
|
2779
|
+
date_of_birth: string;
|
|
2780
|
+
|
|
2781
|
+
/**
|
|
2782
|
+
* A means of verifying the person's identity.
|
|
2783
|
+
*/
|
|
2784
|
+
identification: Grantor.Identification;
|
|
2785
|
+
|
|
2786
|
+
/**
|
|
2787
|
+
* The person's legal name.
|
|
2788
|
+
*/
|
|
2789
|
+
name: string;
|
|
2790
|
+
|
|
2791
|
+
/**
|
|
2792
|
+
* The identification method for an individual can only be a passport, driver's
|
|
2793
|
+
* license, or other document if you've confirmed the individual does not have a US
|
|
2794
|
+
* tax id (either a Social Security Number or Individual Taxpayer Identification
|
|
2795
|
+
* Number).
|
|
2796
|
+
*/
|
|
2797
|
+
confirmed_no_us_tax_id?: boolean;
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
export namespace Grantor {
|
|
2801
|
+
/**
|
|
2802
|
+
* The individual's address.
|
|
2803
|
+
*/
|
|
2804
|
+
export interface Address {
|
|
2805
|
+
/**
|
|
2806
|
+
* The city of the address.
|
|
2807
|
+
*/
|
|
2808
|
+
city: string;
|
|
2809
|
+
|
|
2810
|
+
/**
|
|
2811
|
+
* The first line of the address. This is usually the street number and street.
|
|
2812
|
+
*/
|
|
2813
|
+
line1: string;
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* The two-letter United States Postal Service (USPS) abbreviation for the state of
|
|
2817
|
+
* the address.
|
|
2818
|
+
*/
|
|
2819
|
+
state: string;
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* The ZIP code of the address.
|
|
2823
|
+
*/
|
|
2824
|
+
zip: string;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* The second line of the address. This might be the floor or room number.
|
|
2828
|
+
*/
|
|
2829
|
+
line2?: string;
|
|
2830
|
+
}
|
|
2831
|
+
|
|
2832
|
+
/**
|
|
2833
|
+
* A means of verifying the person's identity.
|
|
2834
|
+
*/
|
|
2835
|
+
export interface Identification {
|
|
2836
|
+
/**
|
|
2837
|
+
* A method that can be used to verify the individual's identity.
|
|
2838
|
+
*/
|
|
2839
|
+
method:
|
|
2840
|
+
| 'social_security_number'
|
|
2841
|
+
| 'individual_taxpayer_identification_number'
|
|
2842
|
+
| 'passport'
|
|
2843
|
+
| 'drivers_license'
|
|
2844
|
+
| 'other';
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* An identification number that can be used to verify the individual's identity,
|
|
2848
|
+
* such as a social security number.
|
|
2849
|
+
*/
|
|
2850
|
+
number: string;
|
|
2851
|
+
|
|
2852
|
+
/**
|
|
2853
|
+
* Information about the United States driver's license used for identification.
|
|
2854
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2855
|
+
*/
|
|
2856
|
+
drivers_license?: Identification.DriversLicense;
|
|
2857
|
+
|
|
2858
|
+
/**
|
|
2859
|
+
* Information about the identification document provided. Required if `method` is
|
|
2860
|
+
* equal to `other`.
|
|
2861
|
+
*/
|
|
2862
|
+
other?: Identification.Other;
|
|
2863
|
+
|
|
2864
|
+
/**
|
|
2865
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2866
|
+
* equal to `passport`.
|
|
2867
|
+
*/
|
|
2868
|
+
passport?: Identification.Passport;
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
export namespace Identification {
|
|
2872
|
+
/**
|
|
2873
|
+
* Information about the passport used for identification. Required if `method` is
|
|
2874
|
+
* equal to `passport`.
|
|
2875
|
+
*/
|
|
2876
|
+
export interface Passport {
|
|
2877
|
+
/**
|
|
2878
|
+
* The country that issued the passport.
|
|
2879
|
+
*/
|
|
2880
|
+
country: string;
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* The passport's expiration date in YYYY-MM-DD format.
|
|
2884
|
+
*/
|
|
2885
|
+
expiration_date: string;
|
|
2886
|
+
|
|
2887
|
+
/**
|
|
2888
|
+
* The identifier of the File containing the passport.
|
|
2889
|
+
*/
|
|
2890
|
+
file_id: string;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
/**
|
|
2894
|
+
* Information about the United States driver's license used for identification.
|
|
2895
|
+
* Required if `method` is equal to `drivers_license`.
|
|
2896
|
+
*/
|
|
2897
|
+
export interface DriversLicense {
|
|
2898
|
+
/**
|
|
2899
|
+
* The driver's license's expiration date in YYYY-MM-DD format.
|
|
2900
|
+
*/
|
|
2901
|
+
expiration_date: string;
|
|
2902
|
+
|
|
2903
|
+
/**
|
|
2904
|
+
* The identifier of the File containing the driver's license.
|
|
2905
|
+
*/
|
|
2906
|
+
file_id: string;
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* The state that issued the provided driver's license.
|
|
2910
|
+
*/
|
|
2911
|
+
state: string;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
/**
|
|
2915
|
+
* Information about the identification document provided. Required if `method` is
|
|
2916
|
+
* equal to `other`.
|
|
2917
|
+
*/
|
|
2918
|
+
export interface Other {
|
|
2919
|
+
/**
|
|
2920
|
+
* The two-character ISO 3166-1 code representing the country that issued the
|
|
2921
|
+
* document.
|
|
2922
|
+
*/
|
|
2923
|
+
country: string;
|
|
2924
|
+
|
|
2925
|
+
/**
|
|
2926
|
+
* A description of the document submitted.
|
|
2927
|
+
*/
|
|
2928
|
+
description: string;
|
|
2929
|
+
|
|
2930
|
+
/**
|
|
2931
|
+
* The identifier of the File containing the document.
|
|
2932
|
+
*/
|
|
2933
|
+
file_id: string;
|
|
2934
|
+
|
|
2935
|
+
/**
|
|
2936
|
+
* The document's expiration date in YYYY-MM-DD format.
|
|
2937
|
+
*/
|
|
2938
|
+
expiration_date?: string;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
export interface EntityListParams extends PageParams {
|
|
2946
|
+
/**
|
|
2947
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
2948
|
+
* timestamp.
|
|
2949
|
+
*/
|
|
2950
|
+
'created_at.after'?: string;
|
|
2951
|
+
|
|
2952
|
+
/**
|
|
2953
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
2954
|
+
* timestamp.
|
|
2955
|
+
*/
|
|
2956
|
+
'created_at.before'?: string;
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* Return results on or after this
|
|
2960
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
2961
|
+
*/
|
|
2962
|
+
'created_at.on_or_after'?: string;
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* Return results on or before this
|
|
2966
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
2967
|
+
*/
|
|
2968
|
+
'created_at.on_or_before'?: string;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
export namespace EntityListParams {
|
|
2972
|
+
export interface CreatedAt {
|
|
2973
|
+
/**
|
|
2974
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
2975
|
+
* timestamp.
|
|
2976
|
+
*/
|
|
2977
|
+
after?: string;
|
|
2978
|
+
|
|
2979
|
+
/**
|
|
2980
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
2981
|
+
* timestamp.
|
|
2982
|
+
*/
|
|
2983
|
+
before?: string;
|
|
2984
|
+
|
|
2985
|
+
/**
|
|
2986
|
+
* Return results on or after this
|
|
2987
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
2988
|
+
*/
|
|
2989
|
+
on_or_after?: string;
|
|
2990
|
+
|
|
2991
|
+
/**
|
|
2992
|
+
* Return results on or before this
|
|
2993
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
2994
|
+
*/
|
|
2995
|
+
on_or_before?: string;
|
|
2996
|
+
}
|
|
2997
|
+
}
|