@stigg/typescript 0.1.0-beta.3 → 0.1.0-beta.31
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 +236 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +12 -1
- package/client.js.map +1 -1
- package/client.mjs +12 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/v1/addons/addons.d.mts +313 -32
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +313 -32
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +114 -15
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +114 -15
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +92 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +92 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/addons.d.mts.map +1 -1
- package/resources/v1/addons.d.ts.map +1 -1
- package/resources/v1/addons.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +80 -20
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +80 -20
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +114 -25
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +114 -25
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -5
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +96 -23
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +96 -23
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +60 -23
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +60 -23
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits.d.mts.map +1 -1
- package/resources/v1/credits.d.ts.map +1 -1
- package/resources/v1/credits.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +170 -53
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +170 -53
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +67 -12
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +67 -12
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +32 -8
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +32 -8
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/customers.d.mts.map +1 -1
- package/resources/v1/customers.d.ts.map +1 -1
- package/resources/v1/customers.mjs.map +1 -1
- package/resources/v1/events/beta/beta.d.mts +10 -0
- package/resources/v1/events/beta/beta.d.mts.map +1 -0
- package/resources/v1/events/beta/beta.d.ts +10 -0
- package/resources/v1/events/beta/beta.d.ts.map +1 -0
- package/resources/v1/events/beta/beta.js +17 -0
- package/resources/v1/events/beta/beta.js.map +1 -0
- package/resources/v1/events/beta/beta.mjs +12 -0
- package/resources/v1/events/beta/beta.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +160 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -0
- package/resources/v1/events/beta/customers.d.ts +160 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -0
- package/resources/v1/events/beta/customers.js +32 -0
- package/resources/v1/events/beta/customers.js.map +1 -0
- package/resources/v1/events/beta/customers.mjs +28 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -0
- package/resources/v1/events/beta/index.d.mts +3 -0
- package/resources/v1/events/beta/index.d.mts.map +1 -0
- package/resources/v1/events/beta/index.d.ts +3 -0
- package/resources/v1/events/beta/index.d.ts.map +1 -0
- package/resources/v1/events/beta/index.js +9 -0
- package/resources/v1/events/beta/index.js.map +1 -0
- package/resources/v1/events/beta/index.mjs +4 -0
- package/resources/v1/events/beta/index.mjs.map +1 -0
- package/resources/v1/events/beta.d.mts +2 -0
- package/resources/v1/events/beta.d.mts.map +1 -0
- package/resources/v1/events/beta.d.ts +2 -0
- package/resources/v1/events/beta.d.ts.map +1 -0
- package/resources/v1/events/beta.js +6 -0
- package/resources/v1/events/beta.js.map +1 -0
- package/resources/v1/events/beta.mjs +3 -0
- package/resources/v1/events/beta.mjs.map +1 -0
- package/resources/v1/events/data-export/data-export.d.mts +211 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export/data-export.d.ts +211 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export/data-export.js +71 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -0
- package/resources/v1/events/data-export/data-export.mjs +66 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -0
- package/resources/v1/events/data-export/destinations.d.mts +215 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
- package/resources/v1/events/data-export/destinations.d.ts +215 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
- package/resources/v1/events/data-export/destinations.js +46 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -0
- package/resources/v1/events/data-export/destinations.mjs +42 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -0
- package/resources/v1/events/data-export/index.d.mts +3 -0
- package/resources/v1/events/data-export/index.d.mts.map +1 -0
- package/resources/v1/events/data-export/index.d.ts +3 -0
- package/resources/v1/events/data-export/index.d.ts.map +1 -0
- package/resources/v1/events/data-export/index.js +9 -0
- package/resources/v1/events/data-export/index.js.map +1 -0
- package/resources/v1/events/data-export/index.mjs +4 -0
- package/resources/v1/events/data-export/index.mjs.map +1 -0
- package/resources/v1/events/data-export.d.mts +2 -0
- package/resources/v1/events/data-export.d.mts.map +1 -0
- package/resources/v1/events/data-export.d.ts +2 -0
- package/resources/v1/events/data-export.d.ts.map +1 -0
- package/resources/v1/events/data-export.js +6 -0
- package/resources/v1/events/data-export.js.map +1 -0
- package/resources/v1/events/data-export.mjs +3 -0
- package/resources/v1/events/data-export.mjs.map +1 -0
- package/resources/v1/events/events.d.mts +85 -0
- package/resources/v1/events/events.d.mts.map +1 -0
- package/resources/v1/events/events.d.ts +85 -0
- package/resources/v1/events/events.d.ts.map +1 -0
- package/resources/v1/events/events.js +43 -0
- package/resources/v1/events/events.js.map +1 -0
- package/resources/v1/events/events.mjs +38 -0
- package/resources/v1/events/events.mjs.map +1 -0
- package/resources/v1/events/index.d.mts +4 -0
- package/resources/v1/events/index.d.mts.map +1 -0
- package/resources/v1/events/index.d.ts +4 -0
- package/resources/v1/events/index.d.ts.map +1 -0
- package/resources/v1/events/index.js +11 -0
- package/resources/v1/events/index.js.map +1 -0
- package/resources/v1/events/index.mjs +5 -0
- package/resources/v1/events/index.mjs.map +1 -0
- package/resources/v1/events.d.mts +1 -65
- package/resources/v1/events.d.mts.map +1 -1
- package/resources/v1/events.d.ts +1 -65
- package/resources/v1/events.d.ts.map +1 -1
- package/resources/v1/events.js +2 -15
- package/resources/v1/events.js.map +1 -1
- package/resources/v1/events.mjs +1 -13
- package/resources/v1/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +108 -30
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +108 -30
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +8 -8
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +8 -8
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +6 -6
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +92 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +92 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +496 -32
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +496 -32
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +135 -16
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +135 -16
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/plans.d.mts.map +1 -1
- package/resources/v1/plans.d.ts.map +1 -1
- package/resources/v1/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +15 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +258 -79
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +258 -79
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +52 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +52 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +16 -16
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +16 -16
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +245 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +245 -0
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
- package/resources/v1-beta/customers/assignments.js +84 -0
- package/resources/v1-beta/customers/assignments.js.map +1 -0
- package/resources/v1-beta/customers/assignments.mjs +80 -0
- package/resources/v1-beta/customers/assignments.mjs.map +1 -0
- package/resources/v1-beta/customers/customers.d.mts +18 -0
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers/customers.d.ts +18 -0
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers/customers.js +25 -0
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/v1-beta/customers/customers.mjs +20 -0
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/v1-beta/customers/entities.d.mts +351 -0
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/v1-beta/customers/entities.d.ts +351 -0
- package/resources/v1-beta/customers/entities.d.ts.map +1 -0
- package/resources/v1-beta/customers/entities.js +150 -0
- package/resources/v1-beta/customers/entities.js.map +1 -0
- package/resources/v1-beta/customers/entities.mjs +146 -0
- package/resources/v1-beta/customers/entities.mjs.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.mts +261 -0
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/v1-beta/customers/entitlements.d.ts +261 -0
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
- package/resources/v1-beta/customers/entitlements.js +36 -0
- package/resources/v1-beta/customers/entitlements.js.map +1 -0
- package/resources/v1-beta/customers/entitlements.mjs +32 -0
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
- package/resources/v1-beta/customers/index.d.mts +5 -0
- package/resources/v1-beta/customers/index.d.mts.map +1 -0
- package/resources/v1-beta/customers/index.d.ts +5 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js +13 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs +6 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts +2 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts +2 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/v1-beta/customers.js +6 -0
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs +3 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/v1-beta/entity-types.d.mts +165 -0
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/v1-beta/entity-types.d.ts +165 -0
- package/resources/v1-beta/entity-types.d.ts.map +1 -0
- package/resources/v1-beta/entity-types.js +75 -0
- package/resources/v1-beta/entity-types.js.map +1 -0
- package/resources/v1-beta/entity-types.mjs +71 -0
- package/resources/v1-beta/entity-types.mjs.map +1 -0
- package/resources/v1-beta/index.d.mts +4 -0
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/v1-beta/index.d.ts +4 -0
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/v1-beta/index.js +11 -0
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/v1-beta/index.mjs +5 -0
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/v1-beta/v1-beta.d.mts +14 -0
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta/v1-beta.d.ts +14 -0
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta/v1-beta.js +21 -0
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/v1-beta/v1-beta.mjs +16 -0
- package/resources/v1-beta/v1-beta.mjs.map +1 -0
- package/resources/v1-beta.d.mts +2 -0
- package/resources/v1-beta.d.mts.map +1 -0
- package/resources/v1-beta.d.ts +2 -0
- package/resources/v1-beta.d.ts.map +1 -0
- package/resources/v1-beta.js +6 -0
- package/resources/v1-beta.js.map +1 -0
- package/resources/v1-beta.mjs +3 -0
- package/resources/v1-beta.mjs.map +1 -0
- package/resources/v1.d.mts.map +1 -1
- package/resources/v1.d.ts.map +1 -1
- package/resources/v1.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +14 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +849 -36
- package/src/resources/v1/addons/entitlements.ts +158 -10
- package/src/resources/v1/addons/index.ts +8 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/credits.ts +167 -23
- package/src/resources/v1/credits/custom-currencies.ts +188 -30
- package/src/resources/v1/credits/grants.ts +102 -24
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +333 -62
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +137 -18
- package/src/resources/v1/customers/payment-method.ts +69 -10
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
- package/src/resources/v1/events/beta/beta.ts +19 -0
- package/src/resources/v1/events/beta/customers.ts +212 -0
- package/src/resources/v1/events/beta/index.ts +8 -0
- package/src/resources/v1/events/beta.ts +3 -0
- package/src/resources/v1/events/data-export/data-export.ts +312 -0
- package/src/resources/v1/events/data-export/destinations.ts +290 -0
- package/src/resources/v1/events/data-export/index.ts +18 -0
- package/src/resources/v1/events/data-export.ts +3 -0
- package/src/resources/v1/events/events.ts +132 -0
- package/src/resources/v1/events/index.ts +13 -0
- package/src/resources/v1/events.ts +1 -75
- package/src/resources/v1/features.ts +204 -34
- package/src/resources/v1/index.ts +29 -1
- package/src/resources/v1/plans/entitlements.ts +158 -10
- package/src/resources/v1/plans/index.ts +11 -0
- package/src/resources/v1/plans/plans.ts +1440 -37
- package/src/resources/v1/products.ts +189 -27
- package/src/resources/v1/subscriptions/future-update.ts +68 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +429 -86
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +86 -5
- package/src/resources/v1/v1.ts +58 -2
- package/src/resources/v1-beta/customers/assignments.ts +331 -0
- package/src/resources/v1-beta/customers/customers.ts +71 -0
- package/src/resources/v1-beta/customers/entities.ts +492 -0
- package/src/resources/v1-beta/customers/entitlements.ts +366 -0
- package/src/resources/v1-beta/customers/index.ts +26 -0
- package/src/resources/v1-beta/customers.ts +3 -0
- package/src/resources/v1-beta/entity-types.ts +225 -0
- package/src/resources/v1-beta/index.ts +12 -0
- package/src/resources/v1-beta/v1-beta.ts +35 -0
- package/src/resources/v1-beta.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
EntitlementCreateParams,
|
|
7
7
|
EntitlementCreateResponse,
|
|
8
8
|
EntitlementDeleteParams,
|
|
9
|
+
EntitlementListParams,
|
|
9
10
|
EntitlementListResponse,
|
|
10
11
|
EntitlementUpdateParams,
|
|
11
12
|
Entitlements,
|
|
@@ -13,6 +14,7 @@ import {
|
|
|
13
14
|
} from './entitlements';
|
|
14
15
|
import { APIPromise } from '../../../core/api-promise';
|
|
15
16
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
17
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
16
18
|
import { RequestOptions } from '../../../internal/request-options';
|
|
17
19
|
import { path } from '../../../internal/utils/path';
|
|
18
20
|
|
|
@@ -25,67 +27,223 @@ export class Plans extends APIResource {
|
|
|
25
27
|
/**
|
|
26
28
|
* Creates a new plan in draft status.
|
|
27
29
|
*/
|
|
28
|
-
create(
|
|
29
|
-
|
|
30
|
+
create(params: PlanCreateParams, options?: RequestOptions): APIPromise<Plan> {
|
|
31
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
32
|
+
return this._client.post('/api/v1/plans', {
|
|
33
|
+
body,
|
|
34
|
+
...options,
|
|
35
|
+
headers: buildHeaders([
|
|
36
|
+
{
|
|
37
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
38
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
39
|
+
},
|
|
40
|
+
options?.headers,
|
|
41
|
+
]),
|
|
42
|
+
});
|
|
30
43
|
}
|
|
31
44
|
|
|
32
45
|
/**
|
|
33
46
|
* Retrieves a plan by its unique identifier, including entitlements and pricing
|
|
34
47
|
* details.
|
|
35
48
|
*/
|
|
36
|
-
retrieve(
|
|
37
|
-
|
|
49
|
+
retrieve(
|
|
50
|
+
id: string,
|
|
51
|
+
params: PlanRetrieveParams | null | undefined = {},
|
|
52
|
+
options?: RequestOptions,
|
|
53
|
+
): APIPromise<Plan> {
|
|
54
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
55
|
+
return this._client.get(path`/api/v1/plans/${id}`, {
|
|
56
|
+
...options,
|
|
57
|
+
headers: buildHeaders([
|
|
58
|
+
{
|
|
59
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
60
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
61
|
+
},
|
|
62
|
+
options?.headers,
|
|
63
|
+
]),
|
|
64
|
+
});
|
|
38
65
|
}
|
|
39
66
|
|
|
40
67
|
/**
|
|
41
68
|
* Updates an existing plan's properties such as display name, description, and
|
|
42
69
|
* metadata.
|
|
43
70
|
*/
|
|
44
|
-
update(id: string,
|
|
45
|
-
|
|
71
|
+
update(id: string, params: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan> {
|
|
72
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
73
|
+
return this._client.patch(path`/api/v1/plans/${id}`, {
|
|
74
|
+
body,
|
|
75
|
+
...options,
|
|
76
|
+
headers: buildHeaders([
|
|
77
|
+
{
|
|
78
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
79
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
80
|
+
},
|
|
81
|
+
options?.headers,
|
|
82
|
+
]),
|
|
83
|
+
});
|
|
46
84
|
}
|
|
47
85
|
|
|
48
86
|
/**
|
|
49
87
|
* Retrieves a paginated list of plans in the environment.
|
|
50
88
|
*/
|
|
51
89
|
list(
|
|
52
|
-
|
|
90
|
+
params: PlanListParams | null | undefined = {},
|
|
53
91
|
options?: RequestOptions,
|
|
54
92
|
): PagePromise<PlanListResponsesMyCursorIDPage, PlanListResponse> {
|
|
55
|
-
|
|
93
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
94
|
+
return this._client.getAPIList('/api/v1/plans', MyCursorIDPage<PlanListResponse>, {
|
|
95
|
+
query,
|
|
96
|
+
...options,
|
|
97
|
+
headers: buildHeaders([
|
|
98
|
+
{
|
|
99
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
100
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
101
|
+
},
|
|
102
|
+
options?.headers,
|
|
103
|
+
]),
|
|
104
|
+
});
|
|
56
105
|
}
|
|
57
106
|
|
|
58
107
|
/**
|
|
59
108
|
* Archives a plan, preventing it from being used in new subscriptions.
|
|
60
109
|
*/
|
|
61
|
-
archive(
|
|
62
|
-
|
|
110
|
+
archive(
|
|
111
|
+
id: string,
|
|
112
|
+
params: PlanArchiveParams | null | undefined = {},
|
|
113
|
+
options?: RequestOptions,
|
|
114
|
+
): APIPromise<Plan> {
|
|
115
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
116
|
+
return this._client.post(path`/api/v1/plans/${id}/archive`, {
|
|
117
|
+
...options,
|
|
118
|
+
headers: buildHeaders([
|
|
119
|
+
{
|
|
120
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
121
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
122
|
+
},
|
|
123
|
+
options?.headers,
|
|
124
|
+
]),
|
|
125
|
+
});
|
|
63
126
|
}
|
|
64
127
|
|
|
65
128
|
/**
|
|
66
129
|
* Creates a draft version of an existing plan for modification before publishing.
|
|
67
130
|
*/
|
|
68
|
-
createDraft(
|
|
69
|
-
|
|
131
|
+
createDraft(
|
|
132
|
+
id: string,
|
|
133
|
+
params: PlanCreateDraftParams | null | undefined = {},
|
|
134
|
+
options?: RequestOptions,
|
|
135
|
+
): APIPromise<Plan> {
|
|
136
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
137
|
+
return this._client.post(path`/api/v1/plans/${id}/draft`, {
|
|
138
|
+
...options,
|
|
139
|
+
headers: buildHeaders([
|
|
140
|
+
{
|
|
141
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
142
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
143
|
+
},
|
|
144
|
+
options?.headers,
|
|
145
|
+
]),
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Retrieves the list of charges configured on a plan.
|
|
151
|
+
*/
|
|
152
|
+
listCharges(
|
|
153
|
+
id: string,
|
|
154
|
+
params: PlanListChargesParams | null | undefined = {},
|
|
155
|
+
options?: RequestOptions,
|
|
156
|
+
): PagePromise<PlanListChargesResponsesMyCursorIDPage, PlanListChargesResponse> {
|
|
157
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
158
|
+
return this._client.getAPIList(
|
|
159
|
+
path`/api/v1/plans/${id}/charges`,
|
|
160
|
+
MyCursorIDPage<PlanListChargesResponse>,
|
|
161
|
+
{
|
|
162
|
+
query,
|
|
163
|
+
...options,
|
|
164
|
+
headers: buildHeaders([
|
|
165
|
+
{
|
|
166
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
167
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
168
|
+
},
|
|
169
|
+
options?.headers,
|
|
170
|
+
]),
|
|
171
|
+
},
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Retrieves the list of overage charges configured on a plan.
|
|
177
|
+
*/
|
|
178
|
+
listOverageCharges(
|
|
179
|
+
id: string,
|
|
180
|
+
params: PlanListOverageChargesParams | null | undefined = {},
|
|
181
|
+
options?: RequestOptions,
|
|
182
|
+
): PagePromise<PlanListOverageChargesResponsesMyCursorIDPage, PlanListOverageChargesResponse> {
|
|
183
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
184
|
+
return this._client.getAPIList(
|
|
185
|
+
path`/api/v1/plans/${id}/overage-charges`,
|
|
186
|
+
MyCursorIDPage<PlanListOverageChargesResponse>,
|
|
187
|
+
{
|
|
188
|
+
query,
|
|
189
|
+
...options,
|
|
190
|
+
headers: buildHeaders([
|
|
191
|
+
{
|
|
192
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
193
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
194
|
+
},
|
|
195
|
+
options?.headers,
|
|
196
|
+
]),
|
|
197
|
+
},
|
|
198
|
+
);
|
|
70
199
|
}
|
|
71
200
|
|
|
72
201
|
/**
|
|
73
202
|
* Publishes a draft plan, making it available for use in subscriptions.
|
|
74
203
|
*/
|
|
75
|
-
publish(id: string,
|
|
76
|
-
|
|
204
|
+
publish(id: string, params: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse> {
|
|
205
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
206
|
+
return this._client.post(path`/api/v1/plans/${id}/publish`, {
|
|
207
|
+
body,
|
|
208
|
+
...options,
|
|
209
|
+
headers: buildHeaders([
|
|
210
|
+
{
|
|
211
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
212
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
213
|
+
},
|
|
214
|
+
options?.headers,
|
|
215
|
+
]),
|
|
216
|
+
});
|
|
77
217
|
}
|
|
78
218
|
|
|
79
219
|
/**
|
|
80
220
|
* Removes a draft version of a plan.
|
|
81
221
|
*/
|
|
82
|
-
removeDraft(
|
|
83
|
-
|
|
222
|
+
removeDraft(
|
|
223
|
+
id: string,
|
|
224
|
+
params: PlanRemoveDraftParams | null | undefined = {},
|
|
225
|
+
options?: RequestOptions,
|
|
226
|
+
): APIPromise<PlanRemoveDraftResponse> {
|
|
227
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
228
|
+
return this._client.delete(path`/api/v1/plans/${id}/draft`, {
|
|
229
|
+
...options,
|
|
230
|
+
headers: buildHeaders([
|
|
231
|
+
{
|
|
232
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
233
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
234
|
+
},
|
|
235
|
+
options?.headers,
|
|
236
|
+
]),
|
|
237
|
+
});
|
|
84
238
|
}
|
|
85
239
|
}
|
|
86
240
|
|
|
87
241
|
export type PlanListResponsesMyCursorIDPage = MyCursorIDPage<PlanListResponse>;
|
|
88
242
|
|
|
243
|
+
export type PlanListChargesResponsesMyCursorIDPage = MyCursorIDPage<PlanListChargesResponse>;
|
|
244
|
+
|
|
245
|
+
export type PlanListOverageChargesResponsesMyCursorIDPage = MyCursorIDPage<PlanListOverageChargesResponse>;
|
|
246
|
+
|
|
89
247
|
/**
|
|
90
248
|
* Response object
|
|
91
249
|
*/
|
|
@@ -374,6 +532,1094 @@ export namespace PlanListResponse {
|
|
|
374
532
|
}
|
|
375
533
|
}
|
|
376
534
|
|
|
535
|
+
/**
|
|
536
|
+
* A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
|
|
537
|
+
* billingModel, billingCadence, billingCountryCode) combination. Plans and addons
|
|
538
|
+
* own many of these — one per currency / billing period / feature.
|
|
539
|
+
*/
|
|
540
|
+
export interface PlanListChargesResponse {
|
|
541
|
+
/**
|
|
542
|
+
* Unique identifier of the charge
|
|
543
|
+
*/
|
|
544
|
+
id: string;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* The billing cadence (RECURRING or ONE_OFF)
|
|
548
|
+
*/
|
|
549
|
+
billingCadence: 'RECURRING' | 'ONE_OFF';
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
|
|
553
|
+
*/
|
|
554
|
+
billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* The billing period (MONTHLY or ANNUALLY)
|
|
558
|
+
*/
|
|
559
|
+
billingPeriod: 'MONTHLY' | 'ANNUALLY';
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Timestamp when the charge was created
|
|
563
|
+
*/
|
|
564
|
+
createdAt: string;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* ISO country code for localized pricing, if any
|
|
568
|
+
*/
|
|
569
|
+
billingCountryCode?: string | null;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Identifier in the external billing integration (e.g. Stripe price id), if any
|
|
573
|
+
*/
|
|
574
|
+
billingId?: string | null;
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Block size for usage-based pricing
|
|
578
|
+
*/
|
|
579
|
+
blockSize?: number | null;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* When credits are granted (for credit-based pricing)
|
|
583
|
+
*/
|
|
584
|
+
creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Credit rate configuration for credit-based pricing
|
|
588
|
+
*/
|
|
589
|
+
creditRate?: PlanListChargesResponse.CreditRate | null;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Identifier in the linked CRM, if any
|
|
593
|
+
*/
|
|
594
|
+
crmId?: string | null;
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* Deep link to the charge in the linked CRM, if any
|
|
598
|
+
*/
|
|
599
|
+
crmLinkUrl?: string | null;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* The feature this charge meters, if metered
|
|
603
|
+
*/
|
|
604
|
+
featureId?: string | null;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Maximum unit quantity that can be purchased
|
|
608
|
+
*/
|
|
609
|
+
maxUnitQuantity?: number | null;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Minimum unit quantity that can be purchased
|
|
613
|
+
*/
|
|
614
|
+
minUnitQuantity?: number | null;
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* The flat price amount and currency, when applicable
|
|
618
|
+
*/
|
|
619
|
+
price?: PlanListChargesResponse.Price | null;
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Tiered pricing rows when the charge is tiered
|
|
623
|
+
*/
|
|
624
|
+
tiers?: Array<PlanListChargesResponse.Tier> | null;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
|
|
628
|
+
*/
|
|
629
|
+
tiersMode?: 'VOLUME' | 'GRADUATED' | null;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Custom currency identifier for top-up pricing, if any
|
|
633
|
+
*/
|
|
634
|
+
topUpCustomCurrencyId?: string | null;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* True if this charge is referenced by at least one subscription
|
|
638
|
+
*/
|
|
639
|
+
usedInSubscriptions?: boolean | null;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export namespace PlanListChargesResponse {
|
|
643
|
+
/**
|
|
644
|
+
* Credit rate configuration for credit-based pricing
|
|
645
|
+
*/
|
|
646
|
+
export interface CreditRate {
|
|
647
|
+
/**
|
|
648
|
+
* Credit rate amount
|
|
649
|
+
*/
|
|
650
|
+
amount: number;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Custom currency identifier
|
|
654
|
+
*/
|
|
655
|
+
currencyId: string;
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Optional cost formula expression
|
|
659
|
+
*/
|
|
660
|
+
costFormula?: string | null;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* The flat price amount and currency, when applicable
|
|
665
|
+
*/
|
|
666
|
+
export interface Price {
|
|
667
|
+
/**
|
|
668
|
+
* The price amount
|
|
669
|
+
*/
|
|
670
|
+
amount: number;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* ISO 4217 currency code
|
|
674
|
+
*/
|
|
675
|
+
currency:
|
|
676
|
+
| 'usd'
|
|
677
|
+
| 'aed'
|
|
678
|
+
| 'all'
|
|
679
|
+
| 'amd'
|
|
680
|
+
| 'ang'
|
|
681
|
+
| 'aud'
|
|
682
|
+
| 'awg'
|
|
683
|
+
| 'azn'
|
|
684
|
+
| 'bam'
|
|
685
|
+
| 'bbd'
|
|
686
|
+
| 'bdt'
|
|
687
|
+
| 'bgn'
|
|
688
|
+
| 'bif'
|
|
689
|
+
| 'bmd'
|
|
690
|
+
| 'bnd'
|
|
691
|
+
| 'bsd'
|
|
692
|
+
| 'bwp'
|
|
693
|
+
| 'byn'
|
|
694
|
+
| 'bzd'
|
|
695
|
+
| 'brl'
|
|
696
|
+
| 'cad'
|
|
697
|
+
| 'cdf'
|
|
698
|
+
| 'chf'
|
|
699
|
+
| 'cny'
|
|
700
|
+
| 'czk'
|
|
701
|
+
| 'dkk'
|
|
702
|
+
| 'dop'
|
|
703
|
+
| 'dzd'
|
|
704
|
+
| 'egp'
|
|
705
|
+
| 'etb'
|
|
706
|
+
| 'eur'
|
|
707
|
+
| 'fjd'
|
|
708
|
+
| 'gbp'
|
|
709
|
+
| 'gel'
|
|
710
|
+
| 'gip'
|
|
711
|
+
| 'gmd'
|
|
712
|
+
| 'gyd'
|
|
713
|
+
| 'hkd'
|
|
714
|
+
| 'hrk'
|
|
715
|
+
| 'htg'
|
|
716
|
+
| 'idr'
|
|
717
|
+
| 'ils'
|
|
718
|
+
| 'inr'
|
|
719
|
+
| 'isk'
|
|
720
|
+
| 'jmd'
|
|
721
|
+
| 'jpy'
|
|
722
|
+
| 'kes'
|
|
723
|
+
| 'kgs'
|
|
724
|
+
| 'khr'
|
|
725
|
+
| 'kmf'
|
|
726
|
+
| 'krw'
|
|
727
|
+
| 'kyd'
|
|
728
|
+
| 'kzt'
|
|
729
|
+
| 'lbp'
|
|
730
|
+
| 'lkr'
|
|
731
|
+
| 'lrd'
|
|
732
|
+
| 'lsl'
|
|
733
|
+
| 'mad'
|
|
734
|
+
| 'mdl'
|
|
735
|
+
| 'mga'
|
|
736
|
+
| 'mkd'
|
|
737
|
+
| 'mmk'
|
|
738
|
+
| 'mnt'
|
|
739
|
+
| 'mop'
|
|
740
|
+
| 'mro'
|
|
741
|
+
| 'mvr'
|
|
742
|
+
| 'mwk'
|
|
743
|
+
| 'mxn'
|
|
744
|
+
| 'myr'
|
|
745
|
+
| 'mzn'
|
|
746
|
+
| 'nad'
|
|
747
|
+
| 'ngn'
|
|
748
|
+
| 'nok'
|
|
749
|
+
| 'npr'
|
|
750
|
+
| 'nzd'
|
|
751
|
+
| 'pgk'
|
|
752
|
+
| 'php'
|
|
753
|
+
| 'pkr'
|
|
754
|
+
| 'pln'
|
|
755
|
+
| 'qar'
|
|
756
|
+
| 'ron'
|
|
757
|
+
| 'rsd'
|
|
758
|
+
| 'rub'
|
|
759
|
+
| 'rwf'
|
|
760
|
+
| 'sar'
|
|
761
|
+
| 'sbd'
|
|
762
|
+
| 'scr'
|
|
763
|
+
| 'sek'
|
|
764
|
+
| 'sgd'
|
|
765
|
+
| 'sle'
|
|
766
|
+
| 'sll'
|
|
767
|
+
| 'sos'
|
|
768
|
+
| 'szl'
|
|
769
|
+
| 'thb'
|
|
770
|
+
| 'tjs'
|
|
771
|
+
| 'top'
|
|
772
|
+
| 'try'
|
|
773
|
+
| 'ttd'
|
|
774
|
+
| 'tzs'
|
|
775
|
+
| 'uah'
|
|
776
|
+
| 'uzs'
|
|
777
|
+
| 'vnd'
|
|
778
|
+
| 'vuv'
|
|
779
|
+
| 'wst'
|
|
780
|
+
| 'xaf'
|
|
781
|
+
| 'xcd'
|
|
782
|
+
| 'yer'
|
|
783
|
+
| 'zar'
|
|
784
|
+
| 'zmw'
|
|
785
|
+
| 'clp'
|
|
786
|
+
| 'djf'
|
|
787
|
+
| 'gnf'
|
|
788
|
+
| 'ugx'
|
|
789
|
+
| 'pyg'
|
|
790
|
+
| 'xof'
|
|
791
|
+
| 'xpf';
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* A single tier within a tiered charge
|
|
796
|
+
*/
|
|
797
|
+
export interface Tier {
|
|
798
|
+
/**
|
|
799
|
+
* Flat price for this tier
|
|
800
|
+
*/
|
|
801
|
+
flatPrice?: Tier.FlatPrice | null;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Per-unit price in this tier
|
|
805
|
+
*/
|
|
806
|
+
unitPrice?: Tier.UnitPrice | null;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Upper bound of this tier (null for unlimited)
|
|
810
|
+
*/
|
|
811
|
+
upTo?: number | null;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export namespace Tier {
|
|
815
|
+
/**
|
|
816
|
+
* Flat price for this tier
|
|
817
|
+
*/
|
|
818
|
+
export interface FlatPrice {
|
|
819
|
+
/**
|
|
820
|
+
* The price amount
|
|
821
|
+
*/
|
|
822
|
+
amount: number;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* ISO 4217 currency code
|
|
826
|
+
*/
|
|
827
|
+
currency:
|
|
828
|
+
| 'usd'
|
|
829
|
+
| 'aed'
|
|
830
|
+
| 'all'
|
|
831
|
+
| 'amd'
|
|
832
|
+
| 'ang'
|
|
833
|
+
| 'aud'
|
|
834
|
+
| 'awg'
|
|
835
|
+
| 'azn'
|
|
836
|
+
| 'bam'
|
|
837
|
+
| 'bbd'
|
|
838
|
+
| 'bdt'
|
|
839
|
+
| 'bgn'
|
|
840
|
+
| 'bif'
|
|
841
|
+
| 'bmd'
|
|
842
|
+
| 'bnd'
|
|
843
|
+
| 'bsd'
|
|
844
|
+
| 'bwp'
|
|
845
|
+
| 'byn'
|
|
846
|
+
| 'bzd'
|
|
847
|
+
| 'brl'
|
|
848
|
+
| 'cad'
|
|
849
|
+
| 'cdf'
|
|
850
|
+
| 'chf'
|
|
851
|
+
| 'cny'
|
|
852
|
+
| 'czk'
|
|
853
|
+
| 'dkk'
|
|
854
|
+
| 'dop'
|
|
855
|
+
| 'dzd'
|
|
856
|
+
| 'egp'
|
|
857
|
+
| 'etb'
|
|
858
|
+
| 'eur'
|
|
859
|
+
| 'fjd'
|
|
860
|
+
| 'gbp'
|
|
861
|
+
| 'gel'
|
|
862
|
+
| 'gip'
|
|
863
|
+
| 'gmd'
|
|
864
|
+
| 'gyd'
|
|
865
|
+
| 'hkd'
|
|
866
|
+
| 'hrk'
|
|
867
|
+
| 'htg'
|
|
868
|
+
| 'idr'
|
|
869
|
+
| 'ils'
|
|
870
|
+
| 'inr'
|
|
871
|
+
| 'isk'
|
|
872
|
+
| 'jmd'
|
|
873
|
+
| 'jpy'
|
|
874
|
+
| 'kes'
|
|
875
|
+
| 'kgs'
|
|
876
|
+
| 'khr'
|
|
877
|
+
| 'kmf'
|
|
878
|
+
| 'krw'
|
|
879
|
+
| 'kyd'
|
|
880
|
+
| 'kzt'
|
|
881
|
+
| 'lbp'
|
|
882
|
+
| 'lkr'
|
|
883
|
+
| 'lrd'
|
|
884
|
+
| 'lsl'
|
|
885
|
+
| 'mad'
|
|
886
|
+
| 'mdl'
|
|
887
|
+
| 'mga'
|
|
888
|
+
| 'mkd'
|
|
889
|
+
| 'mmk'
|
|
890
|
+
| 'mnt'
|
|
891
|
+
| 'mop'
|
|
892
|
+
| 'mro'
|
|
893
|
+
| 'mvr'
|
|
894
|
+
| 'mwk'
|
|
895
|
+
| 'mxn'
|
|
896
|
+
| 'myr'
|
|
897
|
+
| 'mzn'
|
|
898
|
+
| 'nad'
|
|
899
|
+
| 'ngn'
|
|
900
|
+
| 'nok'
|
|
901
|
+
| 'npr'
|
|
902
|
+
| 'nzd'
|
|
903
|
+
| 'pgk'
|
|
904
|
+
| 'php'
|
|
905
|
+
| 'pkr'
|
|
906
|
+
| 'pln'
|
|
907
|
+
| 'qar'
|
|
908
|
+
| 'ron'
|
|
909
|
+
| 'rsd'
|
|
910
|
+
| 'rub'
|
|
911
|
+
| 'rwf'
|
|
912
|
+
| 'sar'
|
|
913
|
+
| 'sbd'
|
|
914
|
+
| 'scr'
|
|
915
|
+
| 'sek'
|
|
916
|
+
| 'sgd'
|
|
917
|
+
| 'sle'
|
|
918
|
+
| 'sll'
|
|
919
|
+
| 'sos'
|
|
920
|
+
| 'szl'
|
|
921
|
+
| 'thb'
|
|
922
|
+
| 'tjs'
|
|
923
|
+
| 'top'
|
|
924
|
+
| 'try'
|
|
925
|
+
| 'ttd'
|
|
926
|
+
| 'tzs'
|
|
927
|
+
| 'uah'
|
|
928
|
+
| 'uzs'
|
|
929
|
+
| 'vnd'
|
|
930
|
+
| 'vuv'
|
|
931
|
+
| 'wst'
|
|
932
|
+
| 'xaf'
|
|
933
|
+
| 'xcd'
|
|
934
|
+
| 'yer'
|
|
935
|
+
| 'zar'
|
|
936
|
+
| 'zmw'
|
|
937
|
+
| 'clp'
|
|
938
|
+
| 'djf'
|
|
939
|
+
| 'gnf'
|
|
940
|
+
| 'ugx'
|
|
941
|
+
| 'pyg'
|
|
942
|
+
| 'xof'
|
|
943
|
+
| 'xpf';
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Per-unit price in this tier
|
|
948
|
+
*/
|
|
949
|
+
export interface UnitPrice {
|
|
950
|
+
/**
|
|
951
|
+
* The price amount
|
|
952
|
+
*/
|
|
953
|
+
amount: number;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* ISO 4217 currency code
|
|
957
|
+
*/
|
|
958
|
+
currency:
|
|
959
|
+
| 'usd'
|
|
960
|
+
| 'aed'
|
|
961
|
+
| 'all'
|
|
962
|
+
| 'amd'
|
|
963
|
+
| 'ang'
|
|
964
|
+
| 'aud'
|
|
965
|
+
| 'awg'
|
|
966
|
+
| 'azn'
|
|
967
|
+
| 'bam'
|
|
968
|
+
| 'bbd'
|
|
969
|
+
| 'bdt'
|
|
970
|
+
| 'bgn'
|
|
971
|
+
| 'bif'
|
|
972
|
+
| 'bmd'
|
|
973
|
+
| 'bnd'
|
|
974
|
+
| 'bsd'
|
|
975
|
+
| 'bwp'
|
|
976
|
+
| 'byn'
|
|
977
|
+
| 'bzd'
|
|
978
|
+
| 'brl'
|
|
979
|
+
| 'cad'
|
|
980
|
+
| 'cdf'
|
|
981
|
+
| 'chf'
|
|
982
|
+
| 'cny'
|
|
983
|
+
| 'czk'
|
|
984
|
+
| 'dkk'
|
|
985
|
+
| 'dop'
|
|
986
|
+
| 'dzd'
|
|
987
|
+
| 'egp'
|
|
988
|
+
| 'etb'
|
|
989
|
+
| 'eur'
|
|
990
|
+
| 'fjd'
|
|
991
|
+
| 'gbp'
|
|
992
|
+
| 'gel'
|
|
993
|
+
| 'gip'
|
|
994
|
+
| 'gmd'
|
|
995
|
+
| 'gyd'
|
|
996
|
+
| 'hkd'
|
|
997
|
+
| 'hrk'
|
|
998
|
+
| 'htg'
|
|
999
|
+
| 'idr'
|
|
1000
|
+
| 'ils'
|
|
1001
|
+
| 'inr'
|
|
1002
|
+
| 'isk'
|
|
1003
|
+
| 'jmd'
|
|
1004
|
+
| 'jpy'
|
|
1005
|
+
| 'kes'
|
|
1006
|
+
| 'kgs'
|
|
1007
|
+
| 'khr'
|
|
1008
|
+
| 'kmf'
|
|
1009
|
+
| 'krw'
|
|
1010
|
+
| 'kyd'
|
|
1011
|
+
| 'kzt'
|
|
1012
|
+
| 'lbp'
|
|
1013
|
+
| 'lkr'
|
|
1014
|
+
| 'lrd'
|
|
1015
|
+
| 'lsl'
|
|
1016
|
+
| 'mad'
|
|
1017
|
+
| 'mdl'
|
|
1018
|
+
| 'mga'
|
|
1019
|
+
| 'mkd'
|
|
1020
|
+
| 'mmk'
|
|
1021
|
+
| 'mnt'
|
|
1022
|
+
| 'mop'
|
|
1023
|
+
| 'mro'
|
|
1024
|
+
| 'mvr'
|
|
1025
|
+
| 'mwk'
|
|
1026
|
+
| 'mxn'
|
|
1027
|
+
| 'myr'
|
|
1028
|
+
| 'mzn'
|
|
1029
|
+
| 'nad'
|
|
1030
|
+
| 'ngn'
|
|
1031
|
+
| 'nok'
|
|
1032
|
+
| 'npr'
|
|
1033
|
+
| 'nzd'
|
|
1034
|
+
| 'pgk'
|
|
1035
|
+
| 'php'
|
|
1036
|
+
| 'pkr'
|
|
1037
|
+
| 'pln'
|
|
1038
|
+
| 'qar'
|
|
1039
|
+
| 'ron'
|
|
1040
|
+
| 'rsd'
|
|
1041
|
+
| 'rub'
|
|
1042
|
+
| 'rwf'
|
|
1043
|
+
| 'sar'
|
|
1044
|
+
| 'sbd'
|
|
1045
|
+
| 'scr'
|
|
1046
|
+
| 'sek'
|
|
1047
|
+
| 'sgd'
|
|
1048
|
+
| 'sle'
|
|
1049
|
+
| 'sll'
|
|
1050
|
+
| 'sos'
|
|
1051
|
+
| 'szl'
|
|
1052
|
+
| 'thb'
|
|
1053
|
+
| 'tjs'
|
|
1054
|
+
| 'top'
|
|
1055
|
+
| 'try'
|
|
1056
|
+
| 'ttd'
|
|
1057
|
+
| 'tzs'
|
|
1058
|
+
| 'uah'
|
|
1059
|
+
| 'uzs'
|
|
1060
|
+
| 'vnd'
|
|
1061
|
+
| 'vuv'
|
|
1062
|
+
| 'wst'
|
|
1063
|
+
| 'xaf'
|
|
1064
|
+
| 'xcd'
|
|
1065
|
+
| 'yer'
|
|
1066
|
+
| 'zar'
|
|
1067
|
+
| 'zmw'
|
|
1068
|
+
| 'clp'
|
|
1069
|
+
| 'djf'
|
|
1070
|
+
| 'gnf'
|
|
1071
|
+
| 'ugx'
|
|
1072
|
+
| 'pyg'
|
|
1073
|
+
| 'xof'
|
|
1074
|
+
| 'xpf';
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
|
|
1081
|
+
* billingModel, billingCadence, billingCountryCode) combination. Plans and addons
|
|
1082
|
+
* own many of these — one per currency / billing period / feature.
|
|
1083
|
+
*/
|
|
1084
|
+
export interface PlanListOverageChargesResponse {
|
|
1085
|
+
/**
|
|
1086
|
+
* Unique identifier of the charge
|
|
1087
|
+
*/
|
|
1088
|
+
id: string;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* The billing cadence (RECURRING or ONE_OFF)
|
|
1092
|
+
*/
|
|
1093
|
+
billingCadence: 'RECURRING' | 'ONE_OFF';
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
|
|
1097
|
+
*/
|
|
1098
|
+
billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* The billing period (MONTHLY or ANNUALLY)
|
|
1102
|
+
*/
|
|
1103
|
+
billingPeriod: 'MONTHLY' | 'ANNUALLY';
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Timestamp when the charge was created
|
|
1107
|
+
*/
|
|
1108
|
+
createdAt: string;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* ISO country code for localized pricing, if any
|
|
1112
|
+
*/
|
|
1113
|
+
billingCountryCode?: string | null;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Identifier in the external billing integration (e.g. Stripe price id), if any
|
|
1117
|
+
*/
|
|
1118
|
+
billingId?: string | null;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Block size for usage-based pricing
|
|
1122
|
+
*/
|
|
1123
|
+
blockSize?: number | null;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* When credits are granted (for credit-based pricing)
|
|
1127
|
+
*/
|
|
1128
|
+
creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Credit rate configuration for credit-based pricing
|
|
1132
|
+
*/
|
|
1133
|
+
creditRate?: PlanListOverageChargesResponse.CreditRate | null;
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Identifier in the linked CRM, if any
|
|
1137
|
+
*/
|
|
1138
|
+
crmId?: string | null;
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Deep link to the charge in the linked CRM, if any
|
|
1142
|
+
*/
|
|
1143
|
+
crmLinkUrl?: string | null;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* The feature this charge meters, if metered
|
|
1147
|
+
*/
|
|
1148
|
+
featureId?: string | null;
|
|
1149
|
+
|
|
1150
|
+
/**
|
|
1151
|
+
* Maximum unit quantity that can be purchased
|
|
1152
|
+
*/
|
|
1153
|
+
maxUnitQuantity?: number | null;
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Minimum unit quantity that can be purchased
|
|
1157
|
+
*/
|
|
1158
|
+
minUnitQuantity?: number | null;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* The flat price amount and currency, when applicable
|
|
1162
|
+
*/
|
|
1163
|
+
price?: PlanListOverageChargesResponse.Price | null;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Tiered pricing rows when the charge is tiered
|
|
1167
|
+
*/
|
|
1168
|
+
tiers?: Array<PlanListOverageChargesResponse.Tier> | null;
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
|
|
1172
|
+
*/
|
|
1173
|
+
tiersMode?: 'VOLUME' | 'GRADUATED' | null;
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Custom currency identifier for top-up pricing, if any
|
|
1177
|
+
*/
|
|
1178
|
+
topUpCustomCurrencyId?: string | null;
|
|
1179
|
+
|
|
1180
|
+
/**
|
|
1181
|
+
* True if this charge is referenced by at least one subscription
|
|
1182
|
+
*/
|
|
1183
|
+
usedInSubscriptions?: boolean | null;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
export namespace PlanListOverageChargesResponse {
|
|
1187
|
+
/**
|
|
1188
|
+
* Credit rate configuration for credit-based pricing
|
|
1189
|
+
*/
|
|
1190
|
+
export interface CreditRate {
|
|
1191
|
+
/**
|
|
1192
|
+
* Credit rate amount
|
|
1193
|
+
*/
|
|
1194
|
+
amount: number;
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Custom currency identifier
|
|
1198
|
+
*/
|
|
1199
|
+
currencyId: string;
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Optional cost formula expression
|
|
1203
|
+
*/
|
|
1204
|
+
costFormula?: string | null;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* The flat price amount and currency, when applicable
|
|
1209
|
+
*/
|
|
1210
|
+
export interface Price {
|
|
1211
|
+
/**
|
|
1212
|
+
* The price amount
|
|
1213
|
+
*/
|
|
1214
|
+
amount: number;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* ISO 4217 currency code
|
|
1218
|
+
*/
|
|
1219
|
+
currency:
|
|
1220
|
+
| 'usd'
|
|
1221
|
+
| 'aed'
|
|
1222
|
+
| 'all'
|
|
1223
|
+
| 'amd'
|
|
1224
|
+
| 'ang'
|
|
1225
|
+
| 'aud'
|
|
1226
|
+
| 'awg'
|
|
1227
|
+
| 'azn'
|
|
1228
|
+
| 'bam'
|
|
1229
|
+
| 'bbd'
|
|
1230
|
+
| 'bdt'
|
|
1231
|
+
| 'bgn'
|
|
1232
|
+
| 'bif'
|
|
1233
|
+
| 'bmd'
|
|
1234
|
+
| 'bnd'
|
|
1235
|
+
| 'bsd'
|
|
1236
|
+
| 'bwp'
|
|
1237
|
+
| 'byn'
|
|
1238
|
+
| 'bzd'
|
|
1239
|
+
| 'brl'
|
|
1240
|
+
| 'cad'
|
|
1241
|
+
| 'cdf'
|
|
1242
|
+
| 'chf'
|
|
1243
|
+
| 'cny'
|
|
1244
|
+
| 'czk'
|
|
1245
|
+
| 'dkk'
|
|
1246
|
+
| 'dop'
|
|
1247
|
+
| 'dzd'
|
|
1248
|
+
| 'egp'
|
|
1249
|
+
| 'etb'
|
|
1250
|
+
| 'eur'
|
|
1251
|
+
| 'fjd'
|
|
1252
|
+
| 'gbp'
|
|
1253
|
+
| 'gel'
|
|
1254
|
+
| 'gip'
|
|
1255
|
+
| 'gmd'
|
|
1256
|
+
| 'gyd'
|
|
1257
|
+
| 'hkd'
|
|
1258
|
+
| 'hrk'
|
|
1259
|
+
| 'htg'
|
|
1260
|
+
| 'idr'
|
|
1261
|
+
| 'ils'
|
|
1262
|
+
| 'inr'
|
|
1263
|
+
| 'isk'
|
|
1264
|
+
| 'jmd'
|
|
1265
|
+
| 'jpy'
|
|
1266
|
+
| 'kes'
|
|
1267
|
+
| 'kgs'
|
|
1268
|
+
| 'khr'
|
|
1269
|
+
| 'kmf'
|
|
1270
|
+
| 'krw'
|
|
1271
|
+
| 'kyd'
|
|
1272
|
+
| 'kzt'
|
|
1273
|
+
| 'lbp'
|
|
1274
|
+
| 'lkr'
|
|
1275
|
+
| 'lrd'
|
|
1276
|
+
| 'lsl'
|
|
1277
|
+
| 'mad'
|
|
1278
|
+
| 'mdl'
|
|
1279
|
+
| 'mga'
|
|
1280
|
+
| 'mkd'
|
|
1281
|
+
| 'mmk'
|
|
1282
|
+
| 'mnt'
|
|
1283
|
+
| 'mop'
|
|
1284
|
+
| 'mro'
|
|
1285
|
+
| 'mvr'
|
|
1286
|
+
| 'mwk'
|
|
1287
|
+
| 'mxn'
|
|
1288
|
+
| 'myr'
|
|
1289
|
+
| 'mzn'
|
|
1290
|
+
| 'nad'
|
|
1291
|
+
| 'ngn'
|
|
1292
|
+
| 'nok'
|
|
1293
|
+
| 'npr'
|
|
1294
|
+
| 'nzd'
|
|
1295
|
+
| 'pgk'
|
|
1296
|
+
| 'php'
|
|
1297
|
+
| 'pkr'
|
|
1298
|
+
| 'pln'
|
|
1299
|
+
| 'qar'
|
|
1300
|
+
| 'ron'
|
|
1301
|
+
| 'rsd'
|
|
1302
|
+
| 'rub'
|
|
1303
|
+
| 'rwf'
|
|
1304
|
+
| 'sar'
|
|
1305
|
+
| 'sbd'
|
|
1306
|
+
| 'scr'
|
|
1307
|
+
| 'sek'
|
|
1308
|
+
| 'sgd'
|
|
1309
|
+
| 'sle'
|
|
1310
|
+
| 'sll'
|
|
1311
|
+
| 'sos'
|
|
1312
|
+
| 'szl'
|
|
1313
|
+
| 'thb'
|
|
1314
|
+
| 'tjs'
|
|
1315
|
+
| 'top'
|
|
1316
|
+
| 'try'
|
|
1317
|
+
| 'ttd'
|
|
1318
|
+
| 'tzs'
|
|
1319
|
+
| 'uah'
|
|
1320
|
+
| 'uzs'
|
|
1321
|
+
| 'vnd'
|
|
1322
|
+
| 'vuv'
|
|
1323
|
+
| 'wst'
|
|
1324
|
+
| 'xaf'
|
|
1325
|
+
| 'xcd'
|
|
1326
|
+
| 'yer'
|
|
1327
|
+
| 'zar'
|
|
1328
|
+
| 'zmw'
|
|
1329
|
+
| 'clp'
|
|
1330
|
+
| 'djf'
|
|
1331
|
+
| 'gnf'
|
|
1332
|
+
| 'ugx'
|
|
1333
|
+
| 'pyg'
|
|
1334
|
+
| 'xof'
|
|
1335
|
+
| 'xpf';
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
/**
|
|
1339
|
+
* A single tier within a tiered charge
|
|
1340
|
+
*/
|
|
1341
|
+
export interface Tier {
|
|
1342
|
+
/**
|
|
1343
|
+
* Flat price for this tier
|
|
1344
|
+
*/
|
|
1345
|
+
flatPrice?: Tier.FlatPrice | null;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Per-unit price in this tier
|
|
1349
|
+
*/
|
|
1350
|
+
unitPrice?: Tier.UnitPrice | null;
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Upper bound of this tier (null for unlimited)
|
|
1354
|
+
*/
|
|
1355
|
+
upTo?: number | null;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
export namespace Tier {
|
|
1359
|
+
/**
|
|
1360
|
+
* Flat price for this tier
|
|
1361
|
+
*/
|
|
1362
|
+
export interface FlatPrice {
|
|
1363
|
+
/**
|
|
1364
|
+
* The price amount
|
|
1365
|
+
*/
|
|
1366
|
+
amount: number;
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* ISO 4217 currency code
|
|
1370
|
+
*/
|
|
1371
|
+
currency:
|
|
1372
|
+
| 'usd'
|
|
1373
|
+
| 'aed'
|
|
1374
|
+
| 'all'
|
|
1375
|
+
| 'amd'
|
|
1376
|
+
| 'ang'
|
|
1377
|
+
| 'aud'
|
|
1378
|
+
| 'awg'
|
|
1379
|
+
| 'azn'
|
|
1380
|
+
| 'bam'
|
|
1381
|
+
| 'bbd'
|
|
1382
|
+
| 'bdt'
|
|
1383
|
+
| 'bgn'
|
|
1384
|
+
| 'bif'
|
|
1385
|
+
| 'bmd'
|
|
1386
|
+
| 'bnd'
|
|
1387
|
+
| 'bsd'
|
|
1388
|
+
| 'bwp'
|
|
1389
|
+
| 'byn'
|
|
1390
|
+
| 'bzd'
|
|
1391
|
+
| 'brl'
|
|
1392
|
+
| 'cad'
|
|
1393
|
+
| 'cdf'
|
|
1394
|
+
| 'chf'
|
|
1395
|
+
| 'cny'
|
|
1396
|
+
| 'czk'
|
|
1397
|
+
| 'dkk'
|
|
1398
|
+
| 'dop'
|
|
1399
|
+
| 'dzd'
|
|
1400
|
+
| 'egp'
|
|
1401
|
+
| 'etb'
|
|
1402
|
+
| 'eur'
|
|
1403
|
+
| 'fjd'
|
|
1404
|
+
| 'gbp'
|
|
1405
|
+
| 'gel'
|
|
1406
|
+
| 'gip'
|
|
1407
|
+
| 'gmd'
|
|
1408
|
+
| 'gyd'
|
|
1409
|
+
| 'hkd'
|
|
1410
|
+
| 'hrk'
|
|
1411
|
+
| 'htg'
|
|
1412
|
+
| 'idr'
|
|
1413
|
+
| 'ils'
|
|
1414
|
+
| 'inr'
|
|
1415
|
+
| 'isk'
|
|
1416
|
+
| 'jmd'
|
|
1417
|
+
| 'jpy'
|
|
1418
|
+
| 'kes'
|
|
1419
|
+
| 'kgs'
|
|
1420
|
+
| 'khr'
|
|
1421
|
+
| 'kmf'
|
|
1422
|
+
| 'krw'
|
|
1423
|
+
| 'kyd'
|
|
1424
|
+
| 'kzt'
|
|
1425
|
+
| 'lbp'
|
|
1426
|
+
| 'lkr'
|
|
1427
|
+
| 'lrd'
|
|
1428
|
+
| 'lsl'
|
|
1429
|
+
| 'mad'
|
|
1430
|
+
| 'mdl'
|
|
1431
|
+
| 'mga'
|
|
1432
|
+
| 'mkd'
|
|
1433
|
+
| 'mmk'
|
|
1434
|
+
| 'mnt'
|
|
1435
|
+
| 'mop'
|
|
1436
|
+
| 'mro'
|
|
1437
|
+
| 'mvr'
|
|
1438
|
+
| 'mwk'
|
|
1439
|
+
| 'mxn'
|
|
1440
|
+
| 'myr'
|
|
1441
|
+
| 'mzn'
|
|
1442
|
+
| 'nad'
|
|
1443
|
+
| 'ngn'
|
|
1444
|
+
| 'nok'
|
|
1445
|
+
| 'npr'
|
|
1446
|
+
| 'nzd'
|
|
1447
|
+
| 'pgk'
|
|
1448
|
+
| 'php'
|
|
1449
|
+
| 'pkr'
|
|
1450
|
+
| 'pln'
|
|
1451
|
+
| 'qar'
|
|
1452
|
+
| 'ron'
|
|
1453
|
+
| 'rsd'
|
|
1454
|
+
| 'rub'
|
|
1455
|
+
| 'rwf'
|
|
1456
|
+
| 'sar'
|
|
1457
|
+
| 'sbd'
|
|
1458
|
+
| 'scr'
|
|
1459
|
+
| 'sek'
|
|
1460
|
+
| 'sgd'
|
|
1461
|
+
| 'sle'
|
|
1462
|
+
| 'sll'
|
|
1463
|
+
| 'sos'
|
|
1464
|
+
| 'szl'
|
|
1465
|
+
| 'thb'
|
|
1466
|
+
| 'tjs'
|
|
1467
|
+
| 'top'
|
|
1468
|
+
| 'try'
|
|
1469
|
+
| 'ttd'
|
|
1470
|
+
| 'tzs'
|
|
1471
|
+
| 'uah'
|
|
1472
|
+
| 'uzs'
|
|
1473
|
+
| 'vnd'
|
|
1474
|
+
| 'vuv'
|
|
1475
|
+
| 'wst'
|
|
1476
|
+
| 'xaf'
|
|
1477
|
+
| 'xcd'
|
|
1478
|
+
| 'yer'
|
|
1479
|
+
| 'zar'
|
|
1480
|
+
| 'zmw'
|
|
1481
|
+
| 'clp'
|
|
1482
|
+
| 'djf'
|
|
1483
|
+
| 'gnf'
|
|
1484
|
+
| 'ugx'
|
|
1485
|
+
| 'pyg'
|
|
1486
|
+
| 'xof'
|
|
1487
|
+
| 'xpf';
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Per-unit price in this tier
|
|
1492
|
+
*/
|
|
1493
|
+
export interface UnitPrice {
|
|
1494
|
+
/**
|
|
1495
|
+
* The price amount
|
|
1496
|
+
*/
|
|
1497
|
+
amount: number;
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* ISO 4217 currency code
|
|
1501
|
+
*/
|
|
1502
|
+
currency:
|
|
1503
|
+
| 'usd'
|
|
1504
|
+
| 'aed'
|
|
1505
|
+
| 'all'
|
|
1506
|
+
| 'amd'
|
|
1507
|
+
| 'ang'
|
|
1508
|
+
| 'aud'
|
|
1509
|
+
| 'awg'
|
|
1510
|
+
| 'azn'
|
|
1511
|
+
| 'bam'
|
|
1512
|
+
| 'bbd'
|
|
1513
|
+
| 'bdt'
|
|
1514
|
+
| 'bgn'
|
|
1515
|
+
| 'bif'
|
|
1516
|
+
| 'bmd'
|
|
1517
|
+
| 'bnd'
|
|
1518
|
+
| 'bsd'
|
|
1519
|
+
| 'bwp'
|
|
1520
|
+
| 'byn'
|
|
1521
|
+
| 'bzd'
|
|
1522
|
+
| 'brl'
|
|
1523
|
+
| 'cad'
|
|
1524
|
+
| 'cdf'
|
|
1525
|
+
| 'chf'
|
|
1526
|
+
| 'cny'
|
|
1527
|
+
| 'czk'
|
|
1528
|
+
| 'dkk'
|
|
1529
|
+
| 'dop'
|
|
1530
|
+
| 'dzd'
|
|
1531
|
+
| 'egp'
|
|
1532
|
+
| 'etb'
|
|
1533
|
+
| 'eur'
|
|
1534
|
+
| 'fjd'
|
|
1535
|
+
| 'gbp'
|
|
1536
|
+
| 'gel'
|
|
1537
|
+
| 'gip'
|
|
1538
|
+
| 'gmd'
|
|
1539
|
+
| 'gyd'
|
|
1540
|
+
| 'hkd'
|
|
1541
|
+
| 'hrk'
|
|
1542
|
+
| 'htg'
|
|
1543
|
+
| 'idr'
|
|
1544
|
+
| 'ils'
|
|
1545
|
+
| 'inr'
|
|
1546
|
+
| 'isk'
|
|
1547
|
+
| 'jmd'
|
|
1548
|
+
| 'jpy'
|
|
1549
|
+
| 'kes'
|
|
1550
|
+
| 'kgs'
|
|
1551
|
+
| 'khr'
|
|
1552
|
+
| 'kmf'
|
|
1553
|
+
| 'krw'
|
|
1554
|
+
| 'kyd'
|
|
1555
|
+
| 'kzt'
|
|
1556
|
+
| 'lbp'
|
|
1557
|
+
| 'lkr'
|
|
1558
|
+
| 'lrd'
|
|
1559
|
+
| 'lsl'
|
|
1560
|
+
| 'mad'
|
|
1561
|
+
| 'mdl'
|
|
1562
|
+
| 'mga'
|
|
1563
|
+
| 'mkd'
|
|
1564
|
+
| 'mmk'
|
|
1565
|
+
| 'mnt'
|
|
1566
|
+
| 'mop'
|
|
1567
|
+
| 'mro'
|
|
1568
|
+
| 'mvr'
|
|
1569
|
+
| 'mwk'
|
|
1570
|
+
| 'mxn'
|
|
1571
|
+
| 'myr'
|
|
1572
|
+
| 'mzn'
|
|
1573
|
+
| 'nad'
|
|
1574
|
+
| 'ngn'
|
|
1575
|
+
| 'nok'
|
|
1576
|
+
| 'npr'
|
|
1577
|
+
| 'nzd'
|
|
1578
|
+
| 'pgk'
|
|
1579
|
+
| 'php'
|
|
1580
|
+
| 'pkr'
|
|
1581
|
+
| 'pln'
|
|
1582
|
+
| 'qar'
|
|
1583
|
+
| 'ron'
|
|
1584
|
+
| 'rsd'
|
|
1585
|
+
| 'rub'
|
|
1586
|
+
| 'rwf'
|
|
1587
|
+
| 'sar'
|
|
1588
|
+
| 'sbd'
|
|
1589
|
+
| 'scr'
|
|
1590
|
+
| 'sek'
|
|
1591
|
+
| 'sgd'
|
|
1592
|
+
| 'sle'
|
|
1593
|
+
| 'sll'
|
|
1594
|
+
| 'sos'
|
|
1595
|
+
| 'szl'
|
|
1596
|
+
| 'thb'
|
|
1597
|
+
| 'tjs'
|
|
1598
|
+
| 'top'
|
|
1599
|
+
| 'try'
|
|
1600
|
+
| 'ttd'
|
|
1601
|
+
| 'tzs'
|
|
1602
|
+
| 'uah'
|
|
1603
|
+
| 'uzs'
|
|
1604
|
+
| 'vnd'
|
|
1605
|
+
| 'vuv'
|
|
1606
|
+
| 'wst'
|
|
1607
|
+
| 'xaf'
|
|
1608
|
+
| 'xcd'
|
|
1609
|
+
| 'yer'
|
|
1610
|
+
| 'zar'
|
|
1611
|
+
| 'zmw'
|
|
1612
|
+
| 'clp'
|
|
1613
|
+
| 'djf'
|
|
1614
|
+
| 'gnf'
|
|
1615
|
+
| 'ugx'
|
|
1616
|
+
| 'pyg'
|
|
1617
|
+
| 'xof'
|
|
1618
|
+
| 'xpf';
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
|
|
377
1623
|
/**
|
|
378
1624
|
* Response containing task ID for publish operation
|
|
379
1625
|
*/
|
|
@@ -408,54 +1654,67 @@ export namespace PlanRemoveDraftResponse {
|
|
|
408
1654
|
|
|
409
1655
|
export interface PlanCreateParams {
|
|
410
1656
|
/**
|
|
411
|
-
* The unique identifier for the entity
|
|
1657
|
+
* Body param: The unique identifier for the entity
|
|
412
1658
|
*/
|
|
413
1659
|
id: string;
|
|
414
1660
|
|
|
415
1661
|
/**
|
|
416
|
-
* The display name of the package
|
|
1662
|
+
* Body param: The display name of the package
|
|
417
1663
|
*/
|
|
418
1664
|
displayName: string;
|
|
419
1665
|
|
|
420
1666
|
/**
|
|
421
|
-
* The product ID to associate the plan with
|
|
1667
|
+
* Body param: The product ID to associate the plan with
|
|
422
1668
|
*/
|
|
423
1669
|
productId: string;
|
|
424
1670
|
|
|
425
1671
|
/**
|
|
426
|
-
* The unique identifier for the entity in the billing provider
|
|
1672
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
427
1673
|
*/
|
|
428
1674
|
billingId?: string | null;
|
|
429
1675
|
|
|
430
1676
|
/**
|
|
431
|
-
* Default trial configuration for the plan
|
|
1677
|
+
* Body param: Default trial configuration for the plan
|
|
432
1678
|
*/
|
|
433
1679
|
defaultTrialConfig?: PlanCreateParams.DefaultTrialConfig | null;
|
|
434
1680
|
|
|
435
1681
|
/**
|
|
436
|
-
* The description of the package
|
|
1682
|
+
* Body param: The description of the package
|
|
437
1683
|
*/
|
|
438
1684
|
description?: string | null;
|
|
439
1685
|
|
|
440
1686
|
/**
|
|
441
|
-
* Metadata associated with the entity
|
|
1687
|
+
* Body param: Metadata associated with the entity
|
|
442
1688
|
*/
|
|
443
1689
|
metadata?: { [key: string]: string };
|
|
444
1690
|
|
|
445
1691
|
/**
|
|
446
|
-
* The ID of the parent plan, if applicable
|
|
1692
|
+
* Body param: The ID of the parent plan, if applicable
|
|
447
1693
|
*/
|
|
448
1694
|
parentPlanId?: string | null;
|
|
449
1695
|
|
|
450
1696
|
/**
|
|
451
|
-
* The pricing type of the package
|
|
1697
|
+
* Body param: The pricing type of the package
|
|
452
1698
|
*/
|
|
453
1699
|
pricingType?: 'FREE' | 'PAID' | 'CUSTOM' | null;
|
|
454
1700
|
|
|
455
1701
|
/**
|
|
456
|
-
* The status of the package
|
|
1702
|
+
* Body param: The status of the package
|
|
457
1703
|
*/
|
|
458
1704
|
status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1708
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1709
|
+
*/
|
|
1710
|
+
'X-ACCOUNT-ID'?: string;
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1714
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1715
|
+
* intrinsic to the key).
|
|
1716
|
+
*/
|
|
1717
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
459
1718
|
}
|
|
460
1719
|
|
|
461
1720
|
export namespace PlanCreateParams {
|
|
@@ -502,43 +1761,74 @@ export namespace PlanCreateParams {
|
|
|
502
1761
|
}
|
|
503
1762
|
}
|
|
504
1763
|
|
|
1764
|
+
export interface PlanRetrieveParams {
|
|
1765
|
+
/**
|
|
1766
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
1767
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
1768
|
+
*/
|
|
1769
|
+
'X-ACCOUNT-ID'?: string;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
1773
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
1774
|
+
* key).
|
|
1775
|
+
*/
|
|
1776
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1777
|
+
}
|
|
1778
|
+
|
|
505
1779
|
export interface PlanUpdateParams {
|
|
506
1780
|
/**
|
|
507
|
-
* The unique identifier for the entity in the billing provider
|
|
1781
|
+
* Body param: The unique identifier for the entity in the billing provider
|
|
508
1782
|
*/
|
|
509
1783
|
billingId?: string | null;
|
|
510
1784
|
|
|
511
1785
|
/**
|
|
512
|
-
* Pricing configuration to set on the plan draft
|
|
1786
|
+
* Body param: Pricing configuration to set on the plan draft
|
|
513
1787
|
*/
|
|
514
1788
|
charges?: PlanUpdateParams.Charges;
|
|
515
1789
|
|
|
1790
|
+
/**
|
|
1791
|
+
* Body param
|
|
1792
|
+
*/
|
|
516
1793
|
compatibleAddonIds?: Array<string> | null;
|
|
517
1794
|
|
|
518
1795
|
/**
|
|
519
|
-
* Default trial configuration for the plan
|
|
1796
|
+
* Body param: Default trial configuration for the plan
|
|
520
1797
|
*/
|
|
521
1798
|
defaultTrialConfig?: PlanUpdateParams.DefaultTrialConfig | null;
|
|
522
1799
|
|
|
523
1800
|
/**
|
|
524
|
-
* The description of the package
|
|
1801
|
+
* Body param: The description of the package
|
|
525
1802
|
*/
|
|
526
1803
|
description?: string | null;
|
|
527
1804
|
|
|
528
1805
|
/**
|
|
529
|
-
* The display name of the package
|
|
1806
|
+
* Body param: The display name of the package
|
|
530
1807
|
*/
|
|
531
1808
|
displayName?: string;
|
|
532
1809
|
|
|
533
1810
|
/**
|
|
534
|
-
* Metadata associated with the entity
|
|
1811
|
+
* Body param: Metadata associated with the entity
|
|
535
1812
|
*/
|
|
536
1813
|
metadata?: { [key: string]: string };
|
|
537
1814
|
|
|
538
1815
|
/**
|
|
539
|
-
* The ID of the parent plan, if applicable
|
|
1816
|
+
* Body param: The ID of the parent plan, if applicable
|
|
540
1817
|
*/
|
|
541
1818
|
parentPlanId?: string | null;
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
1822
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
1823
|
+
*/
|
|
1824
|
+
'X-ACCOUNT-ID'?: string;
|
|
1825
|
+
|
|
1826
|
+
/**
|
|
1827
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
1828
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
1829
|
+
* intrinsic to the key).
|
|
1830
|
+
*/
|
|
1831
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
542
1832
|
}
|
|
543
1833
|
|
|
544
1834
|
export namespace PlanUpdateParams {
|
|
@@ -1953,19 +3243,33 @@ export namespace PlanUpdateParams {
|
|
|
1953
3243
|
|
|
1954
3244
|
export interface PlanListParams extends MyCursorIDPageParams {
|
|
1955
3245
|
/**
|
|
1956
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
3246
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
1957
3247
|
*/
|
|
1958
3248
|
createdAt?: PlanListParams.CreatedAt;
|
|
1959
3249
|
|
|
1960
3250
|
/**
|
|
1961
|
-
* Filter by product ID
|
|
3251
|
+
* Query param: Filter by product ID
|
|
1962
3252
|
*/
|
|
1963
3253
|
productId?: string;
|
|
1964
3254
|
|
|
1965
3255
|
/**
|
|
1966
|
-
* Filter by status. Supports comma-separated values for multiple
|
|
3256
|
+
* Query param: Filter by status. Supports comma-separated values for multiple
|
|
3257
|
+
* statuses
|
|
1967
3258
|
*/
|
|
1968
3259
|
status?: Array<'DRAFT' | 'PUBLISHED' | 'ARCHIVED'>;
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3263
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3264
|
+
*/
|
|
3265
|
+
'X-ACCOUNT-ID'?: string;
|
|
3266
|
+
|
|
3267
|
+
/**
|
|
3268
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3269
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3270
|
+
* intrinsic to the key).
|
|
3271
|
+
*/
|
|
3272
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
1969
3273
|
}
|
|
1970
3274
|
|
|
1971
3275
|
export namespace PlanListParams {
|
|
@@ -1995,11 +3299,99 @@ export namespace PlanListParams {
|
|
|
1995
3299
|
}
|
|
1996
3300
|
}
|
|
1997
3301
|
|
|
3302
|
+
export interface PlanArchiveParams {
|
|
3303
|
+
/**
|
|
3304
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3305
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3306
|
+
*/
|
|
3307
|
+
'X-ACCOUNT-ID'?: string;
|
|
3308
|
+
|
|
3309
|
+
/**
|
|
3310
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3311
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3312
|
+
* key).
|
|
3313
|
+
*/
|
|
3314
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
export interface PlanCreateDraftParams {
|
|
3318
|
+
/**
|
|
3319
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3320
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3321
|
+
*/
|
|
3322
|
+
'X-ACCOUNT-ID'?: string;
|
|
3323
|
+
|
|
3324
|
+
/**
|
|
3325
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3326
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3327
|
+
* key).
|
|
3328
|
+
*/
|
|
3329
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3330
|
+
}
|
|
3331
|
+
|
|
3332
|
+
export interface PlanListChargesParams extends MyCursorIDPageParams {
|
|
3333
|
+
/**
|
|
3334
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3335
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3336
|
+
*/
|
|
3337
|
+
'X-ACCOUNT-ID'?: string;
|
|
3338
|
+
|
|
3339
|
+
/**
|
|
3340
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3341
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3342
|
+
* intrinsic to the key).
|
|
3343
|
+
*/
|
|
3344
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
export interface PlanListOverageChargesParams extends MyCursorIDPageParams {
|
|
3348
|
+
/**
|
|
3349
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3350
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3351
|
+
*/
|
|
3352
|
+
'X-ACCOUNT-ID'?: string;
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3356
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3357
|
+
* intrinsic to the key).
|
|
3358
|
+
*/
|
|
3359
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3360
|
+
}
|
|
3361
|
+
|
|
1998
3362
|
export interface PlanPublishParams {
|
|
1999
3363
|
/**
|
|
2000
|
-
* The migration type of the package
|
|
3364
|
+
* Body param: The migration type of the package
|
|
2001
3365
|
*/
|
|
2002
3366
|
migrationType: 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS';
|
|
3367
|
+
|
|
3368
|
+
/**
|
|
3369
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
3370
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
3371
|
+
*/
|
|
3372
|
+
'X-ACCOUNT-ID'?: string;
|
|
3373
|
+
|
|
3374
|
+
/**
|
|
3375
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
3376
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
3377
|
+
* intrinsic to the key).
|
|
3378
|
+
*/
|
|
3379
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
export interface PlanRemoveDraftParams {
|
|
3383
|
+
/**
|
|
3384
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
3385
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
3386
|
+
*/
|
|
3387
|
+
'X-ACCOUNT-ID'?: string;
|
|
3388
|
+
|
|
3389
|
+
/**
|
|
3390
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
3391
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
3392
|
+
* key).
|
|
3393
|
+
*/
|
|
3394
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
2003
3395
|
}
|
|
2004
3396
|
|
|
2005
3397
|
Plans.Entitlements = Entitlements;
|
|
@@ -2008,13 +3400,23 @@ export declare namespace Plans {
|
|
|
2008
3400
|
export {
|
|
2009
3401
|
type Plan as Plan,
|
|
2010
3402
|
type PlanListResponse as PlanListResponse,
|
|
3403
|
+
type PlanListChargesResponse as PlanListChargesResponse,
|
|
3404
|
+
type PlanListOverageChargesResponse as PlanListOverageChargesResponse,
|
|
2011
3405
|
type PlanPublishResponse as PlanPublishResponse,
|
|
2012
3406
|
type PlanRemoveDraftResponse as PlanRemoveDraftResponse,
|
|
2013
3407
|
type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage,
|
|
3408
|
+
type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage,
|
|
3409
|
+
type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage,
|
|
2014
3410
|
type PlanCreateParams as PlanCreateParams,
|
|
3411
|
+
type PlanRetrieveParams as PlanRetrieveParams,
|
|
2015
3412
|
type PlanUpdateParams as PlanUpdateParams,
|
|
2016
3413
|
type PlanListParams as PlanListParams,
|
|
3414
|
+
type PlanArchiveParams as PlanArchiveParams,
|
|
3415
|
+
type PlanCreateDraftParams as PlanCreateDraftParams,
|
|
3416
|
+
type PlanListChargesParams as PlanListChargesParams,
|
|
3417
|
+
type PlanListOverageChargesParams as PlanListOverageChargesParams,
|
|
2017
3418
|
type PlanPublishParams as PlanPublishParams,
|
|
3419
|
+
type PlanRemoveDraftParams as PlanRemoveDraftParams,
|
|
2018
3420
|
};
|
|
2019
3421
|
|
|
2020
3422
|
export {
|
|
@@ -2024,6 +3426,7 @@ export declare namespace Plans {
|
|
|
2024
3426
|
type EntitlementListResponse as EntitlementListResponse,
|
|
2025
3427
|
type EntitlementCreateParams as EntitlementCreateParams,
|
|
2026
3428
|
type EntitlementUpdateParams as EntitlementUpdateParams,
|
|
3429
|
+
type EntitlementListParams as EntitlementListParams,
|
|
2027
3430
|
type EntitlementDeleteParams as EntitlementDeleteParams,
|
|
2028
3431
|
};
|
|
2029
3432
|
}
|