@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/dist/api.d.ts CHANGED
@@ -3262,6 +3262,8 @@ export interface Coupon {
3262
3262
  'applyToSessions': boolean;
3263
3263
  'registrationId': string | null;
3264
3264
  'registration': BaseEventAttendee | null;
3265
+ 'allowedTiers': Array<BaseTier>;
3266
+ 'disallowedTiers': Array<BaseTier>;
3265
3267
  'lineItem': PaymentLineItem | null;
3266
3268
  'parentCouponId': string | null;
3267
3269
  'parentCoupon': BaseCoupon | null;
@@ -30532,6 +30534,17 @@ export declare class EventsCohostsApi extends BaseAPI {
30532
30534
  * EventsCouponsApi - axios parameter creator
30533
30535
  */
30534
30536
  export declare const EventsCouponsApiAxiosParamCreator: (configuration?: Configuration) => {
30537
+ /**
30538
+ * Add Event Coupon Tier endpoint
30539
+ * @summary Add Event Coupon Tier
30540
+ * @param {string} eventId The event identifier
30541
+ * @param {string} couponId The coupon identifier
30542
+ * @param {string} tierId The tier identifier
30543
+ * @param {boolean} allowed Filter by allowed
30544
+ * @param {*} [options] Override http request option.
30545
+ * @throws {RequiredError}
30546
+ */
30547
+ addEventCouponTier: (eventId: string, couponId: string, tierId: string, allowed: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30535
30548
  /**
30536
30549
  * Create Event Coupon endpoint
30537
30550
  * @summary Create Event Coupon
@@ -30604,6 +30617,20 @@ export declare const EventsCouponsApiAxiosParamCreator: (configuration?: Configu
30604
30617
  * @throws {RequiredError}
30605
30618
  */
30606
30619
  getEventCouponPayments: (eventId: string, couponId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30620
+ /**
30621
+ * Get Event Coupon Tiers endpoint
30622
+ * @summary Get Event Coupon Tiers
30623
+ * @param {string} eventId The event identifier
30624
+ * @param {string} couponId The coupon identifier
30625
+ * @param {boolean} allowed Filter by allowed
30626
+ * @param {number} [page] Page number
30627
+ * @param {number} [pageSize] Number of items per page
30628
+ * @param {string} [orderBy] Field to order by
30629
+ * @param {string} [search] Search query
30630
+ * @param {*} [options] Override http request option.
30631
+ * @throws {RequiredError}
30632
+ */
30633
+ getEventCouponTiers: (eventId: string, couponId: string, allowed: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30607
30634
  /**
30608
30635
  * Get Event Coupon Variants endpoint
30609
30636
  * @summary Get Event Coupon Variants
@@ -30631,6 +30658,17 @@ export declare const EventsCouponsApiAxiosParamCreator: (configuration?: Configu
30631
30658
  * @throws {RequiredError}
30632
30659
  */
30633
30660
  getEventCoupons: (eventId: string, prePaid?: boolean, includeVariants?: object, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30661
+ /**
30662
+ * Remove Event Coupon Tier endpoint
30663
+ * @summary Remove Event Coupon Tier
30664
+ * @param {string} eventId The event identifier
30665
+ * @param {string} couponId The coupon identifier
30666
+ * @param {string} tierId The tier identifier
30667
+ * @param {boolean} allowed Filter by allowed
30668
+ * @param {*} [options] Override http request option.
30669
+ * @throws {RequiredError}
30670
+ */
30671
+ removeEventCouponTier: (eventId: string, couponId: string, tierId: string, allowed: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30634
30672
  /**
30635
30673
  * Sync Event Coupon To Variants endpoint
30636
30674
  * @summary Sync Event Coupon To Variants
@@ -30656,6 +30694,17 @@ export declare const EventsCouponsApiAxiosParamCreator: (configuration?: Configu
30656
30694
  * EventsCouponsApi - functional programming interface
30657
30695
  */
30658
30696
  export declare const EventsCouponsApiFp: (configuration?: Configuration) => {
30697
+ /**
30698
+ * Add Event Coupon Tier endpoint
30699
+ * @summary Add Event Coupon Tier
30700
+ * @param {string} eventId The event identifier
30701
+ * @param {string} couponId The coupon identifier
30702
+ * @param {string} tierId The tier identifier
30703
+ * @param {boolean} allowed Filter by allowed
30704
+ * @param {*} [options] Override http request option.
30705
+ * @throws {RequiredError}
30706
+ */
30707
+ addEventCouponTier(eventId: string, couponId: string, tierId: string, allowed: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventCoupon200Response>>;
30659
30708
  /**
30660
30709
  * Create Event Coupon endpoint
30661
30710
  * @summary Create Event Coupon
@@ -30728,6 +30777,20 @@ export declare const EventsCouponsApiFp: (configuration?: Configuration) => {
30728
30777
  * @throws {RequiredError}
30729
30778
  */
30730
30779
  getEventCouponPayments(eventId: string, couponId: string, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountPayments200Response>>;
30780
+ /**
30781
+ * Get Event Coupon Tiers endpoint
30782
+ * @summary Get Event Coupon Tiers
30783
+ * @param {string} eventId The event identifier
30784
+ * @param {string} couponId The coupon identifier
30785
+ * @param {boolean} allowed Filter by allowed
30786
+ * @param {number} [page] Page number
30787
+ * @param {number} [pageSize] Number of items per page
30788
+ * @param {string} [orderBy] Field to order by
30789
+ * @param {string} [search] Search query
30790
+ * @param {*} [options] Override http request option.
30791
+ * @throws {RequiredError}
30792
+ */
30793
+ getEventCouponTiers(eventId: string, couponId: string, allowed: boolean, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountTiers200Response>>;
30731
30794
  /**
30732
30795
  * Get Event Coupon Variants endpoint
30733
30796
  * @summary Get Event Coupon Variants
@@ -30755,6 +30818,17 @@ export declare const EventsCouponsApiFp: (configuration?: Configuration) => {
30755
30818
  * @throws {RequiredError}
30756
30819
  */
30757
30820
  getEventCoupons(eventId: string, prePaid?: boolean, includeVariants?: object, page?: number, pageSize?: number, orderBy?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEventAttendeeCoupons200Response>>;
30821
+ /**
30822
+ * Remove Event Coupon Tier endpoint
30823
+ * @summary Remove Event Coupon Tier
30824
+ * @param {string} eventId The event identifier
30825
+ * @param {string} couponId The coupon identifier
30826
+ * @param {string} tierId The tier identifier
30827
+ * @param {boolean} allowed Filter by allowed
30828
+ * @param {*} [options] Override http request option.
30829
+ * @throws {RequiredError}
30830
+ */
30831
+ removeEventCouponTier(eventId: string, couponId: string, tierId: string, allowed: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEventCoupon200Response>>;
30758
30832
  /**
30759
30833
  * Sync Event Coupon To Variants endpoint
30760
30834
  * @summary Sync Event Coupon To Variants
@@ -30780,6 +30854,14 @@ export declare const EventsCouponsApiFp: (configuration?: Configuration) => {
30780
30854
  * EventsCouponsApi - factory interface
30781
30855
  */
30782
30856
  export declare const EventsCouponsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
30857
+ /**
30858
+ * Add Event Coupon Tier endpoint
30859
+ * @summary Add Event Coupon Tier
30860
+ * @param {EventsCouponsApiAddEventCouponTierRequest} requestParameters Request parameters.
30861
+ * @param {*} [options] Override http request option.
30862
+ * @throws {RequiredError}
30863
+ */
30864
+ addEventCouponTier(requestParameters: EventsCouponsApiAddEventCouponTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventCoupon200Response>;
30783
30865
  /**
30784
30866
  * Create Event Coupon endpoint
30785
30867
  * @summary Create Event Coupon
@@ -30836,6 +30918,14 @@ export declare const EventsCouponsApiFactory: (configuration?: Configuration, ba
30836
30918
  * @throws {RequiredError}
30837
30919
  */
30838
30920
  getEventCouponPayments(requestParameters: EventsCouponsApiGetEventCouponPaymentsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountPayments200Response>;
30921
+ /**
30922
+ * Get Event Coupon Tiers endpoint
30923
+ * @summary Get Event Coupon Tiers
30924
+ * @param {EventsCouponsApiGetEventCouponTiersRequest} requestParameters Request parameters.
30925
+ * @param {*} [options] Override http request option.
30926
+ * @throws {RequiredError}
30927
+ */
30928
+ getEventCouponTiers(requestParameters: EventsCouponsApiGetEventCouponTiersRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAccountTiers200Response>;
30839
30929
  /**
30840
30930
  * Get Event Coupon Variants endpoint
30841
30931
  * @summary Get Event Coupon Variants
@@ -30852,6 +30942,14 @@ export declare const EventsCouponsApiFactory: (configuration?: Configuration, ba
30852
30942
  * @throws {RequiredError}
30853
30943
  */
30854
30944
  getEventCoupons(requestParameters: EventsCouponsApiGetEventCouponsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetEventAttendeeCoupons200Response>;
30945
+ /**
30946
+ * Remove Event Coupon Tier endpoint
30947
+ * @summary Remove Event Coupon Tier
30948
+ * @param {EventsCouponsApiRemoveEventCouponTierRequest} requestParameters Request parameters.
30949
+ * @param {*} [options] Override http request option.
30950
+ * @throws {RequiredError}
30951
+ */
30952
+ removeEventCouponTier(requestParameters: EventsCouponsApiRemoveEventCouponTierRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventCoupon200Response>;
30855
30953
  /**
30856
30954
  * Sync Event Coupon To Variants endpoint
30857
30955
  * @summary Sync Event Coupon To Variants
@@ -30869,6 +30967,27 @@ export declare const EventsCouponsApiFactory: (configuration?: Configuration, ba
30869
30967
  */
30870
30968
  updateEventCoupon(requestParameters: EventsCouponsApiUpdateEventCouponRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateEventCoupon200Response>;
30871
30969
  };
30970
+ /**
30971
+ * Request parameters for addEventCouponTier operation in EventsCouponsApi.
30972
+ */
30973
+ export interface EventsCouponsApiAddEventCouponTierRequest {
30974
+ /**
30975
+ * The event identifier
30976
+ */
30977
+ readonly eventId: string;
30978
+ /**
30979
+ * The coupon identifier
30980
+ */
30981
+ readonly couponId: string;
30982
+ /**
30983
+ * The tier identifier
30984
+ */
30985
+ readonly tierId: string;
30986
+ /**
30987
+ * Filter by allowed
30988
+ */
30989
+ readonly allowed: boolean;
30990
+ }
30872
30991
  /**
30873
30992
  * Request parameters for createEventCoupon operation in EventsCouponsApi.
30874
30993
  */
@@ -30990,6 +31109,39 @@ export interface EventsCouponsApiGetEventCouponPaymentsRequest {
30990
31109
  */
30991
31110
  readonly search?: string;
30992
31111
  }
31112
+ /**
31113
+ * Request parameters for getEventCouponTiers operation in EventsCouponsApi.
31114
+ */
31115
+ export interface EventsCouponsApiGetEventCouponTiersRequest {
31116
+ /**
31117
+ * The event identifier
31118
+ */
31119
+ readonly eventId: string;
31120
+ /**
31121
+ * The coupon identifier
31122
+ */
31123
+ readonly couponId: string;
31124
+ /**
31125
+ * Filter by allowed
31126
+ */
31127
+ readonly allowed: boolean;
31128
+ /**
31129
+ * Page number
31130
+ */
31131
+ readonly page?: number;
31132
+ /**
31133
+ * Number of items per page
31134
+ */
31135
+ readonly pageSize?: number;
31136
+ /**
31137
+ * Field to order by
31138
+ */
31139
+ readonly orderBy?: string;
31140
+ /**
31141
+ * Search query
31142
+ */
31143
+ readonly search?: string;
31144
+ }
30993
31145
  /**
30994
31146
  * Request parameters for getEventCouponVariants operation in EventsCouponsApi.
30995
31147
  */
@@ -31052,6 +31204,27 @@ export interface EventsCouponsApiGetEventCouponsRequest {
31052
31204
  */
31053
31205
  readonly search?: string;
31054
31206
  }
31207
+ /**
31208
+ * Request parameters for removeEventCouponTier operation in EventsCouponsApi.
31209
+ */
31210
+ export interface EventsCouponsApiRemoveEventCouponTierRequest {
31211
+ /**
31212
+ * The event identifier
31213
+ */
31214
+ readonly eventId: string;
31215
+ /**
31216
+ * The coupon identifier
31217
+ */
31218
+ readonly couponId: string;
31219
+ /**
31220
+ * The tier identifier
31221
+ */
31222
+ readonly tierId: string;
31223
+ /**
31224
+ * Filter by allowed
31225
+ */
31226
+ readonly allowed: boolean;
31227
+ }
31055
31228
  /**
31056
31229
  * Request parameters for syncEventCouponToVariants operation in EventsCouponsApi.
31057
31230
  */
@@ -31084,6 +31257,14 @@ export interface EventsCouponsApiUpdateEventCouponRequest {
31084
31257
  * EventsCouponsApi - object-oriented interface
31085
31258
  */
31086
31259
  export declare class EventsCouponsApi extends BaseAPI {
31260
+ /**
31261
+ * Add Event Coupon Tier endpoint
31262
+ * @summary Add Event Coupon Tier
31263
+ * @param {EventsCouponsApiAddEventCouponTierRequest} requestParameters Request parameters.
31264
+ * @param {*} [options] Override http request option.
31265
+ * @throws {RequiredError}
31266
+ */
31267
+ addEventCouponTier(requestParameters: EventsCouponsApiAddEventCouponTierRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEventCoupon200Response, any, {}>>;
31087
31268
  /**
31088
31269
  * Create Event Coupon endpoint
31089
31270
  * @summary Create Event Coupon
@@ -31140,6 +31321,14 @@ export declare class EventsCouponsApi extends BaseAPI {
31140
31321
  * @throws {RequiredError}
31141
31322
  */
31142
31323
  getEventCouponPayments(requestParameters: EventsCouponsApiGetEventCouponPaymentsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountPayments200Response, any, {}>>;
31324
+ /**
31325
+ * Get Event Coupon Tiers endpoint
31326
+ * @summary Get Event Coupon Tiers
31327
+ * @param {EventsCouponsApiGetEventCouponTiersRequest} requestParameters Request parameters.
31328
+ * @param {*} [options] Override http request option.
31329
+ * @throws {RequiredError}
31330
+ */
31331
+ getEventCouponTiers(requestParameters: EventsCouponsApiGetEventCouponTiersRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountTiers200Response, any, {}>>;
31143
31332
  /**
31144
31333
  * Get Event Coupon Variants endpoint
31145
31334
  * @summary Get Event Coupon Variants
@@ -31156,6 +31345,14 @@ export declare class EventsCouponsApi extends BaseAPI {
31156
31345
  * @throws {RequiredError}
31157
31346
  */
31158
31347
  getEventCoupons(requestParameters: EventsCouponsApiGetEventCouponsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetEventAttendeeCoupons200Response, any, {}>>;
31348
+ /**
31349
+ * Remove Event Coupon Tier endpoint
31350
+ * @summary Remove Event Coupon Tier
31351
+ * @param {EventsCouponsApiRemoveEventCouponTierRequest} requestParameters Request parameters.
31352
+ * @param {*} [options] Override http request option.
31353
+ * @throws {RequiredError}
31354
+ */
31355
+ removeEventCouponTier(requestParameters: EventsCouponsApiRemoveEventCouponTierRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEventCoupon200Response, any, {}>>;
31159
31356
  /**
31160
31357
  * Sync Event Coupon To Variants endpoint
31161
31358
  * @summary Sync Event Coupon To Variants
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