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