@connectedxm/admin-sdk 7.4.1 → 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/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
package/api.ts CHANGED
@@ -3491,6 +3491,8 @@ export interface Coupon {
3491
3491
  'applyToSessions': boolean;
3492
3492
  'registrationId': string | null;
3493
3493
  'registration': BaseEventAttendee | null;
3494
+ 'allowedTiers': Array<BaseTier>;
3495
+ 'disallowedTiers': Array<BaseTier>;
3494
3496
  'lineItem': PaymentLineItem | null;
3495
3497
  'parentCouponId': string | null;
3496
3498
  'parentCoupon': BaseCoupon | null;
@@ -49570,6 +49572,61 @@ export class EventsCohostsApi extends BaseAPI {
49570
49572
  */
49571
49573
  export const EventsCouponsApiAxiosParamCreator = function (configuration?: Configuration) {
49572
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
+ },
49573
49630
  /**
49574
49631
  * Create Event Coupon endpoint
49575
49632
  * @summary Create Event Coupon
@@ -49924,6 +49981,77 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration?: Confi
49924
49981
  options: localVarRequestOptions,
49925
49982
  };
49926
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
+ },
49927
50055
  /**
49928
50056
  * Get Event Coupon Variants endpoint
49929
50057
  * @summary Get Event Coupon Variants
@@ -50060,6 +50188,61 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration?: Confi
50060
50188
  options: localVarRequestOptions,
50061
50189
  };
50062
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
+ },
50063
50246
  /**
50064
50247
  * Sync Event Coupon To Variants endpoint
50065
50248
  * @summary Sync Event Coupon To Variants
@@ -50167,6 +50350,22 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration?: Confi
50167
50350
  export const EventsCouponsApiFp = function(configuration?: Configuration) {
50168
50351
  const localVarAxiosParamCreator = EventsCouponsApiAxiosParamCreator(configuration)
50169
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
+ },
50170
50369
  /**
50171
50370
  * Create Event Coupon endpoint
50172
50371
  * @summary Create Event Coupon
@@ -50274,6 +50473,25 @@ export const EventsCouponsApiFp = function(configuration?: Configuration) {
50274
50473
  const localVarOperationServerBasePath = operationServerMap['EventsCouponsApi.getEventCouponPayments']?.[localVarOperationServerIndex]?.url;
50275
50474
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50276
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
+ },
50277
50495
  /**
50278
50496
  * Get Event Coupon Variants endpoint
50279
50497
  * @summary Get Event Coupon Variants
@@ -50311,6 +50529,22 @@ export const EventsCouponsApiFp = function(configuration?: Configuration) {
50311
50529
  const localVarOperationServerBasePath = operationServerMap['EventsCouponsApi.getEventCoupons']?.[localVarOperationServerIndex]?.url;
50312
50530
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
50313
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
+ },
50314
50548
  /**
50315
50549
  * Sync Event Coupon To Variants endpoint
50316
50550
  * @summary Sync Event Coupon To Variants
@@ -50350,6 +50584,16 @@ export const EventsCouponsApiFp = function(configuration?: Configuration) {
50350
50584
  export const EventsCouponsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
50351
50585
  const localVarFp = EventsCouponsApiFp(configuration)
50352
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
+ },
50353
50597
  /**
50354
50598
  * Create Event Coupon endpoint
50355
50599
  * @summary Create Event Coupon
@@ -50420,6 +50664,16 @@ export const EventsCouponsApiFactory = function (configuration?: Configuration,
50420
50664
  getEventCouponPayments(requestParameters: EventsCouponsApiGetEventCouponPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPayments200Response> {
50421
50665
  return localVarFp.getEventCouponPayments(requestParameters.eventId, requestParameters.couponId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
50422
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
+ },
50423
50677
  /**
50424
50678
  * Get Event Coupon Variants endpoint
50425
50679
  * @summary Get Event Coupon Variants
@@ -50440,6 +50694,16 @@ export const EventsCouponsApiFactory = function (configuration?: Configuration,
50440
50694
  getEventCoupons(requestParameters: EventsCouponsApiGetEventCouponsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEventAttendeeCoupons200Response> {
50441
50695
  return localVarFp.getEventCoupons(requestParameters.eventId, requestParameters.prePaid, requestParameters.includeVariants, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
50442
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
+ },
50443
50707
  /**
50444
50708
  * Sync Event Coupon To Variants endpoint
50445
50709
  * @summary Sync Event Coupon To Variants
@@ -50463,6 +50727,31 @@ export const EventsCouponsApiFactory = function (configuration?: Configuration,
50463
50727
  };
50464
50728
  };
50465
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
+
50466
50755
  /**
50467
50756
  * Request parameters for createEventCoupon operation in EventsCouponsApi.
50468
50757
  */
@@ -50607,6 +50896,46 @@ export interface EventsCouponsApiGetEventCouponPaymentsRequest {
50607
50896
  readonly search?: string
50608
50897
  }
50609
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
+
50610
50939
  /**
50611
50940
  * Request parameters for getEventCouponVariants operation in EventsCouponsApi.
50612
50941
  */
@@ -50682,6 +51011,31 @@ export interface EventsCouponsApiGetEventCouponsRequest {
50682
51011
  readonly search?: string
50683
51012
  }
50684
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
+
50685
51039
  /**
50686
51040
  * Request parameters for syncEventCouponToVariants operation in EventsCouponsApi.
50687
51041
  */
@@ -50720,6 +51074,17 @@ export interface EventsCouponsApiUpdateEventCouponRequest {
50720
51074
  * EventsCouponsApi - object-oriented interface
50721
51075
  */
50722
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
+
50723
51088
  /**
50724
51089
  * Create Event Coupon endpoint
50725
51090
  * @summary Create Event Coupon
@@ -50797,6 +51162,17 @@ export class EventsCouponsApi extends BaseAPI {
50797
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));
50798
51163
  }
50799
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
+
50800
51176
  /**
50801
51177
  * Get Event Coupon Variants endpoint
50802
51178
  * @summary Get Event Coupon Variants
@@ -50819,6 +51195,17 @@ export class EventsCouponsApi extends BaseAPI {
50819
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));
50820
51196
  }
50821
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
+
50822
51209
  /**
50823
51210
  * Sync Event Coupon To Variants endpoint
50824
51211
  * @summary Sync Event Coupon To Variants