flexinet-api 0.0.1237-prerelease0 → 0.0.1265-prerelease0
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 +2 -2
- package/api.ts +269 -14
- package/dist/api.d.ts +143 -9
- package/dist/api.js +207 -9
- package/dist/esm/api.d.ts +143 -9
- package/dist/esm/api.js +207 -9
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
@@ -13,6 +13,25 @@ import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
14
14
|
import type { RequestArgs } from './base';
|
15
15
|
import { BaseAPI } from './base';
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* @export
|
19
|
+
* @interface AdminOrderCreationRequest
|
20
|
+
*/
|
21
|
+
export interface AdminOrderCreationRequest {
|
22
|
+
/**
|
23
|
+
*
|
24
|
+
* @type {Array<OrderItemCreationRequest>}
|
25
|
+
* @memberof AdminOrderCreationRequest
|
26
|
+
*/
|
27
|
+
'items': Array<OrderItemCreationRequest>;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {Beneficiary}
|
31
|
+
* @memberof AdminOrderCreationRequest
|
32
|
+
*/
|
33
|
+
'beneficiary'?: Beneficiary;
|
34
|
+
}
|
16
35
|
/**
|
17
36
|
*
|
18
37
|
* @export
|
@@ -211,7 +230,7 @@ export interface BalanceUpdateRequest {
|
|
211
230
|
* @type {TransactionKind}
|
212
231
|
* @memberof BalanceUpdateRequest
|
213
232
|
*/
|
214
|
-
'transactionKind'
|
233
|
+
'transactionKind': TransactionKind;
|
215
234
|
/**
|
216
235
|
*
|
217
236
|
* @type {TransactionCurrencyKind}
|
@@ -667,6 +686,19 @@ export declare const Condition: {
|
|
667
686
|
readonly Contains: "contains";
|
668
687
|
};
|
669
688
|
export type Condition = typeof Condition[keyof typeof Condition];
|
689
|
+
/**
|
690
|
+
*
|
691
|
+
* @export
|
692
|
+
* @interface CustomDealMinTargetValueResponse
|
693
|
+
*/
|
694
|
+
export interface CustomDealMinTargetValueResponse {
|
695
|
+
/**
|
696
|
+
*
|
697
|
+
* @type {number}
|
698
|
+
* @memberof CustomDealMinTargetValueResponse
|
699
|
+
*/
|
700
|
+
'minTargetValue': number;
|
701
|
+
}
|
670
702
|
/**
|
671
703
|
* @type CustomDealRestriction
|
672
704
|
* @export
|
@@ -1205,6 +1237,12 @@ export interface Order {
|
|
1205
1237
|
* @memberof Order
|
1206
1238
|
*/
|
1207
1239
|
'status'?: OrderStatus;
|
1240
|
+
/**
|
1241
|
+
*
|
1242
|
+
* @type {string}
|
1243
|
+
* @memberof Order
|
1244
|
+
*/
|
1245
|
+
'clientID'?: string;
|
1208
1246
|
}
|
1209
1247
|
/**
|
1210
1248
|
*
|
@@ -1252,6 +1290,7 @@ export interface OrderItemCreationRequest {
|
|
1252
1290
|
export declare const OrderKind: {
|
1253
1291
|
readonly Webshop: "webshop";
|
1254
1292
|
readonly Promotions: "promotions";
|
1293
|
+
readonly SalesBudget: "sales_budget";
|
1255
1294
|
};
|
1256
1295
|
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
1257
1296
|
/**
|
@@ -3494,13 +3533,14 @@ export declare const TransactionSource: {
|
|
3494
3533
|
readonly Manual: "manual";
|
3495
3534
|
readonly Expiry: "expiry";
|
3496
3535
|
readonly Transfer: "transfer";
|
3536
|
+
readonly SalesBudget: "sales_budget";
|
3497
3537
|
};
|
3498
3538
|
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
3499
3539
|
/**
|
3500
3540
|
* @type TransactionSourceReference
|
3501
3541
|
* @export
|
3502
3542
|
*/
|
3503
|
-
export type TransactionSourceReference = BalanceWithBeneficiaryRef |
|
3543
|
+
export type TransactionSourceReference = BalanceWithBeneficiaryRef | PeriodPromotion | User | UserOrder;
|
3504
3544
|
/**
|
3505
3545
|
*
|
3506
3546
|
* @export
|
@@ -3857,7 +3897,7 @@ export interface UserOrder {
|
|
3857
3897
|
* @type {string}
|
3858
3898
|
* @memberof UserOrder
|
3859
3899
|
*/
|
3860
|
-
'source'
|
3900
|
+
'source': string;
|
3861
3901
|
/**
|
3862
3902
|
*
|
3863
3903
|
* @type {string}
|
@@ -3866,10 +3906,10 @@ export interface UserOrder {
|
|
3866
3906
|
'userID'?: string;
|
3867
3907
|
/**
|
3868
3908
|
*
|
3869
|
-
* @type {
|
3909
|
+
* @type {string}
|
3870
3910
|
* @memberof UserOrder
|
3871
3911
|
*/
|
3872
|
-
'
|
3912
|
+
'clientID': string;
|
3873
3913
|
}
|
3874
3914
|
/**
|
3875
3915
|
*
|
@@ -4928,6 +4968,19 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
4928
4968
|
* @throws {RequiredError}
|
4929
4969
|
*/
|
4930
4970
|
createCustomDealRestrictions: (customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4971
|
+
/**
|
4972
|
+
* Get custom deal min target value
|
4973
|
+
* @summary Get custom deal min target value
|
4974
|
+
* @param {string} startingAt start at
|
4975
|
+
* @param {string} endingAt end at
|
4976
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
4977
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
4978
|
+
* @param {string} tagKey tag key
|
4979
|
+
* @param {string} tagValue tag value
|
4980
|
+
* @param {*} [options] Override http request option.
|
4981
|
+
* @throws {RequiredError}
|
4982
|
+
*/
|
4983
|
+
getCustomDealMinTargetValue: (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4931
4984
|
/**
|
4932
4985
|
* List custom deal restrictions
|
4933
4986
|
* @summary List custom deal restrictions
|
@@ -4949,6 +5002,19 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
4949
5002
|
* @throws {RequiredError}
|
4950
5003
|
*/
|
4951
5004
|
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
5005
|
+
/**
|
5006
|
+
* Get custom deal min target value
|
5007
|
+
* @summary Get custom deal min target value
|
5008
|
+
* @param {string} startingAt start at
|
5009
|
+
* @param {string} endingAt end at
|
5010
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5011
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5012
|
+
* @param {string} tagKey tag key
|
5013
|
+
* @param {string} tagValue tag value
|
5014
|
+
* @param {*} [options] Override http request option.
|
5015
|
+
* @throws {RequiredError}
|
5016
|
+
*/
|
5017
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
|
4952
5018
|
/**
|
4953
5019
|
* List custom deal restrictions
|
4954
5020
|
* @summary List custom deal restrictions
|
@@ -4970,6 +5036,19 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
4970
5036
|
* @throws {RequiredError}
|
4971
5037
|
*/
|
4972
5038
|
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void>;
|
5039
|
+
/**
|
5040
|
+
* Get custom deal min target value
|
5041
|
+
* @summary Get custom deal min target value
|
5042
|
+
* @param {string} startingAt start at
|
5043
|
+
* @param {string} endingAt end at
|
5044
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5045
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5046
|
+
* @param {string} tagKey tag key
|
5047
|
+
* @param {string} tagValue tag value
|
5048
|
+
* @param {*} [options] Override http request option.
|
5049
|
+
* @throws {RequiredError}
|
5050
|
+
*/
|
5051
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
|
4973
5052
|
/**
|
4974
5053
|
* List custom deal restrictions
|
4975
5054
|
* @summary List custom deal restrictions
|
@@ -4994,6 +5073,20 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
4994
5073
|
* @memberof CustomDealsApi
|
4995
5074
|
*/
|
4996
5075
|
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
5076
|
+
/**
|
5077
|
+
* Get custom deal min target value
|
5078
|
+
* @summary Get custom deal min target value
|
5079
|
+
* @param {string} startingAt start at
|
5080
|
+
* @param {string} endingAt end at
|
5081
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
5082
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
5083
|
+
* @param {string} tagKey tag key
|
5084
|
+
* @param {string} tagValue tag value
|
5085
|
+
* @param {*} [options] Override http request option.
|
5086
|
+
* @throws {RequiredError}
|
5087
|
+
* @memberof CustomDealsApi
|
5088
|
+
*/
|
5089
|
+
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
|
4997
5090
|
/**
|
4998
5091
|
* List custom deal restrictions
|
4999
5092
|
* @summary List custom deal restrictions
|
@@ -5412,6 +5505,14 @@ export declare class NotificationApi extends BaseAPI {
|
|
5412
5505
|
* @export
|
5413
5506
|
*/
|
5414
5507
|
export declare const OrderApiAxiosParamCreator: (configuration?: Configuration) => {
|
5508
|
+
/**
|
5509
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5510
|
+
* @summary Create an order for a product
|
5511
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
5512
|
+
* @param {*} [options] Override http request option.
|
5513
|
+
* @throws {RequiredError}
|
5514
|
+
*/
|
5515
|
+
createAdminOrder: (adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5415
5516
|
/**
|
5416
5517
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5417
5518
|
* @summary Create an order for a product
|
@@ -5447,10 +5548,12 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
5447
5548
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
5448
5549
|
* @param {Array<string>} [userIDs] Filter by user ids
|
5449
5550
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
5551
|
+
* @param {OrderKind} [kind] Filter by kind
|
5552
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
5450
5553
|
* @param {*} [options] Override http request option.
|
5451
5554
|
* @throws {RequiredError}
|
5452
5555
|
*/
|
5453
|
-
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5556
|
+
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5454
5557
|
/**
|
5455
5558
|
* List existing orders
|
5456
5559
|
* @summary List existing orders
|
@@ -5471,6 +5574,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
5471
5574
|
* @export
|
5472
5575
|
*/
|
5473
5576
|
export declare const OrderApiFp: (configuration?: Configuration) => {
|
5577
|
+
/**
|
5578
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5579
|
+
* @summary Create an order for a product
|
5580
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
5581
|
+
* @param {*} [options] Override http request option.
|
5582
|
+
* @throws {RequiredError}
|
5583
|
+
*/
|
5584
|
+
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
5474
5585
|
/**
|
5475
5586
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5476
5587
|
* @summary Create an order for a product
|
@@ -5506,10 +5617,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5506
5617
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
5507
5618
|
* @param {Array<string>} [userIDs] Filter by user ids
|
5508
5619
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
5620
|
+
* @param {OrderKind} [kind] Filter by kind
|
5621
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
5509
5622
|
* @param {*} [options] Override http request option.
|
5510
5623
|
* @throws {RequiredError}
|
5511
5624
|
*/
|
5512
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
5625
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
5513
5626
|
/**
|
5514
5627
|
* List existing orders
|
5515
5628
|
* @summary List existing orders
|
@@ -5530,6 +5643,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5530
5643
|
* @export
|
5531
5644
|
*/
|
5532
5645
|
export declare const OrderApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
5646
|
+
/**
|
5647
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5648
|
+
* @summary Create an order for a product
|
5649
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
5650
|
+
* @param {*} [options] Override http request option.
|
5651
|
+
* @throws {RequiredError}
|
5652
|
+
*/
|
5653
|
+
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order>;
|
5533
5654
|
/**
|
5534
5655
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5535
5656
|
* @summary Create an order for a product
|
@@ -5565,10 +5686,12 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5565
5686
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
5566
5687
|
* @param {Array<string>} [userIDs] Filter by user ids
|
5567
5688
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
5689
|
+
* @param {OrderKind} [kind] Filter by kind
|
5690
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
5568
5691
|
* @param {*} [options] Override http request option.
|
5569
5692
|
* @throws {RequiredError}
|
5570
5693
|
*/
|
5571
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse>;
|
5694
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: any): AxiosPromise<OrderListResponse>;
|
5572
5695
|
/**
|
5573
5696
|
* List existing orders
|
5574
5697
|
* @summary List existing orders
|
@@ -5591,6 +5714,15 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5591
5714
|
* @extends {BaseAPI}
|
5592
5715
|
*/
|
5593
5716
|
export declare class OrderApi extends BaseAPI {
|
5717
|
+
/**
|
5718
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5719
|
+
* @summary Create an order for a product
|
5720
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
5721
|
+
* @param {*} [options] Override http request option.
|
5722
|
+
* @throws {RequiredError}
|
5723
|
+
* @memberof OrderApi
|
5724
|
+
*/
|
5725
|
+
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
5594
5726
|
/**
|
5595
5727
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5596
5728
|
* @summary Create an order for a product
|
@@ -5629,11 +5761,13 @@ export declare class OrderApi extends BaseAPI {
|
|
5629
5761
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
5630
5762
|
* @param {Array<string>} [userIDs] Filter by user ids
|
5631
5763
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
5764
|
+
* @param {OrderKind} [kind] Filter by kind
|
5765
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
5632
5766
|
* @param {*} [options] Override http request option.
|
5633
5767
|
* @throws {RequiredError}
|
5634
5768
|
* @memberof OrderApi
|
5635
5769
|
*/
|
5636
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
5770
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
5637
5771
|
/**
|
5638
5772
|
* List existing orders
|
5639
5773
|
* @summary List existing orders
|
package/dist/esm/api.js
CHANGED
@@ -153,7 +153,8 @@ export const NotificationStatus = {
|
|
153
153
|
*/
|
154
154
|
export const OrderKind = {
|
155
155
|
Webshop: 'webshop',
|
156
|
-
Promotions: 'promotions'
|
156
|
+
Promotions: 'promotions',
|
157
|
+
SalesBudget: 'sales_budget'
|
157
158
|
};
|
158
159
|
/**
|
159
160
|
*
|
@@ -397,7 +398,8 @@ export const TransactionSource = {
|
|
397
398
|
Promotion: 'promotion',
|
398
399
|
Manual: 'manual',
|
399
400
|
Expiry: 'expiry',
|
400
|
-
Transfer: 'transfer'
|
401
|
+
Transfer: 'transfer',
|
402
|
+
SalesBudget: 'sales_budget'
|
401
403
|
};
|
402
404
|
/**
|
403
405
|
*
|
@@ -1859,6 +1861,74 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1859
1861
|
options: localVarRequestOptions,
|
1860
1862
|
};
|
1861
1863
|
}),
|
1864
|
+
/**
|
1865
|
+
* Get custom deal min target value
|
1866
|
+
* @summary Get custom deal min target value
|
1867
|
+
* @param {string} startingAt start at
|
1868
|
+
* @param {string} endingAt end at
|
1869
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
1870
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
1871
|
+
* @param {string} tagKey tag key
|
1872
|
+
* @param {string} tagValue tag value
|
1873
|
+
* @param {*} [options] Override http request option.
|
1874
|
+
* @throws {RequiredError}
|
1875
|
+
*/
|
1876
|
+
getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1877
|
+
// verify required parameter 'startingAt' is not null or undefined
|
1878
|
+
assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt);
|
1879
|
+
// verify required parameter 'endingAt' is not null or undefined
|
1880
|
+
assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt);
|
1881
|
+
// verify required parameter 'beneficiaryKind' is not null or undefined
|
1882
|
+
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
|
1883
|
+
// verify required parameter 'beneficiaryValues' is not null or undefined
|
1884
|
+
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
|
1885
|
+
// verify required parameter 'tagKey' is not null or undefined
|
1886
|
+
assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey);
|
1887
|
+
// verify required parameter 'tagValue' is not null or undefined
|
1888
|
+
assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue);
|
1889
|
+
const localVarPath = `/admins/custom-deals/min-target-value`;
|
1890
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1891
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1892
|
+
let baseOptions;
|
1893
|
+
if (configuration) {
|
1894
|
+
baseOptions = configuration.baseOptions;
|
1895
|
+
}
|
1896
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
1897
|
+
const localVarHeaderParameter = {};
|
1898
|
+
const localVarQueryParameter = {};
|
1899
|
+
// authentication systemJWT required
|
1900
|
+
// http bearer authentication required
|
1901
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
1902
|
+
if (startingAt !== undefined) {
|
1903
|
+
localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
|
1904
|
+
startingAt.toISOString() :
|
1905
|
+
startingAt;
|
1906
|
+
}
|
1907
|
+
if (endingAt !== undefined) {
|
1908
|
+
localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
|
1909
|
+
endingAt.toISOString() :
|
1910
|
+
endingAt;
|
1911
|
+
}
|
1912
|
+
if (beneficiaryKind !== undefined) {
|
1913
|
+
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
1914
|
+
}
|
1915
|
+
if (beneficiaryValues) {
|
1916
|
+
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
1917
|
+
}
|
1918
|
+
if (tagKey !== undefined) {
|
1919
|
+
localVarQueryParameter['tagKey'] = tagKey;
|
1920
|
+
}
|
1921
|
+
if (tagValue !== undefined) {
|
1922
|
+
localVarQueryParameter['tagValue'] = tagValue;
|
1923
|
+
}
|
1924
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1925
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1926
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1927
|
+
return {
|
1928
|
+
url: toPathString(localVarUrlObj),
|
1929
|
+
options: localVarRequestOptions,
|
1930
|
+
};
|
1931
|
+
}),
|
1862
1932
|
/**
|
1863
1933
|
* List custom deal restrictions
|
1864
1934
|
* @summary List custom deal restrictions
|
@@ -1909,6 +1979,24 @@ export const CustomDealsApiFp = function (configuration) {
|
|
1909
1979
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1910
1980
|
});
|
1911
1981
|
},
|
1982
|
+
/**
|
1983
|
+
* Get custom deal min target value
|
1984
|
+
* @summary Get custom deal min target value
|
1985
|
+
* @param {string} startingAt start at
|
1986
|
+
* @param {string} endingAt end at
|
1987
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
1988
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
1989
|
+
* @param {string} tagKey tag key
|
1990
|
+
* @param {string} tagValue tag value
|
1991
|
+
* @param {*} [options] Override http request option.
|
1992
|
+
* @throws {RequiredError}
|
1993
|
+
*/
|
1994
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
1995
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1996
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
1997
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1998
|
+
});
|
1999
|
+
},
|
1912
2000
|
/**
|
1913
2001
|
* List custom deal restrictions
|
1914
2002
|
* @summary List custom deal restrictions
|
@@ -1940,6 +2028,21 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
1940
2028
|
createCustomDealRestrictions(customDealRestriction, options) {
|
1941
2029
|
return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
|
1942
2030
|
},
|
2031
|
+
/**
|
2032
|
+
* Get custom deal min target value
|
2033
|
+
* @summary Get custom deal min target value
|
2034
|
+
* @param {string} startingAt start at
|
2035
|
+
* @param {string} endingAt end at
|
2036
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2037
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
2038
|
+
* @param {string} tagKey tag key
|
2039
|
+
* @param {string} tagValue tag value
|
2040
|
+
* @param {*} [options] Override http request option.
|
2041
|
+
* @throws {RequiredError}
|
2042
|
+
*/
|
2043
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2044
|
+
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
2045
|
+
},
|
1943
2046
|
/**
|
1944
2047
|
* List custom deal restrictions
|
1945
2048
|
* @summary List custom deal restrictions
|
@@ -1969,6 +2072,22 @@ export class CustomDealsApi extends BaseAPI {
|
|
1969
2072
|
createCustomDealRestrictions(customDealRestriction, options) {
|
1970
2073
|
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
1971
2074
|
}
|
2075
|
+
/**
|
2076
|
+
* Get custom deal min target value
|
2077
|
+
* @summary Get custom deal min target value
|
2078
|
+
* @param {string} startingAt start at
|
2079
|
+
* @param {string} endingAt end at
|
2080
|
+
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
2081
|
+
* @param {Array<string>} beneficiaryValues beneficiary values
|
2082
|
+
* @param {string} tagKey tag key
|
2083
|
+
* @param {string} tagValue tag value
|
2084
|
+
* @param {*} [options] Override http request option.
|
2085
|
+
* @throws {RequiredError}
|
2086
|
+
* @memberof CustomDealsApi
|
2087
|
+
*/
|
2088
|
+
getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
|
2089
|
+
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
|
2090
|
+
}
|
1972
2091
|
/**
|
1973
2092
|
* List custom deal restrictions
|
1974
2093
|
* @summary List custom deal restrictions
|
@@ -2743,6 +2862,37 @@ export class NotificationApi extends BaseAPI {
|
|
2743
2862
|
*/
|
2744
2863
|
export const OrderApiAxiosParamCreator = function (configuration) {
|
2745
2864
|
return {
|
2865
|
+
/**
|
2866
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2867
|
+
* @summary Create an order for a product
|
2868
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
2869
|
+
* @param {*} [options] Override http request option.
|
2870
|
+
* @throws {RequiredError}
|
2871
|
+
*/
|
2872
|
+
createAdminOrder: (adminOrderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2873
|
+
const localVarPath = `/admins/orders`;
|
2874
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2875
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2876
|
+
let baseOptions;
|
2877
|
+
if (configuration) {
|
2878
|
+
baseOptions = configuration.baseOptions;
|
2879
|
+
}
|
2880
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2881
|
+
const localVarHeaderParameter = {};
|
2882
|
+
const localVarQueryParameter = {};
|
2883
|
+
// authentication systemJWT required
|
2884
|
+
// http bearer authentication required
|
2885
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2886
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2887
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2888
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2889
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2890
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration);
|
2891
|
+
return {
|
2892
|
+
url: toPathString(localVarUrlObj),
|
2893
|
+
options: localVarRequestOptions,
|
2894
|
+
};
|
2895
|
+
}),
|
2746
2896
|
/**
|
2747
2897
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2748
2898
|
* @summary Create an order for a product
|
@@ -2849,10 +2999,12 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
2849
2999
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
2850
3000
|
* @param {Array<string>} [userIDs] Filter by user ids
|
2851
3001
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3002
|
+
* @param {OrderKind} [kind] Filter by kind
|
3003
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
2852
3004
|
* @param {*} [options] Override http request option.
|
2853
3005
|
* @throws {RequiredError}
|
2854
3006
|
*/
|
2855
|
-
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
3007
|
+
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2856
3008
|
const localVarPath = `/admins/orders`;
|
2857
3009
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2858
3010
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -2894,6 +3046,12 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
2894
3046
|
if (clientIDs) {
|
2895
3047
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
2896
3048
|
}
|
3049
|
+
if (kind !== undefined) {
|
3050
|
+
localVarQueryParameter['kind'] = kind;
|
3051
|
+
}
|
3052
|
+
if (source !== undefined) {
|
3053
|
+
localVarQueryParameter['source'] = source;
|
3054
|
+
}
|
2897
3055
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2898
3056
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2899
3057
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -2971,6 +3129,19 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
2971
3129
|
export const OrderApiFp = function (configuration) {
|
2972
3130
|
const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration);
|
2973
3131
|
return {
|
3132
|
+
/**
|
3133
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3134
|
+
* @summary Create an order for a product
|
3135
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3136
|
+
* @param {*} [options] Override http request option.
|
3137
|
+
* @throws {RequiredError}
|
3138
|
+
*/
|
3139
|
+
createAdminOrder(adminOrderCreationRequest, options) {
|
3140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
3141
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
3142
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3143
|
+
});
|
3144
|
+
},
|
2974
3145
|
/**
|
2975
3146
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2976
3147
|
* @summary Create an order for a product
|
@@ -3021,12 +3192,14 @@ export const OrderApiFp = function (configuration) {
|
|
3021
3192
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3022
3193
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3023
3194
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3195
|
+
* @param {OrderKind} [kind] Filter by kind
|
3196
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3024
3197
|
* @param {*} [options] Override http request option.
|
3025
3198
|
* @throws {RequiredError}
|
3026
3199
|
*/
|
3027
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3200
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
|
3028
3201
|
return __awaiter(this, void 0, void 0, function* () {
|
3029
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
3202
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
|
3030
3203
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3031
3204
|
});
|
3032
3205
|
},
|
@@ -3058,6 +3231,16 @@ export const OrderApiFp = function (configuration) {
|
|
3058
3231
|
export const OrderApiFactory = function (configuration, basePath, axios) {
|
3059
3232
|
const localVarFp = OrderApiFp(configuration);
|
3060
3233
|
return {
|
3234
|
+
/**
|
3235
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3236
|
+
* @summary Create an order for a product
|
3237
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3238
|
+
* @param {*} [options] Override http request option.
|
3239
|
+
* @throws {RequiredError}
|
3240
|
+
*/
|
3241
|
+
createAdminOrder(adminOrderCreationRequest, options) {
|
3242
|
+
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
3243
|
+
},
|
3061
3244
|
/**
|
3062
3245
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3063
3246
|
* @summary Create an order for a product
|
@@ -3099,11 +3282,13 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3099
3282
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3100
3283
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3101
3284
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3285
|
+
* @param {OrderKind} [kind] Filter by kind
|
3286
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3102
3287
|
* @param {*} [options] Override http request option.
|
3103
3288
|
* @throws {RequiredError}
|
3104
3289
|
*/
|
3105
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3106
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
3290
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
|
3291
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
|
3107
3292
|
},
|
3108
3293
|
/**
|
3109
3294
|
* List existing orders
|
@@ -3130,6 +3315,17 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3130
3315
|
* @extends {BaseAPI}
|
3131
3316
|
*/
|
3132
3317
|
export class OrderApi extends BaseAPI {
|
3318
|
+
/**
|
3319
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3320
|
+
* @summary Create an order for a product
|
3321
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3322
|
+
* @param {*} [options] Override http request option.
|
3323
|
+
* @throws {RequiredError}
|
3324
|
+
* @memberof OrderApi
|
3325
|
+
*/
|
3326
|
+
createAdminOrder(adminOrderCreationRequest, options) {
|
3327
|
+
return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
3328
|
+
}
|
3133
3329
|
/**
|
3134
3330
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3135
3331
|
* @summary Create an order for a product
|
@@ -3174,12 +3370,14 @@ export class OrderApi extends BaseAPI {
|
|
3174
3370
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3175
3371
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3176
3372
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3373
|
+
* @param {OrderKind} [kind] Filter by kind
|
3374
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3177
3375
|
* @param {*} [options] Override http request option.
|
3178
3376
|
* @throws {RequiredError}
|
3179
3377
|
* @memberof OrderApi
|
3180
3378
|
*/
|
3181
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3182
|
-
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
3379
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
|
3380
|
+
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
|
3183
3381
|
}
|
3184
3382
|
/**
|
3185
3383
|
* List existing orders
|