@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/.openapi-generator/FILES
CHANGED
|
@@ -132,7 +132,6 @@ docs/BaseEventPage.md
|
|
|
132
132
|
docs/BaseEventPass.md
|
|
133
133
|
docs/BaseEventPassAttendee.md
|
|
134
134
|
docs/BaseEventPassAttendeeAccount.md
|
|
135
|
-
docs/BaseEventPassTransfer.md
|
|
136
135
|
docs/BaseEventPassType.md
|
|
137
136
|
docs/BaseEventPassTypePriceSchedule.md
|
|
138
137
|
docs/BaseEventPassTypeRefundSchedule.md
|
package/README.md
CHANGED
|
@@ -361,6 +361,7 @@ Class | Method | HTTP request | Description
|
|
|
361
361
|
*EventsCohostsApi* | [**addEventCoHost**](docs/EventsCohostsApi.md#addeventcohost) | **POST** /events/{eventId}/coHosts/{accountId} | Add Event Co Host
|
|
362
362
|
*EventsCohostsApi* | [**getEventCoHosts**](docs/EventsCohostsApi.md#geteventcohosts) | **GET** /events/{eventId}/coHosts | Get Event Co Hosts
|
|
363
363
|
*EventsCohostsApi* | [**removeEventCoHost**](docs/EventsCohostsApi.md#removeeventcohost) | **DELETE** /events/{eventId}/coHosts/{accountId} | Remove Event Co Host
|
|
364
|
+
*EventsCouponsApi* | [**addEventCouponTier**](docs/EventsCouponsApi.md#addeventcoupontier) | **POST** /events/{eventId}/coupons/{couponId}/tiers/{tierId} | Add Event Coupon Tier
|
|
364
365
|
*EventsCouponsApi* | [**createEventCoupon**](docs/EventsCouponsApi.md#createeventcoupon) | **POST** /events/{eventId}/coupons | Create Event Coupon
|
|
365
366
|
*EventsCouponsApi* | [**createEventCouponVariants**](docs/EventsCouponsApi.md#createeventcouponvariants) | **POST** /events/{eventId}/coupons/{couponId}/variants | Create Event Coupon Variants
|
|
366
367
|
*EventsCouponsApi* | [**deleteEventCoupon**](docs/EventsCouponsApi.md#deleteeventcoupon) | **DELETE** /events/{eventId}/coupons/{couponId} | Delete Event Coupon
|
|
@@ -368,8 +369,10 @@ Class | Method | HTTP request | Description
|
|
|
368
369
|
*EventsCouponsApi* | [**getEventCoupon**](docs/EventsCouponsApi.md#geteventcoupon) | **GET** /events/{eventId}/coupons/{couponId} | Get Event Coupon
|
|
369
370
|
*EventsCouponsApi* | [**getEventCouponPasses**](docs/EventsCouponsApi.md#geteventcouponpasses) | **GET** /events/{eventId}/coupons/{couponId}/passes | Get Event Coupon Passes
|
|
370
371
|
*EventsCouponsApi* | [**getEventCouponPayments**](docs/EventsCouponsApi.md#geteventcouponpayments) | **GET** /events/{eventId}/coupons/{couponId}/payments | Get Event Coupon Payments
|
|
372
|
+
*EventsCouponsApi* | [**getEventCouponTiers**](docs/EventsCouponsApi.md#geteventcoupontiers) | **GET** /events/{eventId}/coupons/{couponId}/tiers | Get Event Coupon Tiers
|
|
371
373
|
*EventsCouponsApi* | [**getEventCouponVariants**](docs/EventsCouponsApi.md#geteventcouponvariants) | **GET** /events/{eventId}/coupons/{parentCouponId}/variants | Get Event Coupon Variants
|
|
372
374
|
*EventsCouponsApi* | [**getEventCoupons**](docs/EventsCouponsApi.md#geteventcoupons) | **GET** /events/{eventId}/coupons | Get Event Coupons
|
|
375
|
+
*EventsCouponsApi* | [**removeEventCouponTier**](docs/EventsCouponsApi.md#removeeventcoupontier) | **DELETE** /events/{eventId}/coupons/{couponId}/tiers/{tierId} | Remove Event Coupon Tier
|
|
373
376
|
*EventsCouponsApi* | [**syncEventCouponToVariants**](docs/EventsCouponsApi.md#synceventcoupontovariants) | **PUT** /events/{eventId}/coupons/{couponId}/variants | Sync Event Coupon To Variants
|
|
374
377
|
*EventsCouponsApi* | [**updateEventCoupon**](docs/EventsCouponsApi.md#updateeventcoupon) | **PUT** /events/{eventId}/coupons/{couponId} | Update Event Coupon
|
|
375
378
|
*EventsEmailsApi* | [**getEventEmail**](docs/EventsEmailsApi.md#geteventemail) | **GET** /events/{eventId}/emails/{type} | Get Event Email
|
|
@@ -1373,7 +1376,6 @@ Class | Method | HTTP request | Description
|
|
|
1373
1376
|
- [BaseEventPass](docs/BaseEventPass.md)
|
|
1374
1377
|
- [BaseEventPassAttendee](docs/BaseEventPassAttendee.md)
|
|
1375
1378
|
- [BaseEventPassAttendeeAccount](docs/BaseEventPassAttendeeAccount.md)
|
|
1376
|
-
- [BaseEventPassTransfer](docs/BaseEventPassTransfer.md)
|
|
1377
1379
|
- [BaseEventPassType](docs/BaseEventPassType.md)
|
|
1378
1380
|
- [BaseEventPassTypePriceSchedule](docs/BaseEventPassTypePriceSchedule.md)
|
|
1379
1381
|
- [BaseEventPassTypeRefundSchedule](docs/BaseEventPassTypeRefundSchedule.md)
|
package/api.ts
CHANGED
|
@@ -1373,7 +1373,7 @@ export interface BaseEventPass {
|
|
|
1373
1373
|
'ticket': BaseEventPassType;
|
|
1374
1374
|
'location': string | null;
|
|
1375
1375
|
'usedAt': string | null;
|
|
1376
|
-
'
|
|
1376
|
+
'transferId': string | null;
|
|
1377
1377
|
'responses': Array<BaseRegistrationQuestionResponse>;
|
|
1378
1378
|
'status': PurchaseStatus;
|
|
1379
1379
|
'reservationId': string | null;
|
|
@@ -1398,9 +1398,6 @@ export interface BaseEventPassAttendeeAccount {
|
|
|
1398
1398
|
'lastName': string | null;
|
|
1399
1399
|
'email': string;
|
|
1400
1400
|
}
|
|
1401
|
-
export interface BaseEventPassTransfer {
|
|
1402
|
-
'id': string;
|
|
1403
|
-
}
|
|
1404
1401
|
export interface BaseEventPassType {
|
|
1405
1402
|
'id': string;
|
|
1406
1403
|
'slug': string;
|
|
@@ -3494,6 +3491,8 @@ export interface Coupon {
|
|
|
3494
3491
|
'applyToSessions': boolean;
|
|
3495
3492
|
'registrationId': string | null;
|
|
3496
3493
|
'registration': BaseEventAttendee | null;
|
|
3494
|
+
'allowedTiers': Array<BaseTier>;
|
|
3495
|
+
'disallowedTiers': Array<BaseTier>;
|
|
3497
3496
|
'lineItem': PaymentLineItem | null;
|
|
3498
3497
|
'parentCouponId': string | null;
|
|
3499
3498
|
'parentCoupon': BaseCoupon | null;
|
|
@@ -5372,7 +5371,7 @@ export interface EventPass {
|
|
|
5372
5371
|
'ticket': BaseEventPassType;
|
|
5373
5372
|
'location': string | null;
|
|
5374
5373
|
'usedAt': string | null;
|
|
5375
|
-
'
|
|
5374
|
+
'transferId': string | null;
|
|
5376
5375
|
'responses': Array<BaseRegistrationQuestionResponse>;
|
|
5377
5376
|
'status': PurchaseStatus;
|
|
5378
5377
|
'reservationId': string | null;
|
|
@@ -49573,6 +49572,61 @@ export class EventsCohostsApi extends BaseAPI {
|
|
|
49573
49572
|
*/
|
|
49574
49573
|
export const EventsCouponsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
49575
49574
|
return {
|
|
49575
|
+
/**
|
|
49576
|
+
* Add Event Coupon Tier endpoint
|
|
49577
|
+
* @summary Add Event Coupon Tier
|
|
49578
|
+
* @param {string} eventId The event identifier
|
|
49579
|
+
* @param {string} couponId The coupon identifier
|
|
49580
|
+
* @param {string} tierId The tier identifier
|
|
49581
|
+
* @param {boolean} allowed Filter by allowed
|
|
49582
|
+
* @param {*} [options] Override http request option.
|
|
49583
|
+
* @throws {RequiredError}
|
|
49584
|
+
*/
|
|
49585
|
+
addEventCouponTier: async (eventId: string, couponId: string, tierId: string, allowed: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49586
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
49587
|
+
assertParamExists('addEventCouponTier', 'eventId', eventId)
|
|
49588
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
49589
|
+
assertParamExists('addEventCouponTier', 'couponId', couponId)
|
|
49590
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
49591
|
+
assertParamExists('addEventCouponTier', 'tierId', tierId)
|
|
49592
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
49593
|
+
assertParamExists('addEventCouponTier', 'allowed', allowed)
|
|
49594
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers/{tierId}`
|
|
49595
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
49596
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)))
|
|
49597
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
49598
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49599
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49600
|
+
let baseOptions;
|
|
49601
|
+
if (configuration) {
|
|
49602
|
+
baseOptions = configuration.baseOptions;
|
|
49603
|
+
}
|
|
49604
|
+
|
|
49605
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
49606
|
+
const localVarHeaderParameter = {} as any;
|
|
49607
|
+
const localVarQueryParameter = {} as any;
|
|
49608
|
+
|
|
49609
|
+
// authentication ApiKeyAuth required
|
|
49610
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
49611
|
+
|
|
49612
|
+
// authentication OrganizationId required
|
|
49613
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
49614
|
+
|
|
49615
|
+
if (allowed !== undefined) {
|
|
49616
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
49617
|
+
}
|
|
49618
|
+
|
|
49619
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
49620
|
+
|
|
49621
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
49622
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
49623
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
49624
|
+
|
|
49625
|
+
return {
|
|
49626
|
+
url: toPathString(localVarUrlObj),
|
|
49627
|
+
options: localVarRequestOptions,
|
|
49628
|
+
};
|
|
49629
|
+
},
|
|
49576
49630
|
/**
|
|
49577
49631
|
* Create Event Coupon endpoint
|
|
49578
49632
|
* @summary Create Event Coupon
|
|
@@ -49927,6 +49981,77 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
49927
49981
|
options: localVarRequestOptions,
|
|
49928
49982
|
};
|
|
49929
49983
|
},
|
|
49984
|
+
/**
|
|
49985
|
+
* Get Event Coupon Tiers endpoint
|
|
49986
|
+
* @summary Get Event Coupon Tiers
|
|
49987
|
+
* @param {string} eventId The event identifier
|
|
49988
|
+
* @param {string} couponId The coupon identifier
|
|
49989
|
+
* @param {boolean} allowed Filter by allowed
|
|
49990
|
+
* @param {number} [page] Page number
|
|
49991
|
+
* @param {number} [pageSize] Number of items per page
|
|
49992
|
+
* @param {string} [orderBy] Field to order by
|
|
49993
|
+
* @param {string} [search] Search query
|
|
49994
|
+
* @param {*} [options] Override http request option.
|
|
49995
|
+
* @throws {RequiredError}
|
|
49996
|
+
*/
|
|
49997
|
+
getEventCouponTiers: async (eventId: string, couponId: string, allowed: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49998
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
49999
|
+
assertParamExists('getEventCouponTiers', 'eventId', eventId)
|
|
50000
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
50001
|
+
assertParamExists('getEventCouponTiers', 'couponId', couponId)
|
|
50002
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
50003
|
+
assertParamExists('getEventCouponTiers', 'allowed', allowed)
|
|
50004
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers`
|
|
50005
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
50006
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)));
|
|
50007
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50008
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50009
|
+
let baseOptions;
|
|
50010
|
+
if (configuration) {
|
|
50011
|
+
baseOptions = configuration.baseOptions;
|
|
50012
|
+
}
|
|
50013
|
+
|
|
50014
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
50015
|
+
const localVarHeaderParameter = {} as any;
|
|
50016
|
+
const localVarQueryParameter = {} as any;
|
|
50017
|
+
|
|
50018
|
+
// authentication ApiKeyAuth required
|
|
50019
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
50020
|
+
|
|
50021
|
+
// authentication OrganizationId required
|
|
50022
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
50023
|
+
|
|
50024
|
+
if (allowed !== undefined) {
|
|
50025
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
50026
|
+
}
|
|
50027
|
+
|
|
50028
|
+
if (page !== undefined) {
|
|
50029
|
+
localVarQueryParameter['page'] = page;
|
|
50030
|
+
}
|
|
50031
|
+
|
|
50032
|
+
if (pageSize !== undefined) {
|
|
50033
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
50034
|
+
}
|
|
50035
|
+
|
|
50036
|
+
if (orderBy !== undefined) {
|
|
50037
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
50038
|
+
}
|
|
50039
|
+
|
|
50040
|
+
if (search !== undefined) {
|
|
50041
|
+
localVarQueryParameter['search'] = search;
|
|
50042
|
+
}
|
|
50043
|
+
|
|
50044
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
50045
|
+
|
|
50046
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50047
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50048
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
50049
|
+
|
|
50050
|
+
return {
|
|
50051
|
+
url: toPathString(localVarUrlObj),
|
|
50052
|
+
options: localVarRequestOptions,
|
|
50053
|
+
};
|
|
50054
|
+
},
|
|
49930
50055
|
/**
|
|
49931
50056
|
* Get Event Coupon Variants endpoint
|
|
49932
50057
|
* @summary Get Event Coupon Variants
|
|
@@ -50063,6 +50188,61 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
50063
50188
|
options: localVarRequestOptions,
|
|
50064
50189
|
};
|
|
50065
50190
|
},
|
|
50191
|
+
/**
|
|
50192
|
+
* Remove Event Coupon Tier endpoint
|
|
50193
|
+
* @summary Remove Event Coupon Tier
|
|
50194
|
+
* @param {string} eventId The event identifier
|
|
50195
|
+
* @param {string} couponId The coupon identifier
|
|
50196
|
+
* @param {string} tierId The tier identifier
|
|
50197
|
+
* @param {boolean} allowed Filter by allowed
|
|
50198
|
+
* @param {*} [options] Override http request option.
|
|
50199
|
+
* @throws {RequiredError}
|
|
50200
|
+
*/
|
|
50201
|
+
removeEventCouponTier: async (eventId: string, couponId: string, tierId: string, allowed: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50202
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
50203
|
+
assertParamExists('removeEventCouponTier', 'eventId', eventId)
|
|
50204
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
50205
|
+
assertParamExists('removeEventCouponTier', 'couponId', couponId)
|
|
50206
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
50207
|
+
assertParamExists('removeEventCouponTier', 'tierId', tierId)
|
|
50208
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
50209
|
+
assertParamExists('removeEventCouponTier', 'allowed', allowed)
|
|
50210
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers/{tierId}`
|
|
50211
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
50212
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)))
|
|
50213
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
50214
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50215
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50216
|
+
let baseOptions;
|
|
50217
|
+
if (configuration) {
|
|
50218
|
+
baseOptions = configuration.baseOptions;
|
|
50219
|
+
}
|
|
50220
|
+
|
|
50221
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
50222
|
+
const localVarHeaderParameter = {} as any;
|
|
50223
|
+
const localVarQueryParameter = {} as any;
|
|
50224
|
+
|
|
50225
|
+
// authentication ApiKeyAuth required
|
|
50226
|
+
await setApiKeyToObject(localVarHeaderParameter, "api-key", configuration)
|
|
50227
|
+
|
|
50228
|
+
// authentication OrganizationId required
|
|
50229
|
+
await setApiKeyToObject(localVarHeaderParameter, "organization", configuration)
|
|
50230
|
+
|
|
50231
|
+
if (allowed !== undefined) {
|
|
50232
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
50233
|
+
}
|
|
50234
|
+
|
|
50235
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
50236
|
+
|
|
50237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
50239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
50240
|
+
|
|
50241
|
+
return {
|
|
50242
|
+
url: toPathString(localVarUrlObj),
|
|
50243
|
+
options: localVarRequestOptions,
|
|
50244
|
+
};
|
|
50245
|
+
},
|
|
50066
50246
|
/**
|
|
50067
50247
|
* Sync Event Coupon To Variants endpoint
|
|
50068
50248
|
* @summary Sync Event Coupon To Variants
|
|
@@ -50170,6 +50350,22 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
50170
50350
|
export const EventsCouponsApiFp = function(configuration?: Configuration) {
|
|
50171
50351
|
const localVarAxiosParamCreator = EventsCouponsApiAxiosParamCreator(configuration)
|
|
50172
50352
|
return {
|
|
50353
|
+
/**
|
|
50354
|
+
* Add Event Coupon Tier endpoint
|
|
50355
|
+
* @summary Add Event Coupon Tier
|
|
50356
|
+
* @param {string} eventId The event identifier
|
|
50357
|
+
* @param {string} couponId The coupon identifier
|
|
50358
|
+
* @param {string} tierId The tier identifier
|
|
50359
|
+
* @param {boolean} allowed Filter by allowed
|
|
50360
|
+
* @param {*} [options] Override http request option.
|
|
50361
|
+
* @throws {RequiredError}
|
|
50362
|
+
*/
|
|
50363
|
+
async addEventCouponTier(eventId: string, couponId: string, tierId: string, allowed: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventCoupon200Response>> {
|
|
50364
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addEventCouponTier(eventId, couponId, tierId, allowed, options);
|
|
50365
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
50366
|
+
const localVarOperationServerBasePath = operationServerMap['EventsCouponsApi.addEventCouponTier']?.[localVarOperationServerIndex]?.url;
|
|
50367
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50368
|
+
},
|
|
50173
50369
|
/**
|
|
50174
50370
|
* Create Event Coupon endpoint
|
|
50175
50371
|
* @summary Create Event Coupon
|
|
@@ -50277,6 +50473,25 @@ export const EventsCouponsApiFp = function(configuration?: Configuration) {
|
|
|
50277
50473
|
const localVarOperationServerBasePath = operationServerMap['EventsCouponsApi.getEventCouponPayments']?.[localVarOperationServerIndex]?.url;
|
|
50278
50474
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50279
50475
|
},
|
|
50476
|
+
/**
|
|
50477
|
+
* Get Event Coupon Tiers endpoint
|
|
50478
|
+
* @summary Get Event Coupon Tiers
|
|
50479
|
+
* @param {string} eventId The event identifier
|
|
50480
|
+
* @param {string} couponId The coupon identifier
|
|
50481
|
+
* @param {boolean} allowed Filter by allowed
|
|
50482
|
+
* @param {number} [page] Page number
|
|
50483
|
+
* @param {number} [pageSize] Number of items per page
|
|
50484
|
+
* @param {string} [orderBy] Field to order by
|
|
50485
|
+
* @param {string} [search] Search query
|
|
50486
|
+
* @param {*} [options] Override http request option.
|
|
50487
|
+
* @throws {RequiredError}
|
|
50488
|
+
*/
|
|
50489
|
+
async getEventCouponTiers(eventId: string, couponId: string, allowed: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountTiers200Response>> {
|
|
50490
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEventCouponTiers(eventId, couponId, allowed, page, pageSize, orderBy, search, options);
|
|
50491
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
50492
|
+
const localVarOperationServerBasePath = operationServerMap['EventsCouponsApi.getEventCouponTiers']?.[localVarOperationServerIndex]?.url;
|
|
50493
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50494
|
+
},
|
|
50280
50495
|
/**
|
|
50281
50496
|
* Get Event Coupon Variants endpoint
|
|
50282
50497
|
* @summary Get Event Coupon Variants
|
|
@@ -50314,6 +50529,22 @@ export const EventsCouponsApiFp = function(configuration?: Configuration) {
|
|
|
50314
50529
|
const localVarOperationServerBasePath = operationServerMap['EventsCouponsApi.getEventCoupons']?.[localVarOperationServerIndex]?.url;
|
|
50315
50530
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50316
50531
|
},
|
|
50532
|
+
/**
|
|
50533
|
+
* Remove Event Coupon Tier endpoint
|
|
50534
|
+
* @summary Remove Event Coupon Tier
|
|
50535
|
+
* @param {string} eventId The event identifier
|
|
50536
|
+
* @param {string} couponId The coupon identifier
|
|
50537
|
+
* @param {string} tierId The tier identifier
|
|
50538
|
+
* @param {boolean} allowed Filter by allowed
|
|
50539
|
+
* @param {*} [options] Override http request option.
|
|
50540
|
+
* @throws {RequiredError}
|
|
50541
|
+
*/
|
|
50542
|
+
async removeEventCouponTier(eventId: string, couponId: string, tierId: string, allowed: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventCoupon200Response>> {
|
|
50543
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeEventCouponTier(eventId, couponId, tierId, allowed, options);
|
|
50544
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
50545
|
+
const localVarOperationServerBasePath = operationServerMap['EventsCouponsApi.removeEventCouponTier']?.[localVarOperationServerIndex]?.url;
|
|
50546
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
50547
|
+
},
|
|
50317
50548
|
/**
|
|
50318
50549
|
* Sync Event Coupon To Variants endpoint
|
|
50319
50550
|
* @summary Sync Event Coupon To Variants
|
|
@@ -50353,6 +50584,16 @@ export const EventsCouponsApiFp = function(configuration?: Configuration) {
|
|
|
50353
50584
|
export const EventsCouponsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
50354
50585
|
const localVarFp = EventsCouponsApiFp(configuration)
|
|
50355
50586
|
return {
|
|
50587
|
+
/**
|
|
50588
|
+
* Add Event Coupon Tier endpoint
|
|
50589
|
+
* @summary Add Event Coupon Tier
|
|
50590
|
+
* @param {EventsCouponsApiAddEventCouponTierRequest} requestParameters Request parameters.
|
|
50591
|
+
* @param {*} [options] Override http request option.
|
|
50592
|
+
* @throws {RequiredError}
|
|
50593
|
+
*/
|
|
50594
|
+
addEventCouponTier(requestParameters: EventsCouponsApiAddEventCouponTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventCoupon200Response> {
|
|
50595
|
+
return localVarFp.addEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(axios, basePath));
|
|
50596
|
+
},
|
|
50356
50597
|
/**
|
|
50357
50598
|
* Create Event Coupon endpoint
|
|
50358
50599
|
* @summary Create Event Coupon
|
|
@@ -50423,6 +50664,16 @@ export const EventsCouponsApiFactory = function (configuration?: Configuration,
|
|
|
50423
50664
|
getEventCouponPayments(requestParameters: EventsCouponsApiGetEventCouponPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPayments200Response> {
|
|
50424
50665
|
return localVarFp.getEventCouponPayments(requestParameters.eventId, requestParameters.couponId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
50425
50666
|
},
|
|
50667
|
+
/**
|
|
50668
|
+
* Get Event Coupon Tiers endpoint
|
|
50669
|
+
* @summary Get Event Coupon Tiers
|
|
50670
|
+
* @param {EventsCouponsApiGetEventCouponTiersRequest} requestParameters Request parameters.
|
|
50671
|
+
* @param {*} [options] Override http request option.
|
|
50672
|
+
* @throws {RequiredError}
|
|
50673
|
+
*/
|
|
50674
|
+
getEventCouponTiers(requestParameters: EventsCouponsApiGetEventCouponTiersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountTiers200Response> {
|
|
50675
|
+
return localVarFp.getEventCouponTiers(requestParameters.eventId, requestParameters.couponId, requestParameters.allowed, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
50676
|
+
},
|
|
50426
50677
|
/**
|
|
50427
50678
|
* Get Event Coupon Variants endpoint
|
|
50428
50679
|
* @summary Get Event Coupon Variants
|
|
@@ -50443,6 +50694,16 @@ export const EventsCouponsApiFactory = function (configuration?: Configuration,
|
|
|
50443
50694
|
getEventCoupons(requestParameters: EventsCouponsApiGetEventCouponsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEventAttendeeCoupons200Response> {
|
|
50444
50695
|
return localVarFp.getEventCoupons(requestParameters.eventId, requestParameters.prePaid, requestParameters.includeVariants, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
50445
50696
|
},
|
|
50697
|
+
/**
|
|
50698
|
+
* Remove Event Coupon Tier endpoint
|
|
50699
|
+
* @summary Remove Event Coupon Tier
|
|
50700
|
+
* @param {EventsCouponsApiRemoveEventCouponTierRequest} requestParameters Request parameters.
|
|
50701
|
+
* @param {*} [options] Override http request option.
|
|
50702
|
+
* @throws {RequiredError}
|
|
50703
|
+
*/
|
|
50704
|
+
removeEventCouponTier(requestParameters: EventsCouponsApiRemoveEventCouponTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventCoupon200Response> {
|
|
50705
|
+
return localVarFp.removeEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(axios, basePath));
|
|
50706
|
+
},
|
|
50446
50707
|
/**
|
|
50447
50708
|
* Sync Event Coupon To Variants endpoint
|
|
50448
50709
|
* @summary Sync Event Coupon To Variants
|
|
@@ -50466,6 +50727,31 @@ export const EventsCouponsApiFactory = function (configuration?: Configuration,
|
|
|
50466
50727
|
};
|
|
50467
50728
|
};
|
|
50468
50729
|
|
|
50730
|
+
/**
|
|
50731
|
+
* Request parameters for addEventCouponTier operation in EventsCouponsApi.
|
|
50732
|
+
*/
|
|
50733
|
+
export interface EventsCouponsApiAddEventCouponTierRequest {
|
|
50734
|
+
/**
|
|
50735
|
+
* The event identifier
|
|
50736
|
+
*/
|
|
50737
|
+
readonly eventId: string
|
|
50738
|
+
|
|
50739
|
+
/**
|
|
50740
|
+
* The coupon identifier
|
|
50741
|
+
*/
|
|
50742
|
+
readonly couponId: string
|
|
50743
|
+
|
|
50744
|
+
/**
|
|
50745
|
+
* The tier identifier
|
|
50746
|
+
*/
|
|
50747
|
+
readonly tierId: string
|
|
50748
|
+
|
|
50749
|
+
/**
|
|
50750
|
+
* Filter by allowed
|
|
50751
|
+
*/
|
|
50752
|
+
readonly allowed: boolean
|
|
50753
|
+
}
|
|
50754
|
+
|
|
50469
50755
|
/**
|
|
50470
50756
|
* Request parameters for createEventCoupon operation in EventsCouponsApi.
|
|
50471
50757
|
*/
|
|
@@ -50610,6 +50896,46 @@ export interface EventsCouponsApiGetEventCouponPaymentsRequest {
|
|
|
50610
50896
|
readonly search?: string
|
|
50611
50897
|
}
|
|
50612
50898
|
|
|
50899
|
+
/**
|
|
50900
|
+
* Request parameters for getEventCouponTiers operation in EventsCouponsApi.
|
|
50901
|
+
*/
|
|
50902
|
+
export interface EventsCouponsApiGetEventCouponTiersRequest {
|
|
50903
|
+
/**
|
|
50904
|
+
* The event identifier
|
|
50905
|
+
*/
|
|
50906
|
+
readonly eventId: string
|
|
50907
|
+
|
|
50908
|
+
/**
|
|
50909
|
+
* The coupon identifier
|
|
50910
|
+
*/
|
|
50911
|
+
readonly couponId: string
|
|
50912
|
+
|
|
50913
|
+
/**
|
|
50914
|
+
* Filter by allowed
|
|
50915
|
+
*/
|
|
50916
|
+
readonly allowed: boolean
|
|
50917
|
+
|
|
50918
|
+
/**
|
|
50919
|
+
* Page number
|
|
50920
|
+
*/
|
|
50921
|
+
readonly page?: number
|
|
50922
|
+
|
|
50923
|
+
/**
|
|
50924
|
+
* Number of items per page
|
|
50925
|
+
*/
|
|
50926
|
+
readonly pageSize?: number
|
|
50927
|
+
|
|
50928
|
+
/**
|
|
50929
|
+
* Field to order by
|
|
50930
|
+
*/
|
|
50931
|
+
readonly orderBy?: string
|
|
50932
|
+
|
|
50933
|
+
/**
|
|
50934
|
+
* Search query
|
|
50935
|
+
*/
|
|
50936
|
+
readonly search?: string
|
|
50937
|
+
}
|
|
50938
|
+
|
|
50613
50939
|
/**
|
|
50614
50940
|
* Request parameters for getEventCouponVariants operation in EventsCouponsApi.
|
|
50615
50941
|
*/
|
|
@@ -50685,6 +51011,31 @@ export interface EventsCouponsApiGetEventCouponsRequest {
|
|
|
50685
51011
|
readonly search?: string
|
|
50686
51012
|
}
|
|
50687
51013
|
|
|
51014
|
+
/**
|
|
51015
|
+
* Request parameters for removeEventCouponTier operation in EventsCouponsApi.
|
|
51016
|
+
*/
|
|
51017
|
+
export interface EventsCouponsApiRemoveEventCouponTierRequest {
|
|
51018
|
+
/**
|
|
51019
|
+
* The event identifier
|
|
51020
|
+
*/
|
|
51021
|
+
readonly eventId: string
|
|
51022
|
+
|
|
51023
|
+
/**
|
|
51024
|
+
* The coupon identifier
|
|
51025
|
+
*/
|
|
51026
|
+
readonly couponId: string
|
|
51027
|
+
|
|
51028
|
+
/**
|
|
51029
|
+
* The tier identifier
|
|
51030
|
+
*/
|
|
51031
|
+
readonly tierId: string
|
|
51032
|
+
|
|
51033
|
+
/**
|
|
51034
|
+
* Filter by allowed
|
|
51035
|
+
*/
|
|
51036
|
+
readonly allowed: boolean
|
|
51037
|
+
}
|
|
51038
|
+
|
|
50688
51039
|
/**
|
|
50689
51040
|
* Request parameters for syncEventCouponToVariants operation in EventsCouponsApi.
|
|
50690
51041
|
*/
|
|
@@ -50723,6 +51074,17 @@ export interface EventsCouponsApiUpdateEventCouponRequest {
|
|
|
50723
51074
|
* EventsCouponsApi - object-oriented interface
|
|
50724
51075
|
*/
|
|
50725
51076
|
export class EventsCouponsApi extends BaseAPI {
|
|
51077
|
+
/**
|
|
51078
|
+
* Add Event Coupon Tier endpoint
|
|
51079
|
+
* @summary Add Event Coupon Tier
|
|
51080
|
+
* @param {EventsCouponsApiAddEventCouponTierRequest} requestParameters Request parameters.
|
|
51081
|
+
* @param {*} [options] Override http request option.
|
|
51082
|
+
* @throws {RequiredError}
|
|
51083
|
+
*/
|
|
51084
|
+
public addEventCouponTier(requestParameters: EventsCouponsApiAddEventCouponTierRequest, options?: RawAxiosRequestConfig) {
|
|
51085
|
+
return EventsCouponsApiFp(this.configuration).addEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(this.axios, this.basePath));
|
|
51086
|
+
}
|
|
51087
|
+
|
|
50726
51088
|
/**
|
|
50727
51089
|
* Create Event Coupon endpoint
|
|
50728
51090
|
* @summary Create Event Coupon
|
|
@@ -50800,6 +51162,17 @@ export class EventsCouponsApi extends BaseAPI {
|
|
|
50800
51162
|
return EventsCouponsApiFp(this.configuration).getEventCouponPayments(requestParameters.eventId, requestParameters.couponId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
50801
51163
|
}
|
|
50802
51164
|
|
|
51165
|
+
/**
|
|
51166
|
+
* Get Event Coupon Tiers endpoint
|
|
51167
|
+
* @summary Get Event Coupon Tiers
|
|
51168
|
+
* @param {EventsCouponsApiGetEventCouponTiersRequest} requestParameters Request parameters.
|
|
51169
|
+
* @param {*} [options] Override http request option.
|
|
51170
|
+
* @throws {RequiredError}
|
|
51171
|
+
*/
|
|
51172
|
+
public getEventCouponTiers(requestParameters: EventsCouponsApiGetEventCouponTiersRequest, options?: RawAxiosRequestConfig) {
|
|
51173
|
+
return 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));
|
|
51174
|
+
}
|
|
51175
|
+
|
|
50803
51176
|
/**
|
|
50804
51177
|
* Get Event Coupon Variants endpoint
|
|
50805
51178
|
* @summary Get Event Coupon Variants
|
|
@@ -50822,6 +51195,17 @@ export class EventsCouponsApi extends BaseAPI {
|
|
|
50822
51195
|
return 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));
|
|
50823
51196
|
}
|
|
50824
51197
|
|
|
51198
|
+
/**
|
|
51199
|
+
* Remove Event Coupon Tier endpoint
|
|
51200
|
+
* @summary Remove Event Coupon Tier
|
|
51201
|
+
* @param {EventsCouponsApiRemoveEventCouponTierRequest} requestParameters Request parameters.
|
|
51202
|
+
* @param {*} [options] Override http request option.
|
|
51203
|
+
* @throws {RequiredError}
|
|
51204
|
+
*/
|
|
51205
|
+
public removeEventCouponTier(requestParameters: EventsCouponsApiRemoveEventCouponTierRequest, options?: RawAxiosRequestConfig) {
|
|
51206
|
+
return EventsCouponsApiFp(this.configuration).removeEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(this.axios, this.basePath));
|
|
51207
|
+
}
|
|
51208
|
+
|
|
50825
51209
|
/**
|
|
50826
51210
|
* Sync Event Coupon To Variants endpoint
|
|
50827
51211
|
* @summary Sync Event Coupon To Variants
|