@stigg/typescript 0.1.0-beta.64 → 0.1.0-beta.66
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 +29 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +59 -0
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +59 -0
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +59 -0
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +59 -0
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +31 -0
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +31 -0
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +31 -0
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +31 -0
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/contracts.d.mts +30 -0
- package/resources/v1/contracts.d.mts.map +1 -1
- package/resources/v1/contracts.d.ts +30 -0
- package/resources/v1/contracts.d.ts.map +1 -1
- package/resources/v1/contracts.js +30 -0
- package/resources/v1/contracts.js.map +1 -1
- package/resources/v1/contracts.mjs +30 -0
- package/resources/v1/contracts.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +36 -0
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +36 -0
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +36 -0
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +36 -0
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/consumption.d.mts +26 -0
- package/resources/v1/credits/consumption.d.mts.map +1 -1
- package/resources/v1/credits/consumption.d.ts +26 -0
- package/resources/v1/credits/consumption.d.ts.map +1 -1
- package/resources/v1/credits/consumption.js +26 -0
- package/resources/v1/credits/consumption.js.map +1 -1
- package/resources/v1/credits/consumption.mjs +26 -0
- package/resources/v1/credits/consumption.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +25 -0
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +25 -0
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +25 -0
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +25 -0
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +49 -0
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +49 -0
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +49 -0
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +49 -0
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +28 -0
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +28 -0
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +28 -0
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +28 -0
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/reservations.d.mts +10 -0
- package/resources/v1/credits/reservations.d.mts.map +1 -1
- package/resources/v1/credits/reservations.d.ts +10 -0
- package/resources/v1/credits/reservations.d.ts.map +1 -1
- package/resources/v1/credits/reservations.js +10 -0
- package/resources/v1/credits/reservations.js.map +1 -1
- package/resources/v1/credits/reservations.mjs +10 -0
- package/resources/v1/credits/reservations.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +198 -7
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +198 -7
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +106 -6
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +106 -6
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/entities/entities.d.mts +332 -0
- package/resources/v1/customers/entities/entities.d.mts.map +1 -0
- package/resources/v1/customers/entities/entities.d.ts +332 -0
- package/resources/v1/customers/entities/entities.d.ts.map +1 -0
- package/resources/v1/customers/entities/entities.js +139 -0
- package/resources/v1/customers/entities/entities.js.map +1 -0
- package/resources/v1/customers/entities/entities.mjs +134 -0
- package/resources/v1/customers/entities/entities.mjs.map +1 -0
- package/resources/v1/customers/entities/entitlements.d.mts +260 -0
- package/resources/v1/customers/entities/entitlements.d.mts.map +1 -0
- package/resources/v1/customers/entities/entitlements.d.ts +260 -0
- package/resources/v1/customers/entities/entitlements.d.ts.map +1 -0
- package/resources/v1/customers/entities/entitlements.js +87 -0
- package/resources/v1/customers/entities/entitlements.js.map +1 -0
- package/resources/v1/customers/entities/entitlements.mjs +83 -0
- package/resources/v1/customers/entities/entitlements.mjs.map +1 -0
- package/resources/v1/customers/entities/index.d.mts +3 -0
- package/resources/v1/customers/entities/index.d.mts.map +1 -0
- package/resources/v1/customers/entities/index.d.ts +3 -0
- package/resources/v1/customers/entities/index.d.ts.map +1 -0
- package/resources/v1/customers/entities/index.js +9 -0
- package/resources/v1/customers/entities/index.js.map +1 -0
- package/resources/v1/customers/entities/index.mjs +4 -0
- package/resources/v1/customers/entities/index.mjs.map +1 -0
- package/resources/v1/customers/entities.d.mts +2 -0
- package/resources/v1/customers/entities.d.mts.map +1 -0
- package/resources/v1/customers/entities.d.ts +2 -0
- package/resources/v1/customers/entities.d.ts.map +1 -0
- package/resources/v1/customers/entities.js +6 -0
- package/resources/v1/customers/entities.js.map +1 -0
- package/resources/v1/customers/entities.mjs +3 -0
- package/resources/v1/customers/entities.mjs.map +1 -0
- package/resources/v1/customers/index.d.mts +1 -0
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +1 -0
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js +3 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -0
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +47 -0
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +47 -0
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +47 -0
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +47 -0
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +16 -0
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +16 -0
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +16 -0
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +16 -0
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +51 -0
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +51 -0
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +51 -0
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/entity-types.d.mts +291 -0
- package/resources/v1/entity-types.d.mts.map +1 -0
- package/resources/v1/entity-types.d.ts +291 -0
- package/resources/v1/entity-types.d.ts.map +1 -0
- package/resources/v1/entity-types.js +128 -0
- package/resources/v1/entity-types.js.map +1 -0
- package/resources/v1/entity-types.mjs +124 -0
- package/resources/v1/entity-types.mjs.map +1 -0
- package/resources/v1/events/beta/customers.d.mts +8 -0
- package/resources/v1/events/beta/customers.d.mts.map +1 -1
- package/resources/v1/events/beta/customers.d.ts +8 -0
- package/resources/v1/events/beta/customers.d.ts.map +1 -1
- package/resources/v1/events/beta/customers.js +8 -0
- package/resources/v1/events/beta/customers.js.map +1 -1
- package/resources/v1/events/beta/customers.mjs +8 -0
- package/resources/v1/events/beta/customers.mjs.map +1 -1
- package/resources/v1/events/data-export/data-export.d.mts +12 -0
- package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
- package/resources/v1/events/data-export/data-export.d.ts +12 -0
- package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
- package/resources/v1/events/data-export/data-export.js +12 -0
- package/resources/v1/events/data-export/data-export.js.map +1 -1
- package/resources/v1/events/data-export/data-export.mjs +12 -0
- package/resources/v1/events/data-export/data-export.mjs.map +1 -1
- package/resources/v1/events/data-export/destinations.d.mts +26 -0
- package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
- package/resources/v1/events/data-export/destinations.d.ts +26 -0
- package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
- package/resources/v1/events/data-export/destinations.js +26 -0
- package/resources/v1/events/data-export/destinations.js.map +1 -1
- package/resources/v1/events/data-export/destinations.mjs +26 -0
- package/resources/v1/events/data-export/destinations.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +21 -0
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +21 -0
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +21 -0
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +21 -0
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +43 -0
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +43 -0
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +43 -0
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +43 -0
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -0
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -0
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/plans/entitlements.d.mts +31 -0
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +31 -0
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +31 -0
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +31 -0
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +69 -0
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +69 -0
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +69 -0
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +69 -0
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +43 -0
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +43 -0
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +43 -0
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +43 -0
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +16 -0
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +16 -0
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +16 -0
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +16 -0
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +6 -0
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +6 -0
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +6 -0
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +6 -0
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +81 -0
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +81 -0
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +81 -0
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +81 -0
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +13 -0
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +13 -0
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +13 -0
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +13 -0
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +20 -0
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +20 -0
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +20 -0
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +20 -0
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +4 -0
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -0
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +4 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1-beta/customers/assignments.d.mts +12 -33
- package/resources/v1-beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1-beta/customers/assignments.d.ts +12 -33
- package/resources/v1-beta/customers/assignments.d.ts.map +1 -1
- package/resources/v1-beta/customers/assignments.js +7 -33
- package/resources/v1-beta/customers/assignments.js.map +1 -1
- package/resources/v1-beta/customers/assignments.mjs +7 -33
- package/resources/v1-beta/customers/assignments.mjs.map +1 -1
- package/resources/v1-beta/customers/entities.d.mts +18 -55
- package/resources/v1-beta/customers/entities.d.mts.map +1 -1
- package/resources/v1-beta/customers/entities.d.ts +18 -55
- package/resources/v1-beta/customers/entities.d.ts.map +1 -1
- package/resources/v1-beta/customers/entities.js +18 -55
- package/resources/v1-beta/customers/entities.js.map +1 -1
- package/resources/v1-beta/customers/entities.mjs +18 -55
- package/resources/v1-beta/customers/entities.mjs.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.mts +7 -10
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.ts +7 -10
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -1
- package/resources/v1-beta/customers/entitlements.js +2 -5
- package/resources/v1-beta/customers/entitlements.js.map +1 -1
- package/resources/v1-beta/customers/entitlements.mjs +2 -5
- package/resources/v1-beta/customers/entitlements.mjs.map +1 -1
- package/resources/v1-beta/entity-types.d.mts +18 -28
- package/resources/v1-beta/entity-types.d.mts.map +1 -1
- package/resources/v1-beta/entity-types.d.ts +18 -28
- package/resources/v1-beta/entity-types.d.ts.map +1 -1
- package/resources/v1-beta/entity-types.js +6 -28
- package/resources/v1-beta/entity-types.js.map +1 -1
- package/resources/v1-beta/entity-types.mjs +6 -28
- package/resources/v1-beta/entity-types.mjs.map +1 -1
- package/src/resources/v1/addons/addons.ts +59 -0
- package/src/resources/v1/addons/entitlements.ts +31 -0
- package/src/resources/v1/contracts.ts +30 -0
- package/src/resources/v1/coupons.ts +36 -0
- package/src/resources/v1/credits/consumption.ts +26 -0
- package/src/resources/v1/credits/credits.ts +25 -0
- package/src/resources/v1/credits/custom-currencies.ts +49 -0
- package/src/resources/v1/credits/grants.ts +28 -0
- package/src/resources/v1/credits/reservations.ts +10 -0
- package/src/resources/v1/customers/customers.ts +237 -7
- package/src/resources/v1/customers/entities/entities.ts +470 -0
- package/src/resources/v1/customers/entities/entitlements.ts +347 -0
- package/src/resources/v1/customers/entities/index.ts +22 -0
- package/src/resources/v1/customers/entities.ts +3 -0
- package/src/resources/v1/customers/index.ts +12 -0
- package/src/resources/v1/customers/integrations.ts +47 -0
- package/src/resources/v1/customers/payment-method.ts +16 -0
- package/src/resources/v1/customers/promotional-entitlements.ts +51 -0
- package/src/resources/v1/entity-types.ts +402 -0
- package/src/resources/v1/events/beta/customers.ts +8 -0
- package/src/resources/v1/events/data-export/data-export.ts +12 -0
- package/src/resources/v1/events/data-export/destinations.ts +26 -0
- package/src/resources/v1/events/events.ts +21 -0
- package/src/resources/v1/features.ts +43 -0
- package/src/resources/v1/index.ts +12 -0
- package/src/resources/v1/plans/entitlements.ts +31 -0
- package/src/resources/v1/plans/plans.ts +69 -0
- package/src/resources/v1/products.ts +43 -0
- package/src/resources/v1/subscriptions/future-update.ts +16 -0
- package/src/resources/v1/subscriptions/invoice.ts +6 -0
- package/src/resources/v1/subscriptions/subscriptions.ts +81 -0
- package/src/resources/v1/subscriptions/usage.ts +13 -0
- package/src/resources/v1/usage.ts +20 -0
- package/src/resources/v1/v1.ts +28 -0
- package/src/resources/v1-beta/customers/assignments.ts +12 -33
- package/src/resources/v1-beta/customers/entities.ts +18 -55
- package/src/resources/v1-beta/customers/entitlements.ts +7 -10
- package/src/resources/v1-beta/entity-types.ts +21 -28
- 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
|
@@ -10,6 +10,8 @@ const PaymentMethodAPI = tslib_1.__importStar(require("./payment-method.js"));
|
|
|
10
10
|
const payment_method_1 = require("./payment-method.js");
|
|
11
11
|
const PromotionalEntitlementsAPI = tslib_1.__importStar(require("./promotional-entitlements.js"));
|
|
12
12
|
const promotional_entitlements_1 = require("./promotional-entitlements.js");
|
|
13
|
+
const EntitiesAPI = tslib_1.__importStar(require("./entities/entities.js"));
|
|
14
|
+
const entities_1 = require("./entities/entities.js");
|
|
13
15
|
const pagination_1 = require("../../../core/pagination.js");
|
|
14
16
|
const headers_1 = require("../../../internal/headers.js");
|
|
15
17
|
const path_1 = require("../../../internal/utils/path.js");
|
|
@@ -19,10 +21,18 @@ class Customers extends resource_1.APIResource {
|
|
|
19
21
|
this.paymentMethod = new PaymentMethodAPI.PaymentMethod(this._client);
|
|
20
22
|
this.promotionalEntitlements = new PromotionalEntitlementsAPI.PromotionalEntitlements(this._client);
|
|
21
23
|
this.integrations = new IntegrationsAPI.Integrations(this._client);
|
|
24
|
+
this.entities = new EntitiesAPI.Entities(this._client);
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
27
|
* Retrieves a customer by their unique identifier, including billing information
|
|
25
28
|
* and subscription status.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const customerResponse = await client.v1.customers.retrieve(
|
|
33
|
+
* 'x',
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
26
36
|
*/
|
|
27
37
|
retrieve(id, params = {}, options) {
|
|
28
38
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -40,6 +50,13 @@ class Customers extends resource_1.APIResource {
|
|
|
40
50
|
/**
|
|
41
51
|
* Updates an existing customer's properties such as name, email, and billing
|
|
42
52
|
* information.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const customerResponse = await client.v1.customers.update(
|
|
57
|
+
* 'x',
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
43
60
|
*/
|
|
44
61
|
update(id, params, options) {
|
|
45
62
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -57,6 +74,14 @@ class Customers extends resource_1.APIResource {
|
|
|
57
74
|
}
|
|
58
75
|
/**
|
|
59
76
|
* Retrieves a paginated list of customers in the environment.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* // Automatically fetches more pages as needed.
|
|
81
|
+
* for await (const customerListResponse of client.v1.customers.list()) {
|
|
82
|
+
* // ...
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
60
85
|
*/
|
|
61
86
|
list(params = {}, options) {
|
|
62
87
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -75,6 +100,13 @@ class Customers extends resource_1.APIResource {
|
|
|
75
100
|
/**
|
|
76
101
|
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
77
102
|
* subscriptions.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* const customerResponse = await client.v1.customers.archive(
|
|
107
|
+
* 'x',
|
|
108
|
+
* );
|
|
109
|
+
* ```
|
|
78
110
|
*/
|
|
79
111
|
archive(id, params = {}, options) {
|
|
80
112
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -92,12 +124,21 @@ class Customers extends resource_1.APIResource {
|
|
|
92
124
|
/**
|
|
93
125
|
* Checks a single entitlement (feature or credit) for a customer or resource.
|
|
94
126
|
* Supports `requestedUsage` and `requestedValues` to evaluate against limits or
|
|
95
|
-
* enum values.
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
127
|
+
* enum values. Pass `dimensions` to also check the governance budgets of the
|
|
128
|
+
* entities the usage is attributed to; the response then includes `chains`. Each
|
|
129
|
+
* call reaches the Stigg API directly, so latency reflects a network round trip.
|
|
130
|
+
* For entitlement checks on a hot path (e.g. gating a request in real time), the
|
|
131
|
+
* Stigg Node Server SDK (with its built-in cache) or the Sidecar will typically
|
|
132
|
+
* respond faster and keep working through brief Stigg outages; reach for this
|
|
133
|
+
* endpoint when a live HTTP call is the natural fit, such as from a non-Node
|
|
134
|
+
* backend or a server-side job.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* const response = await client.v1.customers.checkEntitlement(
|
|
139
|
+
* 'x',
|
|
140
|
+
* );
|
|
141
|
+
* ```
|
|
101
142
|
*/
|
|
102
143
|
checkEntitlement(id, params = {}, options) {
|
|
103
144
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -116,6 +157,19 @@ class Customers extends resource_1.APIResource {
|
|
|
116
157
|
/**
|
|
117
158
|
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
118
159
|
* external systems.
|
|
160
|
+
*
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* const response = await client.v1.customers.import({
|
|
164
|
+
* customers: [
|
|
165
|
+
* {
|
|
166
|
+
* id: 'id',
|
|
167
|
+
* email: 'dev@stainless.com',
|
|
168
|
+
* name: 'name',
|
|
169
|
+
* },
|
|
170
|
+
* ],
|
|
171
|
+
* });
|
|
172
|
+
* ```
|
|
119
173
|
*/
|
|
120
174
|
import(params, options) {
|
|
121
175
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -135,6 +189,13 @@ class Customers extends resource_1.APIResource {
|
|
|
135
189
|
* Retrieves a customer's contracts. Each contract that has a billing contract is
|
|
136
190
|
* enriched with a preview of its upcoming (next) invoice when available. Returns
|
|
137
191
|
* an empty list when the customer has no contracts.
|
|
192
|
+
*
|
|
193
|
+
* @example
|
|
194
|
+
* ```ts
|
|
195
|
+
* const response = await client.v1.customers.listContracts(
|
|
196
|
+
* 'id',
|
|
197
|
+
* );
|
|
198
|
+
* ```
|
|
138
199
|
*/
|
|
139
200
|
listContracts(id, params = {}, options) {
|
|
140
201
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -156,6 +217,16 @@ class Customers extends resource_1.APIResource {
|
|
|
156
217
|
* Optionally narrowed to one contract, an issue-date range, and/or a set of
|
|
157
218
|
* invoice states. Returns an empty list when no billing provider is connected or
|
|
158
219
|
* the customer is not synced.
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* ```ts
|
|
223
|
+
* // Automatically fetches more pages as needed.
|
|
224
|
+
* for await (const customerListInvoicesResponse of client.v1.customers.listInvoices(
|
|
225
|
+
* 'id',
|
|
226
|
+
* )) {
|
|
227
|
+
* // ...
|
|
228
|
+
* }
|
|
229
|
+
* ```
|
|
159
230
|
*/
|
|
160
231
|
listInvoices(id, params = {}, options) {
|
|
161
232
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -173,6 +244,16 @@ class Customers extends resource_1.APIResource {
|
|
|
173
244
|
}
|
|
174
245
|
/**
|
|
175
246
|
* Retrieves a paginated list of resources within the same customer.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```ts
|
|
250
|
+
* // Automatically fetches more pages as needed.
|
|
251
|
+
* for await (const customerListResourcesResponse of client.v1.customers.listResources(
|
|
252
|
+
* 'x',
|
|
253
|
+
* )) {
|
|
254
|
+
* // ...
|
|
255
|
+
* }
|
|
256
|
+
* ```
|
|
176
257
|
*/
|
|
177
258
|
listResources(id, params = {}, options) {
|
|
178
259
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -190,6 +271,12 @@ class Customers extends resource_1.APIResource {
|
|
|
190
271
|
}
|
|
191
272
|
/**
|
|
192
273
|
* Creates a new customer.
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* ```ts
|
|
277
|
+
* const customerResponse =
|
|
278
|
+
* await client.v1.customers.provision({ id: 'id' });
|
|
279
|
+
* ```
|
|
193
280
|
*/
|
|
194
281
|
provision(params, options) {
|
|
195
282
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -213,6 +300,12 @@ class Customers extends resource_1.APIResource {
|
|
|
213
300
|
* built-in cache) or the Sidecar will typically respond faster and keep working
|
|
214
301
|
* through brief Stigg outages; reach for this endpoint when a live HTTP call is
|
|
215
302
|
* the natural fit, such as from a non-Node backend or a server-side job.
|
|
303
|
+
*
|
|
304
|
+
* @example
|
|
305
|
+
* ```ts
|
|
306
|
+
* const response =
|
|
307
|
+
* await client.v1.customers.retrieveEntitlements('x');
|
|
308
|
+
* ```
|
|
216
309
|
*/
|
|
217
310
|
retrieveEntitlements(id, params = {}, options) {
|
|
218
311
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -230,6 +323,12 @@ class Customers extends resource_1.APIResource {
|
|
|
230
323
|
}
|
|
231
324
|
/**
|
|
232
325
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
326
|
+
*
|
|
327
|
+
* @example
|
|
328
|
+
* ```ts
|
|
329
|
+
* const customerResponse =
|
|
330
|
+
* await client.v1.customers.unarchive('x');
|
|
331
|
+
* ```
|
|
233
332
|
*/
|
|
234
333
|
unarchive(id, params = {}, options) {
|
|
235
334
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -249,4 +348,5 @@ exports.Customers = Customers;
|
|
|
249
348
|
Customers.PaymentMethod = payment_method_1.PaymentMethod;
|
|
250
349
|
Customers.PromotionalEntitlements = promotional_entitlements_1.PromotionalEntitlements;
|
|
251
350
|
Customers.Integrations = integrations_1.Integrations;
|
|
351
|
+
Customers.Entities = entities_1.Entities;
|
|
252
352
|
//# sourceMappingURL=customers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,2EAAkD;AAClD,oDASwB;AACxB,8EAAqD;AACrD,wDAAuG;AACvG,kGAAyE;AACzE,4EASoC;
|
|
1
|
+
{"version":3,"file":"customers.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,2EAAkD;AAClD,oDASwB;AACxB,8EAAqD;AACrD,wDAAuG;AACvG,kGAAyE;AACzE,4EASoC;AACpC,4EAAmD;AACnD,qDAW6B;AAE7B,4DAAkG;AAClG,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,4BAAuB,GACrB,IAAI,0BAA0B,CAAC,uBAAuB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwX1E,CAAC;IAtXC;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAU,EACV,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,C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AG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA7XD,8BA6XC;AA40HD,SAAS,CAAC,aAAa,GAAG,8BAAa,CAAC;AACxC,SAAS,CAAC,uBAAuB,GAAG,kDAAuB,CAAC;AAC5D,SAAS,CAAC,YAAY,GAAG,2BAAY,CAAC;AACtC,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -6,6 +6,8 @@ import * as PaymentMethodAPI from "./payment-method.mjs";
|
|
|
6
6
|
import { PaymentMethod } from "./payment-method.mjs";
|
|
7
7
|
import * as PromotionalEntitlementsAPI from "./promotional-entitlements.mjs";
|
|
8
8
|
import { PromotionalEntitlements, } from "./promotional-entitlements.mjs";
|
|
9
|
+
import * as EntitiesAPI from "./entities/entities.mjs";
|
|
10
|
+
import { Entities, } from "./entities/entities.mjs";
|
|
9
11
|
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
10
12
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
11
13
|
import { path } from "../../../internal/utils/path.mjs";
|
|
@@ -15,10 +17,18 @@ export class Customers extends APIResource {
|
|
|
15
17
|
this.paymentMethod = new PaymentMethodAPI.PaymentMethod(this._client);
|
|
16
18
|
this.promotionalEntitlements = new PromotionalEntitlementsAPI.PromotionalEntitlements(this._client);
|
|
17
19
|
this.integrations = new IntegrationsAPI.Integrations(this._client);
|
|
20
|
+
this.entities = new EntitiesAPI.Entities(this._client);
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* Retrieves a customer by their unique identifier, including billing information
|
|
21
24
|
* and subscription status.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const customerResponse = await client.v1.customers.retrieve(
|
|
29
|
+
* 'x',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
22
32
|
*/
|
|
23
33
|
retrieve(id, params = {}, options) {
|
|
24
34
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -36,6 +46,13 @@ export class Customers extends APIResource {
|
|
|
36
46
|
/**
|
|
37
47
|
* Updates an existing customer's properties such as name, email, and billing
|
|
38
48
|
* information.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const customerResponse = await client.v1.customers.update(
|
|
53
|
+
* 'x',
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
39
56
|
*/
|
|
40
57
|
update(id, params, options) {
|
|
41
58
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -53,6 +70,14 @@ export class Customers extends APIResource {
|
|
|
53
70
|
}
|
|
54
71
|
/**
|
|
55
72
|
* Retrieves a paginated list of customers in the environment.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* // Automatically fetches more pages as needed.
|
|
77
|
+
* for await (const customerListResponse of client.v1.customers.list()) {
|
|
78
|
+
* // ...
|
|
79
|
+
* }
|
|
80
|
+
* ```
|
|
56
81
|
*/
|
|
57
82
|
list(params = {}, options) {
|
|
58
83
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -71,6 +96,13 @@ export class Customers extends APIResource {
|
|
|
71
96
|
/**
|
|
72
97
|
* Archives a customer, preventing new subscriptions. Optionally cancels existing
|
|
73
98
|
* subscriptions.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* const customerResponse = await client.v1.customers.archive(
|
|
103
|
+
* 'x',
|
|
104
|
+
* );
|
|
105
|
+
* ```
|
|
74
106
|
*/
|
|
75
107
|
archive(id, params = {}, options) {
|
|
76
108
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -88,12 +120,21 @@ export class Customers extends APIResource {
|
|
|
88
120
|
/**
|
|
89
121
|
* Checks a single entitlement (feature or credit) for a customer or resource.
|
|
90
122
|
* Supports `requestedUsage` and `requestedValues` to evaluate against limits or
|
|
91
|
-
* enum values.
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
123
|
+
* enum values. Pass `dimensions` to also check the governance budgets of the
|
|
124
|
+
* entities the usage is attributed to; the response then includes `chains`. Each
|
|
125
|
+
* call reaches the Stigg API directly, so latency reflects a network round trip.
|
|
126
|
+
* For entitlement checks on a hot path (e.g. gating a request in real time), the
|
|
127
|
+
* Stigg Node Server SDK (with its built-in cache) or the Sidecar will typically
|
|
128
|
+
* respond faster and keep working through brief Stigg outages; reach for this
|
|
129
|
+
* endpoint when a live HTTP call is the natural fit, such as from a non-Node
|
|
130
|
+
* backend or a server-side job.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```ts
|
|
134
|
+
* const response = await client.v1.customers.checkEntitlement(
|
|
135
|
+
* 'x',
|
|
136
|
+
* );
|
|
137
|
+
* ```
|
|
97
138
|
*/
|
|
98
139
|
checkEntitlement(id, params = {}, options) {
|
|
99
140
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -112,6 +153,19 @@ export class Customers extends APIResource {
|
|
|
112
153
|
/**
|
|
113
154
|
* Imports multiple customers in bulk. Used for migrating customer data from
|
|
114
155
|
* external systems.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```ts
|
|
159
|
+
* const response = await client.v1.customers.import({
|
|
160
|
+
* customers: [
|
|
161
|
+
* {
|
|
162
|
+
* id: 'id',
|
|
163
|
+
* email: 'dev@stainless.com',
|
|
164
|
+
* name: 'name',
|
|
165
|
+
* },
|
|
166
|
+
* ],
|
|
167
|
+
* });
|
|
168
|
+
* ```
|
|
115
169
|
*/
|
|
116
170
|
import(params, options) {
|
|
117
171
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -131,6 +185,13 @@ export class Customers extends APIResource {
|
|
|
131
185
|
* Retrieves a customer's contracts. Each contract that has a billing contract is
|
|
132
186
|
* enriched with a preview of its upcoming (next) invoice when available. Returns
|
|
133
187
|
* an empty list when the customer has no contracts.
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* ```ts
|
|
191
|
+
* const response = await client.v1.customers.listContracts(
|
|
192
|
+
* 'id',
|
|
193
|
+
* );
|
|
194
|
+
* ```
|
|
134
195
|
*/
|
|
135
196
|
listContracts(id, params = {}, options) {
|
|
136
197
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -152,6 +213,16 @@ export class Customers extends APIResource {
|
|
|
152
213
|
* Optionally narrowed to one contract, an issue-date range, and/or a set of
|
|
153
214
|
* invoice states. Returns an empty list when no billing provider is connected or
|
|
154
215
|
* the customer is not synced.
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* ```ts
|
|
219
|
+
* // Automatically fetches more pages as needed.
|
|
220
|
+
* for await (const customerListInvoicesResponse of client.v1.customers.listInvoices(
|
|
221
|
+
* 'id',
|
|
222
|
+
* )) {
|
|
223
|
+
* // ...
|
|
224
|
+
* }
|
|
225
|
+
* ```
|
|
155
226
|
*/
|
|
156
227
|
listInvoices(id, params = {}, options) {
|
|
157
228
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -169,6 +240,16 @@ export class Customers extends APIResource {
|
|
|
169
240
|
}
|
|
170
241
|
/**
|
|
171
242
|
* Retrieves a paginated list of resources within the same customer.
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* ```ts
|
|
246
|
+
* // Automatically fetches more pages as needed.
|
|
247
|
+
* for await (const customerListResourcesResponse of client.v1.customers.listResources(
|
|
248
|
+
* 'x',
|
|
249
|
+
* )) {
|
|
250
|
+
* // ...
|
|
251
|
+
* }
|
|
252
|
+
* ```
|
|
172
253
|
*/
|
|
173
254
|
listResources(id, params = {}, options) {
|
|
174
255
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -186,6 +267,12 @@ export class Customers extends APIResource {
|
|
|
186
267
|
}
|
|
187
268
|
/**
|
|
188
269
|
* Creates a new customer.
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* ```ts
|
|
273
|
+
* const customerResponse =
|
|
274
|
+
* await client.v1.customers.provision({ id: 'id' });
|
|
275
|
+
* ```
|
|
189
276
|
*/
|
|
190
277
|
provision(params, options) {
|
|
191
278
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
@@ -209,6 +296,12 @@ export class Customers extends APIResource {
|
|
|
209
296
|
* built-in cache) or the Sidecar will typically respond faster and keep working
|
|
210
297
|
* through brief Stigg outages; reach for this endpoint when a live HTTP call is
|
|
211
298
|
* the natural fit, such as from a non-Node backend or a server-side job.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* ```ts
|
|
302
|
+
* const response =
|
|
303
|
+
* await client.v1.customers.retrieveEntitlements('x');
|
|
304
|
+
* ```
|
|
212
305
|
*/
|
|
213
306
|
retrieveEntitlements(id, params = {}, options) {
|
|
214
307
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
|
|
@@ -226,6 +319,12 @@ export class Customers extends APIResource {
|
|
|
226
319
|
}
|
|
227
320
|
/**
|
|
228
321
|
* Restores an archived customer, allowing them to create new subscriptions again.
|
|
322
|
+
*
|
|
323
|
+
* @example
|
|
324
|
+
* ```ts
|
|
325
|
+
* const customerResponse =
|
|
326
|
+
* await client.v1.customers.unarchive('x');
|
|
327
|
+
* ```
|
|
229
328
|
*/
|
|
230
329
|
unarchive(id, params = {}, options) {
|
|
231
330
|
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
@@ -244,4 +343,5 @@ export class Customers extends APIResource {
|
|
|
244
343
|
Customers.PaymentMethod = PaymentMethod;
|
|
245
344
|
Customers.PromotionalEntitlements = PromotionalEntitlements;
|
|
246
345
|
Customers.Integrations = Integrations;
|
|
346
|
+
Customers.Entities = Entities;
|
|
247
347
|
//# sourceMappingURL=customers.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAQL,YAAY,GACb,2BAAuB;AACxB,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EAAE,aAAa,EAAwD,6BAAyB;AACvG,OAAO,KAAK,0BAA0B,uCAAmC;AACzE,OAAO,EAQL,uBAAuB,GACxB,uCAAmC;
|
|
1
|
+
{"version":3,"file":"customers.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/customers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAQL,YAAY,GACb,2BAAuB;AACxB,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EAAE,aAAa,EAAwD,6BAAyB;AACvG,OAAO,KAAK,0BAA0B,uCAAmC;AACzE,OAAO,EA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