@connectedxm/admin-sdk 7.4.0 → 7.5.0
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/.openapi-generator/FILES +0 -1
- package/README.md +3 -1
- package/api.ts +389 -5
- package/dist/api.d.ts +199 -5
- package/dist/api.js +276 -0
- package/dist/esm/api.d.ts +199 -5
- package/dist/esm/api.js +276 -0
- package/docs/BaseEventPass.md +2 -2
- package/docs/Coupon.md +4 -0
- package/docs/EventPass.md +2 -2
- package/docs/EventsCouponsApi.md +192 -0
- package/package.json +1 -1
- package/docs/BaseEventPassTransfer.md +0 -20
package/dist/api.js
CHANGED
|
@@ -29822,6 +29822,54 @@ exports.EventsCohostsApi = EventsCohostsApi;
|
|
|
29822
29822
|
*/
|
|
29823
29823
|
const EventsCouponsApiAxiosParamCreator = function (configuration) {
|
|
29824
29824
|
return {
|
|
29825
|
+
/**
|
|
29826
|
+
* Add Event Coupon Tier endpoint
|
|
29827
|
+
* @summary Add Event Coupon Tier
|
|
29828
|
+
* @param {string} eventId The event identifier
|
|
29829
|
+
* @param {string} couponId The coupon identifier
|
|
29830
|
+
* @param {string} tierId The tier identifier
|
|
29831
|
+
* @param {boolean} allowed Filter by allowed
|
|
29832
|
+
* @param {*} [options] Override http request option.
|
|
29833
|
+
* @throws {RequiredError}
|
|
29834
|
+
*/
|
|
29835
|
+
addEventCouponTier: (eventId_1, couponId_1, tierId_1, allowed_1, ...args_1) => __awaiter(this, [eventId_1, couponId_1, tierId_1, allowed_1, ...args_1], void 0, function* (eventId, couponId, tierId, allowed, options = {}) {
|
|
29836
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
29837
|
+
(0, common_1.assertParamExists)('addEventCouponTier', 'eventId', eventId);
|
|
29838
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
29839
|
+
(0, common_1.assertParamExists)('addEventCouponTier', 'couponId', couponId);
|
|
29840
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
29841
|
+
(0, common_1.assertParamExists)('addEventCouponTier', 'tierId', tierId);
|
|
29842
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
29843
|
+
(0, common_1.assertParamExists)('addEventCouponTier', 'allowed', allowed);
|
|
29844
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers/{tierId}`
|
|
29845
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
29846
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)))
|
|
29847
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
29848
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29849
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29850
|
+
let baseOptions;
|
|
29851
|
+
if (configuration) {
|
|
29852
|
+
baseOptions = configuration.baseOptions;
|
|
29853
|
+
}
|
|
29854
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
29855
|
+
const localVarHeaderParameter = {};
|
|
29856
|
+
const localVarQueryParameter = {};
|
|
29857
|
+
// authentication ApiKeyAuth required
|
|
29858
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
|
|
29859
|
+
// authentication OrganizationId required
|
|
29860
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
|
|
29861
|
+
if (allowed !== undefined) {
|
|
29862
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
29863
|
+
}
|
|
29864
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
29865
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
29866
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29867
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29868
|
+
return {
|
|
29869
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
29870
|
+
options: localVarRequestOptions,
|
|
29871
|
+
};
|
|
29872
|
+
}),
|
|
29825
29873
|
/**
|
|
29826
29874
|
* Create Event Coupon endpoint
|
|
29827
29875
|
* @summary Create Event Coupon
|
|
@@ -30126,6 +30174,66 @@ const EventsCouponsApiAxiosParamCreator = function (configuration) {
|
|
|
30126
30174
|
options: localVarRequestOptions,
|
|
30127
30175
|
};
|
|
30128
30176
|
}),
|
|
30177
|
+
/**
|
|
30178
|
+
* Get Event Coupon Tiers endpoint
|
|
30179
|
+
* @summary Get Event Coupon Tiers
|
|
30180
|
+
* @param {string} eventId The event identifier
|
|
30181
|
+
* @param {string} couponId The coupon identifier
|
|
30182
|
+
* @param {boolean} allowed Filter by allowed
|
|
30183
|
+
* @param {number} [page] Page number
|
|
30184
|
+
* @param {number} [pageSize] Number of items per page
|
|
30185
|
+
* @param {string} [orderBy] Field to order by
|
|
30186
|
+
* @param {string} [search] Search query
|
|
30187
|
+
* @param {*} [options] Override http request option.
|
|
30188
|
+
* @throws {RequiredError}
|
|
30189
|
+
*/
|
|
30190
|
+
getEventCouponTiers: (eventId_1, couponId_1, allowed_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1) => __awaiter(this, [eventId_1, couponId_1, allowed_1, page_1, pageSize_1, orderBy_1, search_1, ...args_1], void 0, function* (eventId, couponId, allowed, page, pageSize, orderBy, search, options = {}) {
|
|
30191
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
30192
|
+
(0, common_1.assertParamExists)('getEventCouponTiers', 'eventId', eventId);
|
|
30193
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
30194
|
+
(0, common_1.assertParamExists)('getEventCouponTiers', 'couponId', couponId);
|
|
30195
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
30196
|
+
(0, common_1.assertParamExists)('getEventCouponTiers', 'allowed', allowed);
|
|
30197
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers`
|
|
30198
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
30199
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)));
|
|
30200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30201
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30202
|
+
let baseOptions;
|
|
30203
|
+
if (configuration) {
|
|
30204
|
+
baseOptions = configuration.baseOptions;
|
|
30205
|
+
}
|
|
30206
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
30207
|
+
const localVarHeaderParameter = {};
|
|
30208
|
+
const localVarQueryParameter = {};
|
|
30209
|
+
// authentication ApiKeyAuth required
|
|
30210
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
|
|
30211
|
+
// authentication OrganizationId required
|
|
30212
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
|
|
30213
|
+
if (allowed !== undefined) {
|
|
30214
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
30215
|
+
}
|
|
30216
|
+
if (page !== undefined) {
|
|
30217
|
+
localVarQueryParameter['page'] = page;
|
|
30218
|
+
}
|
|
30219
|
+
if (pageSize !== undefined) {
|
|
30220
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
30221
|
+
}
|
|
30222
|
+
if (orderBy !== undefined) {
|
|
30223
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
30224
|
+
}
|
|
30225
|
+
if (search !== undefined) {
|
|
30226
|
+
localVarQueryParameter['search'] = search;
|
|
30227
|
+
}
|
|
30228
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
30229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30230
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30231
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30232
|
+
return {
|
|
30233
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30234
|
+
options: localVarRequestOptions,
|
|
30235
|
+
};
|
|
30236
|
+
}),
|
|
30129
30237
|
/**
|
|
30130
30238
|
* Get Event Coupon Variants endpoint
|
|
30131
30239
|
* @summary Get Event Coupon Variants
|
|
@@ -30240,6 +30348,54 @@ const EventsCouponsApiAxiosParamCreator = function (configuration) {
|
|
|
30240
30348
|
options: localVarRequestOptions,
|
|
30241
30349
|
};
|
|
30242
30350
|
}),
|
|
30351
|
+
/**
|
|
30352
|
+
* Remove Event Coupon Tier endpoint
|
|
30353
|
+
* @summary Remove Event Coupon Tier
|
|
30354
|
+
* @param {string} eventId The event identifier
|
|
30355
|
+
* @param {string} couponId The coupon identifier
|
|
30356
|
+
* @param {string} tierId The tier identifier
|
|
30357
|
+
* @param {boolean} allowed Filter by allowed
|
|
30358
|
+
* @param {*} [options] Override http request option.
|
|
30359
|
+
* @throws {RequiredError}
|
|
30360
|
+
*/
|
|
30361
|
+
removeEventCouponTier: (eventId_1, couponId_1, tierId_1, allowed_1, ...args_1) => __awaiter(this, [eventId_1, couponId_1, tierId_1, allowed_1, ...args_1], void 0, function* (eventId, couponId, tierId, allowed, options = {}) {
|
|
30362
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
30363
|
+
(0, common_1.assertParamExists)('removeEventCouponTier', 'eventId', eventId);
|
|
30364
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
30365
|
+
(0, common_1.assertParamExists)('removeEventCouponTier', 'couponId', couponId);
|
|
30366
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
30367
|
+
(0, common_1.assertParamExists)('removeEventCouponTier', 'tierId', tierId);
|
|
30368
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
30369
|
+
(0, common_1.assertParamExists)('removeEventCouponTier', 'allowed', allowed);
|
|
30370
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers/{tierId}`
|
|
30371
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
30372
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)))
|
|
30373
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
30374
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30375
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30376
|
+
let baseOptions;
|
|
30377
|
+
if (configuration) {
|
|
30378
|
+
baseOptions = configuration.baseOptions;
|
|
30379
|
+
}
|
|
30380
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
30381
|
+
const localVarHeaderParameter = {};
|
|
30382
|
+
const localVarQueryParameter = {};
|
|
30383
|
+
// authentication ApiKeyAuth required
|
|
30384
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "api-key", configuration);
|
|
30385
|
+
// authentication OrganizationId required
|
|
30386
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "organization", configuration);
|
|
30387
|
+
if (allowed !== undefined) {
|
|
30388
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
30389
|
+
}
|
|
30390
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
30391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30393
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30394
|
+
return {
|
|
30395
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30396
|
+
options: localVarRequestOptions,
|
|
30397
|
+
};
|
|
30398
|
+
}),
|
|
30243
30399
|
/**
|
|
30244
30400
|
* Sync Event Coupon To Variants endpoint
|
|
30245
30401
|
* @summary Sync Event Coupon To Variants
|
|
@@ -30335,6 +30491,25 @@ exports.EventsCouponsApiAxiosParamCreator = EventsCouponsApiAxiosParamCreator;
|
|
|
30335
30491
|
const EventsCouponsApiFp = function (configuration) {
|
|
30336
30492
|
const localVarAxiosParamCreator = (0, exports.EventsCouponsApiAxiosParamCreator)(configuration);
|
|
30337
30493
|
return {
|
|
30494
|
+
/**
|
|
30495
|
+
* Add Event Coupon Tier endpoint
|
|
30496
|
+
* @summary Add Event Coupon Tier
|
|
30497
|
+
* @param {string} eventId The event identifier
|
|
30498
|
+
* @param {string} couponId The coupon identifier
|
|
30499
|
+
* @param {string} tierId The tier identifier
|
|
30500
|
+
* @param {boolean} allowed Filter by allowed
|
|
30501
|
+
* @param {*} [options] Override http request option.
|
|
30502
|
+
* @throws {RequiredError}
|
|
30503
|
+
*/
|
|
30504
|
+
addEventCouponTier(eventId, couponId, tierId, allowed, options) {
|
|
30505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30506
|
+
var _a, _b, _c;
|
|
30507
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addEventCouponTier(eventId, couponId, tierId, allowed, options);
|
|
30508
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30509
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsCouponsApi.addEventCouponTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30510
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30511
|
+
});
|
|
30512
|
+
},
|
|
30338
30513
|
/**
|
|
30339
30514
|
* Create Event Coupon endpoint
|
|
30340
30515
|
* @summary Create Event Coupon
|
|
@@ -30463,6 +30638,28 @@ const EventsCouponsApiFp = function (configuration) {
|
|
|
30463
30638
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30464
30639
|
});
|
|
30465
30640
|
},
|
|
30641
|
+
/**
|
|
30642
|
+
* Get Event Coupon Tiers endpoint
|
|
30643
|
+
* @summary Get Event Coupon Tiers
|
|
30644
|
+
* @param {string} eventId The event identifier
|
|
30645
|
+
* @param {string} couponId The coupon identifier
|
|
30646
|
+
* @param {boolean} allowed Filter by allowed
|
|
30647
|
+
* @param {number} [page] Page number
|
|
30648
|
+
* @param {number} [pageSize] Number of items per page
|
|
30649
|
+
* @param {string} [orderBy] Field to order by
|
|
30650
|
+
* @param {string} [search] Search query
|
|
30651
|
+
* @param {*} [options] Override http request option.
|
|
30652
|
+
* @throws {RequiredError}
|
|
30653
|
+
*/
|
|
30654
|
+
getEventCouponTiers(eventId, couponId, allowed, page, pageSize, orderBy, search, options) {
|
|
30655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30656
|
+
var _a, _b, _c;
|
|
30657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventCouponTiers(eventId, couponId, allowed, page, pageSize, orderBy, search, options);
|
|
30658
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30659
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsCouponsApi.getEventCouponTiers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30660
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30661
|
+
});
|
|
30662
|
+
},
|
|
30466
30663
|
/**
|
|
30467
30664
|
* Get Event Coupon Variants endpoint
|
|
30468
30665
|
* @summary Get Event Coupon Variants
|
|
@@ -30506,6 +30703,25 @@ const EventsCouponsApiFp = function (configuration) {
|
|
|
30506
30703
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30507
30704
|
});
|
|
30508
30705
|
},
|
|
30706
|
+
/**
|
|
30707
|
+
* Remove Event Coupon Tier endpoint
|
|
30708
|
+
* @summary Remove Event Coupon Tier
|
|
30709
|
+
* @param {string} eventId The event identifier
|
|
30710
|
+
* @param {string} couponId The coupon identifier
|
|
30711
|
+
* @param {string} tierId The tier identifier
|
|
30712
|
+
* @param {boolean} allowed Filter by allowed
|
|
30713
|
+
* @param {*} [options] Override http request option.
|
|
30714
|
+
* @throws {RequiredError}
|
|
30715
|
+
*/
|
|
30716
|
+
removeEventCouponTier(eventId, couponId, tierId, allowed, options) {
|
|
30717
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30718
|
+
var _a, _b, _c;
|
|
30719
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeEventCouponTier(eventId, couponId, tierId, allowed, options);
|
|
30720
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30721
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EventsCouponsApi.removeEventCouponTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30722
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30723
|
+
});
|
|
30724
|
+
},
|
|
30509
30725
|
/**
|
|
30510
30726
|
* Sync Event Coupon To Variants endpoint
|
|
30511
30727
|
* @summary Sync Event Coupon To Variants
|
|
@@ -30551,6 +30767,16 @@ exports.EventsCouponsApiFp = EventsCouponsApiFp;
|
|
|
30551
30767
|
const EventsCouponsApiFactory = function (configuration, basePath, axios) {
|
|
30552
30768
|
const localVarFp = (0, exports.EventsCouponsApiFp)(configuration);
|
|
30553
30769
|
return {
|
|
30770
|
+
/**
|
|
30771
|
+
* Add Event Coupon Tier endpoint
|
|
30772
|
+
* @summary Add Event Coupon Tier
|
|
30773
|
+
* @param {EventsCouponsApiAddEventCouponTierRequest} requestParameters Request parameters.
|
|
30774
|
+
* @param {*} [options] Override http request option.
|
|
30775
|
+
* @throws {RequiredError}
|
|
30776
|
+
*/
|
|
30777
|
+
addEventCouponTier(requestParameters, options) {
|
|
30778
|
+
return localVarFp.addEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(axios, basePath));
|
|
30779
|
+
},
|
|
30554
30780
|
/**
|
|
30555
30781
|
* Create Event Coupon endpoint
|
|
30556
30782
|
* @summary Create Event Coupon
|
|
@@ -30621,6 +30847,16 @@ const EventsCouponsApiFactory = function (configuration, basePath, axios) {
|
|
|
30621
30847
|
getEventCouponPayments(requestParameters, options) {
|
|
30622
30848
|
return localVarFp.getEventCouponPayments(requestParameters.eventId, requestParameters.couponId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30623
30849
|
},
|
|
30850
|
+
/**
|
|
30851
|
+
* Get Event Coupon Tiers endpoint
|
|
30852
|
+
* @summary Get Event Coupon Tiers
|
|
30853
|
+
* @param {EventsCouponsApiGetEventCouponTiersRequest} requestParameters Request parameters.
|
|
30854
|
+
* @param {*} [options] Override http request option.
|
|
30855
|
+
* @throws {RequiredError}
|
|
30856
|
+
*/
|
|
30857
|
+
getEventCouponTiers(requestParameters, options) {
|
|
30858
|
+
return localVarFp.getEventCouponTiers(requestParameters.eventId, requestParameters.couponId, requestParameters.allowed, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30859
|
+
},
|
|
30624
30860
|
/**
|
|
30625
30861
|
* Get Event Coupon Variants endpoint
|
|
30626
30862
|
* @summary Get Event Coupon Variants
|
|
@@ -30641,6 +30877,16 @@ const EventsCouponsApiFactory = function (configuration, basePath, axios) {
|
|
|
30641
30877
|
getEventCoupons(requestParameters, options) {
|
|
30642
30878
|
return localVarFp.getEventCoupons(requestParameters.eventId, requestParameters.prePaid, requestParameters.includeVariants, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30643
30879
|
},
|
|
30880
|
+
/**
|
|
30881
|
+
* Remove Event Coupon Tier endpoint
|
|
30882
|
+
* @summary Remove Event Coupon Tier
|
|
30883
|
+
* @param {EventsCouponsApiRemoveEventCouponTierRequest} requestParameters Request parameters.
|
|
30884
|
+
* @param {*} [options] Override http request option.
|
|
30885
|
+
* @throws {RequiredError}
|
|
30886
|
+
*/
|
|
30887
|
+
removeEventCouponTier(requestParameters, options) {
|
|
30888
|
+
return localVarFp.removeEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(axios, basePath));
|
|
30889
|
+
},
|
|
30644
30890
|
/**
|
|
30645
30891
|
* Sync Event Coupon To Variants endpoint
|
|
30646
30892
|
* @summary Sync Event Coupon To Variants
|
|
@@ -30668,6 +30914,16 @@ exports.EventsCouponsApiFactory = EventsCouponsApiFactory;
|
|
|
30668
30914
|
* EventsCouponsApi - object-oriented interface
|
|
30669
30915
|
*/
|
|
30670
30916
|
class EventsCouponsApi extends base_1.BaseAPI {
|
|
30917
|
+
/**
|
|
30918
|
+
* Add Event Coupon Tier endpoint
|
|
30919
|
+
* @summary Add Event Coupon Tier
|
|
30920
|
+
* @param {EventsCouponsApiAddEventCouponTierRequest} requestParameters Request parameters.
|
|
30921
|
+
* @param {*} [options] Override http request option.
|
|
30922
|
+
* @throws {RequiredError}
|
|
30923
|
+
*/
|
|
30924
|
+
addEventCouponTier(requestParameters, options) {
|
|
30925
|
+
return (0, exports.EventsCouponsApiFp)(this.configuration).addEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(this.axios, this.basePath));
|
|
30926
|
+
}
|
|
30671
30927
|
/**
|
|
30672
30928
|
* Create Event Coupon endpoint
|
|
30673
30929
|
* @summary Create Event Coupon
|
|
@@ -30738,6 +30994,16 @@ class EventsCouponsApi extends base_1.BaseAPI {
|
|
|
30738
30994
|
getEventCouponPayments(requestParameters, options) {
|
|
30739
30995
|
return (0, exports.EventsCouponsApiFp)(this.configuration).getEventCouponPayments(requestParameters.eventId, requestParameters.couponId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
30740
30996
|
}
|
|
30997
|
+
/**
|
|
30998
|
+
* Get Event Coupon Tiers endpoint
|
|
30999
|
+
* @summary Get Event Coupon Tiers
|
|
31000
|
+
* @param {EventsCouponsApiGetEventCouponTiersRequest} requestParameters Request parameters.
|
|
31001
|
+
* @param {*} [options] Override http request option.
|
|
31002
|
+
* @throws {RequiredError}
|
|
31003
|
+
*/
|
|
31004
|
+
getEventCouponTiers(requestParameters, options) {
|
|
31005
|
+
return (0, exports.EventsCouponsApiFp)(this.configuration).getEventCouponTiers(requestParameters.eventId, requestParameters.couponId, requestParameters.allowed, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
31006
|
+
}
|
|
30741
31007
|
/**
|
|
30742
31008
|
* Get Event Coupon Variants endpoint
|
|
30743
31009
|
* @summary Get Event Coupon Variants
|
|
@@ -30758,6 +31024,16 @@ class EventsCouponsApi extends base_1.BaseAPI {
|
|
|
30758
31024
|
getEventCoupons(requestParameters, options) {
|
|
30759
31025
|
return (0, exports.EventsCouponsApiFp)(this.configuration).getEventCoupons(requestParameters.eventId, requestParameters.prePaid, requestParameters.includeVariants, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
30760
31026
|
}
|
|
31027
|
+
/**
|
|
31028
|
+
* Remove Event Coupon Tier endpoint
|
|
31029
|
+
* @summary Remove Event Coupon Tier
|
|
31030
|
+
* @param {EventsCouponsApiRemoveEventCouponTierRequest} requestParameters Request parameters.
|
|
31031
|
+
* @param {*} [options] Override http request option.
|
|
31032
|
+
* @throws {RequiredError}
|
|
31033
|
+
*/
|
|
31034
|
+
removeEventCouponTier(requestParameters, options) {
|
|
31035
|
+
return (0, exports.EventsCouponsApiFp)(this.configuration).removeEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(this.axios, this.basePath));
|
|
31036
|
+
}
|
|
30761
31037
|
/**
|
|
30762
31038
|
* Sync Event Coupon To Variants endpoint
|
|
30763
31039
|
* @summary Sync Event Coupon To Variants
|