flexinet-api 0.0.1236-prerelease0 → 0.0.1264-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 +259 -114
- package/dist/api.d.ts +198 -100
- package/dist/api.js +113 -26
- package/dist/esm/api.d.ts +198 -100
- package/dist/esm/api.js +110 -23
- package/package.json +1 -1
package/dist/api.js
CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
22
22
|
});
|
23
23
|
};
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
exports.
|
26
|
-
exports.
|
27
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = void 0;
|
25
|
+
exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TransactionCurrencyKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.RequiredRestrictionKindEnum = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.MinTurnoverRestrictionKindEnum = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
26
|
+
exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = void 0;
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = void 0;
|
28
28
|
const axios_1 = require("axios");
|
29
29
|
// Some imports not used depending on template conditions
|
30
30
|
// @ts-ignore
|
@@ -115,6 +115,9 @@ exports.Locale = {
|
|
115
115
|
RoRo: 'ro-ro',
|
116
116
|
HuHu: 'hu-hu'
|
117
117
|
};
|
118
|
+
exports.MinTurnoverRestrictionKindEnum = {
|
119
|
+
MinTurnover: 'minTurnover'
|
120
|
+
};
|
118
121
|
/**
|
119
122
|
*
|
120
123
|
* @export
|
@@ -155,7 +158,8 @@ exports.NotificationStatus = {
|
|
155
158
|
*/
|
156
159
|
exports.OrderKind = {
|
157
160
|
Webshop: 'webshop',
|
158
|
-
Promotions: 'promotions'
|
161
|
+
Promotions: 'promotions',
|
162
|
+
SalesBudget: 'sales_budget'
|
159
163
|
};
|
160
164
|
/**
|
161
165
|
*
|
@@ -289,6 +293,9 @@ exports.ReportTypesResponseTypesEnum = {
|
|
289
293
|
Promotion: 'promotion',
|
290
294
|
PromotionExpanded: 'promotion_expanded'
|
291
295
|
};
|
296
|
+
exports.RequiredRestrictionKindEnum = {
|
297
|
+
Required: 'required'
|
298
|
+
};
|
292
299
|
/**
|
293
300
|
*
|
294
301
|
* @export
|
@@ -396,7 +403,8 @@ exports.TransactionSource = {
|
|
396
403
|
Promotion: 'promotion',
|
397
404
|
Manual: 'manual',
|
398
405
|
Expiry: 'expiry',
|
399
|
-
Transfer: 'transfer'
|
406
|
+
Transfer: 'transfer',
|
407
|
+
SalesBudget: 'sales_budget'
|
400
408
|
};
|
401
409
|
/**
|
402
410
|
*
|
@@ -1852,13 +1860,13 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1852
1860
|
/**
|
1853
1861
|
* Create custom deal restrictions
|
1854
1862
|
* @summary Create custom deal restrictions
|
1855
|
-
* @param {
|
1863
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1856
1864
|
* @param {*} [options] Override http request option.
|
1857
1865
|
* @throws {RequiredError}
|
1858
1866
|
*/
|
1859
|
-
createCustomDealRestrictions: (
|
1860
|
-
// verify required parameter '
|
1861
|
-
(0, common_1.assertParamExists)('createCustomDealRestrictions', '
|
1867
|
+
createCustomDealRestrictions: (customDealRestriction, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1868
|
+
// verify required parameter 'customDealRestriction' is not null or undefined
|
1869
|
+
(0, common_1.assertParamExists)('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction);
|
1862
1870
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1863
1871
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1864
1872
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -1876,7 +1884,7 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1876
1884
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
1877
1885
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1878
1886
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1879
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
1887
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(customDealRestriction, localVarRequestOptions, configuration);
|
1880
1888
|
return {
|
1881
1889
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
1882
1890
|
options: localVarRequestOptions,
|
@@ -1923,13 +1931,13 @@ const CustomDealsApiFp = function (configuration) {
|
|
1923
1931
|
/**
|
1924
1932
|
* Create custom deal restrictions
|
1925
1933
|
* @summary Create custom deal restrictions
|
1926
|
-
* @param {
|
1934
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1927
1935
|
* @param {*} [options] Override http request option.
|
1928
1936
|
* @throws {RequiredError}
|
1929
1937
|
*/
|
1930
|
-
createCustomDealRestrictions(
|
1938
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
1931
1939
|
return __awaiter(this, void 0, void 0, function* () {
|
1932
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(
|
1940
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
|
1933
1941
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
1934
1942
|
});
|
1935
1943
|
},
|
@@ -1958,12 +1966,12 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
1958
1966
|
/**
|
1959
1967
|
* Create custom deal restrictions
|
1960
1968
|
* @summary Create custom deal restrictions
|
1961
|
-
* @param {
|
1969
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1962
1970
|
* @param {*} [options] Override http request option.
|
1963
1971
|
* @throws {RequiredError}
|
1964
1972
|
*/
|
1965
|
-
createCustomDealRestrictions(
|
1966
|
-
return localVarFp.createCustomDealRestrictions(
|
1973
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
1974
|
+
return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
|
1967
1975
|
},
|
1968
1976
|
/**
|
1969
1977
|
* List custom deal restrictions
|
@@ -1987,13 +1995,13 @@ class CustomDealsApi extends base_1.BaseAPI {
|
|
1987
1995
|
/**
|
1988
1996
|
* Create custom deal restrictions
|
1989
1997
|
* @summary Create custom deal restrictions
|
1990
|
-
* @param {
|
1998
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
1991
1999
|
* @param {*} [options] Override http request option.
|
1992
2000
|
* @throws {RequiredError}
|
1993
2001
|
* @memberof CustomDealsApi
|
1994
2002
|
*/
|
1995
|
-
createCustomDealRestrictions(
|
1996
|
-
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(
|
2003
|
+
createCustomDealRestrictions(customDealRestriction, options) {
|
2004
|
+
return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
1997
2005
|
}
|
1998
2006
|
/**
|
1999
2007
|
* List custom deal restrictions
|
@@ -2782,6 +2790,37 @@ exports.NotificationApi = NotificationApi;
|
|
2782
2790
|
*/
|
2783
2791
|
const OrderApiAxiosParamCreator = function (configuration) {
|
2784
2792
|
return {
|
2793
|
+
/**
|
2794
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2795
|
+
* @summary Create an order for a product
|
2796
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
2797
|
+
* @param {*} [options] Override http request option.
|
2798
|
+
* @throws {RequiredError}
|
2799
|
+
*/
|
2800
|
+
createAdminOrder: (adminOrderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2801
|
+
const localVarPath = `/admins/orders`;
|
2802
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2803
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
2804
|
+
let baseOptions;
|
2805
|
+
if (configuration) {
|
2806
|
+
baseOptions = configuration.baseOptions;
|
2807
|
+
}
|
2808
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2809
|
+
const localVarHeaderParameter = {};
|
2810
|
+
const localVarQueryParameter = {};
|
2811
|
+
// authentication systemJWT required
|
2812
|
+
// http bearer authentication required
|
2813
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
2814
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2815
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2816
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2817
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2818
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderCreationRequest, localVarRequestOptions, configuration);
|
2819
|
+
return {
|
2820
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
2821
|
+
options: localVarRequestOptions,
|
2822
|
+
};
|
2823
|
+
}),
|
2785
2824
|
/**
|
2786
2825
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2787
2826
|
* @summary Create an order for a product
|
@@ -2888,10 +2927,12 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
2888
2927
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
2889
2928
|
* @param {Array<string>} [userIDs] Filter by user ids
|
2890
2929
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
2930
|
+
* @param {OrderKind} [kind] Filter by kind
|
2931
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
2891
2932
|
* @param {*} [options] Override http request option.
|
2892
2933
|
* @throws {RequiredError}
|
2893
2934
|
*/
|
2894
|
-
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2935
|
+
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2895
2936
|
const localVarPath = `/admins/orders`;
|
2896
2937
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2897
2938
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
@@ -2933,6 +2974,12 @@ const OrderApiAxiosParamCreator = function (configuration) {
|
|
2933
2974
|
if (clientIDs) {
|
2934
2975
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
2935
2976
|
}
|
2977
|
+
if (kind !== undefined) {
|
2978
|
+
localVarQueryParameter['kind'] = kind;
|
2979
|
+
}
|
2980
|
+
if (source !== undefined) {
|
2981
|
+
localVarQueryParameter['source'] = source;
|
2982
|
+
}
|
2936
2983
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
2937
2984
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2938
2985
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3011,6 +3058,19 @@ exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
|
|
3011
3058
|
const OrderApiFp = function (configuration) {
|
3012
3059
|
const localVarAxiosParamCreator = (0, exports.OrderApiAxiosParamCreator)(configuration);
|
3013
3060
|
return {
|
3061
|
+
/**
|
3062
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3063
|
+
* @summary Create an order for a product
|
3064
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3065
|
+
* @param {*} [options] Override http request option.
|
3066
|
+
* @throws {RequiredError}
|
3067
|
+
*/
|
3068
|
+
createAdminOrder(adminOrderCreationRequest, options) {
|
3069
|
+
return __awaiter(this, void 0, void 0, function* () {
|
3070
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
3071
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3072
|
+
});
|
3073
|
+
},
|
3014
3074
|
/**
|
3015
3075
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3016
3076
|
* @summary Create an order for a product
|
@@ -3061,12 +3121,14 @@ const OrderApiFp = function (configuration) {
|
|
3061
3121
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3062
3122
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3063
3123
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3124
|
+
* @param {OrderKind} [kind] Filter by kind
|
3125
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3064
3126
|
* @param {*} [options] Override http request option.
|
3065
3127
|
* @throws {RequiredError}
|
3066
3128
|
*/
|
3067
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3129
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
|
3068
3130
|
return __awaiter(this, void 0, void 0, function* () {
|
3069
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
3131
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
|
3070
3132
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
3071
3133
|
});
|
3072
3134
|
},
|
@@ -3099,6 +3161,16 @@ exports.OrderApiFp = OrderApiFp;
|
|
3099
3161
|
const OrderApiFactory = function (configuration, basePath, axios) {
|
3100
3162
|
const localVarFp = (0, exports.OrderApiFp)(configuration);
|
3101
3163
|
return {
|
3164
|
+
/**
|
3165
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3166
|
+
* @summary Create an order for a product
|
3167
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3168
|
+
* @param {*} [options] Override http request option.
|
3169
|
+
* @throws {RequiredError}
|
3170
|
+
*/
|
3171
|
+
createAdminOrder(adminOrderCreationRequest, options) {
|
3172
|
+
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
3173
|
+
},
|
3102
3174
|
/**
|
3103
3175
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3104
3176
|
* @summary Create an order for a product
|
@@ -3140,11 +3212,13 @@ const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3140
3212
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3141
3213
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3142
3214
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3215
|
+
* @param {OrderKind} [kind] Filter by kind
|
3216
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3143
3217
|
* @param {*} [options] Override http request option.
|
3144
3218
|
* @throws {RequiredError}
|
3145
3219
|
*/
|
3146
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3147
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
3220
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
|
3221
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
|
3148
3222
|
},
|
3149
3223
|
/**
|
3150
3224
|
* List existing orders
|
@@ -3172,6 +3246,17 @@ exports.OrderApiFactory = OrderApiFactory;
|
|
3172
3246
|
* @extends {BaseAPI}
|
3173
3247
|
*/
|
3174
3248
|
class OrderApi extends base_1.BaseAPI {
|
3249
|
+
/**
|
3250
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3251
|
+
* @summary Create an order for a product
|
3252
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3253
|
+
* @param {*} [options] Override http request option.
|
3254
|
+
* @throws {RequiredError}
|
3255
|
+
* @memberof OrderApi
|
3256
|
+
*/
|
3257
|
+
createAdminOrder(adminOrderCreationRequest, options) {
|
3258
|
+
return (0, exports.OrderApiFp)(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
3259
|
+
}
|
3175
3260
|
/**
|
3176
3261
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3177
3262
|
* @summary Create an order for a product
|
@@ -3216,12 +3301,14 @@ class OrderApi extends base_1.BaseAPI {
|
|
3216
3301
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3217
3302
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3218
3303
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3304
|
+
* @param {OrderKind} [kind] Filter by kind
|
3305
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3219
3306
|
* @param {*} [options] Override http request option.
|
3220
3307
|
* @throws {RequiredError}
|
3221
3308
|
* @memberof OrderApi
|
3222
3309
|
*/
|
3223
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3224
|
-
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
3310
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
|
3311
|
+
return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
|
3225
3312
|
}
|
3226
3313
|
/**
|
3227
3314
|
* List existing orders
|