@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 +3 -0
- package/api.ts +387 -0
- package/dist/api.d.ts +197 -0
- package/dist/api.js +276 -0
- package/dist/esm/api.d.ts +197 -0
- package/dist/esm/api.js +276 -0
- package/docs/Coupon.md +4 -0
- package/docs/EventsCouponsApi.md +192 -0
- package/package.json +1 -1
package/dist/esm/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/esm/api.js
CHANGED
|
@@ -29592,6 +29592,54 @@ export class EventsCohostsApi extends BaseAPI {
|
|
|
29592
29592
|
*/
|
|
29593
29593
|
export const EventsCouponsApiAxiosParamCreator = function (configuration) {
|
|
29594
29594
|
return {
|
|
29595
|
+
/**
|
|
29596
|
+
* Add Event Coupon Tier endpoint
|
|
29597
|
+
* @summary Add Event Coupon Tier
|
|
29598
|
+
* @param {string} eventId The event identifier
|
|
29599
|
+
* @param {string} couponId The coupon identifier
|
|
29600
|
+
* @param {string} tierId The tier identifier
|
|
29601
|
+
* @param {boolean} allowed Filter by allowed
|
|
29602
|
+
* @param {*} [options] Override http request option.
|
|
29603
|
+
* @throws {RequiredError}
|
|
29604
|
+
*/
|
|
29605
|
+
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 = {}) {
|
|
29606
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
29607
|
+
assertParamExists('addEventCouponTier', 'eventId', eventId);
|
|
29608
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
29609
|
+
assertParamExists('addEventCouponTier', 'couponId', couponId);
|
|
29610
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
29611
|
+
assertParamExists('addEventCouponTier', 'tierId', tierId);
|
|
29612
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
29613
|
+
assertParamExists('addEventCouponTier', 'allowed', allowed);
|
|
29614
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers/{tierId}`
|
|
29615
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
29616
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)))
|
|
29617
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
29618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29619
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29620
|
+
let baseOptions;
|
|
29621
|
+
if (configuration) {
|
|
29622
|
+
baseOptions = configuration.baseOptions;
|
|
29623
|
+
}
|
|
29624
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
29625
|
+
const localVarHeaderParameter = {};
|
|
29626
|
+
const localVarQueryParameter = {};
|
|
29627
|
+
// authentication ApiKeyAuth required
|
|
29628
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
29629
|
+
// authentication OrganizationId required
|
|
29630
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
29631
|
+
if (allowed !== undefined) {
|
|
29632
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
29633
|
+
}
|
|
29634
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
29635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29637
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29638
|
+
return {
|
|
29639
|
+
url: toPathString(localVarUrlObj),
|
|
29640
|
+
options: localVarRequestOptions,
|
|
29641
|
+
};
|
|
29642
|
+
}),
|
|
29595
29643
|
/**
|
|
29596
29644
|
* Create Event Coupon endpoint
|
|
29597
29645
|
* @summary Create Event Coupon
|
|
@@ -29896,6 +29944,66 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration) {
|
|
|
29896
29944
|
options: localVarRequestOptions,
|
|
29897
29945
|
};
|
|
29898
29946
|
}),
|
|
29947
|
+
/**
|
|
29948
|
+
* Get Event Coupon Tiers endpoint
|
|
29949
|
+
* @summary Get Event Coupon Tiers
|
|
29950
|
+
* @param {string} eventId The event identifier
|
|
29951
|
+
* @param {string} couponId The coupon identifier
|
|
29952
|
+
* @param {boolean} allowed Filter by allowed
|
|
29953
|
+
* @param {number} [page] Page number
|
|
29954
|
+
* @param {number} [pageSize] Number of items per page
|
|
29955
|
+
* @param {string} [orderBy] Field to order by
|
|
29956
|
+
* @param {string} [search] Search query
|
|
29957
|
+
* @param {*} [options] Override http request option.
|
|
29958
|
+
* @throws {RequiredError}
|
|
29959
|
+
*/
|
|
29960
|
+
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 = {}) {
|
|
29961
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
29962
|
+
assertParamExists('getEventCouponTiers', 'eventId', eventId);
|
|
29963
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
29964
|
+
assertParamExists('getEventCouponTiers', 'couponId', couponId);
|
|
29965
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
29966
|
+
assertParamExists('getEventCouponTiers', 'allowed', allowed);
|
|
29967
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers`
|
|
29968
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
29969
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)));
|
|
29970
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29971
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29972
|
+
let baseOptions;
|
|
29973
|
+
if (configuration) {
|
|
29974
|
+
baseOptions = configuration.baseOptions;
|
|
29975
|
+
}
|
|
29976
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
29977
|
+
const localVarHeaderParameter = {};
|
|
29978
|
+
const localVarQueryParameter = {};
|
|
29979
|
+
// authentication ApiKeyAuth required
|
|
29980
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
29981
|
+
// authentication OrganizationId required
|
|
29982
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
29983
|
+
if (allowed !== undefined) {
|
|
29984
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
29985
|
+
}
|
|
29986
|
+
if (page !== undefined) {
|
|
29987
|
+
localVarQueryParameter['page'] = page;
|
|
29988
|
+
}
|
|
29989
|
+
if (pageSize !== undefined) {
|
|
29990
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
29991
|
+
}
|
|
29992
|
+
if (orderBy !== undefined) {
|
|
29993
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
29994
|
+
}
|
|
29995
|
+
if (search !== undefined) {
|
|
29996
|
+
localVarQueryParameter['search'] = search;
|
|
29997
|
+
}
|
|
29998
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
29999
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30000
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30001
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30002
|
+
return {
|
|
30003
|
+
url: toPathString(localVarUrlObj),
|
|
30004
|
+
options: localVarRequestOptions,
|
|
30005
|
+
};
|
|
30006
|
+
}),
|
|
29899
30007
|
/**
|
|
29900
30008
|
* Get Event Coupon Variants endpoint
|
|
29901
30009
|
* @summary Get Event Coupon Variants
|
|
@@ -30010,6 +30118,54 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration) {
|
|
|
30010
30118
|
options: localVarRequestOptions,
|
|
30011
30119
|
};
|
|
30012
30120
|
}),
|
|
30121
|
+
/**
|
|
30122
|
+
* Remove Event Coupon Tier endpoint
|
|
30123
|
+
* @summary Remove Event Coupon Tier
|
|
30124
|
+
* @param {string} eventId The event identifier
|
|
30125
|
+
* @param {string} couponId The coupon identifier
|
|
30126
|
+
* @param {string} tierId The tier identifier
|
|
30127
|
+
* @param {boolean} allowed Filter by allowed
|
|
30128
|
+
* @param {*} [options] Override http request option.
|
|
30129
|
+
* @throws {RequiredError}
|
|
30130
|
+
*/
|
|
30131
|
+
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 = {}) {
|
|
30132
|
+
// verify required parameter 'eventId' is not null or undefined
|
|
30133
|
+
assertParamExists('removeEventCouponTier', 'eventId', eventId);
|
|
30134
|
+
// verify required parameter 'couponId' is not null or undefined
|
|
30135
|
+
assertParamExists('removeEventCouponTier', 'couponId', couponId);
|
|
30136
|
+
// verify required parameter 'tierId' is not null or undefined
|
|
30137
|
+
assertParamExists('removeEventCouponTier', 'tierId', tierId);
|
|
30138
|
+
// verify required parameter 'allowed' is not null or undefined
|
|
30139
|
+
assertParamExists('removeEventCouponTier', 'allowed', allowed);
|
|
30140
|
+
const localVarPath = `/events/{eventId}/coupons/{couponId}/tiers/{tierId}`
|
|
30141
|
+
.replace(`{${"eventId"}}`, encodeURIComponent(String(eventId)))
|
|
30142
|
+
.replace(`{${"couponId"}}`, encodeURIComponent(String(couponId)))
|
|
30143
|
+
.replace(`{${"tierId"}}`, encodeURIComponent(String(tierId)));
|
|
30144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30146
|
+
let baseOptions;
|
|
30147
|
+
if (configuration) {
|
|
30148
|
+
baseOptions = configuration.baseOptions;
|
|
30149
|
+
}
|
|
30150
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
30151
|
+
const localVarHeaderParameter = {};
|
|
30152
|
+
const localVarQueryParameter = {};
|
|
30153
|
+
// authentication ApiKeyAuth required
|
|
30154
|
+
yield setApiKeyToObject(localVarHeaderParameter, "api-key", configuration);
|
|
30155
|
+
// authentication OrganizationId required
|
|
30156
|
+
yield setApiKeyToObject(localVarHeaderParameter, "organization", configuration);
|
|
30157
|
+
if (allowed !== undefined) {
|
|
30158
|
+
localVarQueryParameter['allowed'] = allowed;
|
|
30159
|
+
}
|
|
30160
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
30161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30162
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30163
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30164
|
+
return {
|
|
30165
|
+
url: toPathString(localVarUrlObj),
|
|
30166
|
+
options: localVarRequestOptions,
|
|
30167
|
+
};
|
|
30168
|
+
}),
|
|
30013
30169
|
/**
|
|
30014
30170
|
* Sync Event Coupon To Variants endpoint
|
|
30015
30171
|
* @summary Sync Event Coupon To Variants
|
|
@@ -30104,6 +30260,25 @@ export const EventsCouponsApiAxiosParamCreator = function (configuration) {
|
|
|
30104
30260
|
export const EventsCouponsApiFp = function (configuration) {
|
|
30105
30261
|
const localVarAxiosParamCreator = EventsCouponsApiAxiosParamCreator(configuration);
|
|
30106
30262
|
return {
|
|
30263
|
+
/**
|
|
30264
|
+
* Add Event Coupon Tier endpoint
|
|
30265
|
+
* @summary Add Event Coupon Tier
|
|
30266
|
+
* @param {string} eventId The event identifier
|
|
30267
|
+
* @param {string} couponId The coupon identifier
|
|
30268
|
+
* @param {string} tierId The tier identifier
|
|
30269
|
+
* @param {boolean} allowed Filter by allowed
|
|
30270
|
+
* @param {*} [options] Override http request option.
|
|
30271
|
+
* @throws {RequiredError}
|
|
30272
|
+
*/
|
|
30273
|
+
addEventCouponTier(eventId, couponId, tierId, allowed, options) {
|
|
30274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30275
|
+
var _a, _b, _c;
|
|
30276
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addEventCouponTier(eventId, couponId, tierId, allowed, options);
|
|
30277
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30278
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsCouponsApi.addEventCouponTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30279
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30280
|
+
});
|
|
30281
|
+
},
|
|
30107
30282
|
/**
|
|
30108
30283
|
* Create Event Coupon endpoint
|
|
30109
30284
|
* @summary Create Event Coupon
|
|
@@ -30232,6 +30407,28 @@ export const EventsCouponsApiFp = function (configuration) {
|
|
|
30232
30407
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30233
30408
|
});
|
|
30234
30409
|
},
|
|
30410
|
+
/**
|
|
30411
|
+
* Get Event Coupon Tiers endpoint
|
|
30412
|
+
* @summary Get Event Coupon Tiers
|
|
30413
|
+
* @param {string} eventId The event identifier
|
|
30414
|
+
* @param {string} couponId The coupon identifier
|
|
30415
|
+
* @param {boolean} allowed Filter by allowed
|
|
30416
|
+
* @param {number} [page] Page number
|
|
30417
|
+
* @param {number} [pageSize] Number of items per page
|
|
30418
|
+
* @param {string} [orderBy] Field to order by
|
|
30419
|
+
* @param {string} [search] Search query
|
|
30420
|
+
* @param {*} [options] Override http request option.
|
|
30421
|
+
* @throws {RequiredError}
|
|
30422
|
+
*/
|
|
30423
|
+
getEventCouponTiers(eventId, couponId, allowed, page, pageSize, orderBy, search, options) {
|
|
30424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30425
|
+
var _a, _b, _c;
|
|
30426
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEventCouponTiers(eventId, couponId, allowed, page, pageSize, orderBy, search, options);
|
|
30427
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30428
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsCouponsApi.getEventCouponTiers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30429
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30430
|
+
});
|
|
30431
|
+
},
|
|
30235
30432
|
/**
|
|
30236
30433
|
* Get Event Coupon Variants endpoint
|
|
30237
30434
|
* @summary Get Event Coupon Variants
|
|
@@ -30275,6 +30472,25 @@ export const EventsCouponsApiFp = function (configuration) {
|
|
|
30275
30472
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30276
30473
|
});
|
|
30277
30474
|
},
|
|
30475
|
+
/**
|
|
30476
|
+
* Remove Event Coupon Tier endpoint
|
|
30477
|
+
* @summary Remove Event Coupon Tier
|
|
30478
|
+
* @param {string} eventId The event identifier
|
|
30479
|
+
* @param {string} couponId The coupon identifier
|
|
30480
|
+
* @param {string} tierId The tier identifier
|
|
30481
|
+
* @param {boolean} allowed Filter by allowed
|
|
30482
|
+
* @param {*} [options] Override http request option.
|
|
30483
|
+
* @throws {RequiredError}
|
|
30484
|
+
*/
|
|
30485
|
+
removeEventCouponTier(eventId, couponId, tierId, allowed, options) {
|
|
30486
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30487
|
+
var _a, _b, _c;
|
|
30488
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeEventCouponTier(eventId, couponId, tierId, allowed, options);
|
|
30489
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
30490
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EventsCouponsApi.removeEventCouponTier']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
30491
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30492
|
+
});
|
|
30493
|
+
},
|
|
30278
30494
|
/**
|
|
30279
30495
|
* Sync Event Coupon To Variants endpoint
|
|
30280
30496
|
* @summary Sync Event Coupon To Variants
|
|
@@ -30319,6 +30535,16 @@ export const EventsCouponsApiFp = function (configuration) {
|
|
|
30319
30535
|
export const EventsCouponsApiFactory = function (configuration, basePath, axios) {
|
|
30320
30536
|
const localVarFp = EventsCouponsApiFp(configuration);
|
|
30321
30537
|
return {
|
|
30538
|
+
/**
|
|
30539
|
+
* Add Event Coupon Tier endpoint
|
|
30540
|
+
* @summary Add Event Coupon Tier
|
|
30541
|
+
* @param {EventsCouponsApiAddEventCouponTierRequest} requestParameters Request parameters.
|
|
30542
|
+
* @param {*} [options] Override http request option.
|
|
30543
|
+
* @throws {RequiredError}
|
|
30544
|
+
*/
|
|
30545
|
+
addEventCouponTier(requestParameters, options) {
|
|
30546
|
+
return localVarFp.addEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(axios, basePath));
|
|
30547
|
+
},
|
|
30322
30548
|
/**
|
|
30323
30549
|
* Create Event Coupon endpoint
|
|
30324
30550
|
* @summary Create Event Coupon
|
|
@@ -30389,6 +30615,16 @@ export const EventsCouponsApiFactory = function (configuration, basePath, axios)
|
|
|
30389
30615
|
getEventCouponPayments(requestParameters, options) {
|
|
30390
30616
|
return localVarFp.getEventCouponPayments(requestParameters.eventId, requestParameters.couponId, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30391
30617
|
},
|
|
30618
|
+
/**
|
|
30619
|
+
* Get Event Coupon Tiers endpoint
|
|
30620
|
+
* @summary Get Event Coupon Tiers
|
|
30621
|
+
* @param {EventsCouponsApiGetEventCouponTiersRequest} requestParameters Request parameters.
|
|
30622
|
+
* @param {*} [options] Override http request option.
|
|
30623
|
+
* @throws {RequiredError}
|
|
30624
|
+
*/
|
|
30625
|
+
getEventCouponTiers(requestParameters, options) {
|
|
30626
|
+
return localVarFp.getEventCouponTiers(requestParameters.eventId, requestParameters.couponId, requestParameters.allowed, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30627
|
+
},
|
|
30392
30628
|
/**
|
|
30393
30629
|
* Get Event Coupon Variants endpoint
|
|
30394
30630
|
* @summary Get Event Coupon Variants
|
|
@@ -30409,6 +30645,16 @@ export const EventsCouponsApiFactory = function (configuration, basePath, axios)
|
|
|
30409
30645
|
getEventCoupons(requestParameters, options) {
|
|
30410
30646
|
return localVarFp.getEventCoupons(requestParameters.eventId, requestParameters.prePaid, requestParameters.includeVariants, requestParameters.page, requestParameters.pageSize, requestParameters.orderBy, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
30411
30647
|
},
|
|
30648
|
+
/**
|
|
30649
|
+
* Remove Event Coupon Tier endpoint
|
|
30650
|
+
* @summary Remove Event Coupon Tier
|
|
30651
|
+
* @param {EventsCouponsApiRemoveEventCouponTierRequest} requestParameters Request parameters.
|
|
30652
|
+
* @param {*} [options] Override http request option.
|
|
30653
|
+
* @throws {RequiredError}
|
|
30654
|
+
*/
|
|
30655
|
+
removeEventCouponTier(requestParameters, options) {
|
|
30656
|
+
return localVarFp.removeEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(axios, basePath));
|
|
30657
|
+
},
|
|
30412
30658
|
/**
|
|
30413
30659
|
* Sync Event Coupon To Variants endpoint
|
|
30414
30660
|
* @summary Sync Event Coupon To Variants
|
|
@@ -30435,6 +30681,16 @@ export const EventsCouponsApiFactory = function (configuration, basePath, axios)
|
|
|
30435
30681
|
* EventsCouponsApi - object-oriented interface
|
|
30436
30682
|
*/
|
|
30437
30683
|
export class EventsCouponsApi extends BaseAPI {
|
|
30684
|
+
/**
|
|
30685
|
+
* Add Event Coupon Tier endpoint
|
|
30686
|
+
* @summary Add Event Coupon Tier
|
|
30687
|
+
* @param {EventsCouponsApiAddEventCouponTierRequest} requestParameters Request parameters.
|
|
30688
|
+
* @param {*} [options] Override http request option.
|
|
30689
|
+
* @throws {RequiredError}
|
|
30690
|
+
*/
|
|
30691
|
+
addEventCouponTier(requestParameters, options) {
|
|
30692
|
+
return EventsCouponsApiFp(this.configuration).addEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(this.axios, this.basePath));
|
|
30693
|
+
}
|
|
30438
30694
|
/**
|
|
30439
30695
|
* Create Event Coupon endpoint
|
|
30440
30696
|
* @summary Create Event Coupon
|
|
@@ -30505,6 +30761,16 @@ export class EventsCouponsApi extends BaseAPI {
|
|
|
30505
30761
|
getEventCouponPayments(requestParameters, options) {
|
|
30506
30762
|
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));
|
|
30507
30763
|
}
|
|
30764
|
+
/**
|
|
30765
|
+
* Get Event Coupon Tiers endpoint
|
|
30766
|
+
* @summary Get Event Coupon Tiers
|
|
30767
|
+
* @param {EventsCouponsApiGetEventCouponTiersRequest} requestParameters Request parameters.
|
|
30768
|
+
* @param {*} [options] Override http request option.
|
|
30769
|
+
* @throws {RequiredError}
|
|
30770
|
+
*/
|
|
30771
|
+
getEventCouponTiers(requestParameters, options) {
|
|
30772
|
+
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));
|
|
30773
|
+
}
|
|
30508
30774
|
/**
|
|
30509
30775
|
* Get Event Coupon Variants endpoint
|
|
30510
30776
|
* @summary Get Event Coupon Variants
|
|
@@ -30525,6 +30791,16 @@ export class EventsCouponsApi extends BaseAPI {
|
|
|
30525
30791
|
getEventCoupons(requestParameters, options) {
|
|
30526
30792
|
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));
|
|
30527
30793
|
}
|
|
30794
|
+
/**
|
|
30795
|
+
* Remove Event Coupon Tier endpoint
|
|
30796
|
+
* @summary Remove Event Coupon Tier
|
|
30797
|
+
* @param {EventsCouponsApiRemoveEventCouponTierRequest} requestParameters Request parameters.
|
|
30798
|
+
* @param {*} [options] Override http request option.
|
|
30799
|
+
* @throws {RequiredError}
|
|
30800
|
+
*/
|
|
30801
|
+
removeEventCouponTier(requestParameters, options) {
|
|
30802
|
+
return EventsCouponsApiFp(this.configuration).removeEventCouponTier(requestParameters.eventId, requestParameters.couponId, requestParameters.tierId, requestParameters.allowed, options).then((request) => request(this.axios, this.basePath));
|
|
30803
|
+
}
|
|
30528
30804
|
/**
|
|
30529
30805
|
* Sync Event Coupon To Variants endpoint
|
|
30530
30806
|
* @summary Sync Event Coupon To Variants
|