@augustusbank/typescript-sdk 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +136 -0
- package/LICENSE +201 -0
- package/README.md +394 -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 +249 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +249 -0
- package/client.d.ts.map +1 -0
- package/client.js +542 -0
- package/client.js.map +1 -0
- package/client.mjs +538 -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 +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -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 +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -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 +87 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +81 -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/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.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 +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +161 -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/account-programs.d.mts +112 -0
- package/resources/account-programs.d.mts.map +1 -0
- package/resources/account-programs.d.ts +112 -0
- package/resources/account-programs.d.ts.map +1 -0
- package/resources/account-programs.js +33 -0
- package/resources/account-programs.js.map +1 -0
- package/resources/account-programs.mjs +29 -0
- package/resources/account-programs.mjs.map +1 -0
- package/resources/accounts.d.mts +850 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +850 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +53 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +49 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/api-keys.d.mts +58 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +58 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +17 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +13 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/api-versions.d.mts +47 -0
- package/resources/api-versions.d.mts.map +1 -0
- package/resources/api-versions.d.ts +47 -0
- package/resources/api-versions.d.ts.map +1 -0
- package/resources/api-versions.js +17 -0
- package/resources/api-versions.js.map +1 -0
- package/resources/api-versions.mjs +13 -0
- package/resources/api-versions.mjs.map +1 -0
- package/resources/conversions.d.mts +270 -0
- package/resources/conversions.d.mts.map +1 -0
- package/resources/conversions.d.ts +270 -0
- package/resources/conversions.d.ts.map +1 -0
- package/resources/conversions.js +32 -0
- package/resources/conversions.js.map +1 -0
- package/resources/conversions.mjs +28 -0
- package/resources/conversions.mjs.map +1 -0
- package/resources/deposits.d.mts +252 -0
- package/resources/deposits.d.mts.map +1 -0
- package/resources/deposits.d.ts +252 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +23 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +19 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/events.d.mts +101 -0
- package/resources/events.d.mts.map +1 -0
- package/resources/events.d.ts +101 -0
- package/resources/events.d.ts.map +1 -0
- package/resources/events.js +24 -0
- package/resources/events.js.map +1 -0
- package/resources/events.mjs +20 -0
- package/resources/events.mjs.map +1 -0
- package/resources/index.d.mts +15 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +15 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +33 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +16 -0
- package/resources/index.mjs.map +1 -0
- package/resources/payouts.d.mts +550 -0
- package/resources/payouts.d.mts.map +1 -0
- package/resources/payouts.d.ts +550 -0
- package/resources/payouts.d.ts.map +1 -0
- package/resources/payouts.js +29 -0
- package/resources/payouts.js.map +1 -0
- package/resources/payouts.mjs +25 -0
- package/resources/payouts.mjs.map +1 -0
- package/resources/quotes/index.d.mts +3 -0
- package/resources/quotes/index.d.mts.map +1 -0
- package/resources/quotes/index.d.ts +3 -0
- package/resources/quotes/index.d.ts.map +1 -0
- package/resources/quotes/index.js +9 -0
- package/resources/quotes/index.js.map +1 -0
- package/resources/quotes/index.mjs +4 -0
- package/resources/quotes/index.mjs.map +1 -0
- package/resources/quotes/indicative.d.mts +76 -0
- package/resources/quotes/indicative.d.mts.map +1 -0
- package/resources/quotes/indicative.d.ts +76 -0
- package/resources/quotes/indicative.d.ts.map +1 -0
- package/resources/quotes/indicative.js +15 -0
- package/resources/quotes/indicative.js.map +1 -0
- package/resources/quotes/indicative.mjs +11 -0
- package/resources/quotes/indicative.mjs.map +1 -0
- package/resources/quotes/quotes.d.mts +71 -0
- package/resources/quotes/quotes.d.mts.map +1 -0
- package/resources/quotes/quotes.d.ts +71 -0
- package/resources/quotes/quotes.d.ts.map +1 -0
- package/resources/quotes/quotes.js +24 -0
- package/resources/quotes/quotes.js.map +1 -0
- package/resources/quotes/quotes.mjs +19 -0
- package/resources/quotes/quotes.mjs.map +1 -0
- package/resources/quotes.d.mts +2 -0
- package/resources/quotes.d.mts.map +1 -0
- package/resources/quotes.d.ts +2 -0
- package/resources/quotes.d.ts.map +1 -0
- package/resources/quotes.js +6 -0
- package/resources/quotes.js.map +1 -0
- package/resources/quotes.mjs +3 -0
- package/resources/quotes.mjs.map +1 -0
- package/resources/returns.d.mts +70 -0
- package/resources/returns.d.mts.map +1 -0
- package/resources/returns.d.ts +70 -0
- package/resources/returns.d.ts.map +1 -0
- package/resources/returns.js +16 -0
- package/resources/returns.js.map +1 -0
- package/resources/returns.mjs +12 -0
- package/resources/returns.mjs.map +1 -0
- package/resources/scopes.d.mts +49 -0
- package/resources/scopes.d.mts.map +1 -0
- package/resources/scopes.d.ts +49 -0
- package/resources/scopes.d.ts.map +1 -0
- package/resources/scopes.js +17 -0
- package/resources/scopes.js.map +1 -0
- package/resources/scopes.mjs +13 -0
- package/resources/scopes.mjs.map +1 -0
- package/resources/webhook-deliveries.d.mts +203 -0
- package/resources/webhook-deliveries.d.mts.map +1 -0
- package/resources/webhook-deliveries.d.ts +203 -0
- package/resources/webhook-deliveries.d.ts.map +1 -0
- package/resources/webhook-deliveries.js +33 -0
- package/resources/webhook-deliveries.js.map +1 -0
- package/resources/webhook-deliveries.mjs +29 -0
- package/resources/webhook-deliveries.mjs.map +1 -0
- package/resources/webhook-subscriptions.d.mts +221 -0
- package/resources/webhook-subscriptions.d.mts.map +1 -0
- package/resources/webhook-subscriptions.d.ts +221 -0
- package/resources/webhook-subscriptions.d.ts.map +1 -0
- package/resources/webhook-subscriptions.js +54 -0
- package/resources/webhook-subscriptions.js.map +1 -0
- package/resources/webhook-subscriptions.mjs +50 -0
- package/resources/webhook-subscriptions.mjs.map +1 -0
- package/resources/webhooks.d.mts +1489 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +1489 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +20 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +16 -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/api-promise.ts +2 -0
- package/src/client.ts +1047 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +157 -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 +23 -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 +93 -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 +128 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -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 +9 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/account-programs.ts +156 -0
- package/src/resources/accounts.ts +1603 -0
- package/src/resources/api-keys.ts +89 -0
- package/src/resources/api-versions.ts +61 -0
- package/src/resources/conversions.ts +340 -0
- package/src/resources/deposits.ts +364 -0
- package/src/resources/events.ts +170 -0
- package/src/resources/index.ts +99 -0
- package/src/resources/payouts.ts +735 -0
- package/src/resources/quotes/index.ts +4 -0
- package/src/resources/quotes/indicative.ts +100 -0
- package/src/resources/quotes/quotes.ts +108 -0
- package/src/resources/quotes.ts +3 -0
- package/src/resources/returns.ts +102 -0
- package/src/resources/scopes.ts +80 -0
- package/src/resources/webhook-deliveries.ts +267 -0
- package/src/resources/webhook-subscriptions.ts +411 -0
- package/src/resources/webhooks.ts +1953 -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,252 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Deposits extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a deposit by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<DepositRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Lists deposits for the merchant with cursor-based pagination.
|
|
12
|
+
*/
|
|
13
|
+
list(query?: DepositListParams | null | undefined, options?: RequestOptions): PagePromise<DepositListResponsesCursorPage, DepositListResponse>;
|
|
14
|
+
}
|
|
15
|
+
export type DepositListResponsesCursorPage = CursorPage<DepositListResponse>;
|
|
16
|
+
export interface DepositRetrieveResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier of the deposit.
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
23
|
+
*/
|
|
24
|
+
amount: string;
|
|
25
|
+
/**
|
|
26
|
+
* Reference visible on the bank statement, or null when not applicable.
|
|
27
|
+
*/
|
|
28
|
+
bank_statement_reference: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* ISO 8601 UTC timestamp when the deposit was created.
|
|
31
|
+
*/
|
|
32
|
+
created_at: string;
|
|
33
|
+
/**
|
|
34
|
+
* Supported fiat or crypto currency code for the deposit amount.
|
|
35
|
+
*/
|
|
36
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
37
|
+
/**
|
|
38
|
+
* ID of the merchant account that received the deposit.
|
|
39
|
+
*/
|
|
40
|
+
destination_account_id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Payment rail or blockchain used for the deposit.
|
|
43
|
+
*/
|
|
44
|
+
rail: 'sepa_instant' | 'faster_payments' | 'sepa' | 'elixir' | 'express_elixir' | 'sek_account_to_account' | 'sumclearing' | 'straksclearing' | 'swift' | 'internal' | 'target' | 'eth' | 'eth_sepolia' | 'sol' | 'sol_devnet' | 'matic' | 'matic_amoy' | null;
|
|
45
|
+
/**
|
|
46
|
+
* Array of deposit return IDs associated with this deposit.
|
|
47
|
+
*/
|
|
48
|
+
returns: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Counterparty bank account or crypto wallet that sent the funds.
|
|
51
|
+
*/
|
|
52
|
+
source: DepositRetrieveResponse.UnionMember0 | DepositRetrieveResponse.UnionMember1 | DepositRetrieveResponse.UnionMember2;
|
|
53
|
+
/**
|
|
54
|
+
* Current status of the deposit.
|
|
55
|
+
*/
|
|
56
|
+
status: 'received' | 'rejected' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
|
|
57
|
+
/**
|
|
58
|
+
* Transaction hash for crypto deposits, or null when not known.
|
|
59
|
+
*/
|
|
60
|
+
tx_hash: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Resource type discriminator.
|
|
63
|
+
*/
|
|
64
|
+
type: 'deposit';
|
|
65
|
+
/**
|
|
66
|
+
* ISO 8601 UTC timestamp when the deposit was last updated.
|
|
67
|
+
*/
|
|
68
|
+
updated_at: string;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace DepositRetrieveResponse {
|
|
71
|
+
interface UnionMember0 {
|
|
72
|
+
/**
|
|
73
|
+
* Name of the account holder.
|
|
74
|
+
*/
|
|
75
|
+
account_holder_name: string;
|
|
76
|
+
/**
|
|
77
|
+
* Bank Identifier Code, or null if not provided.
|
|
78
|
+
*/
|
|
79
|
+
bic: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* International Bank Account Number.
|
|
82
|
+
*/
|
|
83
|
+
iban: string;
|
|
84
|
+
/**
|
|
85
|
+
* Discriminator for IBAN source.
|
|
86
|
+
*/
|
|
87
|
+
type: 'iban';
|
|
88
|
+
}
|
|
89
|
+
interface UnionMember1 {
|
|
90
|
+
/**
|
|
91
|
+
* Name of the account holder.
|
|
92
|
+
*/
|
|
93
|
+
account_holder_name: string;
|
|
94
|
+
/**
|
|
95
|
+
* UK account number (8 digits).
|
|
96
|
+
*/
|
|
97
|
+
account_number: string;
|
|
98
|
+
/**
|
|
99
|
+
* UK sort code (6 digits).
|
|
100
|
+
*/
|
|
101
|
+
sort_code: string;
|
|
102
|
+
/**
|
|
103
|
+
* Discriminator for UK sort code source.
|
|
104
|
+
*/
|
|
105
|
+
type: 'sort_code';
|
|
106
|
+
}
|
|
107
|
+
interface UnionMember2 {
|
|
108
|
+
/**
|
|
109
|
+
* Wallet address on the specified blockchain.
|
|
110
|
+
*/
|
|
111
|
+
address: string;
|
|
112
|
+
/**
|
|
113
|
+
* Blockchain network for the crypto wallet.
|
|
114
|
+
*/
|
|
115
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
116
|
+
/**
|
|
117
|
+
* Discriminator for crypto wallet source.
|
|
118
|
+
*/
|
|
119
|
+
type: 'crypto_wallet';
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export interface DepositListResponse {
|
|
123
|
+
/**
|
|
124
|
+
* Unique identifier of the deposit.
|
|
125
|
+
*/
|
|
126
|
+
id: string;
|
|
127
|
+
/**
|
|
128
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
129
|
+
*/
|
|
130
|
+
amount: string;
|
|
131
|
+
/**
|
|
132
|
+
* Reference visible on the bank statement, or null when not applicable.
|
|
133
|
+
*/
|
|
134
|
+
bank_statement_reference: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* ISO 8601 UTC timestamp when the deposit was created.
|
|
137
|
+
*/
|
|
138
|
+
created_at: string;
|
|
139
|
+
/**
|
|
140
|
+
* Supported fiat or crypto currency code for the deposit amount.
|
|
141
|
+
*/
|
|
142
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
143
|
+
/**
|
|
144
|
+
* ID of the merchant account that received the deposit.
|
|
145
|
+
*/
|
|
146
|
+
destination_account_id: string;
|
|
147
|
+
/**
|
|
148
|
+
* Payment rail or blockchain used for the deposit.
|
|
149
|
+
*/
|
|
150
|
+
rail: 'sepa_instant' | 'faster_payments' | 'sepa' | 'elixir' | 'express_elixir' | 'sek_account_to_account' | 'sumclearing' | 'straksclearing' | 'swift' | 'internal' | 'target' | 'eth' | 'eth_sepolia' | 'sol' | 'sol_devnet' | 'matic' | 'matic_amoy' | null;
|
|
151
|
+
/**
|
|
152
|
+
* Array of deposit return IDs associated with this deposit.
|
|
153
|
+
*/
|
|
154
|
+
returns: Array<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Counterparty bank account or crypto wallet that sent the funds.
|
|
157
|
+
*/
|
|
158
|
+
source: DepositListResponse.UnionMember0 | DepositListResponse.UnionMember1 | DepositListResponse.UnionMember2;
|
|
159
|
+
/**
|
|
160
|
+
* Current status of the deposit.
|
|
161
|
+
*/
|
|
162
|
+
status: 'received' | 'rejected' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
|
|
163
|
+
/**
|
|
164
|
+
* Transaction hash for crypto deposits, or null when not known.
|
|
165
|
+
*/
|
|
166
|
+
tx_hash: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* Resource type discriminator.
|
|
169
|
+
*/
|
|
170
|
+
type: 'deposit';
|
|
171
|
+
/**
|
|
172
|
+
* ISO 8601 UTC timestamp when the deposit was last updated.
|
|
173
|
+
*/
|
|
174
|
+
updated_at: string;
|
|
175
|
+
}
|
|
176
|
+
export declare namespace DepositListResponse {
|
|
177
|
+
interface UnionMember0 {
|
|
178
|
+
/**
|
|
179
|
+
* Name of the account holder.
|
|
180
|
+
*/
|
|
181
|
+
account_holder_name: string;
|
|
182
|
+
/**
|
|
183
|
+
* Bank Identifier Code, or null if not provided.
|
|
184
|
+
*/
|
|
185
|
+
bic: string | null;
|
|
186
|
+
/**
|
|
187
|
+
* International Bank Account Number.
|
|
188
|
+
*/
|
|
189
|
+
iban: string;
|
|
190
|
+
/**
|
|
191
|
+
* Discriminator for IBAN source.
|
|
192
|
+
*/
|
|
193
|
+
type: 'iban';
|
|
194
|
+
}
|
|
195
|
+
interface UnionMember1 {
|
|
196
|
+
/**
|
|
197
|
+
* Name of the account holder.
|
|
198
|
+
*/
|
|
199
|
+
account_holder_name: string;
|
|
200
|
+
/**
|
|
201
|
+
* UK account number (8 digits).
|
|
202
|
+
*/
|
|
203
|
+
account_number: string;
|
|
204
|
+
/**
|
|
205
|
+
* UK sort code (6 digits).
|
|
206
|
+
*/
|
|
207
|
+
sort_code: string;
|
|
208
|
+
/**
|
|
209
|
+
* Discriminator for UK sort code source.
|
|
210
|
+
*/
|
|
211
|
+
type: 'sort_code';
|
|
212
|
+
}
|
|
213
|
+
interface UnionMember2 {
|
|
214
|
+
/**
|
|
215
|
+
* Wallet address on the specified blockchain.
|
|
216
|
+
*/
|
|
217
|
+
address: string;
|
|
218
|
+
/**
|
|
219
|
+
* Blockchain network for the crypto wallet.
|
|
220
|
+
*/
|
|
221
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
222
|
+
/**
|
|
223
|
+
* Discriminator for crypto wallet source.
|
|
224
|
+
*/
|
|
225
|
+
type: 'crypto_wallet';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export interface DepositListParams extends CursorPageParams {
|
|
229
|
+
created_at?: DepositListParams.CreatedAt;
|
|
230
|
+
/**
|
|
231
|
+
* Filter by deposit status.
|
|
232
|
+
*/
|
|
233
|
+
status?: 'received' | 'rejected' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
|
|
234
|
+
}
|
|
235
|
+
export declare namespace DepositListParams {
|
|
236
|
+
interface CreatedAt {
|
|
237
|
+
/**
|
|
238
|
+
* Include deposits whose created_at is greater than or equal to this ISO 8601
|
|
239
|
+
* timestamp.
|
|
240
|
+
*/
|
|
241
|
+
gte?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Include deposits whose created_at is less than or equal to this ISO 8601
|
|
244
|
+
* timestamp.
|
|
245
|
+
*/
|
|
246
|
+
lte?: string;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
export declare namespace Deposits {
|
|
250
|
+
export { type DepositRetrieveResponse as DepositRetrieveResponse, type DepositListResponse as DepositListResponse, type DepositListResponsesCursorPage as DepositListResponsesCursorPage, type DepositListParams as DepositListParams, };
|
|
251
|
+
}
|
|
252
|
+
//# sourceMappingURL=deposits.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.d.mts","sourceRoot":"","sources":["../src/resources/deposits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,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GAAG,iBAAiB,CAAC;CACnG;AAED,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,SAAS;QACxB;;;WAGG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Deposits extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a deposit by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<DepositRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Lists deposits for the merchant with cursor-based pagination.
|
|
12
|
+
*/
|
|
13
|
+
list(query?: DepositListParams | null | undefined, options?: RequestOptions): PagePromise<DepositListResponsesCursorPage, DepositListResponse>;
|
|
14
|
+
}
|
|
15
|
+
export type DepositListResponsesCursorPage = CursorPage<DepositListResponse>;
|
|
16
|
+
export interface DepositRetrieveResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Unique identifier of the deposit.
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
23
|
+
*/
|
|
24
|
+
amount: string;
|
|
25
|
+
/**
|
|
26
|
+
* Reference visible on the bank statement, or null when not applicable.
|
|
27
|
+
*/
|
|
28
|
+
bank_statement_reference: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* ISO 8601 UTC timestamp when the deposit was created.
|
|
31
|
+
*/
|
|
32
|
+
created_at: string;
|
|
33
|
+
/**
|
|
34
|
+
* Supported fiat or crypto currency code for the deposit amount.
|
|
35
|
+
*/
|
|
36
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
37
|
+
/**
|
|
38
|
+
* ID of the merchant account that received the deposit.
|
|
39
|
+
*/
|
|
40
|
+
destination_account_id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Payment rail or blockchain used for the deposit.
|
|
43
|
+
*/
|
|
44
|
+
rail: 'sepa_instant' | 'faster_payments' | 'sepa' | 'elixir' | 'express_elixir' | 'sek_account_to_account' | 'sumclearing' | 'straksclearing' | 'swift' | 'internal' | 'target' | 'eth' | 'eth_sepolia' | 'sol' | 'sol_devnet' | 'matic' | 'matic_amoy' | null;
|
|
45
|
+
/**
|
|
46
|
+
* Array of deposit return IDs associated with this deposit.
|
|
47
|
+
*/
|
|
48
|
+
returns: Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* Counterparty bank account or crypto wallet that sent the funds.
|
|
51
|
+
*/
|
|
52
|
+
source: DepositRetrieveResponse.UnionMember0 | DepositRetrieveResponse.UnionMember1 | DepositRetrieveResponse.UnionMember2;
|
|
53
|
+
/**
|
|
54
|
+
* Current status of the deposit.
|
|
55
|
+
*/
|
|
56
|
+
status: 'received' | 'rejected' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
|
|
57
|
+
/**
|
|
58
|
+
* Transaction hash for crypto deposits, or null when not known.
|
|
59
|
+
*/
|
|
60
|
+
tx_hash: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Resource type discriminator.
|
|
63
|
+
*/
|
|
64
|
+
type: 'deposit';
|
|
65
|
+
/**
|
|
66
|
+
* ISO 8601 UTC timestamp when the deposit was last updated.
|
|
67
|
+
*/
|
|
68
|
+
updated_at: string;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace DepositRetrieveResponse {
|
|
71
|
+
interface UnionMember0 {
|
|
72
|
+
/**
|
|
73
|
+
* Name of the account holder.
|
|
74
|
+
*/
|
|
75
|
+
account_holder_name: string;
|
|
76
|
+
/**
|
|
77
|
+
* Bank Identifier Code, or null if not provided.
|
|
78
|
+
*/
|
|
79
|
+
bic: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* International Bank Account Number.
|
|
82
|
+
*/
|
|
83
|
+
iban: string;
|
|
84
|
+
/**
|
|
85
|
+
* Discriminator for IBAN source.
|
|
86
|
+
*/
|
|
87
|
+
type: 'iban';
|
|
88
|
+
}
|
|
89
|
+
interface UnionMember1 {
|
|
90
|
+
/**
|
|
91
|
+
* Name of the account holder.
|
|
92
|
+
*/
|
|
93
|
+
account_holder_name: string;
|
|
94
|
+
/**
|
|
95
|
+
* UK account number (8 digits).
|
|
96
|
+
*/
|
|
97
|
+
account_number: string;
|
|
98
|
+
/**
|
|
99
|
+
* UK sort code (6 digits).
|
|
100
|
+
*/
|
|
101
|
+
sort_code: string;
|
|
102
|
+
/**
|
|
103
|
+
* Discriminator for UK sort code source.
|
|
104
|
+
*/
|
|
105
|
+
type: 'sort_code';
|
|
106
|
+
}
|
|
107
|
+
interface UnionMember2 {
|
|
108
|
+
/**
|
|
109
|
+
* Wallet address on the specified blockchain.
|
|
110
|
+
*/
|
|
111
|
+
address: string;
|
|
112
|
+
/**
|
|
113
|
+
* Blockchain network for the crypto wallet.
|
|
114
|
+
*/
|
|
115
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
116
|
+
/**
|
|
117
|
+
* Discriminator for crypto wallet source.
|
|
118
|
+
*/
|
|
119
|
+
type: 'crypto_wallet';
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export interface DepositListResponse {
|
|
123
|
+
/**
|
|
124
|
+
* Unique identifier of the deposit.
|
|
125
|
+
*/
|
|
126
|
+
id: string;
|
|
127
|
+
/**
|
|
128
|
+
* Amount as a string decimal (e.g. "100.50").
|
|
129
|
+
*/
|
|
130
|
+
amount: string;
|
|
131
|
+
/**
|
|
132
|
+
* Reference visible on the bank statement, or null when not applicable.
|
|
133
|
+
*/
|
|
134
|
+
bank_statement_reference: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* ISO 8601 UTC timestamp when the deposit was created.
|
|
137
|
+
*/
|
|
138
|
+
created_at: string;
|
|
139
|
+
/**
|
|
140
|
+
* Supported fiat or crypto currency code for the deposit amount.
|
|
141
|
+
*/
|
|
142
|
+
currency: 'EUR' | 'GBP' | 'USD' | 'USDC';
|
|
143
|
+
/**
|
|
144
|
+
* ID of the merchant account that received the deposit.
|
|
145
|
+
*/
|
|
146
|
+
destination_account_id: string;
|
|
147
|
+
/**
|
|
148
|
+
* Payment rail or blockchain used for the deposit.
|
|
149
|
+
*/
|
|
150
|
+
rail: 'sepa_instant' | 'faster_payments' | 'sepa' | 'elixir' | 'express_elixir' | 'sek_account_to_account' | 'sumclearing' | 'straksclearing' | 'swift' | 'internal' | 'target' | 'eth' | 'eth_sepolia' | 'sol' | 'sol_devnet' | 'matic' | 'matic_amoy' | null;
|
|
151
|
+
/**
|
|
152
|
+
* Array of deposit return IDs associated with this deposit.
|
|
153
|
+
*/
|
|
154
|
+
returns: Array<string>;
|
|
155
|
+
/**
|
|
156
|
+
* Counterparty bank account or crypto wallet that sent the funds.
|
|
157
|
+
*/
|
|
158
|
+
source: DepositListResponse.UnionMember0 | DepositListResponse.UnionMember1 | DepositListResponse.UnionMember2;
|
|
159
|
+
/**
|
|
160
|
+
* Current status of the deposit.
|
|
161
|
+
*/
|
|
162
|
+
status: 'received' | 'rejected' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
|
|
163
|
+
/**
|
|
164
|
+
* Transaction hash for crypto deposits, or null when not known.
|
|
165
|
+
*/
|
|
166
|
+
tx_hash: string | null;
|
|
167
|
+
/**
|
|
168
|
+
* Resource type discriminator.
|
|
169
|
+
*/
|
|
170
|
+
type: 'deposit';
|
|
171
|
+
/**
|
|
172
|
+
* ISO 8601 UTC timestamp when the deposit was last updated.
|
|
173
|
+
*/
|
|
174
|
+
updated_at: string;
|
|
175
|
+
}
|
|
176
|
+
export declare namespace DepositListResponse {
|
|
177
|
+
interface UnionMember0 {
|
|
178
|
+
/**
|
|
179
|
+
* Name of the account holder.
|
|
180
|
+
*/
|
|
181
|
+
account_holder_name: string;
|
|
182
|
+
/**
|
|
183
|
+
* Bank Identifier Code, or null if not provided.
|
|
184
|
+
*/
|
|
185
|
+
bic: string | null;
|
|
186
|
+
/**
|
|
187
|
+
* International Bank Account Number.
|
|
188
|
+
*/
|
|
189
|
+
iban: string;
|
|
190
|
+
/**
|
|
191
|
+
* Discriminator for IBAN source.
|
|
192
|
+
*/
|
|
193
|
+
type: 'iban';
|
|
194
|
+
}
|
|
195
|
+
interface UnionMember1 {
|
|
196
|
+
/**
|
|
197
|
+
* Name of the account holder.
|
|
198
|
+
*/
|
|
199
|
+
account_holder_name: string;
|
|
200
|
+
/**
|
|
201
|
+
* UK account number (8 digits).
|
|
202
|
+
*/
|
|
203
|
+
account_number: string;
|
|
204
|
+
/**
|
|
205
|
+
* UK sort code (6 digits).
|
|
206
|
+
*/
|
|
207
|
+
sort_code: string;
|
|
208
|
+
/**
|
|
209
|
+
* Discriminator for UK sort code source.
|
|
210
|
+
*/
|
|
211
|
+
type: 'sort_code';
|
|
212
|
+
}
|
|
213
|
+
interface UnionMember2 {
|
|
214
|
+
/**
|
|
215
|
+
* Wallet address on the specified blockchain.
|
|
216
|
+
*/
|
|
217
|
+
address: string;
|
|
218
|
+
/**
|
|
219
|
+
* Blockchain network for the crypto wallet.
|
|
220
|
+
*/
|
|
221
|
+
blockchain: 'ethereum' | 'solana' | 'polygon';
|
|
222
|
+
/**
|
|
223
|
+
* Discriminator for crypto wallet source.
|
|
224
|
+
*/
|
|
225
|
+
type: 'crypto_wallet';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export interface DepositListParams extends CursorPageParams {
|
|
229
|
+
created_at?: DepositListParams.CreatedAt;
|
|
230
|
+
/**
|
|
231
|
+
* Filter by deposit status.
|
|
232
|
+
*/
|
|
233
|
+
status?: 'received' | 'rejected' | 'in_return' | 'returned' | 'return_failed' | 'return_returned';
|
|
234
|
+
}
|
|
235
|
+
export declare namespace DepositListParams {
|
|
236
|
+
interface CreatedAt {
|
|
237
|
+
/**
|
|
238
|
+
* Include deposits whose created_at is greater than or equal to this ISO 8601
|
|
239
|
+
* timestamp.
|
|
240
|
+
*/
|
|
241
|
+
gte?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Include deposits whose created_at is less than or equal to this ISO 8601
|
|
244
|
+
* timestamp.
|
|
245
|
+
*/
|
|
246
|
+
lte?: string;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
export declare namespace Deposits {
|
|
250
|
+
export { type DepositRetrieveResponse as DepositRetrieveResponse, type DepositListResponse as DepositListResponse, type DepositListResponsesCursorPage as DepositListResponsesCursorPage, type DepositListParams as DepositListParams, };
|
|
251
|
+
}
|
|
252
|
+
//# sourceMappingURL=deposits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.d.ts","sourceRoot":"","sources":["../src/resources/deposits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInF;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,8BAA8B,EAAE,mBAAmB,CAAC;CAGpE;AAED,MAAM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AAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Deposits = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class Deposits extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieves a deposit by ID.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id, options) {
|
|
13
|
+
return this._client.get((0, path_1.path) `/v1/deposits/${id}`, options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Lists deposits for the merchant with cursor-based pagination.
|
|
17
|
+
*/
|
|
18
|
+
list(query = {}, options) {
|
|
19
|
+
return this._client.getAPIList('/v1/deposits', (pagination_1.CursorPage), { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Deposits = Deposits;
|
|
23
|
+
//# sourceMappingURL=deposits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.js","sourceRoot":"","sources":["../src/resources/deposits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AAEpF,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,uBAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;CACF;AAjBD,4BAiBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../core/pagination.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class Deposits extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a deposit by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id, options) {
|
|
10
|
+
return this._client.get(path `/v1/deposits/${id}`, options);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Lists deposits for the merchant with cursor-based pagination.
|
|
14
|
+
*/
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
return this._client.getAPIList('/v1/deposits', (CursorPage), { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=deposits.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.mjs","sourceRoot":"","sources":["../src/resources/deposits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAsC;OAElD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,UAA+B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;CACF"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Events extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Retrieves a webhook event by ID.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<EventRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Lists webhook events for the merchant with cursor-based pagination. Events are
|
|
12
|
+
* retained for 30 days.
|
|
13
|
+
*/
|
|
14
|
+
list(query?: EventListParams | null | undefined, options?: RequestOptions): PagePromise<EventListResponsesCursorPage, EventListResponse>;
|
|
15
|
+
}
|
|
16
|
+
export type EventListResponsesCursorPage = CursorPage<EventListResponse>;
|
|
17
|
+
export interface EventRetrieveResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the event. Matches the envelope `id` delivered in the
|
|
20
|
+
* webhook payload and is stable across subscription fan-out and retries.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* API version the event payload was rendered at. Stable across retries and
|
|
25
|
+
* redeliveries, and mirrored in the webhook envelope `api_version` field.
|
|
26
|
+
*/
|
|
27
|
+
api_version: string;
|
|
28
|
+
/**
|
|
29
|
+
* ISO 8601 UTC timestamp when the event was created.
|
|
30
|
+
*/
|
|
31
|
+
created_at: string;
|
|
32
|
+
/**
|
|
33
|
+
* Event payload. Shape matches the resource schema for `event_type`.
|
|
34
|
+
*/
|
|
35
|
+
data: {
|
|
36
|
+
[key: string]: unknown;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Event type.
|
|
40
|
+
*/
|
|
41
|
+
event_type: 'payout.created' | 'payout.initiated' | 'payout.paid' | 'payout.failed' | 'return.initiated' | 'return.paid' | 'return.failed' | 'return.returned' | 'deposit.received' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'ping.test';
|
|
42
|
+
/**
|
|
43
|
+
* Resource type discriminator.
|
|
44
|
+
*/
|
|
45
|
+
type: 'event';
|
|
46
|
+
}
|
|
47
|
+
export interface EventListResponse {
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier of the event. Matches the envelope `id` delivered in the
|
|
50
|
+
* webhook payload and is stable across subscription fan-out and retries.
|
|
51
|
+
*/
|
|
52
|
+
id: string;
|
|
53
|
+
/**
|
|
54
|
+
* API version the event payload was rendered at. Stable across retries and
|
|
55
|
+
* redeliveries, and mirrored in the webhook envelope `api_version` field.
|
|
56
|
+
*/
|
|
57
|
+
api_version: string;
|
|
58
|
+
/**
|
|
59
|
+
* ISO 8601 UTC timestamp when the event was created.
|
|
60
|
+
*/
|
|
61
|
+
created_at: string;
|
|
62
|
+
/**
|
|
63
|
+
* Event payload. Shape matches the resource schema for `event_type`.
|
|
64
|
+
*/
|
|
65
|
+
data: {
|
|
66
|
+
[key: string]: unknown;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Event type.
|
|
70
|
+
*/
|
|
71
|
+
event_type: 'payout.created' | 'payout.initiated' | 'payout.paid' | 'payout.failed' | 'return.initiated' | 'return.paid' | 'return.failed' | 'return.returned' | 'deposit.received' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'ping.test';
|
|
72
|
+
/**
|
|
73
|
+
* Resource type discriminator.
|
|
74
|
+
*/
|
|
75
|
+
type: 'event';
|
|
76
|
+
}
|
|
77
|
+
export interface EventListParams extends CursorPageParams {
|
|
78
|
+
created_at?: EventListParams.CreatedAt;
|
|
79
|
+
/**
|
|
80
|
+
* Filter by event type.
|
|
81
|
+
*/
|
|
82
|
+
event_type?: 'payout.created' | 'payout.initiated' | 'payout.paid' | 'payout.failed' | 'return.initiated' | 'return.paid' | 'return.failed' | 'return.returned' | 'deposit.received' | 'conversion.created' | 'conversion.completed' | 'conversion.failed' | 'ping.test';
|
|
83
|
+
}
|
|
84
|
+
export declare namespace EventListParams {
|
|
85
|
+
interface CreatedAt {
|
|
86
|
+
/**
|
|
87
|
+
* Include events whose created_at is greater than or equal to this ISO 8601
|
|
88
|
+
* timestamp.
|
|
89
|
+
*/
|
|
90
|
+
gte?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Include events whose created_at is less than or equal to this ISO 8601
|
|
93
|
+
* timestamp.
|
|
94
|
+
*/
|
|
95
|
+
lte?: string;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export declare namespace Events {
|
|
99
|
+
export { type EventRetrieveResponse as EventRetrieveResponse, type EventListResponse as EventListResponse, type EventListResponsesCursorPage as EventListResponsesCursorPage, type EventListParams as EventListParams, };
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=events.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../src/resources/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACv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