@lightsparkdev/grid 0.2.1
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/.DS_Store +0 -0
- package/CHANGELOG.md +85 -0
- package/LICENSE +201 -0
- package/README.md +516 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +302 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +302 -0
- package/client.d.ts.map +1 -0
- package/client.js +588 -0
- package/client.js.map +1 -0
- package/client.mjs +584 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +2055 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +2055 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +857 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +787 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +58 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +58 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +109 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +103 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +86 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/.DS_Store +0 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +147 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/.DS_Store +0 -0
- package/resources/config.d.mts +130 -0
- package/resources/config.d.mts.map +1 -0
- package/resources/config.d.ts +130 -0
- package/resources/config.d.ts.map +1 -0
- package/resources/config.js +47 -0
- package/resources/config.js.map +1 -0
- package/resources/config.mjs +43 -0
- package/resources/config.mjs.map +1 -0
- package/resources/customers/bulk.d.mts +170 -0
- package/resources/customers/bulk.d.mts.map +1 -0
- package/resources/customers/bulk.d.ts +170 -0
- package/resources/customers/bulk.d.ts.map +1 -0
- package/resources/customers/bulk.js +103 -0
- package/resources/customers/bulk.js.map +1 -0
- package/resources/customers/bulk.mjs +99 -0
- package/resources/customers/bulk.mjs.map +1 -0
- package/resources/customers/customers.d.mts +1238 -0
- package/resources/customers/customers.d.mts.map +1 -0
- package/resources/customers/customers.d.ts +1238 -0
- package/resources/customers/customers.d.ts.map +1 -0
- package/resources/customers/customers.js +130 -0
- package/resources/customers/customers.js.map +1 -0
- package/resources/customers/customers.mjs +125 -0
- package/resources/customers/customers.mjs.map +1 -0
- package/resources/customers/external-accounts.d.mts +461 -0
- package/resources/customers/external-accounts.d.mts.map +1 -0
- package/resources/customers/external-accounts.d.ts +461 -0
- package/resources/customers/external-accounts.d.ts.map +1 -0
- package/resources/customers/external-accounts.js +83 -0
- package/resources/customers/external-accounts.js.map +1 -0
- package/resources/customers/external-accounts.mjs +79 -0
- package/resources/customers/external-accounts.mjs.map +1 -0
- package/resources/customers/index.d.mts +4 -0
- package/resources/customers/index.d.mts.map +1 -0
- package/resources/customers/index.d.ts +4 -0
- package/resources/customers/index.d.ts.map +1 -0
- package/resources/customers/index.js +11 -0
- package/resources/customers/index.js.map +1 -0
- package/resources/customers/index.mjs +5 -0
- package/resources/customers/index.mjs.map +1 -0
- package/resources/customers.d.mts +2 -0
- package/resources/customers.d.mts.map +1 -0
- package/resources/customers.d.ts +2 -0
- package/resources/customers.d.ts.map +1 -0
- package/resources/customers.js +6 -0
- package/resources/customers.js.map +1 -0
- package/resources/customers.mjs +3 -0
- package/resources/customers.mjs.map +1 -0
- package/resources/exchange-rates.d.mts +101 -0
- package/resources/exchange-rates.d.mts.map +1 -0
- package/resources/exchange-rates.d.ts +101 -0
- package/resources/exchange-rates.d.ts.map +1 -0
- package/resources/exchange-rates.js +23 -0
- package/resources/exchange-rates.js.map +1 -0
- package/resources/exchange-rates.mjs +19 -0
- package/resources/exchange-rates.mjs.map +1 -0
- package/resources/index.d.mts +16 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +16 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +35 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +17 -0
- package/resources/index.mjs.map +1 -0
- package/resources/invitations.d.mts +166 -0
- package/resources/invitations.d.mts.map +1 -0
- package/resources/invitations.d.ts +166 -0
- package/resources/invitations.d.ts.map +1 -0
- package/resources/invitations.js +83 -0
- package/resources/invitations.js.map +1 -0
- package/resources/invitations.mjs +79 -0
- package/resources/invitations.mjs.map +1 -0
- package/resources/plaid.d.mts +101 -0
- package/resources/plaid.d.mts.map +1 -0
- package/resources/plaid.d.ts +101 -0
- package/resources/plaid.d.ts.map +1 -0
- package/resources/plaid.js +64 -0
- package/resources/plaid.js.map +1 -0
- package/resources/plaid.mjs +60 -0
- package/resources/plaid.mjs.map +1 -0
- package/resources/platform/external-accounts.d.mts +111 -0
- package/resources/platform/external-accounts.d.mts.map +1 -0
- package/resources/platform/external-accounts.d.ts +111 -0
- package/resources/platform/external-accounts.d.ts.map +1 -0
- package/resources/platform/external-accounts.js +74 -0
- package/resources/platform/external-accounts.js.map +1 -0
- package/resources/platform/external-accounts.mjs +70 -0
- package/resources/platform/external-accounts.mjs.map +1 -0
- package/resources/platform/index.d.mts +3 -0
- package/resources/platform/index.d.mts.map +1 -0
- package/resources/platform/index.d.ts +3 -0
- package/resources/platform/index.d.ts.map +1 -0
- package/resources/platform/index.js +9 -0
- package/resources/platform/index.js.map +1 -0
- package/resources/platform/index.mjs +4 -0
- package/resources/platform/index.mjs.map +1 -0
- package/resources/platform/platform.d.mts +41 -0
- package/resources/platform/platform.d.mts.map +1 -0
- package/resources/platform/platform.d.ts +41 -0
- package/resources/platform/platform.d.ts.map +1 -0
- package/resources/platform/platform.js +34 -0
- package/resources/platform/platform.js.map +1 -0
- package/resources/platform/platform.mjs +29 -0
- package/resources/platform/platform.mjs.map +1 -0
- package/resources/platform.d.mts +2 -0
- package/resources/platform.d.mts.map +1 -0
- package/resources/platform.d.ts +2 -0
- package/resources/platform.d.ts.map +1 -0
- package/resources/platform.js +6 -0
- package/resources/platform.js.map +1 -0
- package/resources/platform.mjs +3 -0
- package/resources/platform.mjs.map +1 -0
- package/resources/quotes.d.mts +580 -0
- package/resources/quotes.d.mts.map +1 -0
- package/resources/quotes.d.ts +580 -0
- package/resources/quotes.d.ts.map +1 -0
- package/resources/quotes.js +122 -0
- package/resources/quotes.js.map +1 -0
- package/resources/quotes.mjs +118 -0
- package/resources/quotes.mjs.map +1 -0
- package/resources/receiver.d.mts +100 -0
- package/resources/receiver.d.mts.map +1 -0
- package/resources/receiver.d.ts +100 -0
- package/resources/receiver.d.ts.map +1 -0
- package/resources/receiver.js +27 -0
- package/resources/receiver.js.map +1 -0
- package/resources/receiver.mjs +23 -0
- package/resources/receiver.mjs.map +1 -0
- package/resources/sandbox/index.d.mts +4 -0
- package/resources/sandbox/index.d.mts.map +1 -0
- package/resources/sandbox/index.d.ts +4 -0
- package/resources/sandbox/index.d.ts.map +1 -0
- package/resources/sandbox/index.js +11 -0
- package/resources/sandbox/index.js.map +1 -0
- package/resources/sandbox/index.mjs +5 -0
- package/resources/sandbox/index.mjs.map +1 -0
- package/resources/sandbox/internal-accounts.d.mts +61 -0
- package/resources/sandbox/internal-accounts.d.mts.map +1 -0
- package/resources/sandbox/internal-accounts.d.ts +61 -0
- package/resources/sandbox/internal-accounts.d.ts.map +1 -0
- package/resources/sandbox/internal-accounts.js +29 -0
- package/resources/sandbox/internal-accounts.js.map +1 -0
- package/resources/sandbox/internal-accounts.mjs +25 -0
- package/resources/sandbox/internal-accounts.mjs.map +1 -0
- package/resources/sandbox/sandbox.d.mts +116 -0
- package/resources/sandbox/sandbox.d.mts.map +1 -0
- package/resources/sandbox/sandbox.d.ts +116 -0
- package/resources/sandbox/sandbox.d.ts.map +1 -0
- package/resources/sandbox/sandbox.js +37 -0
- package/resources/sandbox/sandbox.js.map +1 -0
- package/resources/sandbox/sandbox.mjs +32 -0
- package/resources/sandbox/sandbox.mjs.map +1 -0
- package/resources/sandbox/uma.d.mts +48 -0
- package/resources/sandbox/uma.d.mts.map +1 -0
- package/resources/sandbox/uma.d.ts +48 -0
- package/resources/sandbox/uma.d.ts.map +1 -0
- package/resources/sandbox/uma.js +27 -0
- package/resources/sandbox/uma.js.map +1 -0
- package/resources/sandbox/uma.mjs +23 -0
- package/resources/sandbox/uma.mjs.map +1 -0
- package/resources/sandbox.d.mts +2 -0
- package/resources/sandbox.d.mts.map +1 -0
- package/resources/sandbox.d.ts +2 -0
- package/resources/sandbox.d.ts.map +1 -0
- package/resources/sandbox.js +6 -0
- package/resources/sandbox.js.map +1 -0
- package/resources/sandbox.mjs +3 -0
- package/resources/sandbox.mjs.map +1 -0
- package/resources/tokens.d.mts +131 -0
- package/resources/tokens.d.mts.map +1 -0
- package/resources/tokens.d.ts +131 -0
- package/resources/tokens.d.ts.map +1 -0
- package/resources/tokens.js +67 -0
- package/resources/tokens.js.map +1 -0
- package/resources/tokens.mjs +63 -0
- package/resources/tokens.mjs.map +1 -0
- package/resources/transactions.d.mts +226 -0
- package/resources/transactions.d.mts.map +1 -0
- package/resources/transactions.d.ts +226 -0
- package/resources/transactions.d.ts.map +1 -0
- package/resources/transactions.js +71 -0
- package/resources/transactions.js.map +1 -0
- package/resources/transactions.mjs +67 -0
- package/resources/transactions.mjs.map +1 -0
- package/resources/transfer-in.d.mts +154 -0
- package/resources/transfer-in.d.mts.map +1 -0
- package/resources/transfer-in.d.ts +154 -0
- package/resources/transfer-in.d.ts.map +1 -0
- package/resources/transfer-in.js +42 -0
- package/resources/transfer-in.js.map +1 -0
- package/resources/transfer-in.mjs +38 -0
- package/resources/transfer-in.mjs.map +1 -0
- package/resources/transfer-out.d.mts +70 -0
- package/resources/transfer-out.d.mts.map +1 -0
- package/resources/transfer-out.d.ts +70 -0
- package/resources/transfer-out.d.ts.map +1 -0
- package/resources/transfer-out.js +40 -0
- package/resources/transfer-out.js.map +1 -0
- package/resources/transfer-out.mjs +36 -0
- package/resources/transfer-out.mjs.map +1 -0
- package/resources/uma-providers.d.mts +70 -0
- package/resources/uma-providers.d.mts.map +1 -0
- package/resources/uma-providers.d.ts +70 -0
- package/resources/uma-providers.d.ts.map +1 -0
- package/resources/uma-providers.js +21 -0
- package/resources/uma-providers.js.map +1 -0
- package/resources/uma-providers.mjs +17 -0
- package/resources/uma-providers.mjs.map +1 -0
- package/resources/webhooks.d.mts +27 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +27 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +15 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/.DS_Store +0 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1111 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +2936 -0
- package/src/core/pagination.ts +173 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +76 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/config.ts +178 -0
- package/src/resources/customers/bulk.ts +201 -0
- package/src/resources/customers/customers.ts +1687 -0
- package/src/resources/customers/external-accounts.ts +630 -0
- package/src/resources/customers/index.ts +51 -0
- package/src/resources/customers.ts +3 -0
- package/src/resources/exchange-rates.ts +127 -0
- package/src/resources/index.ts +104 -0
- package/src/resources/invitations.ts +207 -0
- package/src/resources/plaid.ts +128 -0
- package/src/resources/platform/external-accounts.ts +136 -0
- package/src/resources/platform/index.ts +13 -0
- package/src/resources/platform/platform.ts +70 -0
- package/src/resources/platform.ts +3 -0
- package/src/resources/quotes.ts +726 -0
- package/src/resources/receiver.ts +139 -0
- package/src/resources/sandbox/index.ts +10 -0
- package/src/resources/sandbox/internal-accounts.ts +82 -0
- package/src/resources/sandbox/sandbox.ts +159 -0
- package/src/resources/sandbox/uma.ts +61 -0
- package/src/resources/sandbox.ts +3 -0
- package/src/resources/tokens.ts +176 -0
- package/src/resources/transactions.ts +312 -0
- package/src/resources/transfer-in.ts +193 -0
- package/src/resources/transfer-out.ts +90 -0
- package/src/resources/uma-providers.ts +98 -0
- package/src/resources/webhooks.ts +35 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,1238 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as CustomersAPI from "./customers.js";
|
|
3
|
+
import * as BulkAPI from "./bulk.js";
|
|
4
|
+
import { Bulk, BulkGetJobStatusResponse, BulkUploadCsvParams, BulkUploadCsvResponse } from "./bulk.js";
|
|
5
|
+
import * as ExternalAccountsAPI from "./external-accounts.js";
|
|
6
|
+
import { BaseWalletInfo, BeneficiaryOneOf, CadAccountInfo, ClabeAccountInfo, ExternalAccount, ExternalAccountCreate, ExternalAccountCreateParams, ExternalAccountInfoOneOf, ExternalAccountListParams, ExternalAccounts, ExternalAccountsDefaultPagination, GbpAccountInfo, IbanAccountInfo, LightningWalletInfo, NgnAccountInfo, PhpAccountInfo, PixAccountInfo, PolygonWalletInfo, SgdAccountInfo, SolanaWalletInfo, SparkWalletInfo, TronWalletInfo, UpiAccountInfo, UsAccountInfo } from "./external-accounts.js";
|
|
7
|
+
import * as InternalAccountsAPI from "../sandbox/internal-accounts.js";
|
|
8
|
+
import { InternalAccountsDefaultPagination } from "../sandbox/internal-accounts.js";
|
|
9
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
10
|
+
import { DefaultPagination, type DefaultPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
11
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
12
|
+
export declare class Customers extends APIResource {
|
|
13
|
+
externalAccounts: ExternalAccountsAPI.ExternalAccounts;
|
|
14
|
+
bulk: BulkAPI.Bulk;
|
|
15
|
+
/**
|
|
16
|
+
* Register a new customer in the system with an account identifier and bank
|
|
17
|
+
* account information
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const customerOneOf = await client.customers.create({
|
|
22
|
+
* CreateCustomerRequest: {
|
|
23
|
+
* platformCustomerId: '9f84e0c2a72c4fa',
|
|
24
|
+
* customerType: 'INDIVIDUAL',
|
|
25
|
+
* },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<CustomerOneOf>;
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve a customer by their system-generated ID
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const customer = await client.customers.retrieve(
|
|
36
|
+
* 'customerId',
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
retrieve(customerID: string, options?: RequestOptions): APIPromise<CustomerRetrieveResponse>;
|
|
41
|
+
/**
|
|
42
|
+
* Update a customer's metadata by their system-generated ID
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const customer = await client.customers.update(
|
|
47
|
+
* 'customerId',
|
|
48
|
+
* { UpdateCustomerRequest: { customerType: 'INDIVIDUAL' } },
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
update(customerID: string, params: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerUpdateResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* Retrieve a list of customers with optional filtering parameters. Returns all
|
|
55
|
+
* customers that match the specified filters. If no filters are provided, returns
|
|
56
|
+
* all customers (paginated).
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* // Automatically fetches more pages as needed.
|
|
61
|
+
* for await (const customerOneOf of client.customers.list()) {
|
|
62
|
+
* // ...
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
list(query?: CustomerListParams | null | undefined, options?: RequestOptions): PagePromise<CustomerOneovesDefaultPagination, CustomerOneOf>;
|
|
67
|
+
/**
|
|
68
|
+
* Delete a customer by their system-generated ID
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const customer = await client.customers.delete(
|
|
73
|
+
* 'customerId',
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
delete(customerID: string, options?: RequestOptions): APIPromise<CustomerDeleteResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Generate a hosted KYC link to onboard a customer
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const response = await client.customers.getKYCLink({
|
|
84
|
+
* platformCustomerId: 'platformCustomerId',
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
getKYCLink(query: CustomerGetKYCLinkParams, options?: RequestOptions): APIPromise<CustomerGetKYCLinkResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Retrieve a list of internal accounts with optional filtering parameters. Returns
|
|
91
|
+
* all internal accounts that match the specified filters. If no filters are
|
|
92
|
+
* provided, returns all internal accounts (paginated).
|
|
93
|
+
*
|
|
94
|
+
* Internal accounts are created automatically when a customer is created based on
|
|
95
|
+
* the platform configuration.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* // Automatically fetches more pages as needed.
|
|
100
|
+
* for await (const internalAccount of client.customers.listInternalAccounts()) {
|
|
101
|
+
* // ...
|
|
102
|
+
* }
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
listInternalAccounts(query?: CustomerListInternalAccountsParams | null | undefined, options?: RequestOptions): PagePromise<InternalAccountsDefaultPagination, InternalAccountsAPI.InternalAccount>;
|
|
106
|
+
}
|
|
107
|
+
export type CustomerOneovesDefaultPagination = DefaultPagination<CustomerOneOf>;
|
|
108
|
+
export interface Customer {
|
|
109
|
+
/**
|
|
110
|
+
* Platform-specific customer identifier
|
|
111
|
+
*/
|
|
112
|
+
platformCustomerId: string;
|
|
113
|
+
/**
|
|
114
|
+
* Full UMA address (always present in responses, even if system-generated). This
|
|
115
|
+
* is an optional identifier to route payments to the customer.
|
|
116
|
+
*/
|
|
117
|
+
umaAddress: string;
|
|
118
|
+
/**
|
|
119
|
+
* System-generated unique identifier
|
|
120
|
+
*/
|
|
121
|
+
id?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Creation timestamp
|
|
124
|
+
*/
|
|
125
|
+
createdAt?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Whether the customer is marked as deleted
|
|
128
|
+
*/
|
|
129
|
+
isDeleted?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* The current KYC status of a customer
|
|
132
|
+
*/
|
|
133
|
+
kycStatus?: 'APPROVED' | 'REJECTED' | 'PENDING_REVIEW' | 'EXPIRED' | 'CANCELED' | 'MANUALLY_APPROVED' | 'MANUALLY_REJECTED';
|
|
134
|
+
/**
|
|
135
|
+
* Last update timestamp
|
|
136
|
+
*/
|
|
137
|
+
updatedAt?: string;
|
|
138
|
+
}
|
|
139
|
+
export interface CustomerCreate {
|
|
140
|
+
/**
|
|
141
|
+
* Platform-specific customer identifier. If not provided, one will be generated by
|
|
142
|
+
* the system.
|
|
143
|
+
*/
|
|
144
|
+
platformCustomerId: string;
|
|
145
|
+
/**
|
|
146
|
+
* Optional UMA address identifier. If not provided during customer creation, one
|
|
147
|
+
* will be generated by the system. If provided during customer update, the UMA
|
|
148
|
+
* address will be updated to the provided value. This is an optional identifier to
|
|
149
|
+
* route payments to the customer. This is an optional identifier to route payments
|
|
150
|
+
* to the customer.
|
|
151
|
+
*/
|
|
152
|
+
umaAddress?: string;
|
|
153
|
+
}
|
|
154
|
+
export type CustomerOneOf = CustomerOneOf.IndividualCustomer | CustomerOneOf.BusinessCustomer;
|
|
155
|
+
export declare namespace CustomerOneOf {
|
|
156
|
+
interface IndividualCustomer extends CustomersAPI.Customer {
|
|
157
|
+
customerType: 'INDIVIDUAL';
|
|
158
|
+
address?: IndividualCustomer.Address;
|
|
159
|
+
/**
|
|
160
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
161
|
+
*/
|
|
162
|
+
birthDate?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Individual's full name
|
|
165
|
+
*/
|
|
166
|
+
fullName?: string;
|
|
167
|
+
/**
|
|
168
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
169
|
+
*/
|
|
170
|
+
nationality?: string;
|
|
171
|
+
}
|
|
172
|
+
namespace IndividualCustomer {
|
|
173
|
+
interface Address {
|
|
174
|
+
/**
|
|
175
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
176
|
+
*/
|
|
177
|
+
country: string;
|
|
178
|
+
/**
|
|
179
|
+
* Street address line 1
|
|
180
|
+
*/
|
|
181
|
+
line1: string;
|
|
182
|
+
/**
|
|
183
|
+
* Postal/ZIP code
|
|
184
|
+
*/
|
|
185
|
+
postalCode: string;
|
|
186
|
+
/**
|
|
187
|
+
* City
|
|
188
|
+
*/
|
|
189
|
+
city?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Street address line 2
|
|
192
|
+
*/
|
|
193
|
+
line2?: string;
|
|
194
|
+
/**
|
|
195
|
+
* State/Province/Region
|
|
196
|
+
*/
|
|
197
|
+
state?: string;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
interface BusinessCustomer extends CustomersAPI.Customer {
|
|
201
|
+
customerType: 'BUSINESS';
|
|
202
|
+
address?: BusinessCustomer.Address;
|
|
203
|
+
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
|
|
204
|
+
businessInfo?: BusinessCustomer.BusinessInfo;
|
|
205
|
+
}
|
|
206
|
+
namespace BusinessCustomer {
|
|
207
|
+
interface Address {
|
|
208
|
+
/**
|
|
209
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
210
|
+
*/
|
|
211
|
+
country: string;
|
|
212
|
+
/**
|
|
213
|
+
* Street address line 1
|
|
214
|
+
*/
|
|
215
|
+
line1: string;
|
|
216
|
+
/**
|
|
217
|
+
* Postal/ZIP code
|
|
218
|
+
*/
|
|
219
|
+
postalCode: string;
|
|
220
|
+
/**
|
|
221
|
+
* City
|
|
222
|
+
*/
|
|
223
|
+
city?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Street address line 2
|
|
226
|
+
*/
|
|
227
|
+
line2?: string;
|
|
228
|
+
/**
|
|
229
|
+
* State/Province/Region
|
|
230
|
+
*/
|
|
231
|
+
state?: string;
|
|
232
|
+
}
|
|
233
|
+
interface BeneficialOwner {
|
|
234
|
+
/**
|
|
235
|
+
* Individual's full name
|
|
236
|
+
*/
|
|
237
|
+
fullName: string;
|
|
238
|
+
/**
|
|
239
|
+
* Type of individual in the corporation
|
|
240
|
+
*/
|
|
241
|
+
individualType: 'DIRECTOR' | 'CONTROL_PERSON' | 'BUSINESS_POINT_OF_CONTACT' | 'TRUSTEE' | 'SETTLOR' | 'GENERAL_PARTNER';
|
|
242
|
+
address?: BeneficialOwner.Address;
|
|
243
|
+
/**
|
|
244
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
245
|
+
*/
|
|
246
|
+
birthDate?: string;
|
|
247
|
+
/**
|
|
248
|
+
* Email address of the individual
|
|
249
|
+
*/
|
|
250
|
+
emailAddress?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
253
|
+
*/
|
|
254
|
+
nationality?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Percent of ownership when individual type is beneficial owner
|
|
257
|
+
*/
|
|
258
|
+
percentageOwnership?: number;
|
|
259
|
+
/**
|
|
260
|
+
* Phone number of the individual in E.164 format
|
|
261
|
+
*/
|
|
262
|
+
phoneNumber?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
265
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
266
|
+
* individuals, or a Passport Number.
|
|
267
|
+
*/
|
|
268
|
+
taxId?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Title at company
|
|
271
|
+
*/
|
|
272
|
+
title?: string;
|
|
273
|
+
}
|
|
274
|
+
namespace BeneficialOwner {
|
|
275
|
+
interface Address {
|
|
276
|
+
/**
|
|
277
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
278
|
+
*/
|
|
279
|
+
country: string;
|
|
280
|
+
/**
|
|
281
|
+
* Street address line 1
|
|
282
|
+
*/
|
|
283
|
+
line1: string;
|
|
284
|
+
/**
|
|
285
|
+
* Postal/ZIP code
|
|
286
|
+
*/
|
|
287
|
+
postalCode: string;
|
|
288
|
+
/**
|
|
289
|
+
* City
|
|
290
|
+
*/
|
|
291
|
+
city?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Street address line 2
|
|
294
|
+
*/
|
|
295
|
+
line2?: string;
|
|
296
|
+
/**
|
|
297
|
+
* State/Province/Region
|
|
298
|
+
*/
|
|
299
|
+
state?: string;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
interface BusinessInfo {
|
|
303
|
+
/**
|
|
304
|
+
* Legal name of the business
|
|
305
|
+
*/
|
|
306
|
+
legalName: string;
|
|
307
|
+
/**
|
|
308
|
+
* Business registration number
|
|
309
|
+
*/
|
|
310
|
+
registrationNumber?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Tax identification number
|
|
313
|
+
*/
|
|
314
|
+
taxId?: string;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
export interface CustomerUpdate {
|
|
319
|
+
/**
|
|
320
|
+
* Optional UMA address identifier. If provided, the customer's UMA address will be
|
|
321
|
+
* updated. This is an optional identifier to route payments to the customer.
|
|
322
|
+
*/
|
|
323
|
+
umaAddress?: string;
|
|
324
|
+
}
|
|
325
|
+
export type CustomerRetrieveResponse = CustomerRetrieveResponse.IndividualCustomer | CustomerRetrieveResponse.BusinessCustomer;
|
|
326
|
+
export declare namespace CustomerRetrieveResponse {
|
|
327
|
+
interface IndividualCustomer extends CustomersAPI.Customer {
|
|
328
|
+
customerType: 'INDIVIDUAL';
|
|
329
|
+
address?: IndividualCustomer.Address;
|
|
330
|
+
/**
|
|
331
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
332
|
+
*/
|
|
333
|
+
birthDate?: string;
|
|
334
|
+
/**
|
|
335
|
+
* Individual's full name
|
|
336
|
+
*/
|
|
337
|
+
fullName?: string;
|
|
338
|
+
/**
|
|
339
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
340
|
+
*/
|
|
341
|
+
nationality?: string;
|
|
342
|
+
}
|
|
343
|
+
namespace IndividualCustomer {
|
|
344
|
+
interface Address {
|
|
345
|
+
/**
|
|
346
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
347
|
+
*/
|
|
348
|
+
country: string;
|
|
349
|
+
/**
|
|
350
|
+
* Street address line 1
|
|
351
|
+
*/
|
|
352
|
+
line1: string;
|
|
353
|
+
/**
|
|
354
|
+
* Postal/ZIP code
|
|
355
|
+
*/
|
|
356
|
+
postalCode: string;
|
|
357
|
+
/**
|
|
358
|
+
* City
|
|
359
|
+
*/
|
|
360
|
+
city?: string;
|
|
361
|
+
/**
|
|
362
|
+
* Street address line 2
|
|
363
|
+
*/
|
|
364
|
+
line2?: string;
|
|
365
|
+
/**
|
|
366
|
+
* State/Province/Region
|
|
367
|
+
*/
|
|
368
|
+
state?: string;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
interface BusinessCustomer extends CustomersAPI.Customer {
|
|
372
|
+
customerType: 'BUSINESS';
|
|
373
|
+
address?: BusinessCustomer.Address;
|
|
374
|
+
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
|
|
375
|
+
businessInfo?: BusinessCustomer.BusinessInfo;
|
|
376
|
+
}
|
|
377
|
+
namespace BusinessCustomer {
|
|
378
|
+
interface Address {
|
|
379
|
+
/**
|
|
380
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
381
|
+
*/
|
|
382
|
+
country: string;
|
|
383
|
+
/**
|
|
384
|
+
* Street address line 1
|
|
385
|
+
*/
|
|
386
|
+
line1: string;
|
|
387
|
+
/**
|
|
388
|
+
* Postal/ZIP code
|
|
389
|
+
*/
|
|
390
|
+
postalCode: string;
|
|
391
|
+
/**
|
|
392
|
+
* City
|
|
393
|
+
*/
|
|
394
|
+
city?: string;
|
|
395
|
+
/**
|
|
396
|
+
* Street address line 2
|
|
397
|
+
*/
|
|
398
|
+
line2?: string;
|
|
399
|
+
/**
|
|
400
|
+
* State/Province/Region
|
|
401
|
+
*/
|
|
402
|
+
state?: string;
|
|
403
|
+
}
|
|
404
|
+
interface BeneficialOwner {
|
|
405
|
+
/**
|
|
406
|
+
* Individual's full name
|
|
407
|
+
*/
|
|
408
|
+
fullName: string;
|
|
409
|
+
/**
|
|
410
|
+
* Type of individual in the corporation
|
|
411
|
+
*/
|
|
412
|
+
individualType: 'DIRECTOR' | 'CONTROL_PERSON' | 'BUSINESS_POINT_OF_CONTACT' | 'TRUSTEE' | 'SETTLOR' | 'GENERAL_PARTNER';
|
|
413
|
+
address?: BeneficialOwner.Address;
|
|
414
|
+
/**
|
|
415
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
416
|
+
*/
|
|
417
|
+
birthDate?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Email address of the individual
|
|
420
|
+
*/
|
|
421
|
+
emailAddress?: string;
|
|
422
|
+
/**
|
|
423
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
424
|
+
*/
|
|
425
|
+
nationality?: string;
|
|
426
|
+
/**
|
|
427
|
+
* Percent of ownership when individual type is beneficial owner
|
|
428
|
+
*/
|
|
429
|
+
percentageOwnership?: number;
|
|
430
|
+
/**
|
|
431
|
+
* Phone number of the individual in E.164 format
|
|
432
|
+
*/
|
|
433
|
+
phoneNumber?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
436
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
437
|
+
* individuals, or a Passport Number.
|
|
438
|
+
*/
|
|
439
|
+
taxId?: string;
|
|
440
|
+
/**
|
|
441
|
+
* Title at company
|
|
442
|
+
*/
|
|
443
|
+
title?: string;
|
|
444
|
+
}
|
|
445
|
+
namespace BeneficialOwner {
|
|
446
|
+
interface Address {
|
|
447
|
+
/**
|
|
448
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
449
|
+
*/
|
|
450
|
+
country: string;
|
|
451
|
+
/**
|
|
452
|
+
* Street address line 1
|
|
453
|
+
*/
|
|
454
|
+
line1: string;
|
|
455
|
+
/**
|
|
456
|
+
* Postal/ZIP code
|
|
457
|
+
*/
|
|
458
|
+
postalCode: string;
|
|
459
|
+
/**
|
|
460
|
+
* City
|
|
461
|
+
*/
|
|
462
|
+
city?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Street address line 2
|
|
465
|
+
*/
|
|
466
|
+
line2?: string;
|
|
467
|
+
/**
|
|
468
|
+
* State/Province/Region
|
|
469
|
+
*/
|
|
470
|
+
state?: string;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
interface BusinessInfo {
|
|
474
|
+
/**
|
|
475
|
+
* Legal name of the business
|
|
476
|
+
*/
|
|
477
|
+
legalName: string;
|
|
478
|
+
/**
|
|
479
|
+
* Business registration number
|
|
480
|
+
*/
|
|
481
|
+
registrationNumber?: string;
|
|
482
|
+
/**
|
|
483
|
+
* Tax identification number
|
|
484
|
+
*/
|
|
485
|
+
taxId?: string;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
export type CustomerUpdateResponse = CustomerUpdateResponse.IndividualCustomer | CustomerUpdateResponse.BusinessCustomer;
|
|
490
|
+
export declare namespace CustomerUpdateResponse {
|
|
491
|
+
interface IndividualCustomer extends CustomersAPI.Customer {
|
|
492
|
+
customerType: 'INDIVIDUAL';
|
|
493
|
+
address?: IndividualCustomer.Address;
|
|
494
|
+
/**
|
|
495
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
496
|
+
*/
|
|
497
|
+
birthDate?: string;
|
|
498
|
+
/**
|
|
499
|
+
* Individual's full name
|
|
500
|
+
*/
|
|
501
|
+
fullName?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
504
|
+
*/
|
|
505
|
+
nationality?: string;
|
|
506
|
+
}
|
|
507
|
+
namespace IndividualCustomer {
|
|
508
|
+
interface Address {
|
|
509
|
+
/**
|
|
510
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
511
|
+
*/
|
|
512
|
+
country: string;
|
|
513
|
+
/**
|
|
514
|
+
* Street address line 1
|
|
515
|
+
*/
|
|
516
|
+
line1: string;
|
|
517
|
+
/**
|
|
518
|
+
* Postal/ZIP code
|
|
519
|
+
*/
|
|
520
|
+
postalCode: string;
|
|
521
|
+
/**
|
|
522
|
+
* City
|
|
523
|
+
*/
|
|
524
|
+
city?: string;
|
|
525
|
+
/**
|
|
526
|
+
* Street address line 2
|
|
527
|
+
*/
|
|
528
|
+
line2?: string;
|
|
529
|
+
/**
|
|
530
|
+
* State/Province/Region
|
|
531
|
+
*/
|
|
532
|
+
state?: string;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
interface BusinessCustomer extends CustomersAPI.Customer {
|
|
536
|
+
customerType: 'BUSINESS';
|
|
537
|
+
address?: BusinessCustomer.Address;
|
|
538
|
+
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
|
|
539
|
+
businessInfo?: BusinessCustomer.BusinessInfo;
|
|
540
|
+
}
|
|
541
|
+
namespace BusinessCustomer {
|
|
542
|
+
interface Address {
|
|
543
|
+
/**
|
|
544
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
545
|
+
*/
|
|
546
|
+
country: string;
|
|
547
|
+
/**
|
|
548
|
+
* Street address line 1
|
|
549
|
+
*/
|
|
550
|
+
line1: string;
|
|
551
|
+
/**
|
|
552
|
+
* Postal/ZIP code
|
|
553
|
+
*/
|
|
554
|
+
postalCode: string;
|
|
555
|
+
/**
|
|
556
|
+
* City
|
|
557
|
+
*/
|
|
558
|
+
city?: string;
|
|
559
|
+
/**
|
|
560
|
+
* Street address line 2
|
|
561
|
+
*/
|
|
562
|
+
line2?: string;
|
|
563
|
+
/**
|
|
564
|
+
* State/Province/Region
|
|
565
|
+
*/
|
|
566
|
+
state?: string;
|
|
567
|
+
}
|
|
568
|
+
interface BeneficialOwner {
|
|
569
|
+
/**
|
|
570
|
+
* Individual's full name
|
|
571
|
+
*/
|
|
572
|
+
fullName: string;
|
|
573
|
+
/**
|
|
574
|
+
* Type of individual in the corporation
|
|
575
|
+
*/
|
|
576
|
+
individualType: 'DIRECTOR' | 'CONTROL_PERSON' | 'BUSINESS_POINT_OF_CONTACT' | 'TRUSTEE' | 'SETTLOR' | 'GENERAL_PARTNER';
|
|
577
|
+
address?: BeneficialOwner.Address;
|
|
578
|
+
/**
|
|
579
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
580
|
+
*/
|
|
581
|
+
birthDate?: string;
|
|
582
|
+
/**
|
|
583
|
+
* Email address of the individual
|
|
584
|
+
*/
|
|
585
|
+
emailAddress?: string;
|
|
586
|
+
/**
|
|
587
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
588
|
+
*/
|
|
589
|
+
nationality?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Percent of ownership when individual type is beneficial owner
|
|
592
|
+
*/
|
|
593
|
+
percentageOwnership?: number;
|
|
594
|
+
/**
|
|
595
|
+
* Phone number of the individual in E.164 format
|
|
596
|
+
*/
|
|
597
|
+
phoneNumber?: string;
|
|
598
|
+
/**
|
|
599
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
600
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
601
|
+
* individuals, or a Passport Number.
|
|
602
|
+
*/
|
|
603
|
+
taxId?: string;
|
|
604
|
+
/**
|
|
605
|
+
* Title at company
|
|
606
|
+
*/
|
|
607
|
+
title?: string;
|
|
608
|
+
}
|
|
609
|
+
namespace BeneficialOwner {
|
|
610
|
+
interface Address {
|
|
611
|
+
/**
|
|
612
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
613
|
+
*/
|
|
614
|
+
country: string;
|
|
615
|
+
/**
|
|
616
|
+
* Street address line 1
|
|
617
|
+
*/
|
|
618
|
+
line1: string;
|
|
619
|
+
/**
|
|
620
|
+
* Postal/ZIP code
|
|
621
|
+
*/
|
|
622
|
+
postalCode: string;
|
|
623
|
+
/**
|
|
624
|
+
* City
|
|
625
|
+
*/
|
|
626
|
+
city?: string;
|
|
627
|
+
/**
|
|
628
|
+
* Street address line 2
|
|
629
|
+
*/
|
|
630
|
+
line2?: string;
|
|
631
|
+
/**
|
|
632
|
+
* State/Province/Region
|
|
633
|
+
*/
|
|
634
|
+
state?: string;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
interface BusinessInfo {
|
|
638
|
+
/**
|
|
639
|
+
* Legal name of the business
|
|
640
|
+
*/
|
|
641
|
+
legalName: string;
|
|
642
|
+
/**
|
|
643
|
+
* Business registration number
|
|
644
|
+
*/
|
|
645
|
+
registrationNumber?: string;
|
|
646
|
+
/**
|
|
647
|
+
* Tax identification number
|
|
648
|
+
*/
|
|
649
|
+
taxId?: string;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
export type CustomerDeleteResponse = CustomerDeleteResponse.IndividualCustomer | CustomerDeleteResponse.BusinessCustomer;
|
|
654
|
+
export declare namespace CustomerDeleteResponse {
|
|
655
|
+
interface IndividualCustomer extends CustomersAPI.Customer {
|
|
656
|
+
customerType: 'INDIVIDUAL';
|
|
657
|
+
address?: IndividualCustomer.Address;
|
|
658
|
+
/**
|
|
659
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
660
|
+
*/
|
|
661
|
+
birthDate?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Individual's full name
|
|
664
|
+
*/
|
|
665
|
+
fullName?: string;
|
|
666
|
+
/**
|
|
667
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
668
|
+
*/
|
|
669
|
+
nationality?: string;
|
|
670
|
+
}
|
|
671
|
+
namespace IndividualCustomer {
|
|
672
|
+
interface Address {
|
|
673
|
+
/**
|
|
674
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
675
|
+
*/
|
|
676
|
+
country: string;
|
|
677
|
+
/**
|
|
678
|
+
* Street address line 1
|
|
679
|
+
*/
|
|
680
|
+
line1: string;
|
|
681
|
+
/**
|
|
682
|
+
* Postal/ZIP code
|
|
683
|
+
*/
|
|
684
|
+
postalCode: string;
|
|
685
|
+
/**
|
|
686
|
+
* City
|
|
687
|
+
*/
|
|
688
|
+
city?: string;
|
|
689
|
+
/**
|
|
690
|
+
* Street address line 2
|
|
691
|
+
*/
|
|
692
|
+
line2?: string;
|
|
693
|
+
/**
|
|
694
|
+
* State/Province/Region
|
|
695
|
+
*/
|
|
696
|
+
state?: string;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
interface BusinessCustomer extends CustomersAPI.Customer {
|
|
700
|
+
customerType: 'BUSINESS';
|
|
701
|
+
address?: BusinessCustomer.Address;
|
|
702
|
+
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
|
|
703
|
+
businessInfo?: BusinessCustomer.BusinessInfo;
|
|
704
|
+
}
|
|
705
|
+
namespace BusinessCustomer {
|
|
706
|
+
interface Address {
|
|
707
|
+
/**
|
|
708
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
709
|
+
*/
|
|
710
|
+
country: string;
|
|
711
|
+
/**
|
|
712
|
+
* Street address line 1
|
|
713
|
+
*/
|
|
714
|
+
line1: string;
|
|
715
|
+
/**
|
|
716
|
+
* Postal/ZIP code
|
|
717
|
+
*/
|
|
718
|
+
postalCode: string;
|
|
719
|
+
/**
|
|
720
|
+
* City
|
|
721
|
+
*/
|
|
722
|
+
city?: string;
|
|
723
|
+
/**
|
|
724
|
+
* Street address line 2
|
|
725
|
+
*/
|
|
726
|
+
line2?: string;
|
|
727
|
+
/**
|
|
728
|
+
* State/Province/Region
|
|
729
|
+
*/
|
|
730
|
+
state?: string;
|
|
731
|
+
}
|
|
732
|
+
interface BeneficialOwner {
|
|
733
|
+
/**
|
|
734
|
+
* Individual's full name
|
|
735
|
+
*/
|
|
736
|
+
fullName: string;
|
|
737
|
+
/**
|
|
738
|
+
* Type of individual in the corporation
|
|
739
|
+
*/
|
|
740
|
+
individualType: 'DIRECTOR' | 'CONTROL_PERSON' | 'BUSINESS_POINT_OF_CONTACT' | 'TRUSTEE' | 'SETTLOR' | 'GENERAL_PARTNER';
|
|
741
|
+
address?: BeneficialOwner.Address;
|
|
742
|
+
/**
|
|
743
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
744
|
+
*/
|
|
745
|
+
birthDate?: string;
|
|
746
|
+
/**
|
|
747
|
+
* Email address of the individual
|
|
748
|
+
*/
|
|
749
|
+
emailAddress?: string;
|
|
750
|
+
/**
|
|
751
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
752
|
+
*/
|
|
753
|
+
nationality?: string;
|
|
754
|
+
/**
|
|
755
|
+
* Percent of ownership when individual type is beneficial owner
|
|
756
|
+
*/
|
|
757
|
+
percentageOwnership?: number;
|
|
758
|
+
/**
|
|
759
|
+
* Phone number of the individual in E.164 format
|
|
760
|
+
*/
|
|
761
|
+
phoneNumber?: string;
|
|
762
|
+
/**
|
|
763
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
764
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
765
|
+
* individuals, or a Passport Number.
|
|
766
|
+
*/
|
|
767
|
+
taxId?: string;
|
|
768
|
+
/**
|
|
769
|
+
* Title at company
|
|
770
|
+
*/
|
|
771
|
+
title?: string;
|
|
772
|
+
}
|
|
773
|
+
namespace BeneficialOwner {
|
|
774
|
+
interface Address {
|
|
775
|
+
/**
|
|
776
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
777
|
+
*/
|
|
778
|
+
country: string;
|
|
779
|
+
/**
|
|
780
|
+
* Street address line 1
|
|
781
|
+
*/
|
|
782
|
+
line1: string;
|
|
783
|
+
/**
|
|
784
|
+
* Postal/ZIP code
|
|
785
|
+
*/
|
|
786
|
+
postalCode: string;
|
|
787
|
+
/**
|
|
788
|
+
* City
|
|
789
|
+
*/
|
|
790
|
+
city?: string;
|
|
791
|
+
/**
|
|
792
|
+
* Street address line 2
|
|
793
|
+
*/
|
|
794
|
+
line2?: string;
|
|
795
|
+
/**
|
|
796
|
+
* State/Province/Region
|
|
797
|
+
*/
|
|
798
|
+
state?: string;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
interface BusinessInfo {
|
|
802
|
+
/**
|
|
803
|
+
* Legal name of the business
|
|
804
|
+
*/
|
|
805
|
+
legalName: string;
|
|
806
|
+
/**
|
|
807
|
+
* Business registration number
|
|
808
|
+
*/
|
|
809
|
+
registrationNumber?: string;
|
|
810
|
+
/**
|
|
811
|
+
* Tax identification number
|
|
812
|
+
*/
|
|
813
|
+
taxId?: string;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
export interface CustomerGetKYCLinkResponse {
|
|
818
|
+
/**
|
|
819
|
+
* The customer id of the newly created customer on the system
|
|
820
|
+
*/
|
|
821
|
+
customerId?: string;
|
|
822
|
+
/**
|
|
823
|
+
* A hosted KYC link for your customer to complete KYC
|
|
824
|
+
*/
|
|
825
|
+
kycUrl?: string;
|
|
826
|
+
/**
|
|
827
|
+
* The platform id of the customer to onboard
|
|
828
|
+
*/
|
|
829
|
+
platformCustomerId?: string;
|
|
830
|
+
}
|
|
831
|
+
export interface CustomerCreateParams {
|
|
832
|
+
CreateCustomerRequest: CustomerCreateParams.IndividualCustomerCreateRequest | CustomerCreateParams.BusinessCustomerCreateRequest;
|
|
833
|
+
}
|
|
834
|
+
export declare namespace CustomerCreateParams {
|
|
835
|
+
interface IndividualCustomerCreateRequest extends CustomersAPI.CustomerCreate {
|
|
836
|
+
customerType: 'INDIVIDUAL';
|
|
837
|
+
address?: IndividualCustomerCreateRequest.Address;
|
|
838
|
+
/**
|
|
839
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
840
|
+
*/
|
|
841
|
+
birthDate?: string;
|
|
842
|
+
/**
|
|
843
|
+
* Individual's full name
|
|
844
|
+
*/
|
|
845
|
+
fullName?: string;
|
|
846
|
+
/**
|
|
847
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
848
|
+
*/
|
|
849
|
+
nationality?: string;
|
|
850
|
+
}
|
|
851
|
+
namespace IndividualCustomerCreateRequest {
|
|
852
|
+
interface Address {
|
|
853
|
+
/**
|
|
854
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
855
|
+
*/
|
|
856
|
+
country: string;
|
|
857
|
+
/**
|
|
858
|
+
* Street address line 1
|
|
859
|
+
*/
|
|
860
|
+
line1: string;
|
|
861
|
+
/**
|
|
862
|
+
* Postal/ZIP code
|
|
863
|
+
*/
|
|
864
|
+
postalCode: string;
|
|
865
|
+
/**
|
|
866
|
+
* City
|
|
867
|
+
*/
|
|
868
|
+
city?: string;
|
|
869
|
+
/**
|
|
870
|
+
* Street address line 2
|
|
871
|
+
*/
|
|
872
|
+
line2?: string;
|
|
873
|
+
/**
|
|
874
|
+
* State/Province/Region
|
|
875
|
+
*/
|
|
876
|
+
state?: string;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
interface BusinessCustomerCreateRequest extends CustomersAPI.CustomerCreate {
|
|
880
|
+
customerType: 'BUSINESS';
|
|
881
|
+
address?: BusinessCustomerCreateRequest.Address;
|
|
882
|
+
beneficialOwners?: Array<BusinessCustomerCreateRequest.BeneficialOwner>;
|
|
883
|
+
businessInfo?: BusinessCustomerCreateRequest.BusinessInfo;
|
|
884
|
+
}
|
|
885
|
+
namespace BusinessCustomerCreateRequest {
|
|
886
|
+
interface Address {
|
|
887
|
+
/**
|
|
888
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
889
|
+
*/
|
|
890
|
+
country: string;
|
|
891
|
+
/**
|
|
892
|
+
* Street address line 1
|
|
893
|
+
*/
|
|
894
|
+
line1: string;
|
|
895
|
+
/**
|
|
896
|
+
* Postal/ZIP code
|
|
897
|
+
*/
|
|
898
|
+
postalCode: string;
|
|
899
|
+
/**
|
|
900
|
+
* City
|
|
901
|
+
*/
|
|
902
|
+
city?: string;
|
|
903
|
+
/**
|
|
904
|
+
* Street address line 2
|
|
905
|
+
*/
|
|
906
|
+
line2?: string;
|
|
907
|
+
/**
|
|
908
|
+
* State/Province/Region
|
|
909
|
+
*/
|
|
910
|
+
state?: string;
|
|
911
|
+
}
|
|
912
|
+
interface BeneficialOwner {
|
|
913
|
+
/**
|
|
914
|
+
* Individual's full name
|
|
915
|
+
*/
|
|
916
|
+
fullName: string;
|
|
917
|
+
/**
|
|
918
|
+
* Type of individual in the corporation
|
|
919
|
+
*/
|
|
920
|
+
individualType: 'DIRECTOR' | 'CONTROL_PERSON' | 'BUSINESS_POINT_OF_CONTACT' | 'TRUSTEE' | 'SETTLOR' | 'GENERAL_PARTNER';
|
|
921
|
+
address?: BeneficialOwner.Address;
|
|
922
|
+
/**
|
|
923
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
924
|
+
*/
|
|
925
|
+
birthDate?: string;
|
|
926
|
+
/**
|
|
927
|
+
* Email address of the individual
|
|
928
|
+
*/
|
|
929
|
+
emailAddress?: string;
|
|
930
|
+
/**
|
|
931
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
932
|
+
*/
|
|
933
|
+
nationality?: string;
|
|
934
|
+
/**
|
|
935
|
+
* Percent of ownership when individual type is beneficial owner
|
|
936
|
+
*/
|
|
937
|
+
percentageOwnership?: number;
|
|
938
|
+
/**
|
|
939
|
+
* Phone number of the individual in E.164 format
|
|
940
|
+
*/
|
|
941
|
+
phoneNumber?: string;
|
|
942
|
+
/**
|
|
943
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
944
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
945
|
+
* individuals, or a Passport Number.
|
|
946
|
+
*/
|
|
947
|
+
taxId?: string;
|
|
948
|
+
/**
|
|
949
|
+
* Title at company
|
|
950
|
+
*/
|
|
951
|
+
title?: string;
|
|
952
|
+
}
|
|
953
|
+
namespace BeneficialOwner {
|
|
954
|
+
interface Address {
|
|
955
|
+
/**
|
|
956
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
957
|
+
*/
|
|
958
|
+
country: string;
|
|
959
|
+
/**
|
|
960
|
+
* Street address line 1
|
|
961
|
+
*/
|
|
962
|
+
line1: string;
|
|
963
|
+
/**
|
|
964
|
+
* Postal/ZIP code
|
|
965
|
+
*/
|
|
966
|
+
postalCode: string;
|
|
967
|
+
/**
|
|
968
|
+
* City
|
|
969
|
+
*/
|
|
970
|
+
city?: string;
|
|
971
|
+
/**
|
|
972
|
+
* Street address line 2
|
|
973
|
+
*/
|
|
974
|
+
line2?: string;
|
|
975
|
+
/**
|
|
976
|
+
* State/Province/Region
|
|
977
|
+
*/
|
|
978
|
+
state?: string;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
interface BusinessInfo {
|
|
982
|
+
/**
|
|
983
|
+
* Legal name of the business
|
|
984
|
+
*/
|
|
985
|
+
legalName: string;
|
|
986
|
+
/**
|
|
987
|
+
* Business registration number
|
|
988
|
+
*/
|
|
989
|
+
registrationNumber?: string;
|
|
990
|
+
/**
|
|
991
|
+
* Tax identification number
|
|
992
|
+
*/
|
|
993
|
+
taxId?: string;
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
export interface CustomerUpdateParams {
|
|
998
|
+
UpdateCustomerRequest: CustomerUpdateParams.IndividualCustomerUpdateRequest | CustomerUpdateParams.BusinessCustomerUpdateRequest;
|
|
999
|
+
}
|
|
1000
|
+
export declare namespace CustomerUpdateParams {
|
|
1001
|
+
interface IndividualCustomerUpdateRequest extends CustomersAPI.CustomerUpdate {
|
|
1002
|
+
customerType: 'INDIVIDUAL';
|
|
1003
|
+
address?: IndividualCustomerUpdateRequest.Address;
|
|
1004
|
+
/**
|
|
1005
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
1006
|
+
*/
|
|
1007
|
+
birthDate?: string;
|
|
1008
|
+
/**
|
|
1009
|
+
* Individual's full name
|
|
1010
|
+
*/
|
|
1011
|
+
fullName?: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1014
|
+
*/
|
|
1015
|
+
nationality?: string;
|
|
1016
|
+
}
|
|
1017
|
+
namespace IndividualCustomerUpdateRequest {
|
|
1018
|
+
interface Address {
|
|
1019
|
+
/**
|
|
1020
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1021
|
+
*/
|
|
1022
|
+
country: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Street address line 1
|
|
1025
|
+
*/
|
|
1026
|
+
line1: string;
|
|
1027
|
+
/**
|
|
1028
|
+
* Postal/ZIP code
|
|
1029
|
+
*/
|
|
1030
|
+
postalCode: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* City
|
|
1033
|
+
*/
|
|
1034
|
+
city?: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* Street address line 2
|
|
1037
|
+
*/
|
|
1038
|
+
line2?: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* State/Province/Region
|
|
1041
|
+
*/
|
|
1042
|
+
state?: string;
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
interface BusinessCustomerUpdateRequest extends CustomersAPI.CustomerUpdate {
|
|
1046
|
+
customerType: 'BUSINESS';
|
|
1047
|
+
address?: BusinessCustomerUpdateRequest.Address;
|
|
1048
|
+
beneficialOwners?: Array<BusinessCustomerUpdateRequest.BeneficialOwner>;
|
|
1049
|
+
/**
|
|
1050
|
+
* Additional information for business entities
|
|
1051
|
+
*/
|
|
1052
|
+
businessInfo?: BusinessCustomerUpdateRequest.BusinessInfo;
|
|
1053
|
+
}
|
|
1054
|
+
namespace BusinessCustomerUpdateRequest {
|
|
1055
|
+
interface Address {
|
|
1056
|
+
/**
|
|
1057
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1058
|
+
*/
|
|
1059
|
+
country: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* Street address line 1
|
|
1062
|
+
*/
|
|
1063
|
+
line1: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* Postal/ZIP code
|
|
1066
|
+
*/
|
|
1067
|
+
postalCode: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* City
|
|
1070
|
+
*/
|
|
1071
|
+
city?: string;
|
|
1072
|
+
/**
|
|
1073
|
+
* Street address line 2
|
|
1074
|
+
*/
|
|
1075
|
+
line2?: string;
|
|
1076
|
+
/**
|
|
1077
|
+
* State/Province/Region
|
|
1078
|
+
*/
|
|
1079
|
+
state?: string;
|
|
1080
|
+
}
|
|
1081
|
+
interface BeneficialOwner {
|
|
1082
|
+
/**
|
|
1083
|
+
* Individual's full name
|
|
1084
|
+
*/
|
|
1085
|
+
fullName: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* Type of individual in the corporation
|
|
1088
|
+
*/
|
|
1089
|
+
individualType: 'DIRECTOR' | 'CONTROL_PERSON' | 'BUSINESS_POINT_OF_CONTACT' | 'TRUSTEE' | 'SETTLOR' | 'GENERAL_PARTNER';
|
|
1090
|
+
address?: BeneficialOwner.Address;
|
|
1091
|
+
/**
|
|
1092
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
1093
|
+
*/
|
|
1094
|
+
birthDate?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* Email address of the individual
|
|
1097
|
+
*/
|
|
1098
|
+
emailAddress?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1101
|
+
*/
|
|
1102
|
+
nationality?: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* Percent of ownership when individual type is beneficial owner
|
|
1105
|
+
*/
|
|
1106
|
+
percentageOwnership?: number;
|
|
1107
|
+
/**
|
|
1108
|
+
* Phone number of the individual in E.164 format
|
|
1109
|
+
*/
|
|
1110
|
+
phoneNumber?: string;
|
|
1111
|
+
/**
|
|
1112
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
1113
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
1114
|
+
* individuals, or a Passport Number.
|
|
1115
|
+
*/
|
|
1116
|
+
taxId?: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* Title at company
|
|
1119
|
+
*/
|
|
1120
|
+
title?: string;
|
|
1121
|
+
}
|
|
1122
|
+
namespace BeneficialOwner {
|
|
1123
|
+
interface Address {
|
|
1124
|
+
/**
|
|
1125
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1126
|
+
*/
|
|
1127
|
+
country: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Street address line 1
|
|
1130
|
+
*/
|
|
1131
|
+
line1: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Postal/ZIP code
|
|
1134
|
+
*/
|
|
1135
|
+
postalCode: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* City
|
|
1138
|
+
*/
|
|
1139
|
+
city?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* Street address line 2
|
|
1142
|
+
*/
|
|
1143
|
+
line2?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* State/Province/Region
|
|
1146
|
+
*/
|
|
1147
|
+
state?: string;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
* Additional information for business entities
|
|
1152
|
+
*/
|
|
1153
|
+
interface BusinessInfo {
|
|
1154
|
+
/**
|
|
1155
|
+
* Legal name of the business
|
|
1156
|
+
*/
|
|
1157
|
+
legalName?: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* Business registration number
|
|
1160
|
+
*/
|
|
1161
|
+
registrationNumber?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* Tax identification number
|
|
1164
|
+
*/
|
|
1165
|
+
taxId?: string;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
export interface CustomerListParams extends DefaultPaginationParams {
|
|
1170
|
+
/**
|
|
1171
|
+
* Filter customers created after this timestamp (inclusive)
|
|
1172
|
+
*/
|
|
1173
|
+
createdAfter?: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Filter customers created before this timestamp (inclusive)
|
|
1176
|
+
*/
|
|
1177
|
+
createdBefore?: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* Filter by customer type
|
|
1180
|
+
*/
|
|
1181
|
+
customerType?: 'INDIVIDUAL' | 'BUSINESS';
|
|
1182
|
+
/**
|
|
1183
|
+
* Whether to include deleted customers in the results. Default is false.
|
|
1184
|
+
*/
|
|
1185
|
+
isIncludingDeleted?: boolean;
|
|
1186
|
+
/**
|
|
1187
|
+
* Maximum number of results to return (default 20, max 100)
|
|
1188
|
+
*/
|
|
1189
|
+
limit?: number;
|
|
1190
|
+
/**
|
|
1191
|
+
* Filter by platform-specific customer identifier
|
|
1192
|
+
*/
|
|
1193
|
+
platformCustomerId?: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* Filter by uma address
|
|
1196
|
+
*/
|
|
1197
|
+
umaAddress?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* Filter customers updated after this timestamp (inclusive)
|
|
1200
|
+
*/
|
|
1201
|
+
updatedAfter?: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* Filter customers updated before this timestamp (inclusive)
|
|
1204
|
+
*/
|
|
1205
|
+
updatedBefore?: string;
|
|
1206
|
+
}
|
|
1207
|
+
export interface CustomerGetKYCLinkParams {
|
|
1208
|
+
/**
|
|
1209
|
+
* The platform id of the customer to onboard
|
|
1210
|
+
*/
|
|
1211
|
+
platformCustomerId: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* An optional uri a customer will be redirected to after completing the hosted KYC
|
|
1214
|
+
* flow
|
|
1215
|
+
*/
|
|
1216
|
+
redirectUri?: string;
|
|
1217
|
+
}
|
|
1218
|
+
export interface CustomerListInternalAccountsParams extends DefaultPaginationParams {
|
|
1219
|
+
/**
|
|
1220
|
+
* Filter by currency code
|
|
1221
|
+
*/
|
|
1222
|
+
currency?: string;
|
|
1223
|
+
/**
|
|
1224
|
+
* Filter by internal accounts associated with a specific customer
|
|
1225
|
+
*/
|
|
1226
|
+
customerId?: string;
|
|
1227
|
+
/**
|
|
1228
|
+
* Maximum number of results to return (default 20, max 100)
|
|
1229
|
+
*/
|
|
1230
|
+
limit?: number;
|
|
1231
|
+
}
|
|
1232
|
+
export declare namespace Customers {
|
|
1233
|
+
export { type Customer as Customer, type CustomerCreate as CustomerCreate, type CustomerOneOf as CustomerOneOf, type CustomerUpdate as CustomerUpdate, type CustomerRetrieveResponse as CustomerRetrieveResponse, type CustomerUpdateResponse as CustomerUpdateResponse, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerGetKYCLinkResponse as CustomerGetKYCLinkResponse, type CustomerOneovesDefaultPagination as CustomerOneovesDefaultPagination, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerGetKYCLinkParams as CustomerGetKYCLinkParams, type CustomerListInternalAccountsParams as CustomerListInternalAccountsParams, };
|
|
1234
|
+
export { ExternalAccounts as ExternalAccounts, type BaseWalletInfo as BaseWalletInfo, type BeneficiaryOneOf as BeneficiaryOneOf, type CadAccountInfo as CadAccountInfo, type ClabeAccountInfo as ClabeAccountInfo, type ExternalAccount as ExternalAccount, type ExternalAccountCreate as ExternalAccountCreate, type ExternalAccountInfoOneOf as ExternalAccountInfoOneOf, type GbpAccountInfo as GbpAccountInfo, type IbanAccountInfo as IbanAccountInfo, type LightningWalletInfo as LightningWalletInfo, type NgnAccountInfo as NgnAccountInfo, type PhpAccountInfo as PhpAccountInfo, type PixAccountInfo as PixAccountInfo, type PolygonWalletInfo as PolygonWalletInfo, type SgdAccountInfo as SgdAccountInfo, type SolanaWalletInfo as SolanaWalletInfo, type SparkWalletInfo as SparkWalletInfo, type TronWalletInfo as TronWalletInfo, type UpiAccountInfo as UpiAccountInfo, type UsAccountInfo as UsAccountInfo, type ExternalAccountsDefaultPagination as ExternalAccountsDefaultPagination, type ExternalAccountCreateParams as ExternalAccountCreateParams, type ExternalAccountListParams as ExternalAccountListParams, };
|
|
1235
|
+
export { Bulk as Bulk, type BulkGetJobStatusResponse as BulkGetJobStatusResponse, type BulkUploadCsvResponse as BulkUploadCsvResponse, type BulkUploadCsvParams as BulkUploadCsvParams, };
|
|
1236
|
+
}
|
|
1237
|
+
export { type InternalAccountsDefaultPagination };
|
|
1238
|
+
//# sourceMappingURL=customers.d.ts.map
|