@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,1687 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as CustomersAPI from './customers';
|
|
5
|
+
import * as BulkAPI from './bulk';
|
|
6
|
+
import { Bulk, BulkGetJobStatusResponse, BulkUploadCsvParams, BulkUploadCsvResponse } from './bulk';
|
|
7
|
+
import * as ExternalAccountsAPI from './external-accounts';
|
|
8
|
+
import {
|
|
9
|
+
BaseWalletInfo,
|
|
10
|
+
BeneficiaryOneOf,
|
|
11
|
+
CadAccountInfo,
|
|
12
|
+
ClabeAccountInfo,
|
|
13
|
+
ExternalAccount,
|
|
14
|
+
ExternalAccountCreate,
|
|
15
|
+
ExternalAccountCreateParams,
|
|
16
|
+
ExternalAccountInfoOneOf,
|
|
17
|
+
ExternalAccountListParams,
|
|
18
|
+
ExternalAccounts,
|
|
19
|
+
ExternalAccountsDefaultPagination,
|
|
20
|
+
GbpAccountInfo,
|
|
21
|
+
IbanAccountInfo,
|
|
22
|
+
LightningWalletInfo,
|
|
23
|
+
NgnAccountInfo,
|
|
24
|
+
PhpAccountInfo,
|
|
25
|
+
PixAccountInfo,
|
|
26
|
+
PolygonWalletInfo,
|
|
27
|
+
SgdAccountInfo,
|
|
28
|
+
SolanaWalletInfo,
|
|
29
|
+
SparkWalletInfo,
|
|
30
|
+
TronWalletInfo,
|
|
31
|
+
UpiAccountInfo,
|
|
32
|
+
UsAccountInfo,
|
|
33
|
+
} from './external-accounts';
|
|
34
|
+
import * as InternalAccountsAPI from '../sandbox/internal-accounts';
|
|
35
|
+
import { InternalAccountsDefaultPagination } from '../sandbox/internal-accounts';
|
|
36
|
+
import { APIPromise } from '../../core/api-promise';
|
|
37
|
+
import { DefaultPagination, type DefaultPaginationParams, PagePromise } from '../../core/pagination';
|
|
38
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
39
|
+
import { path } from '../../internal/utils/path';
|
|
40
|
+
|
|
41
|
+
export class Customers extends APIResource {
|
|
42
|
+
externalAccounts: ExternalAccountsAPI.ExternalAccounts = new ExternalAccountsAPI.ExternalAccounts(
|
|
43
|
+
this._client,
|
|
44
|
+
);
|
|
45
|
+
bulk: BulkAPI.Bulk = new BulkAPI.Bulk(this._client);
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Register a new customer in the system with an account identifier and bank
|
|
49
|
+
* account information
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const customerOneOf = await client.customers.create({
|
|
54
|
+
* CreateCustomerRequest: {
|
|
55
|
+
* platformCustomerId: '9f84e0c2a72c4fa',
|
|
56
|
+
* customerType: 'INDIVIDUAL',
|
|
57
|
+
* },
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<CustomerOneOf> {
|
|
62
|
+
const { CreateCustomerRequest } = params;
|
|
63
|
+
return this._client.post('/customers', { body: CreateCustomerRequest, ...options });
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Retrieve a customer by their system-generated ID
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const customer = await client.customers.retrieve(
|
|
72
|
+
* 'customerId',
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
retrieve(customerID: string, options?: RequestOptions): APIPromise<CustomerRetrieveResponse> {
|
|
77
|
+
return this._client.get(path`/customers/${customerID}`, options);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Update a customer's metadata by their system-generated ID
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const customer = await client.customers.update(
|
|
86
|
+
* 'customerId',
|
|
87
|
+
* { UpdateCustomerRequest: { customerType: 'INDIVIDUAL' } },
|
|
88
|
+
* );
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
update(
|
|
92
|
+
customerID: string,
|
|
93
|
+
params: CustomerUpdateParams,
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): APIPromise<CustomerUpdateResponse> {
|
|
96
|
+
const { UpdateCustomerRequest } = params;
|
|
97
|
+
return this._client.patch(path`/customers/${customerID}`, { body: UpdateCustomerRequest, ...options });
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Retrieve a list of customers with optional filtering parameters. Returns all
|
|
102
|
+
* customers that match the specified filters. If no filters are provided, returns
|
|
103
|
+
* all customers (paginated).
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* // Automatically fetches more pages as needed.
|
|
108
|
+
* for await (const customerOneOf of client.customers.list()) {
|
|
109
|
+
* // ...
|
|
110
|
+
* }
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
list(
|
|
114
|
+
query: CustomerListParams | null | undefined = {},
|
|
115
|
+
options?: RequestOptions,
|
|
116
|
+
): PagePromise<CustomerOneovesDefaultPagination, CustomerOneOf> {
|
|
117
|
+
return this._client.getAPIList('/customers', DefaultPagination<CustomerOneOf>, { query, ...options });
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Delete a customer by their system-generated ID
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```ts
|
|
125
|
+
* const customer = await client.customers.delete(
|
|
126
|
+
* 'customerId',
|
|
127
|
+
* );
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
delete(customerID: string, options?: RequestOptions): APIPromise<CustomerDeleteResponse> {
|
|
131
|
+
return this._client.delete(path`/customers/${customerID}`, options);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Generate a hosted KYC link to onboard a customer
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* const response = await client.customers.getKYCLink({
|
|
140
|
+
* platformCustomerId: 'platformCustomerId',
|
|
141
|
+
* });
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
getKYCLink(
|
|
145
|
+
query: CustomerGetKYCLinkParams,
|
|
146
|
+
options?: RequestOptions,
|
|
147
|
+
): APIPromise<CustomerGetKYCLinkResponse> {
|
|
148
|
+
return this._client.get('/customers/kyc-link', { query, ...options });
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Retrieve a list of internal accounts with optional filtering parameters. Returns
|
|
153
|
+
* all internal accounts that match the specified filters. If no filters are
|
|
154
|
+
* provided, returns all internal accounts (paginated).
|
|
155
|
+
*
|
|
156
|
+
* Internal accounts are created automatically when a customer is created based on
|
|
157
|
+
* the platform configuration.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```ts
|
|
161
|
+
* // Automatically fetches more pages as needed.
|
|
162
|
+
* for await (const internalAccount of client.customers.listInternalAccounts()) {
|
|
163
|
+
* // ...
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
listInternalAccounts(
|
|
168
|
+
query: CustomerListInternalAccountsParams | null | undefined = {},
|
|
169
|
+
options?: RequestOptions,
|
|
170
|
+
): PagePromise<InternalAccountsDefaultPagination, InternalAccountsAPI.InternalAccount> {
|
|
171
|
+
return this._client.getAPIList(
|
|
172
|
+
'/customers/internal-accounts',
|
|
173
|
+
DefaultPagination<InternalAccountsAPI.InternalAccount>,
|
|
174
|
+
{ query, ...options },
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type CustomerOneovesDefaultPagination = DefaultPagination<CustomerOneOf>;
|
|
180
|
+
|
|
181
|
+
export interface Customer {
|
|
182
|
+
/**
|
|
183
|
+
* Platform-specific customer identifier
|
|
184
|
+
*/
|
|
185
|
+
platformCustomerId: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Full UMA address (always present in responses, even if system-generated). This
|
|
189
|
+
* is an optional identifier to route payments to the customer.
|
|
190
|
+
*/
|
|
191
|
+
umaAddress: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* System-generated unique identifier
|
|
195
|
+
*/
|
|
196
|
+
id?: string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Creation timestamp
|
|
200
|
+
*/
|
|
201
|
+
createdAt?: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Whether the customer is marked as deleted
|
|
205
|
+
*/
|
|
206
|
+
isDeleted?: boolean;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The current KYC status of a customer
|
|
210
|
+
*/
|
|
211
|
+
kycStatus?:
|
|
212
|
+
| 'APPROVED'
|
|
213
|
+
| 'REJECTED'
|
|
214
|
+
| 'PENDING_REVIEW'
|
|
215
|
+
| 'EXPIRED'
|
|
216
|
+
| 'CANCELED'
|
|
217
|
+
| 'MANUALLY_APPROVED'
|
|
218
|
+
| 'MANUALLY_REJECTED';
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Last update timestamp
|
|
222
|
+
*/
|
|
223
|
+
updatedAt?: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface CustomerCreate {
|
|
227
|
+
/**
|
|
228
|
+
* Platform-specific customer identifier. If not provided, one will be generated by
|
|
229
|
+
* the system.
|
|
230
|
+
*/
|
|
231
|
+
platformCustomerId: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Optional UMA address identifier. If not provided during customer creation, one
|
|
235
|
+
* will be generated by the system. If provided during customer update, the UMA
|
|
236
|
+
* address will be updated to the provided value. This is an optional identifier to
|
|
237
|
+
* route payments to the customer. This is an optional identifier to route payments
|
|
238
|
+
* to the customer.
|
|
239
|
+
*/
|
|
240
|
+
umaAddress?: string;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type CustomerOneOf = CustomerOneOf.IndividualCustomer | CustomerOneOf.BusinessCustomer;
|
|
244
|
+
|
|
245
|
+
export namespace CustomerOneOf {
|
|
246
|
+
export interface IndividualCustomer extends CustomersAPI.Customer {
|
|
247
|
+
customerType: 'INDIVIDUAL';
|
|
248
|
+
|
|
249
|
+
address?: IndividualCustomer.Address;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
253
|
+
*/
|
|
254
|
+
birthDate?: string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Individual's full name
|
|
258
|
+
*/
|
|
259
|
+
fullName?: string;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
263
|
+
*/
|
|
264
|
+
nationality?: string;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export namespace IndividualCustomer {
|
|
268
|
+
export interface Address {
|
|
269
|
+
/**
|
|
270
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
271
|
+
*/
|
|
272
|
+
country: string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Street address line 1
|
|
276
|
+
*/
|
|
277
|
+
line1: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Postal/ZIP code
|
|
281
|
+
*/
|
|
282
|
+
postalCode: string;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* City
|
|
286
|
+
*/
|
|
287
|
+
city?: string;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Street address line 2
|
|
291
|
+
*/
|
|
292
|
+
line2?: string;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* State/Province/Region
|
|
296
|
+
*/
|
|
297
|
+
state?: string;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export interface BusinessCustomer extends CustomersAPI.Customer {
|
|
302
|
+
customerType: 'BUSINESS';
|
|
303
|
+
|
|
304
|
+
address?: BusinessCustomer.Address;
|
|
305
|
+
|
|
306
|
+
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
|
|
307
|
+
|
|
308
|
+
businessInfo?: BusinessCustomer.BusinessInfo;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export namespace BusinessCustomer {
|
|
312
|
+
export interface Address {
|
|
313
|
+
/**
|
|
314
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
315
|
+
*/
|
|
316
|
+
country: string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Street address line 1
|
|
320
|
+
*/
|
|
321
|
+
line1: string;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Postal/ZIP code
|
|
325
|
+
*/
|
|
326
|
+
postalCode: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* City
|
|
330
|
+
*/
|
|
331
|
+
city?: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Street address line 2
|
|
335
|
+
*/
|
|
336
|
+
line2?: string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* State/Province/Region
|
|
340
|
+
*/
|
|
341
|
+
state?: string;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export interface BeneficialOwner {
|
|
345
|
+
/**
|
|
346
|
+
* Individual's full name
|
|
347
|
+
*/
|
|
348
|
+
fullName: string;
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Type of individual in the corporation
|
|
352
|
+
*/
|
|
353
|
+
individualType:
|
|
354
|
+
| 'DIRECTOR'
|
|
355
|
+
| 'CONTROL_PERSON'
|
|
356
|
+
| 'BUSINESS_POINT_OF_CONTACT'
|
|
357
|
+
| 'TRUSTEE'
|
|
358
|
+
| 'SETTLOR'
|
|
359
|
+
| 'GENERAL_PARTNER';
|
|
360
|
+
|
|
361
|
+
address?: BeneficialOwner.Address;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
365
|
+
*/
|
|
366
|
+
birthDate?: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Email address of the individual
|
|
370
|
+
*/
|
|
371
|
+
emailAddress?: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
375
|
+
*/
|
|
376
|
+
nationality?: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Percent of ownership when individual type is beneficial owner
|
|
380
|
+
*/
|
|
381
|
+
percentageOwnership?: number;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Phone number of the individual in E.164 format
|
|
385
|
+
*/
|
|
386
|
+
phoneNumber?: string;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
390
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
391
|
+
* individuals, or a Passport Number.
|
|
392
|
+
*/
|
|
393
|
+
taxId?: string;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Title at company
|
|
397
|
+
*/
|
|
398
|
+
title?: string;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
export namespace BeneficialOwner {
|
|
402
|
+
export interface Address {
|
|
403
|
+
/**
|
|
404
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
405
|
+
*/
|
|
406
|
+
country: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Street address line 1
|
|
410
|
+
*/
|
|
411
|
+
line1: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Postal/ZIP code
|
|
415
|
+
*/
|
|
416
|
+
postalCode: string;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* City
|
|
420
|
+
*/
|
|
421
|
+
city?: string;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Street address line 2
|
|
425
|
+
*/
|
|
426
|
+
line2?: string;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* State/Province/Region
|
|
430
|
+
*/
|
|
431
|
+
state?: string;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export interface BusinessInfo {
|
|
436
|
+
/**
|
|
437
|
+
* Legal name of the business
|
|
438
|
+
*/
|
|
439
|
+
legalName: string;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Business registration number
|
|
443
|
+
*/
|
|
444
|
+
registrationNumber?: string;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Tax identification number
|
|
448
|
+
*/
|
|
449
|
+
taxId?: string;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export interface CustomerUpdate {
|
|
455
|
+
/**
|
|
456
|
+
* Optional UMA address identifier. If provided, the customer's UMA address will be
|
|
457
|
+
* updated. This is an optional identifier to route payments to the customer.
|
|
458
|
+
*/
|
|
459
|
+
umaAddress?: string;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export type CustomerRetrieveResponse =
|
|
463
|
+
| CustomerRetrieveResponse.IndividualCustomer
|
|
464
|
+
| CustomerRetrieveResponse.BusinessCustomer;
|
|
465
|
+
|
|
466
|
+
export namespace CustomerRetrieveResponse {
|
|
467
|
+
export interface IndividualCustomer extends CustomersAPI.Customer {
|
|
468
|
+
customerType: 'INDIVIDUAL';
|
|
469
|
+
|
|
470
|
+
address?: IndividualCustomer.Address;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
474
|
+
*/
|
|
475
|
+
birthDate?: string;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Individual's full name
|
|
479
|
+
*/
|
|
480
|
+
fullName?: string;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
484
|
+
*/
|
|
485
|
+
nationality?: string;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export namespace IndividualCustomer {
|
|
489
|
+
export interface Address {
|
|
490
|
+
/**
|
|
491
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
492
|
+
*/
|
|
493
|
+
country: string;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Street address line 1
|
|
497
|
+
*/
|
|
498
|
+
line1: string;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Postal/ZIP code
|
|
502
|
+
*/
|
|
503
|
+
postalCode: string;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* City
|
|
507
|
+
*/
|
|
508
|
+
city?: string;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Street address line 2
|
|
512
|
+
*/
|
|
513
|
+
line2?: string;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* State/Province/Region
|
|
517
|
+
*/
|
|
518
|
+
state?: string;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
export interface BusinessCustomer extends CustomersAPI.Customer {
|
|
523
|
+
customerType: 'BUSINESS';
|
|
524
|
+
|
|
525
|
+
address?: BusinessCustomer.Address;
|
|
526
|
+
|
|
527
|
+
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
|
|
528
|
+
|
|
529
|
+
businessInfo?: BusinessCustomer.BusinessInfo;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export namespace BusinessCustomer {
|
|
533
|
+
export interface Address {
|
|
534
|
+
/**
|
|
535
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
536
|
+
*/
|
|
537
|
+
country: string;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Street address line 1
|
|
541
|
+
*/
|
|
542
|
+
line1: string;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Postal/ZIP code
|
|
546
|
+
*/
|
|
547
|
+
postalCode: string;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* City
|
|
551
|
+
*/
|
|
552
|
+
city?: string;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Street address line 2
|
|
556
|
+
*/
|
|
557
|
+
line2?: string;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* State/Province/Region
|
|
561
|
+
*/
|
|
562
|
+
state?: string;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export interface BeneficialOwner {
|
|
566
|
+
/**
|
|
567
|
+
* Individual's full name
|
|
568
|
+
*/
|
|
569
|
+
fullName: string;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Type of individual in the corporation
|
|
573
|
+
*/
|
|
574
|
+
individualType:
|
|
575
|
+
| 'DIRECTOR'
|
|
576
|
+
| 'CONTROL_PERSON'
|
|
577
|
+
| 'BUSINESS_POINT_OF_CONTACT'
|
|
578
|
+
| 'TRUSTEE'
|
|
579
|
+
| 'SETTLOR'
|
|
580
|
+
| 'GENERAL_PARTNER';
|
|
581
|
+
|
|
582
|
+
address?: BeneficialOwner.Address;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
586
|
+
*/
|
|
587
|
+
birthDate?: string;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Email address of the individual
|
|
591
|
+
*/
|
|
592
|
+
emailAddress?: string;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
596
|
+
*/
|
|
597
|
+
nationality?: string;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Percent of ownership when individual type is beneficial owner
|
|
601
|
+
*/
|
|
602
|
+
percentageOwnership?: number;
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Phone number of the individual in E.164 format
|
|
606
|
+
*/
|
|
607
|
+
phoneNumber?: string;
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
611
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
612
|
+
* individuals, or a Passport Number.
|
|
613
|
+
*/
|
|
614
|
+
taxId?: string;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Title at company
|
|
618
|
+
*/
|
|
619
|
+
title?: string;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export namespace BeneficialOwner {
|
|
623
|
+
export interface Address {
|
|
624
|
+
/**
|
|
625
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
626
|
+
*/
|
|
627
|
+
country: string;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Street address line 1
|
|
631
|
+
*/
|
|
632
|
+
line1: string;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Postal/ZIP code
|
|
636
|
+
*/
|
|
637
|
+
postalCode: string;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* City
|
|
641
|
+
*/
|
|
642
|
+
city?: string;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Street address line 2
|
|
646
|
+
*/
|
|
647
|
+
line2?: string;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* State/Province/Region
|
|
651
|
+
*/
|
|
652
|
+
state?: string;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export interface BusinessInfo {
|
|
657
|
+
/**
|
|
658
|
+
* Legal name of the business
|
|
659
|
+
*/
|
|
660
|
+
legalName: string;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Business registration number
|
|
664
|
+
*/
|
|
665
|
+
registrationNumber?: string;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Tax identification number
|
|
669
|
+
*/
|
|
670
|
+
taxId?: string;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export type CustomerUpdateResponse =
|
|
676
|
+
| CustomerUpdateResponse.IndividualCustomer
|
|
677
|
+
| CustomerUpdateResponse.BusinessCustomer;
|
|
678
|
+
|
|
679
|
+
export namespace CustomerUpdateResponse {
|
|
680
|
+
export interface IndividualCustomer extends CustomersAPI.Customer {
|
|
681
|
+
customerType: 'INDIVIDUAL';
|
|
682
|
+
|
|
683
|
+
address?: IndividualCustomer.Address;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
687
|
+
*/
|
|
688
|
+
birthDate?: string;
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Individual's full name
|
|
692
|
+
*/
|
|
693
|
+
fullName?: string;
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
697
|
+
*/
|
|
698
|
+
nationality?: string;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export namespace IndividualCustomer {
|
|
702
|
+
export interface Address {
|
|
703
|
+
/**
|
|
704
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
705
|
+
*/
|
|
706
|
+
country: string;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Street address line 1
|
|
710
|
+
*/
|
|
711
|
+
line1: string;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Postal/ZIP code
|
|
715
|
+
*/
|
|
716
|
+
postalCode: string;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* City
|
|
720
|
+
*/
|
|
721
|
+
city?: string;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Street address line 2
|
|
725
|
+
*/
|
|
726
|
+
line2?: string;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* State/Province/Region
|
|
730
|
+
*/
|
|
731
|
+
state?: string;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
export interface BusinessCustomer extends CustomersAPI.Customer {
|
|
736
|
+
customerType: 'BUSINESS';
|
|
737
|
+
|
|
738
|
+
address?: BusinessCustomer.Address;
|
|
739
|
+
|
|
740
|
+
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
|
|
741
|
+
|
|
742
|
+
businessInfo?: BusinessCustomer.BusinessInfo;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export namespace BusinessCustomer {
|
|
746
|
+
export interface Address {
|
|
747
|
+
/**
|
|
748
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
749
|
+
*/
|
|
750
|
+
country: string;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Street address line 1
|
|
754
|
+
*/
|
|
755
|
+
line1: string;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Postal/ZIP code
|
|
759
|
+
*/
|
|
760
|
+
postalCode: string;
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* City
|
|
764
|
+
*/
|
|
765
|
+
city?: string;
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Street address line 2
|
|
769
|
+
*/
|
|
770
|
+
line2?: string;
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* State/Province/Region
|
|
774
|
+
*/
|
|
775
|
+
state?: string;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
export interface BeneficialOwner {
|
|
779
|
+
/**
|
|
780
|
+
* Individual's full name
|
|
781
|
+
*/
|
|
782
|
+
fullName: string;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Type of individual in the corporation
|
|
786
|
+
*/
|
|
787
|
+
individualType:
|
|
788
|
+
| 'DIRECTOR'
|
|
789
|
+
| 'CONTROL_PERSON'
|
|
790
|
+
| 'BUSINESS_POINT_OF_CONTACT'
|
|
791
|
+
| 'TRUSTEE'
|
|
792
|
+
| 'SETTLOR'
|
|
793
|
+
| 'GENERAL_PARTNER';
|
|
794
|
+
|
|
795
|
+
address?: BeneficialOwner.Address;
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
799
|
+
*/
|
|
800
|
+
birthDate?: string;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Email address of the individual
|
|
804
|
+
*/
|
|
805
|
+
emailAddress?: string;
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
809
|
+
*/
|
|
810
|
+
nationality?: string;
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Percent of ownership when individual type is beneficial owner
|
|
814
|
+
*/
|
|
815
|
+
percentageOwnership?: number;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Phone number of the individual in E.164 format
|
|
819
|
+
*/
|
|
820
|
+
phoneNumber?: string;
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
824
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
825
|
+
* individuals, or a Passport Number.
|
|
826
|
+
*/
|
|
827
|
+
taxId?: string;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Title at company
|
|
831
|
+
*/
|
|
832
|
+
title?: string;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
export namespace BeneficialOwner {
|
|
836
|
+
export interface Address {
|
|
837
|
+
/**
|
|
838
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
839
|
+
*/
|
|
840
|
+
country: string;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Street address line 1
|
|
844
|
+
*/
|
|
845
|
+
line1: string;
|
|
846
|
+
|
|
847
|
+
/**
|
|
848
|
+
* Postal/ZIP code
|
|
849
|
+
*/
|
|
850
|
+
postalCode: string;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* City
|
|
854
|
+
*/
|
|
855
|
+
city?: string;
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Street address line 2
|
|
859
|
+
*/
|
|
860
|
+
line2?: string;
|
|
861
|
+
|
|
862
|
+
/**
|
|
863
|
+
* State/Province/Region
|
|
864
|
+
*/
|
|
865
|
+
state?: string;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export interface BusinessInfo {
|
|
870
|
+
/**
|
|
871
|
+
* Legal name of the business
|
|
872
|
+
*/
|
|
873
|
+
legalName: string;
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Business registration number
|
|
877
|
+
*/
|
|
878
|
+
registrationNumber?: string;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Tax identification number
|
|
882
|
+
*/
|
|
883
|
+
taxId?: string;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export type CustomerDeleteResponse =
|
|
889
|
+
| CustomerDeleteResponse.IndividualCustomer
|
|
890
|
+
| CustomerDeleteResponse.BusinessCustomer;
|
|
891
|
+
|
|
892
|
+
export namespace CustomerDeleteResponse {
|
|
893
|
+
export interface IndividualCustomer extends CustomersAPI.Customer {
|
|
894
|
+
customerType: 'INDIVIDUAL';
|
|
895
|
+
|
|
896
|
+
address?: IndividualCustomer.Address;
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
900
|
+
*/
|
|
901
|
+
birthDate?: string;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Individual's full name
|
|
905
|
+
*/
|
|
906
|
+
fullName?: string;
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
910
|
+
*/
|
|
911
|
+
nationality?: string;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
export namespace IndividualCustomer {
|
|
915
|
+
export interface Address {
|
|
916
|
+
/**
|
|
917
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
918
|
+
*/
|
|
919
|
+
country: string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Street address line 1
|
|
923
|
+
*/
|
|
924
|
+
line1: string;
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Postal/ZIP code
|
|
928
|
+
*/
|
|
929
|
+
postalCode: string;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* City
|
|
933
|
+
*/
|
|
934
|
+
city?: string;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Street address line 2
|
|
938
|
+
*/
|
|
939
|
+
line2?: string;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* State/Province/Region
|
|
943
|
+
*/
|
|
944
|
+
state?: string;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
export interface BusinessCustomer extends CustomersAPI.Customer {
|
|
949
|
+
customerType: 'BUSINESS';
|
|
950
|
+
|
|
951
|
+
address?: BusinessCustomer.Address;
|
|
952
|
+
|
|
953
|
+
beneficialOwners?: Array<BusinessCustomer.BeneficialOwner>;
|
|
954
|
+
|
|
955
|
+
businessInfo?: BusinessCustomer.BusinessInfo;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export namespace BusinessCustomer {
|
|
959
|
+
export interface Address {
|
|
960
|
+
/**
|
|
961
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
962
|
+
*/
|
|
963
|
+
country: string;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Street address line 1
|
|
967
|
+
*/
|
|
968
|
+
line1: string;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Postal/ZIP code
|
|
972
|
+
*/
|
|
973
|
+
postalCode: string;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* City
|
|
977
|
+
*/
|
|
978
|
+
city?: string;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Street address line 2
|
|
982
|
+
*/
|
|
983
|
+
line2?: string;
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* State/Province/Region
|
|
987
|
+
*/
|
|
988
|
+
state?: string;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export interface BeneficialOwner {
|
|
992
|
+
/**
|
|
993
|
+
* Individual's full name
|
|
994
|
+
*/
|
|
995
|
+
fullName: string;
|
|
996
|
+
|
|
997
|
+
/**
|
|
998
|
+
* Type of individual in the corporation
|
|
999
|
+
*/
|
|
1000
|
+
individualType:
|
|
1001
|
+
| 'DIRECTOR'
|
|
1002
|
+
| 'CONTROL_PERSON'
|
|
1003
|
+
| 'BUSINESS_POINT_OF_CONTACT'
|
|
1004
|
+
| 'TRUSTEE'
|
|
1005
|
+
| 'SETTLOR'
|
|
1006
|
+
| 'GENERAL_PARTNER';
|
|
1007
|
+
|
|
1008
|
+
address?: BeneficialOwner.Address;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
1012
|
+
*/
|
|
1013
|
+
birthDate?: string;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Email address of the individual
|
|
1017
|
+
*/
|
|
1018
|
+
emailAddress?: string;
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1022
|
+
*/
|
|
1023
|
+
nationality?: string;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Percent of ownership when individual type is beneficial owner
|
|
1027
|
+
*/
|
|
1028
|
+
percentageOwnership?: number;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Phone number of the individual in E.164 format
|
|
1032
|
+
*/
|
|
1033
|
+
phoneNumber?: string;
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
1037
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
1038
|
+
* individuals, or a Passport Number.
|
|
1039
|
+
*/
|
|
1040
|
+
taxId?: string;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Title at company
|
|
1044
|
+
*/
|
|
1045
|
+
title?: string;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
export namespace BeneficialOwner {
|
|
1049
|
+
export interface Address {
|
|
1050
|
+
/**
|
|
1051
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1052
|
+
*/
|
|
1053
|
+
country: string;
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Street address line 1
|
|
1057
|
+
*/
|
|
1058
|
+
line1: string;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* Postal/ZIP code
|
|
1062
|
+
*/
|
|
1063
|
+
postalCode: string;
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* City
|
|
1067
|
+
*/
|
|
1068
|
+
city?: string;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Street address line 2
|
|
1072
|
+
*/
|
|
1073
|
+
line2?: string;
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* State/Province/Region
|
|
1077
|
+
*/
|
|
1078
|
+
state?: string;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export interface BusinessInfo {
|
|
1083
|
+
/**
|
|
1084
|
+
* Legal name of the business
|
|
1085
|
+
*/
|
|
1086
|
+
legalName: string;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Business registration number
|
|
1090
|
+
*/
|
|
1091
|
+
registrationNumber?: string;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Tax identification number
|
|
1095
|
+
*/
|
|
1096
|
+
taxId?: string;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export interface CustomerGetKYCLinkResponse {
|
|
1102
|
+
/**
|
|
1103
|
+
* The customer id of the newly created customer on the system
|
|
1104
|
+
*/
|
|
1105
|
+
customerId?: string;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* A hosted KYC link for your customer to complete KYC
|
|
1109
|
+
*/
|
|
1110
|
+
kycUrl?: string;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* The platform id of the customer to onboard
|
|
1114
|
+
*/
|
|
1115
|
+
platformCustomerId?: string;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
export interface CustomerCreateParams {
|
|
1119
|
+
CreateCustomerRequest:
|
|
1120
|
+
| CustomerCreateParams.IndividualCustomerCreateRequest
|
|
1121
|
+
| CustomerCreateParams.BusinessCustomerCreateRequest;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
export namespace CustomerCreateParams {
|
|
1125
|
+
export interface IndividualCustomerCreateRequest extends CustomersAPI.CustomerCreate {
|
|
1126
|
+
customerType: 'INDIVIDUAL';
|
|
1127
|
+
|
|
1128
|
+
address?: IndividualCustomerCreateRequest.Address;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
1132
|
+
*/
|
|
1133
|
+
birthDate?: string;
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Individual's full name
|
|
1137
|
+
*/
|
|
1138
|
+
fullName?: string;
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1142
|
+
*/
|
|
1143
|
+
nationality?: string;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
export namespace IndividualCustomerCreateRequest {
|
|
1147
|
+
export interface Address {
|
|
1148
|
+
/**
|
|
1149
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1150
|
+
*/
|
|
1151
|
+
country: string;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Street address line 1
|
|
1155
|
+
*/
|
|
1156
|
+
line1: string;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* Postal/ZIP code
|
|
1160
|
+
*/
|
|
1161
|
+
postalCode: string;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* City
|
|
1165
|
+
*/
|
|
1166
|
+
city?: string;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Street address line 2
|
|
1170
|
+
*/
|
|
1171
|
+
line2?: string;
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* State/Province/Region
|
|
1175
|
+
*/
|
|
1176
|
+
state?: string;
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export interface BusinessCustomerCreateRequest extends CustomersAPI.CustomerCreate {
|
|
1181
|
+
customerType: 'BUSINESS';
|
|
1182
|
+
|
|
1183
|
+
address?: BusinessCustomerCreateRequest.Address;
|
|
1184
|
+
|
|
1185
|
+
beneficialOwners?: Array<BusinessCustomerCreateRequest.BeneficialOwner>;
|
|
1186
|
+
|
|
1187
|
+
businessInfo?: BusinessCustomerCreateRequest.BusinessInfo;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
export namespace BusinessCustomerCreateRequest {
|
|
1191
|
+
export interface Address {
|
|
1192
|
+
/**
|
|
1193
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1194
|
+
*/
|
|
1195
|
+
country: string;
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Street address line 1
|
|
1199
|
+
*/
|
|
1200
|
+
line1: string;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Postal/ZIP code
|
|
1204
|
+
*/
|
|
1205
|
+
postalCode: string;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* City
|
|
1209
|
+
*/
|
|
1210
|
+
city?: string;
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* Street address line 2
|
|
1214
|
+
*/
|
|
1215
|
+
line2?: string;
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* State/Province/Region
|
|
1219
|
+
*/
|
|
1220
|
+
state?: string;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
export interface BeneficialOwner {
|
|
1224
|
+
/**
|
|
1225
|
+
* Individual's full name
|
|
1226
|
+
*/
|
|
1227
|
+
fullName: string;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Type of individual in the corporation
|
|
1231
|
+
*/
|
|
1232
|
+
individualType:
|
|
1233
|
+
| 'DIRECTOR'
|
|
1234
|
+
| 'CONTROL_PERSON'
|
|
1235
|
+
| 'BUSINESS_POINT_OF_CONTACT'
|
|
1236
|
+
| 'TRUSTEE'
|
|
1237
|
+
| 'SETTLOR'
|
|
1238
|
+
| 'GENERAL_PARTNER';
|
|
1239
|
+
|
|
1240
|
+
address?: BeneficialOwner.Address;
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
1244
|
+
*/
|
|
1245
|
+
birthDate?: string;
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Email address of the individual
|
|
1249
|
+
*/
|
|
1250
|
+
emailAddress?: string;
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1254
|
+
*/
|
|
1255
|
+
nationality?: string;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Percent of ownership when individual type is beneficial owner
|
|
1259
|
+
*/
|
|
1260
|
+
percentageOwnership?: number;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Phone number of the individual in E.164 format
|
|
1264
|
+
*/
|
|
1265
|
+
phoneNumber?: string;
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
1269
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
1270
|
+
* individuals, or a Passport Number.
|
|
1271
|
+
*/
|
|
1272
|
+
taxId?: string;
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* Title at company
|
|
1276
|
+
*/
|
|
1277
|
+
title?: string;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
export namespace BeneficialOwner {
|
|
1281
|
+
export interface Address {
|
|
1282
|
+
/**
|
|
1283
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1284
|
+
*/
|
|
1285
|
+
country: string;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Street address line 1
|
|
1289
|
+
*/
|
|
1290
|
+
line1: string;
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* Postal/ZIP code
|
|
1294
|
+
*/
|
|
1295
|
+
postalCode: string;
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
* City
|
|
1299
|
+
*/
|
|
1300
|
+
city?: string;
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Street address line 2
|
|
1304
|
+
*/
|
|
1305
|
+
line2?: string;
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
* State/Province/Region
|
|
1309
|
+
*/
|
|
1310
|
+
state?: string;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
export interface BusinessInfo {
|
|
1315
|
+
/**
|
|
1316
|
+
* Legal name of the business
|
|
1317
|
+
*/
|
|
1318
|
+
legalName: string;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Business registration number
|
|
1322
|
+
*/
|
|
1323
|
+
registrationNumber?: string;
|
|
1324
|
+
|
|
1325
|
+
/**
|
|
1326
|
+
* Tax identification number
|
|
1327
|
+
*/
|
|
1328
|
+
taxId?: string;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
export interface CustomerUpdateParams {
|
|
1334
|
+
UpdateCustomerRequest:
|
|
1335
|
+
| CustomerUpdateParams.IndividualCustomerUpdateRequest
|
|
1336
|
+
| CustomerUpdateParams.BusinessCustomerUpdateRequest;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
export namespace CustomerUpdateParams {
|
|
1340
|
+
export interface IndividualCustomerUpdateRequest extends CustomersAPI.CustomerUpdate {
|
|
1341
|
+
customerType: 'INDIVIDUAL';
|
|
1342
|
+
|
|
1343
|
+
address?: IndividualCustomerUpdateRequest.Address;
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
1347
|
+
*/
|
|
1348
|
+
birthDate?: string;
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Individual's full name
|
|
1352
|
+
*/
|
|
1353
|
+
fullName?: string;
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1357
|
+
*/
|
|
1358
|
+
nationality?: string;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
export namespace IndividualCustomerUpdateRequest {
|
|
1362
|
+
export interface Address {
|
|
1363
|
+
/**
|
|
1364
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1365
|
+
*/
|
|
1366
|
+
country: string;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Street address line 1
|
|
1370
|
+
*/
|
|
1371
|
+
line1: string;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
* Postal/ZIP code
|
|
1375
|
+
*/
|
|
1376
|
+
postalCode: string;
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* City
|
|
1380
|
+
*/
|
|
1381
|
+
city?: string;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Street address line 2
|
|
1385
|
+
*/
|
|
1386
|
+
line2?: string;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* State/Province/Region
|
|
1390
|
+
*/
|
|
1391
|
+
state?: string;
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
export interface BusinessCustomerUpdateRequest extends CustomersAPI.CustomerUpdate {
|
|
1396
|
+
customerType: 'BUSINESS';
|
|
1397
|
+
|
|
1398
|
+
address?: BusinessCustomerUpdateRequest.Address;
|
|
1399
|
+
|
|
1400
|
+
beneficialOwners?: Array<BusinessCustomerUpdateRequest.BeneficialOwner>;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Additional information for business entities
|
|
1404
|
+
*/
|
|
1405
|
+
businessInfo?: BusinessCustomerUpdateRequest.BusinessInfo;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
export namespace BusinessCustomerUpdateRequest {
|
|
1409
|
+
export interface Address {
|
|
1410
|
+
/**
|
|
1411
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1412
|
+
*/
|
|
1413
|
+
country: string;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* Street address line 1
|
|
1417
|
+
*/
|
|
1418
|
+
line1: string;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Postal/ZIP code
|
|
1422
|
+
*/
|
|
1423
|
+
postalCode: string;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* City
|
|
1427
|
+
*/
|
|
1428
|
+
city?: string;
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Street address line 2
|
|
1432
|
+
*/
|
|
1433
|
+
line2?: string;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* State/Province/Region
|
|
1437
|
+
*/
|
|
1438
|
+
state?: string;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
export interface BeneficialOwner {
|
|
1442
|
+
/**
|
|
1443
|
+
* Individual's full name
|
|
1444
|
+
*/
|
|
1445
|
+
fullName: string;
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Type of individual in the corporation
|
|
1449
|
+
*/
|
|
1450
|
+
individualType:
|
|
1451
|
+
| 'DIRECTOR'
|
|
1452
|
+
| 'CONTROL_PERSON'
|
|
1453
|
+
| 'BUSINESS_POINT_OF_CONTACT'
|
|
1454
|
+
| 'TRUSTEE'
|
|
1455
|
+
| 'SETTLOR'
|
|
1456
|
+
| 'GENERAL_PARTNER';
|
|
1457
|
+
|
|
1458
|
+
address?: BeneficialOwner.Address;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Date of birth in ISO 8601 format (YYYY-MM-DD)
|
|
1462
|
+
*/
|
|
1463
|
+
birthDate?: string;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Email address of the individual
|
|
1467
|
+
*/
|
|
1468
|
+
emailAddress?: string;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1472
|
+
*/
|
|
1473
|
+
nationality?: string;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Percent of ownership when individual type is beneficial owner
|
|
1477
|
+
*/
|
|
1478
|
+
percentageOwnership?: number;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Phone number of the individual in E.164 format
|
|
1482
|
+
*/
|
|
1483
|
+
phoneNumber?: string;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* Tax identification number of the individual. This could be a Social Security
|
|
1487
|
+
* Number (SSN) for US individuals, Tax Identification Number (TIN) for non-US
|
|
1488
|
+
* individuals, or a Passport Number.
|
|
1489
|
+
*/
|
|
1490
|
+
taxId?: string;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Title at company
|
|
1494
|
+
*/
|
|
1495
|
+
title?: string;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
export namespace BeneficialOwner {
|
|
1499
|
+
export interface Address {
|
|
1500
|
+
/**
|
|
1501
|
+
* Country code (ISO 3166-1 alpha-2)
|
|
1502
|
+
*/
|
|
1503
|
+
country: string;
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* Street address line 1
|
|
1507
|
+
*/
|
|
1508
|
+
line1: string;
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Postal/ZIP code
|
|
1512
|
+
*/
|
|
1513
|
+
postalCode: string;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* City
|
|
1517
|
+
*/
|
|
1518
|
+
city?: string;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* Street address line 2
|
|
1522
|
+
*/
|
|
1523
|
+
line2?: string;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* State/Province/Region
|
|
1527
|
+
*/
|
|
1528
|
+
state?: string;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* Additional information for business entities
|
|
1534
|
+
*/
|
|
1535
|
+
export interface BusinessInfo {
|
|
1536
|
+
/**
|
|
1537
|
+
* Legal name of the business
|
|
1538
|
+
*/
|
|
1539
|
+
legalName?: string;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Business registration number
|
|
1543
|
+
*/
|
|
1544
|
+
registrationNumber?: string;
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Tax identification number
|
|
1548
|
+
*/
|
|
1549
|
+
taxId?: string;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
export interface CustomerListParams extends DefaultPaginationParams {
|
|
1555
|
+
/**
|
|
1556
|
+
* Filter customers created after this timestamp (inclusive)
|
|
1557
|
+
*/
|
|
1558
|
+
createdAfter?: string;
|
|
1559
|
+
|
|
1560
|
+
/**
|
|
1561
|
+
* Filter customers created before this timestamp (inclusive)
|
|
1562
|
+
*/
|
|
1563
|
+
createdBefore?: string;
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* Filter by customer type
|
|
1567
|
+
*/
|
|
1568
|
+
customerType?: 'INDIVIDUAL' | 'BUSINESS';
|
|
1569
|
+
|
|
1570
|
+
/**
|
|
1571
|
+
* Whether to include deleted customers in the results. Default is false.
|
|
1572
|
+
*/
|
|
1573
|
+
isIncludingDeleted?: boolean;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* Maximum number of results to return (default 20, max 100)
|
|
1577
|
+
*/
|
|
1578
|
+
limit?: number;
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* Filter by platform-specific customer identifier
|
|
1582
|
+
*/
|
|
1583
|
+
platformCustomerId?: string;
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* Filter by uma address
|
|
1587
|
+
*/
|
|
1588
|
+
umaAddress?: string;
|
|
1589
|
+
|
|
1590
|
+
/**
|
|
1591
|
+
* Filter customers updated after this timestamp (inclusive)
|
|
1592
|
+
*/
|
|
1593
|
+
updatedAfter?: string;
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Filter customers updated before this timestamp (inclusive)
|
|
1597
|
+
*/
|
|
1598
|
+
updatedBefore?: string;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
export interface CustomerGetKYCLinkParams {
|
|
1602
|
+
/**
|
|
1603
|
+
* The platform id of the customer to onboard
|
|
1604
|
+
*/
|
|
1605
|
+
platformCustomerId: string;
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* An optional uri a customer will be redirected to after completing the hosted KYC
|
|
1609
|
+
* flow
|
|
1610
|
+
*/
|
|
1611
|
+
redirectUri?: string;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
export interface CustomerListInternalAccountsParams extends DefaultPaginationParams {
|
|
1615
|
+
/**
|
|
1616
|
+
* Filter by currency code
|
|
1617
|
+
*/
|
|
1618
|
+
currency?: string;
|
|
1619
|
+
|
|
1620
|
+
/**
|
|
1621
|
+
* Filter by internal accounts associated with a specific customer
|
|
1622
|
+
*/
|
|
1623
|
+
customerId?: string;
|
|
1624
|
+
|
|
1625
|
+
/**
|
|
1626
|
+
* Maximum number of results to return (default 20, max 100)
|
|
1627
|
+
*/
|
|
1628
|
+
limit?: number;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
Customers.ExternalAccounts = ExternalAccounts;
|
|
1632
|
+
Customers.Bulk = Bulk;
|
|
1633
|
+
|
|
1634
|
+
export declare namespace Customers {
|
|
1635
|
+
export {
|
|
1636
|
+
type Customer as Customer,
|
|
1637
|
+
type CustomerCreate as CustomerCreate,
|
|
1638
|
+
type CustomerOneOf as CustomerOneOf,
|
|
1639
|
+
type CustomerUpdate as CustomerUpdate,
|
|
1640
|
+
type CustomerRetrieveResponse as CustomerRetrieveResponse,
|
|
1641
|
+
type CustomerUpdateResponse as CustomerUpdateResponse,
|
|
1642
|
+
type CustomerDeleteResponse as CustomerDeleteResponse,
|
|
1643
|
+
type CustomerGetKYCLinkResponse as CustomerGetKYCLinkResponse,
|
|
1644
|
+
type CustomerOneovesDefaultPagination as CustomerOneovesDefaultPagination,
|
|
1645
|
+
type CustomerCreateParams as CustomerCreateParams,
|
|
1646
|
+
type CustomerUpdateParams as CustomerUpdateParams,
|
|
1647
|
+
type CustomerListParams as CustomerListParams,
|
|
1648
|
+
type CustomerGetKYCLinkParams as CustomerGetKYCLinkParams,
|
|
1649
|
+
type CustomerListInternalAccountsParams as CustomerListInternalAccountsParams,
|
|
1650
|
+
};
|
|
1651
|
+
|
|
1652
|
+
export {
|
|
1653
|
+
ExternalAccounts as ExternalAccounts,
|
|
1654
|
+
type BaseWalletInfo as BaseWalletInfo,
|
|
1655
|
+
type BeneficiaryOneOf as BeneficiaryOneOf,
|
|
1656
|
+
type CadAccountInfo as CadAccountInfo,
|
|
1657
|
+
type ClabeAccountInfo as ClabeAccountInfo,
|
|
1658
|
+
type ExternalAccount as ExternalAccount,
|
|
1659
|
+
type ExternalAccountCreate as ExternalAccountCreate,
|
|
1660
|
+
type ExternalAccountInfoOneOf as ExternalAccountInfoOneOf,
|
|
1661
|
+
type GbpAccountInfo as GbpAccountInfo,
|
|
1662
|
+
type IbanAccountInfo as IbanAccountInfo,
|
|
1663
|
+
type LightningWalletInfo as LightningWalletInfo,
|
|
1664
|
+
type NgnAccountInfo as NgnAccountInfo,
|
|
1665
|
+
type PhpAccountInfo as PhpAccountInfo,
|
|
1666
|
+
type PixAccountInfo as PixAccountInfo,
|
|
1667
|
+
type PolygonWalletInfo as PolygonWalletInfo,
|
|
1668
|
+
type SgdAccountInfo as SgdAccountInfo,
|
|
1669
|
+
type SolanaWalletInfo as SolanaWalletInfo,
|
|
1670
|
+
type SparkWalletInfo as SparkWalletInfo,
|
|
1671
|
+
type TronWalletInfo as TronWalletInfo,
|
|
1672
|
+
type UpiAccountInfo as UpiAccountInfo,
|
|
1673
|
+
type UsAccountInfo as UsAccountInfo,
|
|
1674
|
+
type ExternalAccountsDefaultPagination as ExternalAccountsDefaultPagination,
|
|
1675
|
+
type ExternalAccountCreateParams as ExternalAccountCreateParams,
|
|
1676
|
+
type ExternalAccountListParams as ExternalAccountListParams,
|
|
1677
|
+
};
|
|
1678
|
+
|
|
1679
|
+
export {
|
|
1680
|
+
Bulk as Bulk,
|
|
1681
|
+
type BulkGetJobStatusResponse as BulkGetJobStatusResponse,
|
|
1682
|
+
type BulkUploadCsvResponse as BulkUploadCsvResponse,
|
|
1683
|
+
type BulkUploadCsvParams as BulkUploadCsvParams,
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
export { type InternalAccountsDefaultPagination };
|