@stigg/typescript 0.1.0-beta.20 → 0.1.0-beta.22
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 +16 -0
- 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 +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +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 +145 -94
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +145 -94
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -76
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -76
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +62 -36
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +62 -36
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -39
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -39
- 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/coupons.d.mts +81 -57
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +81 -57
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -45
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -45
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +60 -52
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +60 -52
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -30
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -30
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +98 -74
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +98 -74
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -61
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -61
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +63 -54
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +63 -54
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -33
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -33
- 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/customers/customers.d.mts +167 -127
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +167 -127
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -96
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -96
- 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 +66 -58
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +66 -58
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -56
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -56
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +33 -25
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +33 -25
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -20
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -20
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +42 -60
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +42 -60
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -57
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -57
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/data-export/data-export.d.mts +29 -21
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
- package/resources/v1/events/data-export/data-export.d.ts +29 -21
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
- package/resources/v1/events/data-export/data-export.js +27 -18
- package/resources/v1/events/data-export/data-export.js.map +1 -1
- package/resources/v1/events/data-export/data-export.mjs +27 -18
- package/resources/v1/events/data-export/data-export.mjs.map +1 -1
- package/resources/v1/events/data-export/destinations.d.mts +29 -22
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +29 -22
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +26 -21
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +26 -21
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/data-export/index.d.mts +1 -1
- package/resources/v1/events/data-export/index.d.mts.map +1 -1
- package/resources/v1/events/data-export/index.d.ts +1 -1
- package/resources/v1/events/data-export/index.d.ts.map +1 -1
- package/resources/v1/events/data-export/index.js.map +1 -1
- package/resources/v1/events/data-export/index.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +13 -19
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +13 -19
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +14 -19
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +14 -19
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/events/index.d.mts +0 -1
- package/resources/v1/events/index.d.mts.map +1 -1
- package/resources/v1/events/index.d.ts +0 -1
- package/resources/v1/events/index.d.ts.map +1 -1
- package/resources/v1/events/index.js +3 -5
- package/resources/v1/events/index.js.map +1 -1
- package/resources/v1/events/index.mjs +0 -1
- package/resources/v1/events/index.mjs.map +1 -1
- package/resources/v1/features.d.mts +109 -74
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +109 -74
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -54
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -54
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +7 -7
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +7 -7
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +62 -36
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +62 -36
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -39
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -39
- 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 +159 -106
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +159 -106
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -89
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -89
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -66
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -66
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -54
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -54
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -19
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -19
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -20
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -20
- 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 -8
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -8
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -8
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -8
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +244 -161
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +244 -161
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -100
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -102
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -17
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -17
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -17
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -17
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +24 -26
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +24 -26
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -28
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -28
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +14 -14
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +14 -14
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +242 -0
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
- package/resources/v1-beta/customers/assignments.d.ts +242 -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/events/beta → v1-beta}/customers/customers.d.mts +1 -1
- package/resources/v1-beta/customers/customers.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.d.ts +1 -1
- package/resources/v1-beta/customers/customers.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.js +2 -2
- package/resources/v1-beta/customers/customers.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/customers.mjs +1 -1
- package/resources/v1-beta/customers/customers.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.mts +94 -47
- package/resources/v1-beta/customers/entities.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +94 -47
- 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/events/beta → v1-beta}/customers/entitlements.d.mts +27 -16
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +27 -16
- 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.map +1 -0
- package/resources/v1-beta/customers/index.d.ts.map +1 -0
- package/resources/v1-beta/customers/index.js.map +1 -0
- package/resources/v1-beta/customers/index.mjs.map +1 -0
- package/resources/v1-beta/customers.d.mts.map +1 -0
- package/resources/v1-beta/customers.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/customers.js +1 -1
- package/resources/v1-beta/customers.js.map +1 -0
- package/resources/v1-beta/customers.mjs.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.mts +44 -23
- package/resources/v1-beta/entity-types.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +44 -23
- 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/events/beta → v1-beta}/index.d.mts +1 -1
- package/resources/v1-beta/index.d.mts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.d.ts +1 -1
- package/resources/v1-beta/index.d.ts.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.js +3 -3
- package/resources/v1-beta/index.js.map +1 -0
- package/resources/{v1/events/beta → v1-beta}/index.mjs +1 -1
- package/resources/v1-beta/index.mjs.map +1 -0
- package/resources/{v1/events/beta/beta.d.mts → v1-beta/v1-beta.d.mts} +4 -4
- package/resources/v1-beta/v1-beta.d.mts.map +1 -0
- package/resources/{v1/events/beta/beta.d.ts → v1-beta/v1-beta.d.ts} +4 -4
- package/resources/v1-beta/v1-beta.d.ts.map +1 -0
- package/resources/{v1/events/beta/beta.js → v1-beta/v1-beta.js} +8 -8
- package/resources/v1-beta/v1-beta.js.map +1 -0
- package/resources/{v1/events/beta/beta.mjs → v1-beta/v1-beta.mjs} +5 -5
- 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/events/beta.js → v1-beta.js} +3 -3
- package/resources/v1-beta.js.map +1 -0
- package/resources/{v1/events/beta.mjs → v1-beta.mjs} +2 -2
- package/resources/v1-beta.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/v1/addons/addons.ts +293 -105
- package/src/resources/v1/addons/entitlements.ts +123 -41
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +158 -63
- package/src/resources/v1/credits/credits.ts +103 -50
- package/src/resources/v1/credits/custom-currencies.ts +191 -82
- package/src/resources/v1/credits/grants.ts +104 -54
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +324 -140
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +129 -63
- package/src/resources/v1/customers/payment-method.ts +66 -25
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -62
- package/src/resources/v1/events/data-export/data-export.ts +58 -21
- package/src/resources/v1/events/data-export/destinations.ts +61 -23
- package/src/resources/v1/events/data-export/index.ts +1 -0
- package/src/resources/v1/events/events.ts +28 -22
- package/src/resources/v1/events/index.ts +0 -1
- package/src/resources/v1/features.ts +209 -82
- package/src/resources/v1/index.ts +19 -0
- package/src/resources/v1/plans/entitlements.ts +123 -41
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +321 -119
- package/src/resources/v1/products.ts +193 -74
- package/src/resources/v1/subscriptions/future-update.ts +68 -21
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -9
- package/src/resources/v1/subscriptions/subscriptions.ts +417 -173
- package/src/resources/v1/subscriptions/usage.ts +61 -18
- package/src/resources/v1/usage.ts +53 -29
- package/src/resources/v1/v1.ts +38 -0
- package/src/resources/v1-beta/customers/assignments.ts +328 -0
- package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
- package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +165 -54
- package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +43 -18
- package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +70 -25
- package/src/resources/{v1/events/beta → v1-beta}/index.ts +1 -1
- package/src/resources/{v1/events/beta/beta.ts → v1-beta/v1-beta.ts} +5 -5
- package/src/resources/{v1/events/beta.ts → v1-beta.ts} +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/events/beta/beta.d.mts.map +0 -1
- package/resources/v1/events/beta/beta.d.ts.map +0 -1
- package/resources/v1/events/beta/beta.js.map +0 -1
- package/resources/v1/events/beta/beta.mjs.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.mts +0 -178
- package/resources/v1/events/beta/customers/assignments.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.d.ts +0 -178
- package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/assignments.js +0 -62
- package/resources/v1/events/beta/customers/assignments.js.map +0 -1
- package/resources/v1/events/beta/customers/assignments.mjs +0 -58
- package/resources/v1/events/beta/customers/assignments.mjs.map +0 -1
- package/resources/v1/events/beta/customers/customers.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/customers.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/customers.js.map +0 -1
- package/resources/v1/events/beta/customers/customers.mjs.map +0 -1
- package/resources/v1/events/beta/customers/entities.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/entities.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/entities.js +0 -105
- package/resources/v1/events/beta/customers/entities.js.map +0 -1
- package/resources/v1/events/beta/customers/entities.mjs +0 -101
- package/resources/v1/events/beta/customers/entities.mjs.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.js +0 -26
- package/resources/v1/events/beta/customers/entitlements.js.map +0 -1
- package/resources/v1/events/beta/customers/entitlements.mjs +0 -22
- package/resources/v1/events/beta/customers/entitlements.mjs.map +0 -1
- package/resources/v1/events/beta/customers/index.d.mts.map +0 -1
- package/resources/v1/events/beta/customers/index.d.ts.map +0 -1
- package/resources/v1/events/beta/customers/index.js.map +0 -1
- package/resources/v1/events/beta/customers/index.mjs.map +0 -1
- package/resources/v1/events/beta/customers.d.mts.map +0 -1
- package/resources/v1/events/beta/customers.d.ts.map +0 -1
- package/resources/v1/events/beta/customers.js.map +0 -1
- package/resources/v1/events/beta/customers.mjs.map +0 -1
- package/resources/v1/events/beta/entity-types.d.mts.map +0 -1
- package/resources/v1/events/beta/entity-types.d.ts.map +0 -1
- package/resources/v1/events/beta/entity-types.js +0 -56
- package/resources/v1/events/beta/entity-types.js.map +0 -1
- package/resources/v1/events/beta/entity-types.mjs +0 -52
- package/resources/v1/events/beta/entity-types.mjs.map +0 -1
- package/resources/v1/events/beta/index.d.mts.map +0 -1
- package/resources/v1/events/beta/index.d.ts.map +0 -1
- package/resources/v1/events/beta/index.js.map +0 -1
- package/resources/v1/events/beta/index.mjs.map +0 -1
- package/resources/v1/events/beta.d.mts +0 -2
- package/resources/v1/events/beta.d.mts.map +0 -1
- package/resources/v1/events/beta.d.ts +0 -2
- package/resources/v1/events/beta.d.ts.map +0 -1
- package/resources/v1/events/beta.js.map +0 -1
- package/resources/v1/events/beta.mjs.map +0 -1
- package/src/resources/v1/events/beta/customers/assignments.ts +0 -228
- /package/resources/{v1/events/beta → v1-beta}/customers/index.d.mts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.d.ts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.js +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers/index.mjs +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.d.mts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.d.ts +0 -0
- /package/resources/{v1/events/beta → v1-beta}/customers.mjs +0 -0
- /package/src/resources/{v1/events/beta → v1-beta}/customers/index.ts +0 -0
- /package/src/resources/{v1/events/beta → v1-beta}/customers.ts +0 -0
|
@@ -2,13 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as FutureUpdateAPI from './future-update';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
CancelSubscription,
|
|
7
|
+
FutureUpdate as FutureUpdateAPIFutureUpdate,
|
|
8
|
+
FutureUpdateCancelPendingPaymentParams,
|
|
9
|
+
FutureUpdateCancelScheduleParams,
|
|
10
|
+
} from './future-update';
|
|
6
11
|
import * as InvoiceAPI from './invoice';
|
|
7
|
-
import { Invoice, InvoiceMarkAsPaidResponse } from './invoice';
|
|
12
|
+
import { Invoice, InvoiceMarkAsPaidParams, InvoiceMarkAsPaidResponse } from './invoice';
|
|
8
13
|
import * as UsageAPI from './usage';
|
|
9
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
Usage,
|
|
16
|
+
UsageChargeUsageParams,
|
|
17
|
+
UsageChargeUsageResponse,
|
|
18
|
+
UsageSyncParams,
|
|
19
|
+
UsageSyncResponse,
|
|
20
|
+
} from './usage';
|
|
10
21
|
import { APIPromise } from '../../../core/api-promise';
|
|
11
22
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
23
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
12
24
|
import { RequestOptions } from '../../../internal/request-options';
|
|
13
25
|
import { path } from '../../../internal/utils/path';
|
|
14
26
|
|
|
@@ -20,174 +32,211 @@ export class Subscriptions extends APIResource {
|
|
|
20
32
|
/**
|
|
21
33
|
* Retrieves a subscription by its unique identifier, including plan details,
|
|
22
34
|
* billing period, status, and add-ons.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
*/
|
|
36
|
+
retrieve(
|
|
37
|
+
id: string,
|
|
38
|
+
params: SubscriptionRetrieveParams | null | undefined = {},
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<Subscription> {
|
|
41
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
42
|
+
return this._client.get(path`/api/v1/subscriptions/${id}`, {
|
|
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
|
+
});
|
|
33
52
|
}
|
|
34
53
|
|
|
35
54
|
/**
|
|
36
55
|
* Updates an active subscription's properties including billing period, add-ons,
|
|
37
56
|
* unit quantities, and discounts.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
57
|
+
*/
|
|
58
|
+
update(id: string, params: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
59
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
60
|
+
return this._client.patch(path`/api/v1/subscriptions/${id}`, {
|
|
61
|
+
body,
|
|
62
|
+
...options,
|
|
63
|
+
headers: buildHeaders([
|
|
64
|
+
{
|
|
65
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
66
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
67
|
+
},
|
|
68
|
+
options?.headers,
|
|
69
|
+
]),
|
|
70
|
+
});
|
|
48
71
|
}
|
|
49
72
|
|
|
50
73
|
/**
|
|
51
74
|
* Retrieves a paginated list of subscriptions, with optional filters for customer,
|
|
52
75
|
* status, and plan.
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* // Automatically fetches more pages as needed.
|
|
57
|
-
* for await (const subscriptionListResponse of client.v1.subscriptions.list()) {
|
|
58
|
-
* // ...
|
|
59
|
-
* }
|
|
60
|
-
* ```
|
|
61
76
|
*/
|
|
62
77
|
list(
|
|
63
|
-
|
|
78
|
+
params: SubscriptionListParams | null | undefined = {},
|
|
64
79
|
options?: RequestOptions,
|
|
65
80
|
): PagePromise<SubscriptionListResponsesMyCursorIDPage, SubscriptionListResponse> {
|
|
81
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
66
82
|
return this._client.getAPIList('/api/v1/subscriptions', MyCursorIDPage<SubscriptionListResponse>, {
|
|
67
83
|
query,
|
|
68
84
|
...options,
|
|
85
|
+
headers: buildHeaders([
|
|
86
|
+
{
|
|
87
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
88
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
89
|
+
},
|
|
90
|
+
options?.headers,
|
|
91
|
+
]),
|
|
69
92
|
});
|
|
70
93
|
}
|
|
71
94
|
|
|
72
95
|
/**
|
|
73
96
|
* Cancels an active subscription, either immediately or at a specified time such
|
|
74
97
|
* as end of billing period.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
98
|
+
*/
|
|
99
|
+
cancel(id: string, params: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
100
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
101
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/cancel`, {
|
|
102
|
+
body,
|
|
103
|
+
...options,
|
|
104
|
+
headers: buildHeaders([
|
|
105
|
+
{
|
|
106
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
107
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
108
|
+
},
|
|
109
|
+
options?.headers,
|
|
110
|
+
]),
|
|
111
|
+
});
|
|
85
112
|
}
|
|
86
113
|
|
|
87
114
|
/**
|
|
88
115
|
* Delegates the payment responsibility of a subscription to a different customer.
|
|
89
116
|
* The delegated customer will be billed for this subscription.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
117
|
+
*/
|
|
118
|
+
delegate(
|
|
119
|
+
id: string,
|
|
120
|
+
params: SubscriptionDelegateParams,
|
|
121
|
+
options?: RequestOptions,
|
|
122
|
+
): APIPromise<Subscription> {
|
|
123
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
124
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/delegate`, {
|
|
125
|
+
body,
|
|
126
|
+
...options,
|
|
127
|
+
headers: buildHeaders([
|
|
128
|
+
{
|
|
129
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
130
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
131
|
+
},
|
|
132
|
+
options?.headers,
|
|
133
|
+
]),
|
|
134
|
+
});
|
|
101
135
|
}
|
|
102
136
|
|
|
103
137
|
/**
|
|
104
138
|
* Imports multiple subscriptions in bulk. Used for migrating subscription data
|
|
105
139
|
* from external systems.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
import(body: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse> {
|
|
121
|
-
return this._client.post('/api/v1/subscriptions/import', { body, ...options });
|
|
140
|
+
*/
|
|
141
|
+
import(params: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse> {
|
|
142
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
143
|
+
return this._client.post('/api/v1/subscriptions/import', {
|
|
144
|
+
body,
|
|
145
|
+
...options,
|
|
146
|
+
headers: buildHeaders([
|
|
147
|
+
{
|
|
148
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
149
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
150
|
+
},
|
|
151
|
+
options?.headers,
|
|
152
|
+
]),
|
|
153
|
+
});
|
|
122
154
|
}
|
|
123
155
|
|
|
124
156
|
/**
|
|
125
157
|
* Migrates a subscription to the latest published version of its plan or add-ons.
|
|
126
158
|
* Handles prorated charges or credits automatically.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
159
|
+
*/
|
|
160
|
+
migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription> {
|
|
161
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
162
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/migrate`, {
|
|
163
|
+
body,
|
|
164
|
+
...options,
|
|
165
|
+
headers: buildHeaders([
|
|
166
|
+
{
|
|
167
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
168
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
169
|
+
},
|
|
170
|
+
options?.headers,
|
|
171
|
+
]),
|
|
172
|
+
});
|
|
137
173
|
}
|
|
138
174
|
|
|
139
175
|
/**
|
|
140
176
|
* Previews the pricing impact of creating or updating a subscription without
|
|
141
177
|
* making changes. Returns estimated costs, taxes, and proration details.
|
|
142
|
-
*
|
|
143
|
-
* @example
|
|
144
|
-
* ```ts
|
|
145
|
-
* const response = await client.v1.subscriptions.preview({
|
|
146
|
-
* customerId: 'customerId',
|
|
147
|
-
* planId: 'planId',
|
|
148
|
-
* });
|
|
149
|
-
* ```
|
|
150
178
|
*/
|
|
151
179
|
preview(
|
|
152
|
-
|
|
180
|
+
params: SubscriptionPreviewParams,
|
|
153
181
|
options?: RequestOptions,
|
|
154
182
|
): APIPromise<SubscriptionPreviewResponse> {
|
|
155
|
-
|
|
183
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
184
|
+
return this._client.post('/api/v1/subscriptions/preview', {
|
|
185
|
+
body,
|
|
186
|
+
...options,
|
|
187
|
+
headers: buildHeaders([
|
|
188
|
+
{
|
|
189
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
190
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
191
|
+
},
|
|
192
|
+
options?.headers,
|
|
193
|
+
]),
|
|
194
|
+
});
|
|
156
195
|
}
|
|
157
196
|
|
|
158
197
|
/**
|
|
159
198
|
* Creates a new subscription for an existing customer. When payment is required
|
|
160
199
|
* and no payment method exists, returns a checkout URL.
|
|
161
|
-
*
|
|
162
|
-
* @example
|
|
163
|
-
* ```ts
|
|
164
|
-
* const response = await client.v1.subscriptions.provision({
|
|
165
|
-
* customerId: 'customerId',
|
|
166
|
-
* planId: 'planId',
|
|
167
|
-
* });
|
|
168
|
-
* ```
|
|
169
200
|
*/
|
|
170
201
|
provision(
|
|
171
|
-
|
|
202
|
+
params: SubscriptionProvisionParams,
|
|
172
203
|
options?: RequestOptions,
|
|
173
204
|
): APIPromise<SubscriptionProvisionResponse> {
|
|
174
|
-
|
|
205
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
206
|
+
return this._client.post('/api/v1/subscriptions', {
|
|
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
|
+
});
|
|
175
217
|
}
|
|
176
218
|
|
|
177
219
|
/**
|
|
178
220
|
* Transfers a subscription to a different resource ID. Used for multi-resource
|
|
179
221
|
* products where subscriptions apply to specific entities like websites or apps.
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
222
|
+
*/
|
|
223
|
+
transfer(
|
|
224
|
+
id: string,
|
|
225
|
+
params: SubscriptionTransferParams,
|
|
226
|
+
options?: RequestOptions,
|
|
227
|
+
): APIPromise<Subscription> {
|
|
228
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
229
|
+
return this._client.post(path`/api/v1/subscriptions/${id}/transfer`, {
|
|
230
|
+
body,
|
|
231
|
+
...options,
|
|
232
|
+
headers: buildHeaders([
|
|
233
|
+
{
|
|
234
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
235
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
236
|
+
},
|
|
237
|
+
options?.headers,
|
|
238
|
+
]),
|
|
239
|
+
});
|
|
191
240
|
}
|
|
192
241
|
}
|
|
193
242
|
|
|
@@ -3964,56 +4013,114 @@ export namespace SubscriptionProvisionResponse {
|
|
|
3964
4013
|
}
|
|
3965
4014
|
}
|
|
3966
4015
|
|
|
4016
|
+
export interface SubscriptionRetrieveParams {
|
|
4017
|
+
/**
|
|
4018
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
4019
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
4020
|
+
*/
|
|
4021
|
+
'X-ACCOUNT-ID'?: string;
|
|
4022
|
+
|
|
4023
|
+
/**
|
|
4024
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
4025
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
4026
|
+
* key).
|
|
4027
|
+
*/
|
|
4028
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
4029
|
+
}
|
|
4030
|
+
|
|
3967
4031
|
export interface SubscriptionUpdateParams {
|
|
4032
|
+
/**
|
|
4033
|
+
* Body param
|
|
4034
|
+
*/
|
|
3968
4035
|
addons?: Array<SubscriptionUpdateParams.Addon>;
|
|
3969
4036
|
|
|
4037
|
+
/**
|
|
4038
|
+
* Body param
|
|
4039
|
+
*/
|
|
3970
4040
|
appliedCoupon?: SubscriptionUpdateParams.AppliedCoupon;
|
|
3971
4041
|
|
|
3972
4042
|
/**
|
|
3973
|
-
* Await payment confirmation
|
|
4043
|
+
* Body param: Await payment confirmation
|
|
3974
4044
|
*/
|
|
3975
4045
|
awaitPaymentConfirmation?: boolean;
|
|
3976
4046
|
|
|
4047
|
+
/**
|
|
4048
|
+
* Body param
|
|
4049
|
+
*/
|
|
3977
4050
|
billingCycleAnchor?: 'UNCHANGED' | 'NOW';
|
|
3978
4051
|
|
|
4052
|
+
/**
|
|
4053
|
+
* Body param
|
|
4054
|
+
*/
|
|
3979
4055
|
billingInformation?: SubscriptionUpdateParams.BillingInformation;
|
|
3980
4056
|
|
|
4057
|
+
/**
|
|
4058
|
+
* Body param
|
|
4059
|
+
*/
|
|
3981
4060
|
billingPeriod?: 'MONTHLY' | 'ANNUALLY';
|
|
3982
4061
|
|
|
4062
|
+
/**
|
|
4063
|
+
* Body param
|
|
4064
|
+
*/
|
|
3983
4065
|
budget?: SubscriptionUpdateParams.Budget | null;
|
|
3984
4066
|
|
|
3985
4067
|
/**
|
|
3986
|
-
* Subscription cancellation date
|
|
4068
|
+
* Body param: Subscription cancellation date
|
|
3987
4069
|
*/
|
|
3988
4070
|
cancellationDate?: string | null;
|
|
3989
4071
|
|
|
4072
|
+
/**
|
|
4073
|
+
* Body param
|
|
4074
|
+
*/
|
|
3990
4075
|
charges?: Array<SubscriptionUpdateParams.Charge>;
|
|
3991
4076
|
|
|
4077
|
+
/**
|
|
4078
|
+
* Body param
|
|
4079
|
+
*/
|
|
3992
4080
|
entitlements?: Array<SubscriptionUpdateParams.Feature | SubscriptionUpdateParams.Credit>;
|
|
3993
4081
|
|
|
3994
4082
|
/**
|
|
3995
|
-
* Additional metadata for the subscription
|
|
4083
|
+
* Body param: Additional metadata for the subscription
|
|
3996
4084
|
*/
|
|
3997
4085
|
metadata?: { [key: string]: string };
|
|
3998
4086
|
|
|
3999
4087
|
/**
|
|
4000
|
-
* Minimum spend amount
|
|
4088
|
+
* Body param: Minimum spend amount
|
|
4001
4089
|
*/
|
|
4002
4090
|
minimumSpend?: SubscriptionUpdateParams.MinimumSpend | null;
|
|
4003
4091
|
|
|
4092
|
+
/**
|
|
4093
|
+
* Body param
|
|
4094
|
+
*/
|
|
4004
4095
|
priceOverrides?: Array<SubscriptionUpdateParams.PriceOverride>;
|
|
4005
4096
|
|
|
4006
4097
|
/**
|
|
4007
|
-
* Promotion code
|
|
4098
|
+
* Body param: Promotion code
|
|
4008
4099
|
*/
|
|
4009
4100
|
promotionCode?: string;
|
|
4010
4101
|
|
|
4102
|
+
/**
|
|
4103
|
+
* Body param
|
|
4104
|
+
*/
|
|
4011
4105
|
scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
|
|
4012
4106
|
|
|
4013
4107
|
/**
|
|
4014
|
-
* Subscription trial end date
|
|
4108
|
+
* Body param: Subscription trial end date
|
|
4015
4109
|
*/
|
|
4016
4110
|
trialEndDate?: string;
|
|
4111
|
+
|
|
4112
|
+
/**
|
|
4113
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
4114
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
4115
|
+
*/
|
|
4116
|
+
'X-ACCOUNT-ID'?: string;
|
|
4117
|
+
|
|
4118
|
+
/**
|
|
4119
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
4120
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
4121
|
+
* intrinsic to the key).
|
|
4122
|
+
*/
|
|
4123
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
4017
4124
|
}
|
|
4018
4125
|
|
|
4019
4126
|
export namespace SubscriptionUpdateParams {
|
|
@@ -4696,35 +4803,49 @@ export namespace SubscriptionUpdateParams {
|
|
|
4696
4803
|
|
|
4697
4804
|
export interface SubscriptionListParams extends MyCursorIDPageParams {
|
|
4698
4805
|
/**
|
|
4699
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
4806
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
4700
4807
|
*/
|
|
4701
4808
|
createdAt?: SubscriptionListParams.CreatedAt;
|
|
4702
4809
|
|
|
4703
4810
|
/**
|
|
4704
|
-
* Filter by customer ID
|
|
4811
|
+
* Query param: Filter by customer ID
|
|
4705
4812
|
*/
|
|
4706
4813
|
customerId?: string;
|
|
4707
4814
|
|
|
4708
4815
|
/**
|
|
4709
|
-
* Filter by plan ID
|
|
4816
|
+
* Query param: Filter by plan ID
|
|
4710
4817
|
*/
|
|
4711
4818
|
planId?: string;
|
|
4712
4819
|
|
|
4713
4820
|
/**
|
|
4714
|
-
* Filter by pricing type. Supports comma-separated values for
|
|
4821
|
+
* Query param: Filter by pricing type. Supports comma-separated values for
|
|
4822
|
+
* multiple types
|
|
4715
4823
|
*/
|
|
4716
4824
|
pricingType?: Array<'FREE' | 'PAID' | 'CUSTOM'>;
|
|
4717
4825
|
|
|
4718
4826
|
/**
|
|
4719
|
-
* Filter by resource ID
|
|
4827
|
+
* Query param: Filter by resource ID
|
|
4720
4828
|
*/
|
|
4721
4829
|
resourceId?: string;
|
|
4722
4830
|
|
|
4723
4831
|
/**
|
|
4724
|
-
* Filter by subscription status. Supports comma-separated values for
|
|
4725
|
-
* statuses
|
|
4832
|
+
* Query param: Filter by subscription status. Supports comma-separated values for
|
|
4833
|
+
* multiple statuses
|
|
4726
4834
|
*/
|
|
4727
4835
|
status?: Array<'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED'>;
|
|
4836
|
+
|
|
4837
|
+
/**
|
|
4838
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
4839
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
4840
|
+
*/
|
|
4841
|
+
'X-ACCOUNT-ID'?: string;
|
|
4842
|
+
|
|
4843
|
+
/**
|
|
4844
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
4845
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
4846
|
+
* intrinsic to the key).
|
|
4847
|
+
*/
|
|
4848
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
4728
4849
|
}
|
|
4729
4850
|
|
|
4730
4851
|
export namespace SubscriptionListParams {
|
|
@@ -4756,45 +4877,86 @@ export namespace SubscriptionListParams {
|
|
|
4756
4877
|
|
|
4757
4878
|
export interface SubscriptionCancelParams {
|
|
4758
4879
|
/**
|
|
4759
|
-
* Action on cancellation (downgrade or revoke)
|
|
4880
|
+
* Body param: Action on cancellation (downgrade or revoke)
|
|
4760
4881
|
*/
|
|
4761
4882
|
cancellationAction?: 'DEFAULT' | 'REVOKE_ENTITLEMENTS';
|
|
4762
4883
|
|
|
4763
4884
|
/**
|
|
4764
|
-
* When to cancel (immediate, period end, or date)
|
|
4885
|
+
* Body param: When to cancel (immediate, period end, or date)
|
|
4765
4886
|
*/
|
|
4766
4887
|
cancellationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
|
|
4767
4888
|
|
|
4768
4889
|
/**
|
|
4769
|
-
* Subscription end date
|
|
4890
|
+
* Body param: Subscription end date
|
|
4770
4891
|
*/
|
|
4771
4892
|
endDate?: string;
|
|
4772
4893
|
|
|
4773
4894
|
/**
|
|
4774
|
-
* If set, enables or disables prorating of credits on subscription
|
|
4895
|
+
* Body param: If set, enables or disables prorating of credits on subscription
|
|
4896
|
+
* cancellation.
|
|
4775
4897
|
*/
|
|
4776
4898
|
prorate?: boolean;
|
|
4899
|
+
|
|
4900
|
+
/**
|
|
4901
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
4902
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
4903
|
+
*/
|
|
4904
|
+
'X-ACCOUNT-ID'?: string;
|
|
4905
|
+
|
|
4906
|
+
/**
|
|
4907
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
4908
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
4909
|
+
* intrinsic to the key).
|
|
4910
|
+
*/
|
|
4911
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
4777
4912
|
}
|
|
4778
4913
|
|
|
4779
4914
|
export interface SubscriptionDelegateParams {
|
|
4780
4915
|
/**
|
|
4781
|
-
* The unique identifier of the customer who will assume payment
|
|
4782
|
-
* this subscription. This customer must already exist in your
|
|
4783
|
-
* have a valid payment method if the subscription requires
|
|
4916
|
+
* Body param: The unique identifier of the customer who will assume payment
|
|
4917
|
+
* responsibility for this subscription. This customer must already exist in your
|
|
4918
|
+
* Stigg account and have a valid payment method if the subscription requires
|
|
4919
|
+
* payment.
|
|
4784
4920
|
*/
|
|
4785
4921
|
targetCustomerId: string;
|
|
4922
|
+
|
|
4923
|
+
/**
|
|
4924
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
4925
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
4926
|
+
*/
|
|
4927
|
+
'X-ACCOUNT-ID'?: string;
|
|
4928
|
+
|
|
4929
|
+
/**
|
|
4930
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
4931
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
4932
|
+
* intrinsic to the key).
|
|
4933
|
+
*/
|
|
4934
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
4786
4935
|
}
|
|
4787
4936
|
|
|
4788
4937
|
export interface SubscriptionImportParams {
|
|
4789
4938
|
/**
|
|
4790
|
-
* List of subscription objects to import
|
|
4939
|
+
* Body param: List of subscription objects to import
|
|
4791
4940
|
*/
|
|
4792
4941
|
subscriptions: Array<SubscriptionImportParams.Subscription>;
|
|
4793
4942
|
|
|
4794
4943
|
/**
|
|
4795
|
-
* Integration ID to use for importing subscriptions
|
|
4944
|
+
* Body param: Integration ID to use for importing subscriptions
|
|
4796
4945
|
*/
|
|
4797
4946
|
integrationId?: string | null;
|
|
4947
|
+
|
|
4948
|
+
/**
|
|
4949
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
4950
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
4951
|
+
*/
|
|
4952
|
+
'X-ACCOUNT-ID'?: string;
|
|
4953
|
+
|
|
4954
|
+
/**
|
|
4955
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
4956
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
4957
|
+
* intrinsic to the key).
|
|
4958
|
+
*/
|
|
4959
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
4798
4960
|
}
|
|
4799
4961
|
|
|
4800
4962
|
export namespace SubscriptionImportParams {
|
|
@@ -4890,91 +5052,117 @@ export namespace SubscriptionImportParams {
|
|
|
4890
5052
|
|
|
4891
5053
|
export interface SubscriptionMigrateParams {
|
|
4892
5054
|
/**
|
|
4893
|
-
* When to migrate (immediate or period end)
|
|
5055
|
+
* Body param: When to migrate (immediate or period end)
|
|
4894
5056
|
*/
|
|
4895
5057
|
subscriptionMigrationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE';
|
|
5058
|
+
|
|
5059
|
+
/**
|
|
5060
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
5061
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
5062
|
+
*/
|
|
5063
|
+
'X-ACCOUNT-ID'?: string;
|
|
5064
|
+
|
|
5065
|
+
/**
|
|
5066
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
5067
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
5068
|
+
* intrinsic to the key).
|
|
5069
|
+
*/
|
|
5070
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
4896
5071
|
}
|
|
4897
5072
|
|
|
4898
5073
|
export interface SubscriptionPreviewParams {
|
|
4899
5074
|
/**
|
|
4900
|
-
* Customer ID
|
|
5075
|
+
* Body param: Customer ID
|
|
4901
5076
|
*/
|
|
4902
5077
|
customerId: string;
|
|
4903
5078
|
|
|
4904
5079
|
/**
|
|
4905
|
-
* Plan ID
|
|
5080
|
+
* Body param: Plan ID
|
|
4906
5081
|
*/
|
|
4907
5082
|
planId: string;
|
|
4908
5083
|
|
|
4909
5084
|
/**
|
|
4910
|
-
* Addons to include
|
|
5085
|
+
* Body param: Addons to include
|
|
4911
5086
|
*/
|
|
4912
5087
|
addons?: Array<SubscriptionPreviewParams.Addon>;
|
|
4913
5088
|
|
|
4914
5089
|
/**
|
|
4915
|
-
* Coupon or discount to apply
|
|
5090
|
+
* Body param: Coupon or discount to apply
|
|
4916
5091
|
*/
|
|
4917
5092
|
appliedCoupon?: SubscriptionPreviewParams.AppliedCoupon;
|
|
4918
5093
|
|
|
4919
5094
|
/**
|
|
4920
|
-
* Billable features with quantities
|
|
5095
|
+
* Body param: Billable features with quantities
|
|
4921
5096
|
*/
|
|
4922
5097
|
billableFeatures?: Array<SubscriptionPreviewParams.BillableFeature>;
|
|
4923
5098
|
|
|
4924
5099
|
/**
|
|
4925
|
-
* ISO 3166-1 country code for localization
|
|
5100
|
+
* Body param: ISO 3166-1 country code for localization
|
|
4926
5101
|
*/
|
|
4927
5102
|
billingCountryCode?: string;
|
|
4928
5103
|
|
|
4929
5104
|
/**
|
|
4930
|
-
* Billing cycle anchor behavior for the subscription
|
|
5105
|
+
* Body param: Billing cycle anchor behavior for the subscription
|
|
4931
5106
|
*/
|
|
4932
5107
|
billingCycleAnchor?: 'UNCHANGED' | 'NOW';
|
|
4933
5108
|
|
|
4934
5109
|
/**
|
|
4935
|
-
* Billing and tax configuration
|
|
5110
|
+
* Body param: Billing and tax configuration
|
|
4936
5111
|
*/
|
|
4937
5112
|
billingInformation?: SubscriptionPreviewParams.BillingInformation;
|
|
4938
5113
|
|
|
4939
5114
|
/**
|
|
4940
|
-
* Billing period (MONTHLY or ANNUALLY)
|
|
5115
|
+
* Body param: Billing period (MONTHLY or ANNUALLY)
|
|
4941
5116
|
*/
|
|
4942
5117
|
billingPeriod?: 'MONTHLY' | 'ANNUALLY';
|
|
4943
5118
|
|
|
4944
5119
|
/**
|
|
4945
|
-
* One-time or recurring charges
|
|
5120
|
+
* Body param: One-time or recurring charges
|
|
4946
5121
|
*/
|
|
4947
5122
|
charges?: Array<SubscriptionPreviewParams.Charge>;
|
|
4948
5123
|
|
|
4949
5124
|
/**
|
|
4950
|
-
* Paying customer ID for delegated billing
|
|
5125
|
+
* Body param: Paying customer ID for delegated billing
|
|
4951
5126
|
*/
|
|
4952
5127
|
payingCustomerId?: string;
|
|
4953
5128
|
|
|
4954
5129
|
/**
|
|
4955
|
-
* Resource ID for multi-instance subscriptions
|
|
5130
|
+
* Body param: Resource ID for multi-instance subscriptions
|
|
4956
5131
|
*/
|
|
4957
5132
|
resourceId?: string;
|
|
4958
5133
|
|
|
4959
5134
|
/**
|
|
4960
|
-
* When to apply subscription changes
|
|
5135
|
+
* Body param: When to apply subscription changes
|
|
4961
5136
|
*/
|
|
4962
5137
|
scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
|
|
4963
5138
|
|
|
4964
5139
|
/**
|
|
4965
|
-
* Subscription start date
|
|
5140
|
+
* Body param: Subscription start date
|
|
4966
5141
|
*/
|
|
4967
5142
|
startDate?: string;
|
|
4968
5143
|
|
|
4969
5144
|
/**
|
|
4970
|
-
* Trial period override settings
|
|
5145
|
+
* Body param: Trial period override settings
|
|
4971
5146
|
*/
|
|
4972
5147
|
trialOverrideConfiguration?: SubscriptionPreviewParams.TrialOverrideConfiguration;
|
|
4973
5148
|
|
|
4974
5149
|
/**
|
|
4975
|
-
* Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
5150
|
+
* Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
4976
5151
|
*/
|
|
4977
5152
|
unitQuantity?: number;
|
|
5153
|
+
|
|
5154
|
+
/**
|
|
5155
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
5156
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
5157
|
+
*/
|
|
5158
|
+
'X-ACCOUNT-ID'?: string;
|
|
5159
|
+
|
|
5160
|
+
/**
|
|
5161
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
5162
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
5163
|
+
* intrinsic to the key).
|
|
5164
|
+
*/
|
|
5165
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
4978
5166
|
}
|
|
4979
5167
|
|
|
4980
5168
|
export namespace SubscriptionPreviewParams {
|
|
@@ -5348,121 +5536,153 @@ export namespace SubscriptionPreviewParams {
|
|
|
5348
5536
|
|
|
5349
5537
|
export interface SubscriptionProvisionParams {
|
|
5350
5538
|
/**
|
|
5351
|
-
* Customer ID to provision the subscription for
|
|
5539
|
+
* Body param: Customer ID to provision the subscription for
|
|
5352
5540
|
*/
|
|
5353
5541
|
customerId: string;
|
|
5354
5542
|
|
|
5355
5543
|
/**
|
|
5356
|
-
* Plan ID to provision
|
|
5544
|
+
* Body param: Plan ID to provision
|
|
5357
5545
|
*/
|
|
5358
5546
|
planId: string;
|
|
5359
5547
|
|
|
5360
5548
|
/**
|
|
5361
|
-
* Unique identifier for the subscription
|
|
5549
|
+
* Body param: Unique identifier for the subscription
|
|
5362
5550
|
*/
|
|
5363
5551
|
id?: string;
|
|
5364
5552
|
|
|
5553
|
+
/**
|
|
5554
|
+
* Body param
|
|
5555
|
+
*/
|
|
5365
5556
|
addons?: Array<SubscriptionProvisionParams.Addon>;
|
|
5366
5557
|
|
|
5367
5558
|
/**
|
|
5368
|
-
* Coupon configuration
|
|
5559
|
+
* Body param: Coupon configuration
|
|
5369
5560
|
*/
|
|
5370
5561
|
appliedCoupon?: SubscriptionProvisionParams.AppliedCoupon;
|
|
5371
5562
|
|
|
5372
5563
|
/**
|
|
5373
|
-
* Whether to wait for payment confirmation before returning the
|
|
5564
|
+
* Body param: Whether to wait for payment confirmation before returning the
|
|
5565
|
+
* subscription
|
|
5374
5566
|
*/
|
|
5375
5567
|
awaitPaymentConfirmation?: boolean;
|
|
5376
5568
|
|
|
5377
5569
|
/**
|
|
5378
|
-
* The ISO 3166-1 alpha-2 country code for billing
|
|
5570
|
+
* Body param: The ISO 3166-1 alpha-2 country code for billing
|
|
5379
5571
|
*/
|
|
5380
5572
|
billingCountryCode?: string | null;
|
|
5381
5573
|
|
|
5382
5574
|
/**
|
|
5383
|
-
* Billing cycle anchor behavior for the subscription
|
|
5575
|
+
* Body param: Billing cycle anchor behavior for the subscription
|
|
5384
5576
|
*/
|
|
5385
5577
|
billingCycleAnchor?: 'UNCHANGED' | 'NOW';
|
|
5386
5578
|
|
|
5387
5579
|
/**
|
|
5388
|
-
* External billing system identifier
|
|
5580
|
+
* Body param: External billing system identifier
|
|
5389
5581
|
*/
|
|
5390
5582
|
billingId?: string | null;
|
|
5391
5583
|
|
|
5584
|
+
/**
|
|
5585
|
+
* Body param
|
|
5586
|
+
*/
|
|
5392
5587
|
billingInformation?: SubscriptionProvisionParams.BillingInformation;
|
|
5393
5588
|
|
|
5394
5589
|
/**
|
|
5395
|
-
* Billing period (MONTHLY or ANNUALLY)
|
|
5590
|
+
* Body param: Billing period (MONTHLY or ANNUALLY)
|
|
5396
5591
|
*/
|
|
5397
5592
|
billingPeriod?: 'MONTHLY' | 'ANNUALLY';
|
|
5398
5593
|
|
|
5594
|
+
/**
|
|
5595
|
+
* Body param
|
|
5596
|
+
*/
|
|
5399
5597
|
budget?: SubscriptionProvisionParams.Budget | null;
|
|
5400
5598
|
|
|
5401
5599
|
/**
|
|
5402
|
-
* Subscription cancellation date
|
|
5600
|
+
* Body param: Subscription cancellation date
|
|
5403
5601
|
*/
|
|
5404
5602
|
cancellationDate?: string;
|
|
5405
5603
|
|
|
5604
|
+
/**
|
|
5605
|
+
* Body param
|
|
5606
|
+
*/
|
|
5406
5607
|
charges?: Array<SubscriptionProvisionParams.Charge>;
|
|
5407
5608
|
|
|
5408
5609
|
/**
|
|
5409
|
-
* Checkout page configuration for payment collection
|
|
5610
|
+
* Body param: Checkout page configuration for payment collection
|
|
5410
5611
|
*/
|
|
5411
5612
|
checkoutOptions?: SubscriptionProvisionParams.CheckoutOptions;
|
|
5412
5613
|
|
|
5614
|
+
/**
|
|
5615
|
+
* Body param
|
|
5616
|
+
*/
|
|
5413
5617
|
entitlements?: Array<SubscriptionProvisionParams.Feature | SubscriptionProvisionParams.Credit>;
|
|
5414
5618
|
|
|
5415
5619
|
/**
|
|
5416
|
-
* Additional metadata for the subscription
|
|
5620
|
+
* Body param: Additional metadata for the subscription
|
|
5417
5621
|
*/
|
|
5418
5622
|
metadata?: { [key: string]: string };
|
|
5419
5623
|
|
|
5420
5624
|
/**
|
|
5421
|
-
* Minimum spend amount
|
|
5625
|
+
* Body param: Minimum spend amount
|
|
5422
5626
|
*/
|
|
5423
5627
|
minimumSpend?: SubscriptionProvisionParams.MinimumSpend | null;
|
|
5424
5628
|
|
|
5425
5629
|
/**
|
|
5426
|
-
* Optional paying customer ID for split billing scenarios
|
|
5630
|
+
* Body param: Optional paying customer ID for split billing scenarios
|
|
5427
5631
|
*/
|
|
5428
5632
|
payingCustomerId?: string | null;
|
|
5429
5633
|
|
|
5430
5634
|
/**
|
|
5431
|
-
* How payments should be collected for this subscription
|
|
5635
|
+
* Body param: How payments should be collected for this subscription
|
|
5432
5636
|
*/
|
|
5433
5637
|
paymentCollectionMethod?: 'CHARGE' | 'INVOICE' | 'NONE';
|
|
5434
5638
|
|
|
5639
|
+
/**
|
|
5640
|
+
* Body param
|
|
5641
|
+
*/
|
|
5435
5642
|
priceOverrides?: Array<SubscriptionProvisionParams.PriceOverride>;
|
|
5436
5643
|
|
|
5437
5644
|
/**
|
|
5438
|
-
* Optional resource ID for multi-instance subscriptions
|
|
5645
|
+
* Body param: Optional resource ID for multi-instance subscriptions
|
|
5439
5646
|
*/
|
|
5440
5647
|
resourceId?: string | null;
|
|
5441
5648
|
|
|
5442
5649
|
/**
|
|
5443
|
-
* Salesforce ID
|
|
5650
|
+
* Body param: Salesforce ID
|
|
5444
5651
|
*/
|
|
5445
5652
|
salesforceId?: string | null;
|
|
5446
5653
|
|
|
5447
5654
|
/**
|
|
5448
|
-
* Strategy for scheduling subscription changes
|
|
5655
|
+
* Body param: Strategy for scheduling subscription changes
|
|
5449
5656
|
*/
|
|
5450
5657
|
scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
|
|
5451
5658
|
|
|
5452
5659
|
/**
|
|
5453
|
-
* Subscription start date
|
|
5660
|
+
* Body param: Subscription start date
|
|
5454
5661
|
*/
|
|
5455
5662
|
startDate?: string;
|
|
5456
5663
|
|
|
5457
5664
|
/**
|
|
5458
|
-
* Trial period override settings
|
|
5665
|
+
* Body param: Trial period override settings
|
|
5459
5666
|
*/
|
|
5460
5667
|
trialOverrideConfiguration?: SubscriptionProvisionParams.TrialOverrideConfiguration;
|
|
5461
5668
|
|
|
5462
5669
|
/**
|
|
5463
|
-
* Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
5670
|
+
* Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
|
|
5464
5671
|
*/
|
|
5465
5672
|
unitQuantity?: number;
|
|
5673
|
+
|
|
5674
|
+
/**
|
|
5675
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
5676
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
5677
|
+
*/
|
|
5678
|
+
'X-ACCOUNT-ID'?: string;
|
|
5679
|
+
|
|
5680
|
+
/**
|
|
5681
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
5682
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
5683
|
+
* intrinsic to the key).
|
|
5684
|
+
*/
|
|
5685
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
5466
5686
|
}
|
|
5467
5687
|
|
|
5468
5688
|
export namespace SubscriptionProvisionParams {
|
|
@@ -6578,9 +6798,22 @@ export namespace SubscriptionProvisionParams {
|
|
|
6578
6798
|
|
|
6579
6799
|
export interface SubscriptionTransferParams {
|
|
6580
6800
|
/**
|
|
6581
|
-
* Resource ID to transfer the subscription to
|
|
6801
|
+
* Body param: Resource ID to transfer the subscription to
|
|
6582
6802
|
*/
|
|
6583
6803
|
destinationResourceId: string;
|
|
6804
|
+
|
|
6805
|
+
/**
|
|
6806
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
6807
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
6808
|
+
*/
|
|
6809
|
+
'X-ACCOUNT-ID'?: string;
|
|
6810
|
+
|
|
6811
|
+
/**
|
|
6812
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
6813
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
6814
|
+
* intrinsic to the key).
|
|
6815
|
+
*/
|
|
6816
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
6584
6817
|
}
|
|
6585
6818
|
|
|
6586
6819
|
Subscriptions.FutureUpdate = FutureUpdateAPIFutureUpdate;
|
|
@@ -6595,6 +6828,7 @@ export declare namespace Subscriptions {
|
|
|
6595
6828
|
type SubscriptionPreviewResponse as SubscriptionPreviewResponse,
|
|
6596
6829
|
type SubscriptionProvisionResponse as SubscriptionProvisionResponse,
|
|
6597
6830
|
type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage,
|
|
6831
|
+
type SubscriptionRetrieveParams as SubscriptionRetrieveParams,
|
|
6598
6832
|
type SubscriptionUpdateParams as SubscriptionUpdateParams,
|
|
6599
6833
|
type SubscriptionListParams as SubscriptionListParams,
|
|
6600
6834
|
type SubscriptionCancelParams as SubscriptionCancelParams,
|
|
@@ -6606,14 +6840,24 @@ export declare namespace Subscriptions {
|
|
|
6606
6840
|
type SubscriptionTransferParams as SubscriptionTransferParams,
|
|
6607
6841
|
};
|
|
6608
6842
|
|
|
6609
|
-
export {
|
|
6843
|
+
export {
|
|
6844
|
+
FutureUpdateAPIFutureUpdate as FutureUpdate,
|
|
6845
|
+
type CancelSubscription as CancelSubscription,
|
|
6846
|
+
type FutureUpdateCancelPendingPaymentParams as FutureUpdateCancelPendingPaymentParams,
|
|
6847
|
+
type FutureUpdateCancelScheduleParams as FutureUpdateCancelScheduleParams,
|
|
6848
|
+
};
|
|
6610
6849
|
|
|
6611
6850
|
export {
|
|
6612
6851
|
Usage as Usage,
|
|
6613
6852
|
type UsageChargeUsageResponse as UsageChargeUsageResponse,
|
|
6614
6853
|
type UsageSyncResponse as UsageSyncResponse,
|
|
6615
6854
|
type UsageChargeUsageParams as UsageChargeUsageParams,
|
|
6855
|
+
type UsageSyncParams as UsageSyncParams,
|
|
6616
6856
|
};
|
|
6617
6857
|
|
|
6618
|
-
export {
|
|
6858
|
+
export {
|
|
6859
|
+
Invoice as Invoice,
|
|
6860
|
+
type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse,
|
|
6861
|
+
type InvoiceMarkAsPaidParams as InvoiceMarkAsPaidParams,
|
|
6862
|
+
};
|
|
6619
6863
|
}
|