@metronome/sdk 0.3.0 → 2.0.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 +113 -28
- package/README.md +123 -51
- 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/bin/cli +46 -0
- package/bin/migration-config.json +6 -0
- package/client.d.mts +232 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +232 -0
- package/client.d.ts.map +1 -0
- package/client.js +464 -0
- package/client.js.map +1 -0
- package/client.mjs +460 -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 +137 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +137 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +158 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +150 -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 +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +7 -144
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -143
- package/index.d.ts.map +1 -1
- package/index.js +14 -120
- package/index.js.map +1 -1
- package/index.mjs +6 -93
- package/index.mjs.map +1 -1
- 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 +26 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +26 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +120 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +112 -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 +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -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 +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.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 +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- 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 +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -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 +113 -64
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +1 -36
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -40
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -38
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts +5 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -15
- package/resources/index.js.map +1 -1
- package/resources/shared.d.mts +2363 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +1470 -465
- package/resources/shared.d.ts.map +1 -1
- package/resources/v1/alerts.d.mts +207 -0
- package/resources/v1/alerts.d.mts.map +1 -0
- package/resources/v1/alerts.d.ts +107 -32
- package/resources/v1/alerts.d.ts.map +1 -1
- package/resources/v1/alerts.js +74 -3
- package/resources/v1/alerts.js.map +1 -1
- package/resources/v1/alerts.mjs +74 -3
- package/resources/v1/alerts.mjs.map +1 -1
- package/resources/v1/audit-logs.d.mts +108 -0
- package/resources/v1/audit-logs.d.mts.map +1 -0
- package/resources/v1/audit-logs.d.ts +45 -12
- package/resources/v1/audit-logs.d.ts.map +1 -1
- package/resources/v1/audit-logs.js +53 -12
- package/resources/v1/audit-logs.js.map +1 -1
- package/resources/v1/audit-logs.mjs +52 -10
- package/resources/v1/audit-logs.mjs.map +1 -1
- package/resources/v1/billable-metrics.d.mts +293 -0
- package/resources/v1/billable-metrics.d.mts.map +1 -0
- package/resources/v1/billable-metrics.d.ts +70 -15
- package/resources/v1/billable-metrics.d.ts.map +1 -1
- package/resources/v1/billable-metrics.js +70 -16
- package/resources/v1/billable-metrics.js.map +1 -1
- package/resources/v1/billable-metrics.mjs +69 -14
- package/resources/v1/billable-metrics.mjs.map +1 -1
- package/resources/v1/contracts/contracts.d.mts +3006 -0
- package/resources/v1/contracts/contracts.d.mts.map +1 -0
- package/resources/v1/contracts/contracts.d.ts +428 -1299
- package/resources/v1/contracts/contracts.d.ts.map +1 -1
- package/resources/v1/contracts/contracts.js +269 -50
- package/resources/v1/contracts/contracts.js.map +1 -1
- package/resources/v1/contracts/contracts.mjs +267 -26
- package/resources/v1/contracts/contracts.mjs.map +1 -1
- package/resources/v1/contracts/index.d.mts +5 -0
- package/resources/v1/contracts/index.d.mts.map +1 -0
- package/resources/v1/contracts/index.d.ts +3 -3
- package/resources/v1/contracts/index.d.ts.map +1 -1
- package/resources/v1/contracts/index.js +1 -3
- package/resources/v1/contracts/index.js.map +1 -1
- package/resources/v1/contracts/index.mjs +2 -2
- package/resources/v1/contracts/index.mjs.map +1 -1
- package/resources/v1/contracts/named-schedules.d.mts +82 -0
- package/resources/v1/contracts/named-schedules.d.mts.map +1 -0
- package/resources/v1/contracts/named-schedules.d.ts +5 -4
- package/resources/v1/contracts/named-schedules.d.ts.map +1 -1
- package/resources/v1/contracts/named-schedules.js +3 -2
- package/resources/v1/contracts/named-schedules.js.map +1 -1
- package/resources/v1/contracts/named-schedules.mjs +3 -2
- package/resources/v1/contracts/named-schedules.mjs.map +1 -1
- package/resources/v1/contracts/products.d.mts +502 -0
- package/resources/v1/contracts/products.d.mts.map +1 -0
- package/resources/v1/contracts/products.d.ts +44 -17
- package/resources/v1/contracts/products.d.ts.map +1 -1
- package/resources/v1/contracts/products.js +41 -17
- package/resources/v1/contracts/products.js.map +1 -1
- package/resources/v1/contracts/products.mjs +40 -15
- package/resources/v1/contracts/products.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/index.d.mts +5 -0
- package/resources/v1/contracts/rate-cards/index.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/index.d.ts +2 -2
- package/resources/v1/contracts/rate-cards/index.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/index.js +1 -3
- package/resources/v1/contracts/rate-cards/index.js.map +1 -1
- package/resources/v1/contracts/rate-cards/index.mjs +2 -2
- package/resources/v1/contracts/rate-cards/index.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.d.mts +94 -0
- package/resources/v1/contracts/rate-cards/named-schedules.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts +5 -4
- package/resources/v1/contracts/rate-cards/named-schedules.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.js +3 -2
- package/resources/v1/contracts/rate-cards/named-schedules.js.map +1 -1
- package/resources/v1/contracts/rate-cards/named-schedules.mjs +3 -2
- package/resources/v1/contracts/rate-cards/named-schedules.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.d.mts +85 -0
- package/resources/v1/contracts/rate-cards/product-orders.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/product-orders.d.ts +12 -6
- package/resources/v1/contracts/rate-cards/product-orders.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.js +8 -3
- package/resources/v1/contracts/rate-cards/product-orders.js.map +1 -1
- package/resources/v1/contracts/rate-cards/product-orders.mjs +8 -3
- package/resources/v1/contracts/rate-cards/product-orders.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.d.mts +452 -0
- package/resources/v1/contracts/rate-cards/rate-cards.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts +134 -41
- package/resources/v1/contracts/rate-cards/rate-cards.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.js +127 -47
- package/resources/v1/contracts/rate-cards/rate-cards.js.map +1 -1
- package/resources/v1/contracts/rate-cards/rate-cards.mjs +123 -20
- package/resources/v1/contracts/rate-cards/rate-cards.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.d.mts +382 -0
- package/resources/v1/contracts/rate-cards/rates.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards/rates.d.ts +25 -82
- package/resources/v1/contracts/rate-cards/rates.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.js +13 -9
- package/resources/v1/contracts/rate-cards/rates.js.map +1 -1
- package/resources/v1/contracts/rate-cards/rates.mjs +12 -7
- package/resources/v1/contracts/rate-cards/rates.mjs.map +1 -1
- package/resources/v1/contracts/rate-cards.d.mts +2 -0
- package/resources/v1/contracts/rate-cards.d.mts.map +1 -0
- package/resources/v1/contracts/rate-cards.d.ts.map +1 -1
- package/resources/v1/contracts/rate-cards.js +2 -15
- package/resources/v1/contracts/rate-cards.js.map +1 -1
- package/resources/v1/contracts.d.mts +2 -0
- package/resources/v1/contracts.d.mts.map +1 -0
- package/resources/v1/contracts.d.ts.map +1 -1
- package/resources/v1/contracts.js +2 -15
- package/resources/v1/contracts.js.map +1 -1
- package/resources/v1/credit-grants.d.mts +505 -0
- package/resources/v1/credit-grants.d.mts.map +1 -0
- package/resources/v1/credit-grants.d.ts +73 -74
- package/resources/v1/credit-grants.d.ts.map +1 -1
- package/resources/v1/credit-grants.js +52 -18
- package/resources/v1/credit-grants.js.map +1 -1
- package/resources/v1/credit-grants.mjs +51 -16
- package/resources/v1/credit-grants.mjs.map +1 -1
- package/resources/v1/custom-fields.d.mts +151 -0
- package/resources/v1/custom-fields.d.mts.map +1 -0
- package/resources/v1/custom-fields.d.ts +69 -38
- package/resources/v1/custom-fields.d.ts.map +1 -1
- package/resources/v1/custom-fields.js +66 -22
- package/resources/v1/custom-fields.js.map +1 -1
- package/resources/v1/custom-fields.mjs +66 -22
- package/resources/v1/custom-fields.mjs.map +1 -1
- package/resources/v1/customers/alerts.d.mts +309 -0
- package/resources/v1/customers/alerts.d.mts.map +1 -0
- package/resources/v1/customers/alerts.d.ts +176 -50
- package/resources/v1/customers/alerts.d.ts.map +1 -1
- package/resources/v1/customers/alerts.js +131 -10
- package/resources/v1/customers/alerts.js.map +1 -1
- package/resources/v1/customers/alerts.mjs +131 -10
- package/resources/v1/customers/alerts.mjs.map +1 -1
- package/resources/v1/customers/billing-config.d.mts +125 -0
- package/resources/v1/customers/billing-config.d.mts.map +1 -0
- package/resources/v1/customers/billing-config.d.ts +8 -7
- package/resources/v1/customers/billing-config.d.ts.map +1 -1
- package/resources/v1/customers/billing-config.js +8 -6
- package/resources/v1/customers/billing-config.js.map +1 -1
- package/resources/v1/customers/billing-config.mjs +8 -6
- package/resources/v1/customers/billing-config.mjs.map +1 -1
- package/resources/v1/customers/commits.d.mts +456 -0
- package/resources/v1/customers/commits.d.mts.map +1 -0
- package/resources/v1/customers/commits.d.ts +139 -47
- package/resources/v1/customers/commits.d.ts.map +1 -1
- package/resources/v1/customers/commits.js +131 -12
- package/resources/v1/customers/commits.js.map +1 -1
- package/resources/v1/customers/commits.mjs +131 -12
- package/resources/v1/customers/commits.mjs.map +1 -1
- package/resources/v1/customers/credits.d.mts +310 -0
- package/resources/v1/customers/credits.d.mts.map +1 -0
- package/resources/v1/customers/credits.d.ts +124 -46
- package/resources/v1/customers/credits.d.ts.map +1 -1
- package/resources/v1/customers/credits.js +116 -11
- package/resources/v1/customers/credits.js.map +1 -1
- package/resources/v1/customers/credits.mjs +116 -11
- package/resources/v1/customers/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +819 -0
- package/resources/v1/customers/customers.d.mts.map +1 -0
- package/resources/v1/customers/customers.d.ts +319 -55
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +220 -76
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +213 -44
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +9 -0
- package/resources/v1/customers/index.d.mts.map +1 -0
- package/resources/v1/customers/index.d.ts +6 -6
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +1 -8
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +3 -3
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/invoices.d.mts +825 -0
- package/resources/v1/customers/invoices.d.mts.map +1 -0
- package/resources/v1/customers/invoices.d.ts +309 -25
- package/resources/v1/customers/invoices.d.ts.map +1 -1
- package/resources/v1/customers/invoices.js +180 -22
- package/resources/v1/customers/invoices.js.map +1 -1
- package/resources/v1/customers/invoices.mjs +179 -19
- package/resources/v1/customers/invoices.mjs.map +1 -1
- package/resources/v1/customers/named-schedules.d.mts +82 -0
- package/resources/v1/customers/named-schedules.d.mts.map +1 -0
- package/resources/v1/customers/named-schedules.d.ts +5 -4
- package/resources/v1/customers/named-schedules.d.ts.map +1 -1
- package/resources/v1/customers/named-schedules.js +3 -2
- package/resources/v1/customers/named-schedules.js.map +1 -1
- package/resources/v1/customers/named-schedules.mjs +3 -2
- package/resources/v1/customers/named-schedules.mjs.map +1 -1
- package/resources/v1/customers/plans.d.mts +281 -0
- package/resources/v1/customers/plans.d.mts.map +1 -0
- package/resources/v1/customers/plans.d.ts +14 -12
- package/resources/v1/customers/plans.d.ts.map +1 -1
- package/resources/v1/customers/plans.js +8 -15
- package/resources/v1/customers/plans.js.map +1 -1
- package/resources/v1/customers/plans.mjs +7 -12
- package/resources/v1/customers/plans.mjs.map +1 -1
- package/resources/v1/customers.d.mts +2 -0
- package/resources/v1/customers.d.mts.map +1 -0
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.js +2 -15
- package/resources/v1/customers.js.map +1 -1
- package/resources/v1/dashboards.d.mts +133 -0
- package/resources/v1/dashboards.d.mts.map +1 -0
- package/resources/v1/dashboards.d.ts +33 -6
- package/resources/v1/dashboards.d.ts.map +1 -1
- package/resources/v1/dashboards.js +30 -4
- package/resources/v1/dashboards.js.map +1 -1
- package/resources/v1/dashboards.mjs +30 -4
- package/resources/v1/dashboards.mjs.map +1 -1
- package/resources/v1/index.d.mts +16 -0
- package/resources/v1/index.d.mts.map +1 -0
- package/resources/v1/index.d.ts +10 -9
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -12
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +8 -7
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/invoices.d.mts +83 -0
- package/resources/v1/invoices.d.mts.map +1 -0
- package/resources/v1/invoices.d.ts +28 -6
- package/resources/v1/invoices.d.ts.map +1 -1
- package/resources/v1/invoices.js +24 -3
- package/resources/v1/invoices.js.map +1 -1
- package/resources/v1/invoices.mjs +24 -3
- package/resources/v1/invoices.mjs.map +1 -1
- package/resources/v1/payments.d.mts +116 -0
- package/resources/v1/payments.d.mts.map +1 -0
- package/resources/v1/payments.d.ts +116 -0
- package/resources/v1/payments.d.ts.map +1 -0
- package/resources/v1/payments.js +71 -0
- package/resources/v1/payments.js.map +1 -0
- package/resources/v1/payments.mjs +67 -0
- package/resources/v1/payments.mjs.map +1 -0
- package/resources/v1/plans.d.mts +240 -0
- package/resources/v1/plans.d.mts.map +1 -0
- package/resources/v1/plans.d.ts +24 -15
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.js +19 -26
- package/resources/v1/plans.js.map +1 -1
- package/resources/v1/plans.mjs +18 -22
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/pricing-units.d.mts +34 -0
- package/resources/v1/pricing-units.d.mts.map +1 -0
- package/resources/v1/pricing-units.d.ts +12 -9
- package/resources/v1/pricing-units.d.ts.map +1 -1
- package/resources/v1/pricing-units.js +20 -12
- package/resources/v1/pricing-units.js.map +1 -1
- package/resources/v1/pricing-units.mjs +19 -10
- package/resources/v1/pricing-units.mjs.map +1 -1
- package/resources/v1/services.d.mts +33 -0
- package/resources/v1/services.d.mts.map +1 -0
- package/resources/v1/services.d.ts +10 -7
- package/resources/v1/services.d.ts.map +1 -1
- package/resources/v1/services.js +7 -5
- package/resources/v1/services.js.map +1 -1
- package/resources/v1/services.mjs +7 -5
- package/resources/v1/services.mjs.map +1 -1
- package/resources/v1/usage.d.mts +490 -0
- package/resources/v1/usage.d.mts.map +1 -0
- package/resources/v1/usage.d.ts +223 -58
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +214 -26
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +213 -24
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +62 -0
- package/resources/v1/v1.d.mts.map +1 -0
- package/resources/v1/v1.d.ts +19 -15
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +19 -48
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +12 -19
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1.d.mts +2 -0
- package/resources/v1.d.mts.map +1 -0
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.js +2 -15
- package/resources/v1.js.map +1 -1
- package/resources/v2/contracts.d.mts +2900 -0
- package/resources/v2/contracts.d.mts.map +1 -0
- package/resources/v2/contracts.d.ts +399 -3830
- package/resources/v2/contracts.d.ts.map +1 -1
- package/resources/v2/contracts.js +102 -12
- package/resources/v2/contracts.js.map +1 -1
- package/resources/v2/contracts.mjs +102 -12
- package/resources/v2/contracts.mjs.map +1 -1
- package/resources/v2/index.d.mts +3 -0
- package/resources/v2/index.d.mts.map +1 -0
- package/resources/v2/index.d.ts.map +1 -1
- package/resources/v2/v2.d.mts +10 -0
- package/resources/v2/v2.d.mts.map +1 -0
- package/resources/v2/v2.d.ts +1 -1
- package/resources/v2/v2.d.ts.map +1 -1
- package/resources/v2/v2.js +3 -25
- package/resources/v2/v2.js.map +1 -1
- package/resources/v2/v2.mjs +1 -1
- package/resources/v2.d.mts +2 -0
- package/resources/v2.d.mts.map +1 -0
- package/resources/v2.d.ts.map +1 -1
- package/resources/v2.js +2 -15
- package/resources/v2.js.map +1 -1
- package/resources/webhooks.d.mts +22 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +1 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +3 -3
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +809 -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 +319 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +6 -221
- 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 +144 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/formats.ts +3 -2
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +18 -21
- package/src/internal/qs/utils.ts +16 -16
- 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 +126 -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/pagination.ts +2 -82
- package/src/resource.ts +2 -11
- package/src/resources/index.ts +4 -4
- package/src/resources/shared.ts +1921 -506
- package/src/resources/v1/alerts.ts +108 -33
- package/src/resources/v1/audit-logs.ts +48 -26
- package/src/resources/v1/billable-metrics.ts +79 -34
- package/src/resources/v1/contracts/contracts.ts +490 -1632
- package/src/resources/v1/contracts/index.ts +7 -6
- package/src/resources/v1/contracts/named-schedules.ts +8 -6
- package/src/resources/v1/contracts/products.ts +50 -38
- package/src/resources/v1/contracts/rate-cards/index.ts +6 -6
- package/src/resources/v1/contracts/rate-cards/named-schedules.ts +8 -6
- package/src/resources/v1/contracts/rate-cards/product-orders.ts +13 -10
- package/src/resources/v1/contracts/rate-cards/rate-cards.ts +145 -72
- package/src/resources/v1/contracts/rate-cards/rates.ts +28 -98
- package/src/resources/v1/contracts/rate-cards.ts +1 -1
- package/src/resources/v1/contracts.ts +1 -1
- package/src/resources/v1/credit-grants.ts +100 -112
- package/src/resources/v1/custom-fields.ts +106 -74
- package/src/resources/v1/customers/alerts.ts +195 -55
- package/src/resources/v1/customers/billing-config.ts +27 -13
- package/src/resources/v1/customers/commits.ts +146 -54
- package/src/resources/v1/customers/credits.ts +131 -53
- package/src/resources/v1/customers/customers.ts +407 -115
- package/src/resources/v1/customers/index.ts +20 -18
- package/src/resources/v1/customers/invoices.ts +343 -42
- package/src/resources/v1/customers/named-schedules.ts +8 -6
- package/src/resources/v1/customers/plans.ts +24 -22
- package/src/resources/v1/customers.ts +1 -1
- package/src/resources/v1/dashboards.ts +34 -7
- package/src/resources/v1/index.ts +43 -25
- package/src/resources/v1/invoices.ts +28 -9
- package/src/resources/v1/payments.ts +170 -0
- package/src/resources/v1/plans.ts +42 -43
- package/src/resources/v1/pricing-units.ts +15 -23
- package/src/resources/v1/services.ts +10 -7
- package/src/resources/v1/usage.ts +247 -73
- package/src/resources/v1/v1.ts +78 -49
- package/src/resources/v1.ts +1 -1
- package/src/resources/v2/contracts.ts +469 -4930
- package/src/resources/v2/index.ts +2 -2
- package/src/resources/v2/v2.ts +3 -3
- package/src/resources/v2.ts +1 -1
- package/src/resources/webhooks.ts +2 -2
- package/src/resources.ts +1 -1
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1236
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { CursorPage, type CursorPageParams } from
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as Shared from '../../shared';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
7
9
|
|
|
8
10
|
export class Plans extends APIResource {
|
|
9
11
|
/**
|
|
@@ -21,10 +23,10 @@ export class Plans extends APIResource {
|
|
|
21
23
|
*/
|
|
22
24
|
list(
|
|
23
25
|
params: PlanListParams,
|
|
24
|
-
options?:
|
|
25
|
-
):
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): PagePromise<PlanListResponsesCursorPage, PlanListResponse> {
|
|
26
28
|
const { customer_id, ...query } = params;
|
|
27
|
-
return this._client.getAPIList(`/v1/customers/${customer_id}/plans`,
|
|
29
|
+
return this._client.getAPIList(path`/v1/customers/${customer_id}/plans`, CursorPage<PlanListResponse>, {
|
|
28
30
|
query,
|
|
29
31
|
...options,
|
|
30
32
|
});
|
|
@@ -45,9 +47,9 @@ export class Plans extends APIResource {
|
|
|
45
47
|
* });
|
|
46
48
|
* ```
|
|
47
49
|
*/
|
|
48
|
-
add(params: PlanAddParams, options?:
|
|
50
|
+
add(params: PlanAddParams, options?: RequestOptions): APIPromise<PlanAddResponse> {
|
|
49
51
|
const { customer_id, ...body } = params;
|
|
50
|
-
return this._client.post(`/v1/customers/${customer_id}/plans/add`, { body, ...options });
|
|
52
|
+
return this._client.post(path`/v1/customers/${customer_id}/plans/add`, { body, ...options });
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
/**
|
|
@@ -62,9 +64,9 @@ export class Plans extends APIResource {
|
|
|
62
64
|
* });
|
|
63
65
|
* ```
|
|
64
66
|
*/
|
|
65
|
-
end(params: PlanEndParams, options?:
|
|
67
|
+
end(params: PlanEndParams, options?: RequestOptions): APIPromise<PlanEndResponse> {
|
|
66
68
|
const { customer_id, customer_plan_id, ...body } = params;
|
|
67
|
-
return this._client.post(`/v1/customers/${customer_id}/plans/${customer_plan_id}/end`, {
|
|
69
|
+
return this._client.post(path`/v1/customers/${customer_id}/plans/${customer_plan_id}/end`, {
|
|
68
70
|
body,
|
|
69
71
|
...options,
|
|
70
72
|
});
|
|
@@ -91,20 +93,20 @@ export class Plans extends APIResource {
|
|
|
91
93
|
*/
|
|
92
94
|
listPriceAdjustments(
|
|
93
95
|
params: PlanListPriceAdjustmentsParams,
|
|
94
|
-
options?:
|
|
95
|
-
):
|
|
96
|
+
options?: RequestOptions,
|
|
97
|
+
): PagePromise<PlanListPriceAdjustmentsResponsesCursorPage, PlanListPriceAdjustmentsResponse> {
|
|
96
98
|
const { customer_id, customer_plan_id, ...query } = params;
|
|
97
99
|
return this._client.getAPIList(
|
|
98
|
-
`/v1/customers/${customer_id}/plans/${customer_plan_id}/priceAdjustments`,
|
|
99
|
-
|
|
100
|
+
path`/v1/customers/${customer_id}/plans/${customer_plan_id}/priceAdjustments`,
|
|
101
|
+
CursorPage<PlanListPriceAdjustmentsResponse>,
|
|
100
102
|
{ query, ...options },
|
|
101
103
|
);
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
|
|
105
|
-
export
|
|
107
|
+
export type PlanListResponsesCursorPage = CursorPage<PlanListResponse>;
|
|
106
108
|
|
|
107
|
-
export
|
|
109
|
+
export type PlanListPriceAdjustmentsResponsesCursorPage = CursorPage<PlanListPriceAdjustmentsResponse>;
|
|
108
110
|
|
|
109
111
|
export interface PlanListResponse {
|
|
110
112
|
/**
|
|
@@ -112,6 +114,9 @@ export interface PlanListResponse {
|
|
|
112
114
|
*/
|
|
113
115
|
id: string;
|
|
114
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
|
|
119
|
+
*/
|
|
115
120
|
custom_fields: { [key: string]: string };
|
|
116
121
|
|
|
117
122
|
plan_description: string;
|
|
@@ -358,17 +363,14 @@ export interface PlanListPriceAdjustmentsParams extends CursorPageParams {
|
|
|
358
363
|
customer_plan_id: string;
|
|
359
364
|
}
|
|
360
365
|
|
|
361
|
-
Plans.PlanListResponsesCursorPage = PlanListResponsesCursorPage;
|
|
362
|
-
Plans.PlanListPriceAdjustmentsResponsesCursorPage = PlanListPriceAdjustmentsResponsesCursorPage;
|
|
363
|
-
|
|
364
366
|
export declare namespace Plans {
|
|
365
367
|
export {
|
|
366
368
|
type PlanListResponse as PlanListResponse,
|
|
367
369
|
type PlanAddResponse as PlanAddResponse,
|
|
368
370
|
type PlanEndResponse as PlanEndResponse,
|
|
369
371
|
type PlanListPriceAdjustmentsResponse as PlanListPriceAdjustmentsResponse,
|
|
370
|
-
PlanListResponsesCursorPage as PlanListResponsesCursorPage,
|
|
371
|
-
PlanListPriceAdjustmentsResponsesCursorPage as PlanListPriceAdjustmentsResponsesCursorPage,
|
|
372
|
+
type PlanListResponsesCursorPage as PlanListResponsesCursorPage,
|
|
373
|
+
type PlanListPriceAdjustmentsResponsesCursorPage as PlanListPriceAdjustmentsResponsesCursorPage,
|
|
372
374
|
type PlanListParams as PlanListParams,
|
|
373
375
|
type PlanAddParams as PlanAddParams,
|
|
374
376
|
type PlanEndParams as PlanEndParams,
|
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
5
6
|
|
|
6
7
|
export class Dashboards extends APIResource {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Generate secure, embeddable dashboard URLs that allow you to seamlessly
|
|
10
|
+
* integrate Metronome's billing visualizations directly into your application.
|
|
11
|
+
* This endpoint creates authenticated iframe-ready URLs for customer-specific
|
|
12
|
+
* dashboards, providing a white-labeled billing experience without building custom
|
|
13
|
+
* UI.
|
|
14
|
+
*
|
|
15
|
+
* ### Use this endpoint to:
|
|
16
|
+
*
|
|
17
|
+
* - Embed billing dashboards directly in your customer portal or admin interface
|
|
18
|
+
* - Provide self-service access to invoices, usage data, and credit balances
|
|
19
|
+
* - Build white-labeled billing experiences with minimal development effort
|
|
20
|
+
*
|
|
21
|
+
* ### Key response fields:
|
|
22
|
+
*
|
|
23
|
+
* - A secure, time-limited URL that can be embedded in an iframe
|
|
24
|
+
* - The URL includes authentication tokens and configuration parameters
|
|
25
|
+
* - URLs are customer-specific and respect your security settings
|
|
26
|
+
*
|
|
27
|
+
* ### Usage guidelines:
|
|
28
|
+
*
|
|
29
|
+
* - Dashboard types: Choose from `invoices`, `usage`, or `commits_and_credits`
|
|
30
|
+
* - Customization options:
|
|
31
|
+
* - `dashboard_options`: Configure whether you want invoices to show zero usage
|
|
32
|
+
* line items
|
|
33
|
+
* - `color_overrides`: Match your brand's color palette
|
|
34
|
+
* - `bm_group_key_overrides`: Customize how dimensions are displayed (for the
|
|
35
|
+
* usage embeddable dashboard)
|
|
36
|
+
* - Iframe implementation: Embed the returned URL directly in an iframe element
|
|
37
|
+
* - Responsive design: Dashboards automatically adapt to container dimensions
|
|
11
38
|
*
|
|
12
39
|
* @example
|
|
13
40
|
* ```ts
|
|
@@ -37,8 +64,8 @@ export class Dashboards extends APIResource {
|
|
|
37
64
|
*/
|
|
38
65
|
getEmbeddableURL(
|
|
39
66
|
body: DashboardGetEmbeddableURLParams,
|
|
40
|
-
options?:
|
|
41
|
-
):
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): APIPromise<DashboardGetEmbeddableURLResponse> {
|
|
42
69
|
return this._client.post('/v1/dashboards/getEmbeddableUrl', { body, ...options });
|
|
43
70
|
}
|
|
44
71
|
}
|
|
@@ -6,15 +6,14 @@ export {
|
|
|
6
6
|
type AlertArchiveResponse,
|
|
7
7
|
type AlertCreateParams,
|
|
8
8
|
type AlertArchiveParams,
|
|
9
|
-
} from
|
|
9
|
+
} from './alerts';
|
|
10
10
|
export {
|
|
11
|
-
AuditLogListResponsesCursorPage,
|
|
12
11
|
AuditLogs,
|
|
13
12
|
type AuditLogListResponse,
|
|
14
13
|
type AuditLogListParams,
|
|
15
|
-
|
|
14
|
+
type AuditLogListResponsesCursorPage,
|
|
15
|
+
} from './audit-logs';
|
|
16
16
|
export {
|
|
17
|
-
BillableMetricListResponsesCursorPage,
|
|
18
17
|
BillableMetrics,
|
|
19
18
|
type BillableMetricCreateResponse,
|
|
20
19
|
type BillableMetricRetrieveResponse,
|
|
@@ -24,7 +23,8 @@ export {
|
|
|
24
23
|
type BillableMetricRetrieveParams,
|
|
25
24
|
type BillableMetricListParams,
|
|
26
25
|
type BillableMetricArchiveParams,
|
|
27
|
-
|
|
26
|
+
type BillableMetricListResponsesCursorPage,
|
|
27
|
+
} from './billable-metrics';
|
|
28
28
|
export {
|
|
29
29
|
Contracts,
|
|
30
30
|
type ContractCreateResponse,
|
|
@@ -51,9 +51,9 @@ export {
|
|
|
51
51
|
type ContractScheduleProServicesInvoiceParams,
|
|
52
52
|
type ContractSetUsageFilterParams,
|
|
53
53
|
type ContractUpdateEndDateParams,
|
|
54
|
-
|
|
54
|
+
type ContractListBalancesResponsesBodyCursorPage,
|
|
55
|
+
} from './contracts/index';
|
|
55
56
|
export {
|
|
56
|
-
CreditGrantListResponsesCursorPage,
|
|
57
57
|
CreditGrants,
|
|
58
58
|
type CreditLedgerEntry,
|
|
59
59
|
type RolloverAmountMaxAmount,
|
|
@@ -68,7 +68,9 @@ export {
|
|
|
68
68
|
type CreditGrantEditParams,
|
|
69
69
|
type CreditGrantListEntriesParams,
|
|
70
70
|
type CreditGrantVoidParams,
|
|
71
|
-
|
|
71
|
+
type CreditGrantListResponsesCursorPage,
|
|
72
|
+
type CreditGrantListEntriesResponsesCursorPageWithoutLimit,
|
|
73
|
+
} from './credit-grants';
|
|
72
74
|
export {
|
|
73
75
|
CustomFields,
|
|
74
76
|
type CustomFieldListKeysResponse,
|
|
@@ -77,11 +79,9 @@ export {
|
|
|
77
79
|
type CustomFieldListKeysParams,
|
|
78
80
|
type CustomFieldRemoveKeyParams,
|
|
79
81
|
type CustomFieldSetValuesParams,
|
|
80
|
-
|
|
82
|
+
type CustomFieldListKeysResponsesCursorPageWithoutLimit,
|
|
83
|
+
} from './custom-fields';
|
|
81
84
|
export {
|
|
82
|
-
CustomerDetailsCursorPage,
|
|
83
|
-
CustomerListBillableMetricsResponsesCursorPage,
|
|
84
|
-
CustomerListCostsResponsesCursorPage,
|
|
85
85
|
Customers,
|
|
86
86
|
type Customer,
|
|
87
87
|
type CustomerDetail,
|
|
@@ -91,6 +91,7 @@ export {
|
|
|
91
91
|
type CustomerListBillableMetricsResponse,
|
|
92
92
|
type CustomerListCostsResponse,
|
|
93
93
|
type CustomerPreviewEventsResponse,
|
|
94
|
+
type CustomerRetrieveBillingConfigurationsResponse,
|
|
94
95
|
type CustomerSetNameResponse,
|
|
95
96
|
type CustomerCreateParams,
|
|
96
97
|
type CustomerRetrieveParams,
|
|
@@ -99,26 +100,39 @@ export {
|
|
|
99
100
|
type CustomerListBillableMetricsParams,
|
|
100
101
|
type CustomerListCostsParams,
|
|
101
102
|
type CustomerPreviewEventsParams,
|
|
103
|
+
type CustomerRetrieveBillingConfigurationsParams,
|
|
104
|
+
type CustomerSetBillingConfigurationsParams,
|
|
102
105
|
type CustomerSetIngestAliasesParams,
|
|
103
106
|
type CustomerSetNameParams,
|
|
104
107
|
type CustomerUpdateConfigParams,
|
|
105
|
-
|
|
108
|
+
type CustomerDetailsCursorPage,
|
|
109
|
+
type CustomerListBillableMetricsResponsesCursorPage,
|
|
110
|
+
type CustomerListCostsResponsesCursorPage,
|
|
111
|
+
} from './customers/index';
|
|
106
112
|
export {
|
|
107
113
|
Dashboards,
|
|
108
114
|
type DashboardGetEmbeddableURLResponse,
|
|
109
115
|
type DashboardGetEmbeddableURLParams,
|
|
110
|
-
} from
|
|
116
|
+
} from './dashboards';
|
|
111
117
|
export {
|
|
112
118
|
Invoices,
|
|
113
119
|
type InvoiceRegenerateResponse,
|
|
114
120
|
type InvoiceVoidResponse,
|
|
115
121
|
type InvoiceRegenerateParams,
|
|
116
122
|
type InvoiceVoidParams,
|
|
117
|
-
} from
|
|
123
|
+
} from './invoices';
|
|
124
|
+
export {
|
|
125
|
+
Payments,
|
|
126
|
+
type Payment,
|
|
127
|
+
type PaymentStatus,
|
|
128
|
+
type PaymentAttemptResponse,
|
|
129
|
+
type PaymentCancelResponse,
|
|
130
|
+
type PaymentListParams,
|
|
131
|
+
type PaymentAttemptParams,
|
|
132
|
+
type PaymentCancelParams,
|
|
133
|
+
type PaymentsBodyCursorPage,
|
|
134
|
+
} from './payments';
|
|
118
135
|
export {
|
|
119
|
-
PlanListResponsesCursorPage,
|
|
120
|
-
PlanListChargesResponsesCursorPage,
|
|
121
|
-
PlanListCustomersResponsesCursorPage,
|
|
122
136
|
Plans,
|
|
123
137
|
type PlanDetail,
|
|
124
138
|
type PlanListResponse,
|
|
@@ -129,16 +143,18 @@ export {
|
|
|
129
143
|
type PlanGetDetailsParams,
|
|
130
144
|
type PlanListChargesParams,
|
|
131
145
|
type PlanListCustomersParams,
|
|
132
|
-
|
|
146
|
+
type PlanListResponsesCursorPage,
|
|
147
|
+
type PlanListChargesResponsesCursorPage,
|
|
148
|
+
type PlanListCustomersResponsesCursorPage,
|
|
149
|
+
} from './plans';
|
|
133
150
|
export {
|
|
134
|
-
PricingUnitListResponsesCursorPage,
|
|
135
151
|
PricingUnits,
|
|
136
152
|
type PricingUnitListResponse,
|
|
137
153
|
type PricingUnitListParams,
|
|
138
|
-
|
|
139
|
-
|
|
154
|
+
type PricingUnitListResponsesCursorPage,
|
|
155
|
+
} from './pricing-units';
|
|
156
|
+
export { Services, type ServiceListResponse } from './services';
|
|
140
157
|
export {
|
|
141
|
-
UsageListWithGroupsResponsesCursorPage,
|
|
142
158
|
Usage,
|
|
143
159
|
type UsageListResponse,
|
|
144
160
|
type UsageListWithGroupsResponse,
|
|
@@ -147,5 +163,7 @@ export {
|
|
|
147
163
|
type UsageIngestParams,
|
|
148
164
|
type UsageListWithGroupsParams,
|
|
149
165
|
type UsageSearchParams,
|
|
150
|
-
|
|
151
|
-
|
|
166
|
+
type UsageListResponsesCursorPageWithoutLimit,
|
|
167
|
+
type UsageListWithGroupsResponsesCursorPage,
|
|
168
|
+
} from './usage';
|
|
169
|
+
export { V1 } from './v1';
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
5
6
|
|
|
6
7
|
export class Invoices extends APIResource {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* This endpoint regenerates a voided invoice and recalculates the invoice based on
|
|
10
|
+
* up-to-date rates, available balances, and other fees regardless of the billing
|
|
11
|
+
* period.
|
|
12
|
+
*
|
|
13
|
+
* ### Use this endpoint to:
|
|
14
|
+
*
|
|
15
|
+
* Recalculate an invoice with updated rate terms, available balance, and fees to
|
|
16
|
+
* correct billing disputes or discrepancies
|
|
17
|
+
*
|
|
18
|
+
* ### Key response fields:
|
|
19
|
+
*
|
|
20
|
+
* The regenerated invoice id, which is distinct from the previously voided
|
|
21
|
+
* invoice.
|
|
22
|
+
*
|
|
23
|
+
* ### Usage guidelines:
|
|
24
|
+
*
|
|
25
|
+
* If an invoice is attached to a contract with a billing provider on it, the
|
|
26
|
+
* regenerated invoice will be distributed based on the configuration.
|
|
9
27
|
*
|
|
10
28
|
* @example
|
|
11
29
|
* ```ts
|
|
@@ -14,15 +32,16 @@ export class Invoices extends APIResource {
|
|
|
14
32
|
* });
|
|
15
33
|
* ```
|
|
16
34
|
*/
|
|
17
|
-
regenerate(
|
|
18
|
-
body: InvoiceRegenerateParams,
|
|
19
|
-
options?: Core.RequestOptions,
|
|
20
|
-
): Core.APIPromise<InvoiceRegenerateResponse> {
|
|
35
|
+
regenerate(body: InvoiceRegenerateParams, options?: RequestOptions): APIPromise<InvoiceRegenerateResponse> {
|
|
21
36
|
return this._client.post('/v1/invoices/regenerate', { body, ...options });
|
|
22
37
|
}
|
|
23
38
|
|
|
24
39
|
/**
|
|
25
|
-
*
|
|
40
|
+
* Permanently cancels an invoice by setting its status to voided, preventing
|
|
41
|
+
* collection and removing it from customer billing. Use this to correct billing
|
|
42
|
+
* errors, cancel incorrect charges, or handle disputed invoices that should not be
|
|
43
|
+
* collected. Returns the voided invoice ID with the status change applied
|
|
44
|
+
* immediately to stop any payment processing.
|
|
26
45
|
*
|
|
27
46
|
* @example
|
|
28
47
|
* ```ts
|
|
@@ -31,7 +50,7 @@ export class Invoices extends APIResource {
|
|
|
31
50
|
* });
|
|
32
51
|
* ```
|
|
33
52
|
*/
|
|
34
|
-
void(body: InvoiceVoidParams, options?:
|
|
53
|
+
void(body: InvoiceVoidParams, options?: RequestOptions): APIPromise<InvoiceVoidResponse> {
|
|
35
54
|
return this._client.post('/v1/invoices/void', { body, ...options });
|
|
36
55
|
}
|
|
37
56
|
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { BodyCursorPage, type BodyCursorPageParams, PagePromise } from '../../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
|
|
9
|
+
export class Payments extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Fetch all payment attempts for the given invoice.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const payment of client.v1.payments.list({
|
|
17
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
18
|
+
* invoice_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
19
|
+
* statuses: ['pending', 'requires_intervention'],
|
|
20
|
+
* })) {
|
|
21
|
+
* // ...
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
list(body: PaymentListParams, options?: RequestOptions): PagePromise<PaymentsBodyCursorPage, Payment> {
|
|
26
|
+
return this._client.getAPIList('/v1/payments/list', BodyCursorPage<Payment>, {
|
|
27
|
+
body,
|
|
28
|
+
method: 'post',
|
|
29
|
+
...options,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Trigger a new attempt by canceling any existing attempts for this invoice and
|
|
35
|
+
* creating a new Payment. This will trigger another attempt to charge the
|
|
36
|
+
* Customer's configured Payment Gateway. Payment can only be attempted if all of
|
|
37
|
+
* the following are true:
|
|
38
|
+
*
|
|
39
|
+
* - The Metronome Invoice is finalized
|
|
40
|
+
* - PLG Invoicing is configured for the Customer
|
|
41
|
+
* - You cannot attempt payments for invoices that have already been `paid` or
|
|
42
|
+
* `voided`.
|
|
43
|
+
*
|
|
44
|
+
* Attempting to payment on an ineligible Invoice or Customer will result in a
|
|
45
|
+
* `400` response.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response = await client.v1.payments.attempt({
|
|
50
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
51
|
+
* invoice_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
attempt(body: PaymentAttemptParams, options?: RequestOptions): APIPromise<PaymentAttemptResponse> {
|
|
56
|
+
return this._client.post('/v1/payments/attempt', { body, ...options });
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Cancel an existing payment attempt for an invoice.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const response = await client.v1.payments.cancel({
|
|
65
|
+
* customer_id: '13117714-3f05-48e5-a6e9-a66093f13b4d',
|
|
66
|
+
* invoice_id: '6162d87b-e5db-4a33-b7f2-76ce6ead4e85',
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
cancel(body: PaymentCancelParams, options?: RequestOptions): APIPromise<PaymentCancelResponse> {
|
|
71
|
+
return this._client.post('/v1/payments/cancel', { body, ...options });
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type PaymentsBodyCursorPage = BodyCursorPage<Payment>;
|
|
76
|
+
|
|
77
|
+
export interface Payment {
|
|
78
|
+
id: string;
|
|
79
|
+
|
|
80
|
+
amount?: number;
|
|
81
|
+
|
|
82
|
+
amount_paid?: number;
|
|
83
|
+
|
|
84
|
+
contract_id?: string;
|
|
85
|
+
|
|
86
|
+
created_at?: string;
|
|
87
|
+
|
|
88
|
+
customer_id?: string;
|
|
89
|
+
|
|
90
|
+
error_message?: string;
|
|
91
|
+
|
|
92
|
+
fiat_credit_type?: Shared.CreditTypeData;
|
|
93
|
+
|
|
94
|
+
invoice_id?: string;
|
|
95
|
+
|
|
96
|
+
payment_gateway?: Payment.PaymentGateway;
|
|
97
|
+
|
|
98
|
+
status?: PaymentStatus;
|
|
99
|
+
|
|
100
|
+
updated_at?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export namespace Payment {
|
|
104
|
+
export interface PaymentGateway {
|
|
105
|
+
stripe: PaymentGateway.Stripe;
|
|
106
|
+
|
|
107
|
+
type: 'stripe';
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export namespace PaymentGateway {
|
|
111
|
+
export interface Stripe {
|
|
112
|
+
payment_intent_id: string;
|
|
113
|
+
|
|
114
|
+
error?: Stripe.Error;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export namespace Stripe {
|
|
118
|
+
export interface Error {
|
|
119
|
+
code?: string;
|
|
120
|
+
|
|
121
|
+
decline_code?: string;
|
|
122
|
+
|
|
123
|
+
type?: string;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type PaymentStatus = 'pending' | 'requires_intervention' | 'paid' | 'canceled';
|
|
130
|
+
|
|
131
|
+
export interface PaymentAttemptResponse {
|
|
132
|
+
data: Payment;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface PaymentCancelResponse {
|
|
136
|
+
data: Payment;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface PaymentListParams extends BodyCursorPageParams {
|
|
140
|
+
customer_id: string;
|
|
141
|
+
|
|
142
|
+
invoice_id: string;
|
|
143
|
+
|
|
144
|
+
statuses?: Array<PaymentStatus>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface PaymentAttemptParams {
|
|
148
|
+
customer_id: string;
|
|
149
|
+
|
|
150
|
+
invoice_id: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface PaymentCancelParams {
|
|
154
|
+
customer_id: string;
|
|
155
|
+
|
|
156
|
+
invoice_id: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare namespace Payments {
|
|
160
|
+
export {
|
|
161
|
+
type Payment as Payment,
|
|
162
|
+
type PaymentStatus as PaymentStatus,
|
|
163
|
+
type PaymentAttemptResponse as PaymentAttemptResponse,
|
|
164
|
+
type PaymentCancelResponse as PaymentCancelResponse,
|
|
165
|
+
type PaymentsBodyCursorPage as PaymentsBodyCursorPage,
|
|
166
|
+
type PaymentListParams as PaymentListParams,
|
|
167
|
+
type PaymentAttemptParams as PaymentAttemptParams,
|
|
168
|
+
type PaymentCancelParams as PaymentCancelParams,
|
|
169
|
+
};
|
|
170
|
+
}
|