@stigg/typescript 0.1.0-beta.20 → 0.1.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +143 -33
- package/resources/v1/addons/addons.d.mts.map +1 -1
- package/resources/v1/addons/addons.d.ts +143 -33
- package/resources/v1/addons/addons.d.ts.map +1 -1
- package/resources/v1/addons/addons.js +110 -17
- package/resources/v1/addons/addons.js.map +1 -1
- package/resources/v1/addons/addons.mjs +110 -17
- package/resources/v1/addons/addons.mjs.map +1 -1
- package/resources/v1/addons/entitlements.d.mts +62 -5
- package/resources/v1/addons/entitlements.d.mts.map +1 -1
- package/resources/v1/addons/entitlements.d.ts +62 -5
- package/resources/v1/addons/entitlements.d.ts.map +1 -1
- package/resources/v1/addons/entitlements.js +49 -8
- package/resources/v1/addons/entitlements.js.map +1 -1
- package/resources/v1/addons/entitlements.mjs +49 -8
- package/resources/v1/addons/entitlements.mjs.map +1 -1
- package/resources/v1/addons/index.d.mts +2 -2
- package/resources/v1/addons/index.d.mts.map +1 -1
- package/resources/v1/addons/index.d.ts +2 -2
- package/resources/v1/addons/index.d.ts.map +1 -1
- package/resources/v1/addons/index.js.map +1 -1
- package/resources/v1/addons/index.mjs.map +1 -1
- package/resources/v1/coupons.d.mts +80 -20
- package/resources/v1/coupons.d.mts.map +1 -1
- package/resources/v1/coupons.d.ts +80 -20
- package/resources/v1/coupons.d.ts.map +1 -1
- package/resources/v1/coupons.js +60 -9
- package/resources/v1/coupons.js.map +1 -1
- package/resources/v1/coupons.mjs +60 -9
- package/resources/v1/coupons.mjs.map +1 -1
- package/resources/v1/credits/credits.d.mts +59 -26
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +59 -26
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +36 -5
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +36 -5
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/custom-currencies.d.mts +96 -23
- package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
- package/resources/v1/credits/custom-currencies.d.ts +96 -23
- package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
- package/resources/v1/credits/custom-currencies.js +76 -12
- package/resources/v1/credits/custom-currencies.js.map +1 -1
- package/resources/v1/credits/custom-currencies.mjs +76 -12
- package/resources/v1/credits/custom-currencies.mjs.map +1 -1
- package/resources/v1/credits/grants.d.mts +60 -23
- package/resources/v1/credits/grants.d.mts.map +1 -1
- package/resources/v1/credits/grants.d.ts +60 -23
- package/resources/v1/credits/grants.d.ts.map +1 -1
- package/resources/v1/credits/grants.js +35 -5
- package/resources/v1/credits/grants.js.map +1 -1
- package/resources/v1/credits/grants.mjs +35 -5
- package/resources/v1/credits/grants.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +2 -2
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +2 -2
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/customers/customers.d.mts +165 -48
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +165 -48
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js +124 -19
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs +124 -19
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/customers/index.d.mts +2 -2
- package/resources/v1/customers/index.d.mts.map +1 -1
- package/resources/v1/customers/index.d.ts +2 -2
- package/resources/v1/customers/index.d.ts.map +1 -1
- package/resources/v1/customers/index.js.map +1 -1
- package/resources/v1/customers/index.mjs +1 -1
- package/resources/v1/customers/index.mjs.map +1 -1
- package/resources/v1/customers/integrations.d.mts +64 -9
- package/resources/v1/customers/integrations.d.mts.map +1 -1
- package/resources/v1/customers/integrations.d.ts +64 -9
- package/resources/v1/customers/integrations.d.ts.map +1 -1
- package/resources/v1/customers/integrations.js +57 -9
- package/resources/v1/customers/integrations.js.map +1 -1
- package/resources/v1/customers/integrations.mjs +57 -9
- package/resources/v1/customers/integrations.mjs.map +1 -1
- package/resources/v1/customers/payment-method.d.mts +31 -7
- package/resources/v1/customers/payment-method.d.mts.map +1 -1
- package/resources/v1/customers/payment-method.d.ts +31 -7
- package/resources/v1/customers/payment-method.d.ts.map +1 -1
- package/resources/v1/customers/payment-method.js +26 -4
- package/resources/v1/customers/payment-method.js.map +1 -1
- package/resources/v1/customers/payment-method.mjs +26 -4
- package/resources/v1/customers/payment-method.mjs.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
- package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
- package/resources/v1/customers/promotional-entitlements.js +38 -6
- package/resources/v1/customers/promotional-entitlements.js.map +1 -1
- package/resources/v1/customers/promotional-entitlements.mjs +38 -6
- package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
- package/resources/v1/events/beta/customers/assignments.d.mts +27 -5
- package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/assignments.d.ts +27 -5
- package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/assignments.js +27 -4
- package/resources/v1/events/beta/customers/assignments.js.map +1 -1
- package/resources/v1/events/beta/customers/assignments.mjs +27 -4
- package/resources/v1/events/beta/customers/assignments.mjs.map +1 -1
- package/resources/v1/events/beta/customers/entities.d.mts +66 -10
- package/resources/v1/events/beta/customers/entities.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/entities.d.ts +66 -10
- package/resources/v1/events/beta/customers/entities.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/entities.js +64 -10
- package/resources/v1/events/beta/customers/entities.js.map +1 -1
- package/resources/v1/events/beta/customers/entities.mjs +64 -10
- package/resources/v1/events/beta/customers/entities.mjs.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.d.mts +23 -10
- package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.d.ts +23 -10
- package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.js +14 -2
- package/resources/v1/events/beta/customers/entitlements.js.map +1 -1
- package/resources/v1/events/beta/customers/entitlements.mjs +14 -2
- package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -1
- package/resources/v1/events/beta/entity-types.d.mts +25 -3
- package/resources/v1/events/beta/entity-types.d.mts.map +1 -1
- package/resources/v1/events/beta/entity-types.d.ts +25 -3
- package/resources/v1/events/beta/entity-types.d.ts.map +1 -1
- package/resources/v1/events/beta/entity-types.js +23 -3
- package/resources/v1/events/beta/entity-types.js.map +1 -1
- package/resources/v1/events/beta/entity-types.mjs +23 -3
- package/resources/v1/events/beta/entity-types.mjs.map +1 -1
- package/resources/v1/events/events.d.mts +13 -2
- package/resources/v1/events/events.d.mts.map +1 -1
- package/resources/v1/events/events.d.ts +13 -2
- package/resources/v1/events/events.d.ts.map +1 -1
- package/resources/v1/events/events.js +14 -2
- package/resources/v1/events/events.js.map +1 -1
- package/resources/v1/events/events.mjs +14 -2
- package/resources/v1/events/events.mjs.map +1 -1
- package/resources/v1/features.d.mts +108 -30
- package/resources/v1/features.d.mts.map +1 -1
- package/resources/v1/features.d.ts +108 -30
- package/resources/v1/features.d.ts.map +1 -1
- package/resources/v1/features.js +72 -11
- package/resources/v1/features.js.map +1 -1
- package/resources/v1/features.mjs +72 -11
- package/resources/v1/features.mjs.map +1 -1
- package/resources/v1/index.d.mts +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 -5
- package/resources/v1/plans/entitlements.d.mts.map +1 -1
- package/resources/v1/plans/entitlements.d.ts +62 -5
- package/resources/v1/plans/entitlements.d.ts.map +1 -1
- package/resources/v1/plans/entitlements.js +49 -8
- package/resources/v1/plans/entitlements.js.map +1 -1
- package/resources/v1/plans/entitlements.mjs +49 -8
- package/resources/v1/plans/entitlements.mjs.map +1 -1
- package/resources/v1/plans/index.d.mts +2 -2
- package/resources/v1/plans/index.d.mts.map +1 -1
- package/resources/v1/plans/index.d.ts +2 -2
- package/resources/v1/plans/index.d.ts.map +1 -1
- package/resources/v1/plans/index.js.map +1 -1
- package/resources/v1/plans/index.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +156 -34
- package/resources/v1/plans/plans.d.mts.map +1 -1
- package/resources/v1/plans/plans.d.ts +156 -34
- package/resources/v1/plans/plans.d.ts.map +1 -1
- package/resources/v1/plans/plans.js +127 -20
- package/resources/v1/plans/plans.js.map +1 -1
- package/resources/v1/plans/plans.mjs +127 -20
- package/resources/v1/plans/plans.mjs.map +1 -1
- package/resources/v1/products.d.mts +97 -23
- package/resources/v1/products.d.mts.map +1 -1
- package/resources/v1/products.d.ts +97 -23
- package/resources/v1/products.d.ts.map +1 -1
- package/resources/v1/products.js +73 -11
- package/resources/v1/products.js.map +1 -1
- package/resources/v1/products.mjs +73 -11
- package/resources/v1/products.mjs.map +1 -1
- package/resources/v1/subscriptions/future-update.d.mts +29 -3
- package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
- package/resources/v1/subscriptions/future-update.d.ts +29 -3
- package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
- package/resources/v1/subscriptions/future-update.js +25 -4
- package/resources/v1/subscriptions/future-update.js.map +1 -1
- package/resources/v1/subscriptions/future-update.mjs +25 -4
- package/resources/v1/subscriptions/future-update.mjs.map +1 -1
- package/resources/v1/subscriptions/index.d.mts +4 -4
- package/resources/v1/subscriptions/index.d.mts.map +1 -1
- package/resources/v1/subscriptions/index.d.ts +4 -4
- package/resources/v1/subscriptions/index.d.ts.map +1 -1
- package/resources/v1/subscriptions/index.js.map +1 -1
- package/resources/v1/subscriptions/index.mjs +1 -1
- package/resources/v1/subscriptions/index.mjs.map +1 -1
- package/resources/v1/subscriptions/invoice.d.mts +15 -2
- package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
- package/resources/v1/subscriptions/invoice.d.ts +15 -2
- package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
- package/resources/v1/subscriptions/invoice.js +13 -2
- package/resources/v1/subscriptions/invoice.js.map +1 -1
- package/resources/v1/subscriptions/invoice.mjs +13 -2
- package/resources/v1/subscriptions/invoice.mjs.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +242 -78
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +242 -78
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js +126 -19
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs +128 -21
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/subscriptions/usage.d.mts +29 -4
- package/resources/v1/subscriptions/usage.d.mts.map +1 -1
- package/resources/v1/subscriptions/usage.d.ts +29 -4
- package/resources/v1/subscriptions/usage.d.ts.map +1 -1
- package/resources/v1/subscriptions/usage.js +26 -4
- package/resources/v1/subscriptions/usage.js.map +1 -1
- package/resources/v1/subscriptions/usage.mjs +26 -4
- package/resources/v1/subscriptions/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +24 -2
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +24 -2
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +26 -4
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +26 -4
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +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/src/resources/v1/addons/addons.ts +286 -39
- package/src/resources/v1/addons/entitlements.ts +123 -10
- package/src/resources/v1/addons/index.ts +5 -0
- package/src/resources/v1/coupons.ts +154 -23
- package/src/resources/v1/credits/credits.ts +102 -24
- package/src/resources/v1/credits/custom-currencies.ts +188 -30
- package/src/resources/v1/credits/grants.ts +102 -24
- package/src/resources/v1/credits/index.ts +4 -0
- package/src/resources/v1/customers/customers.ts +318 -57
- package/src/resources/v1/customers/index.ts +8 -1
- package/src/resources/v1/customers/integrations.ts +129 -16
- package/src/resources/v1/customers/payment-method.ts +66 -9
- package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
- package/src/resources/v1/events/beta/customers/assignments.ts +56 -7
- package/src/resources/v1/events/beta/customers/entities.ts +136 -16
- package/src/resources/v1/events/beta/customers/entitlements.ts +38 -11
- package/src/resources/v1/events/beta/entity-types.ts +51 -5
- package/src/resources/v1/events/events.ts +28 -3
- package/src/resources/v1/features.ts +204 -34
- package/src/resources/v1/index.ts +19 -0
- package/src/resources/v1/plans/entitlements.ts +123 -10
- package/src/resources/v1/plans/index.ts +5 -0
- package/src/resources/v1/plans/plans.ts +314 -43
- package/src/resources/v1/products.ts +189 -27
- package/src/resources/v1/subscriptions/future-update.ts +68 -5
- package/src/resources/v1/subscriptions/index.ts +9 -2
- package/src/resources/v1/subscriptions/invoice.ts +36 -3
- package/src/resources/v1/subscriptions/subscriptions.ts +410 -85
- package/src/resources/v1/subscriptions/usage.ts +61 -5
- package/src/resources/v1/usage.ts +53 -5
- package/src/resources/v1/v1.ts +38 -0
- 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
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Entitlements = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
6
7
|
const path_1 = require("../../../internal/utils/path.js");
|
|
7
8
|
class Entitlements extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
@@ -16,8 +17,19 @@ class Entitlements extends resource_1.APIResource {
|
|
|
16
17
|
* });
|
|
17
18
|
* ```
|
|
18
19
|
*/
|
|
19
|
-
create(addonID,
|
|
20
|
-
|
|
20
|
+
create(addonID, params, options) {
|
|
21
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
22
|
+
return this._client.post((0, path_1.path) `/api/v1/addons/${addonID}/entitlements`, {
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
headers: (0, headers_1.buildHeaders)([
|
|
26
|
+
{
|
|
27
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
28
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
29
|
+
},
|
|
30
|
+
options?.headers,
|
|
31
|
+
]),
|
|
32
|
+
});
|
|
21
33
|
}
|
|
22
34
|
/**
|
|
23
35
|
* Updates an existing entitlement on a draft addon.
|
|
@@ -32,8 +44,18 @@ class Entitlements extends resource_1.APIResource {
|
|
|
32
44
|
* ```
|
|
33
45
|
*/
|
|
34
46
|
update(id, params, options) {
|
|
35
|
-
const { addonId, ...body } = params;
|
|
36
|
-
return this._client.patch((0, path_1.path) `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
47
|
+
const { addonId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
48
|
+
return this._client.patch((0, path_1.path) `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
49
|
+
body,
|
|
50
|
+
...options,
|
|
51
|
+
headers: (0, headers_1.buildHeaders)([
|
|
52
|
+
{
|
|
53
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
54
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
55
|
+
},
|
|
56
|
+
options?.headers,
|
|
57
|
+
]),
|
|
58
|
+
});
|
|
37
59
|
}
|
|
38
60
|
/**
|
|
39
61
|
* Retrieves a list of entitlements for an addon.
|
|
@@ -44,8 +66,18 @@ class Entitlements extends resource_1.APIResource {
|
|
|
44
66
|
* await client.v1.addons.entitlements.list('addonId');
|
|
45
67
|
* ```
|
|
46
68
|
*/
|
|
47
|
-
list(addonID, options) {
|
|
48
|
-
|
|
69
|
+
list(addonID, params = {}, options) {
|
|
70
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
71
|
+
return this._client.get((0, path_1.path) `/api/v1/addons/${addonID}/entitlements`, {
|
|
72
|
+
...options,
|
|
73
|
+
headers: (0, headers_1.buildHeaders)([
|
|
74
|
+
{
|
|
75
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
76
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
77
|
+
},
|
|
78
|
+
options?.headers,
|
|
79
|
+
]),
|
|
80
|
+
});
|
|
49
81
|
}
|
|
50
82
|
/**
|
|
51
83
|
* Deletes an entitlement from a draft addon.
|
|
@@ -59,8 +91,17 @@ class Entitlements extends resource_1.APIResource {
|
|
|
59
91
|
* ```
|
|
60
92
|
*/
|
|
61
93
|
delete(id, params, options) {
|
|
62
|
-
const { addonId } = params;
|
|
63
|
-
return this._client.delete((0, path_1.path) `/api/v1/addons/${addonId}/entitlements/${id}`,
|
|
94
|
+
const { addonId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
95
|
+
return this._client.delete((0, path_1.path) `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
96
|
+
...options,
|
|
97
|
+
headers: (0, headers_1.buildHeaders)([
|
|
98
|
+
{
|
|
99
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
100
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
101
|
+
},
|
|
102
|
+
options?.headers,
|
|
103
|
+
]),
|
|
104
|
+
});
|
|
64
105
|
}
|
|
65
106
|
}
|
|
66
107
|
exports.Entitlements = Entitlements;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,eAAe,EAAE;YACrE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAA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GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,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;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,iBAAiB,EAAE,EAAE,EAAE;YAC7E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,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;AArHD,oCAqHC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
3
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
4
5
|
export class Entitlements extends APIResource {
|
|
5
6
|
/**
|
|
@@ -13,8 +14,19 @@ export class Entitlements extends APIResource {
|
|
|
13
14
|
* });
|
|
14
15
|
* ```
|
|
15
16
|
*/
|
|
16
|
-
create(addonID,
|
|
17
|
-
|
|
17
|
+
create(addonID, params, options) {
|
|
18
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
19
|
+
return this._client.post(path `/api/v1/addons/${addonID}/entitlements`, {
|
|
20
|
+
body,
|
|
21
|
+
...options,
|
|
22
|
+
headers: buildHeaders([
|
|
23
|
+
{
|
|
24
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
25
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
26
|
+
},
|
|
27
|
+
options?.headers,
|
|
28
|
+
]),
|
|
29
|
+
});
|
|
18
30
|
}
|
|
19
31
|
/**
|
|
20
32
|
* Updates an existing entitlement on a draft addon.
|
|
@@ -29,8 +41,18 @@ export class Entitlements extends APIResource {
|
|
|
29
41
|
* ```
|
|
30
42
|
*/
|
|
31
43
|
update(id, params, options) {
|
|
32
|
-
const { addonId, ...body } = params;
|
|
33
|
-
return this._client.patch(path `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
44
|
+
const { addonId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
45
|
+
return this._client.patch(path `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
46
|
+
body,
|
|
47
|
+
...options,
|
|
48
|
+
headers: buildHeaders([
|
|
49
|
+
{
|
|
50
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
51
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
52
|
+
},
|
|
53
|
+
options?.headers,
|
|
54
|
+
]),
|
|
55
|
+
});
|
|
34
56
|
}
|
|
35
57
|
/**
|
|
36
58
|
* Retrieves a list of entitlements for an addon.
|
|
@@ -41,8 +63,18 @@ export class Entitlements extends APIResource {
|
|
|
41
63
|
* await client.v1.addons.entitlements.list('addonId');
|
|
42
64
|
* ```
|
|
43
65
|
*/
|
|
44
|
-
list(addonID, options) {
|
|
45
|
-
|
|
66
|
+
list(addonID, params = {}, options) {
|
|
67
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
|
|
68
|
+
return this._client.get(path `/api/v1/addons/${addonID}/entitlements`, {
|
|
69
|
+
...options,
|
|
70
|
+
headers: buildHeaders([
|
|
71
|
+
{
|
|
72
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
73
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
74
|
+
},
|
|
75
|
+
options?.headers,
|
|
76
|
+
]),
|
|
77
|
+
});
|
|
46
78
|
}
|
|
47
79
|
/**
|
|
48
80
|
* Deletes an entitlement from a draft addon.
|
|
@@ -56,8 +88,17 @@ export class Entitlements extends APIResource {
|
|
|
56
88
|
* ```
|
|
57
89
|
*/
|
|
58
90
|
delete(id, params, options) {
|
|
59
|
-
const { addonId } = params;
|
|
60
|
-
return this._client.delete(path `/api/v1/addons/${addonId}/entitlements/${id}`,
|
|
91
|
+
const { addonId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
|
|
92
|
+
return this._client.delete(path `/api/v1/addons/${addonId}/entitlements/${id}`, {
|
|
93
|
+
...options,
|
|
94
|
+
headers: buildHeaders([
|
|
95
|
+
{
|
|
96
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
97
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
98
|
+
},
|
|
99
|
+
options?.headers,
|
|
100
|
+
]),
|
|
101
|
+
});
|
|
61
102
|
}
|
|
62
103
|
}
|
|
63
104
|
//# sourceMappingURL=entitlements.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;
|
|
1
|
+
{"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../src/resources/v1/addons/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,OAAO,eAAe,EAAE;YACrE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,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;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,EAAU,EACV,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,E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AAM,EAAE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kBAAkB,OAAO,iBAAiB,EAAE,EAAE,EAAE;YAC7E,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,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"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Addons, type Addon, type AddonListResponse, type AddonListChargesResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonListChargesParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage, } from "./addons.mjs";
|
|
2
|
-
export { Entitlements, type AddonPackageEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementDeleteParams, } from "./entitlements.mjs";
|
|
1
|
+
export { Addons, type Addon, type AddonListResponse, type AddonListChargesResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonRetrieveParams, type AddonUpdateParams, type AddonListParams, type AddonArchiveParams, type AddonCreateDraftParams, type AddonListChargesParams, type AddonPublishParams, type AddonRemoveDraftParams, type AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage, } from "./addons.mjs";
|
|
2
|
+
export { Entitlements, type AddonPackageEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementListParams, type EntitlementDeleteParams, } from "./entitlements.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,GAC7C,qBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,2BAAuB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,GAC7C,qBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,2BAAuB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Addons, type Addon, type AddonListResponse, type AddonListChargesResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonListChargesParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage, } from "./addons.js";
|
|
2
|
-
export { Entitlements, type AddonPackageEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementDeleteParams, } from "./entitlements.js";
|
|
1
|
+
export { Addons, type Addon, type AddonListResponse, type AddonListChargesResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonRetrieveParams, type AddonUpdateParams, type AddonListParams, type AddonArchiveParams, type AddonCreateDraftParams, type AddonListChargesParams, type AddonPublishParams, type AddonRemoveDraftParams, type AddonListResponsesMyCursorIDPage, type AddonListChargesResponsesMyCursorIDPage, } from "./addons.js";
|
|
2
|
+
export { Entitlements, type AddonPackageEntitlement, type EntitlementCreateResponse, type EntitlementListResponse, type EntitlementCreateParams, type EntitlementUpdateParams, type EntitlementListParams, type EntitlementDeleteParams, } from "./entitlements.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,GAC7C,oBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B,0BAAuB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,GAC7C,oBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,GAC7B,0BAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAkBkB;AAjBhB,gGAAA,MAAM,OAAA;AAkBR,kDASwB;AARtB,4GAAA,YAAY,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/addons/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAiBP,qBAAiB;AAClB,OAAO,EACL,YAAY,GAQb,2BAAuB"}
|
|
@@ -23,7 +23,7 @@ export declare class Coupons extends APIResource {
|
|
|
23
23
|
* });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
create(
|
|
26
|
+
create(params: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
27
27
|
/**
|
|
28
28
|
* Retrieves a coupon by its unique identifier.
|
|
29
29
|
*
|
|
@@ -32,7 +32,7 @@ export declare class Coupons extends APIResource {
|
|
|
32
32
|
* const coupon = await client.v1.coupons.retrieve('x');
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
35
|
+
retrieve(id: string, params?: CouponRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Coupon>;
|
|
36
36
|
/**
|
|
37
37
|
* Retrieves a paginated list of coupons in the environment.
|
|
38
38
|
*
|
|
@@ -44,7 +44,7 @@ export declare class Coupons extends APIResource {
|
|
|
44
44
|
* }
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
list(
|
|
47
|
+
list(params?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesMyCursorIDPage, CouponListResponse>;
|
|
48
48
|
/**
|
|
49
49
|
* Archives a coupon, preventing it from being applied to new subscriptions.
|
|
50
50
|
*
|
|
@@ -53,7 +53,7 @@ export declare class Coupons extends APIResource {
|
|
|
53
53
|
* const coupon = await client.v1.coupons.archiveCoupon('x');
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
archiveCoupon(id: string, options?: RequestOptions): APIPromise<Coupon>;
|
|
56
|
+
archiveCoupon(id: string, params?: CouponArchiveCouponParams | null | undefined, options?: RequestOptions): APIPromise<Coupon>;
|
|
57
57
|
/**
|
|
58
58
|
* Updates an existing coupon's properties such as name, description, and metadata.
|
|
59
59
|
*
|
|
@@ -62,7 +62,7 @@ export declare class Coupons extends APIResource {
|
|
|
62
62
|
* const coupon = await client.v1.coupons.updateCoupon('x');
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
updateCoupon(id: string,
|
|
65
|
+
updateCoupon(id: string, params: CouponUpdateCouponParams, options?: RequestOptions): APIPromise<Coupon>;
|
|
66
66
|
}
|
|
67
67
|
export type CouponListResponsesMyCursorIDPage = MyCursorIDPage<CouponListResponse>;
|
|
68
68
|
/**
|
|
@@ -234,35 +234,46 @@ export declare namespace CouponListResponse {
|
|
|
234
234
|
}
|
|
235
235
|
export interface CouponCreateParams {
|
|
236
236
|
/**
|
|
237
|
-
* The unique identifier for the entity
|
|
237
|
+
* Body param: The unique identifier for the entity
|
|
238
238
|
*/
|
|
239
239
|
id: string;
|
|
240
240
|
/**
|
|
241
|
-
* Fixed amount discounts in different currencies
|
|
241
|
+
* Body param: Fixed amount discounts in different currencies
|
|
242
242
|
*/
|
|
243
243
|
amountsOff: Array<CouponCreateParams.AmountsOff> | null;
|
|
244
244
|
/**
|
|
245
|
-
* Description of the coupon
|
|
245
|
+
* Body param: Description of the coupon
|
|
246
246
|
*/
|
|
247
247
|
description: string | null;
|
|
248
248
|
/**
|
|
249
|
-
* Duration of the coupon validity in months
|
|
249
|
+
* Body param: Duration of the coupon validity in months
|
|
250
250
|
*/
|
|
251
251
|
durationInMonths: number | null;
|
|
252
252
|
/**
|
|
253
|
-
* Metadata associated with the entity
|
|
253
|
+
* Body param: Metadata associated with the entity
|
|
254
254
|
*/
|
|
255
255
|
metadata: {
|
|
256
256
|
[key: string]: string;
|
|
257
257
|
} | null;
|
|
258
258
|
/**
|
|
259
|
-
* Name of the coupon
|
|
259
|
+
* Body param: Name of the coupon
|
|
260
260
|
*/
|
|
261
261
|
name: string;
|
|
262
262
|
/**
|
|
263
|
-
* Percentage discount off the original price
|
|
263
|
+
* Body param: Percentage discount off the original price
|
|
264
264
|
*/
|
|
265
265
|
percentOff: number | null;
|
|
266
|
+
/**
|
|
267
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
268
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
269
|
+
*/
|
|
270
|
+
'X-ACCOUNT-ID'?: string;
|
|
271
|
+
/**
|
|
272
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
273
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
274
|
+
* intrinsic to the key).
|
|
275
|
+
*/
|
|
276
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
266
277
|
}
|
|
267
278
|
export declare namespace CouponCreateParams {
|
|
268
279
|
/**
|
|
@@ -279,23 +290,48 @@ export declare namespace CouponCreateParams {
|
|
|
279
290
|
currency: 'usd' | 'aed' | 'all' | 'amd' | 'ang' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bif' | 'bmd' | 'bnd' | 'bsd' | 'bwp' | 'byn' | 'bzd' | 'brl' | 'cad' | 'cdf' | 'chf' | 'cny' | 'czk' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'etb' | 'eur' | 'fjd' | 'gbp' | 'gel' | 'gip' | 'gmd' | 'gyd' | 'hkd' | 'hrk' | 'htg' | 'idr' | 'ils' | 'inr' | 'isk' | 'jmd' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'krw' | 'kyd' | 'kzt' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nok' | 'npr' | 'nzd' | 'pgk' | 'php' | 'pkr' | 'pln' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sek' | 'sgd' | 'sle' | 'sll' | 'sos' | 'szl' | 'thb' | 'tjs' | 'top' | 'try' | 'ttd' | 'tzs' | 'uah' | 'uzs' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xcd' | 'yer' | 'zar' | 'zmw' | 'clp' | 'djf' | 'gnf' | 'ugx' | 'pyg' | 'xof' | 'xpf';
|
|
280
291
|
}
|
|
281
292
|
}
|
|
293
|
+
export interface CouponRetrieveParams {
|
|
294
|
+
/**
|
|
295
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
296
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
297
|
+
*/
|
|
298
|
+
'X-ACCOUNT-ID'?: string;
|
|
299
|
+
/**
|
|
300
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
301
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
302
|
+
* key).
|
|
303
|
+
*/
|
|
304
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
305
|
+
}
|
|
282
306
|
export interface CouponListParams extends MyCursorIDPageParams {
|
|
283
307
|
/**
|
|
284
|
-
* Filter by entity ID
|
|
308
|
+
* Query param: Filter by entity ID
|
|
285
309
|
*/
|
|
286
310
|
id?: string;
|
|
287
311
|
/**
|
|
288
|
-
* Filter by creation date using range operators: gt, gte, lt, lte
|
|
312
|
+
* Query param: Filter by creation date using range operators: gt, gte, lt, lte
|
|
289
313
|
*/
|
|
290
314
|
createdAt?: CouponListParams.CreatedAt;
|
|
291
315
|
/**
|
|
292
|
-
* Filter by coupon status. Supports comma-separated values for
|
|
316
|
+
* Query param: Filter by coupon status. Supports comma-separated values for
|
|
317
|
+
* multiple statuses
|
|
293
318
|
*/
|
|
294
319
|
status?: Array<'ACTIVE' | 'ARCHIVED'>;
|
|
295
320
|
/**
|
|
296
|
-
* Filter by coupon type (FIXED or PERCENTAGE)
|
|
321
|
+
* Query param: Filter by coupon type (FIXED or PERCENTAGE)
|
|
297
322
|
*/
|
|
298
323
|
type?: 'FIXED' | 'PERCENTAGE';
|
|
324
|
+
/**
|
|
325
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
326
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
327
|
+
*/
|
|
328
|
+
'X-ACCOUNT-ID'?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
331
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
332
|
+
* intrinsic to the key).
|
|
333
|
+
*/
|
|
334
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
299
335
|
}
|
|
300
336
|
export declare namespace CouponListParams {
|
|
301
337
|
/**
|
|
@@ -320,23 +356,47 @@ export declare namespace CouponListParams {
|
|
|
320
356
|
lte?: string;
|
|
321
357
|
}
|
|
322
358
|
}
|
|
359
|
+
export interface CouponArchiveCouponParams {
|
|
360
|
+
/**
|
|
361
|
+
* Account ID — optional when authenticating with a user JWT (Bearer token); falls
|
|
362
|
+
* back to the user's first membership. Ignored for API-key auth.
|
|
363
|
+
*/
|
|
364
|
+
'X-ACCOUNT-ID'?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Environment ID — required when authenticating with a user JWT (Bearer token) on
|
|
367
|
+
* environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
|
|
368
|
+
* key).
|
|
369
|
+
*/
|
|
370
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
371
|
+
}
|
|
323
372
|
export interface CouponUpdateCouponParams {
|
|
324
373
|
/**
|
|
325
|
-
* Description of the coupon
|
|
374
|
+
* Body param: Description of the coupon
|
|
326
375
|
*/
|
|
327
376
|
description?: string | null;
|
|
328
377
|
/**
|
|
329
|
-
* Metadata associated with the entity
|
|
378
|
+
* Body param: Metadata associated with the entity
|
|
330
379
|
*/
|
|
331
380
|
metadata?: {
|
|
332
381
|
[key: string]: string;
|
|
333
382
|
} | null;
|
|
334
383
|
/**
|
|
335
|
-
* Name of the coupon
|
|
384
|
+
* Body param: Name of the coupon
|
|
336
385
|
*/
|
|
337
386
|
name?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
389
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
390
|
+
*/
|
|
391
|
+
'X-ACCOUNT-ID'?: string;
|
|
392
|
+
/**
|
|
393
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
394
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
395
|
+
* intrinsic to the key).
|
|
396
|
+
*/
|
|
397
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
338
398
|
}
|
|
339
399
|
export declare namespace Coupons {
|
|
340
|
-
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponListParams as CouponListParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
400
|
+
export { type Coupon as Coupon, type CouponListResponse as CouponListResponse, type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponRetrieveParams as CouponRetrieveParams, type CouponListParams as CouponListParams, type CouponArchiveCouponParams as CouponArchiveCouponParams, type CouponUpdateCouponParams as CouponUpdateCouponParams, };
|
|
341
401
|
}
|
|
342
402
|
//# sourceMappingURL=coupons.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons.d.mts","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,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,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;SACX;KACF;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,kBAAkB,CAAC,UAAU,C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