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