flexinet-api 0.0.1264-prerelease0 → 0.0.1264
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 +231 -304
- package/dist/api.d.ts +179 -235
- package/dist/api.js +91 -123
- package/dist/esm/api.d.ts +179 -235
- package/dist/esm/api.js +88 -120
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
@@ -110,9 +110,6 @@ export const Locale = {
|
|
110
110
|
RoRo: 'ro-ro',
|
111
111
|
HuHu: 'hu-hu'
|
112
112
|
};
|
113
|
-
export const MinTurnoverRestrictionKindEnum = {
|
114
|
-
MinTurnover: 'minTurnover'
|
115
|
-
};
|
116
113
|
/**
|
117
114
|
*
|
118
115
|
* @export
|
@@ -153,8 +150,7 @@ export const NotificationStatus = {
|
|
153
150
|
*/
|
154
151
|
export const OrderKind = {
|
155
152
|
Webshop: 'webshop',
|
156
|
-
Promotions: 'promotions'
|
157
|
-
SalesBudget: 'sales_budget'
|
153
|
+
Promotions: 'promotions'
|
158
154
|
};
|
159
155
|
/**
|
160
156
|
*
|
@@ -288,9 +284,6 @@ export const ReportTypesResponseTypesEnum = {
|
|
288
284
|
Promotion: 'promotion',
|
289
285
|
PromotionExpanded: 'promotion_expanded'
|
290
286
|
};
|
291
|
-
export const RequiredRestrictionKindEnum = {
|
292
|
-
Required: 'required'
|
293
|
-
};
|
294
287
|
/**
|
295
288
|
*
|
296
289
|
* @export
|
@@ -359,16 +352,6 @@ export const TargetMu = {
|
|
359
352
|
Product: 'product',
|
360
353
|
AdditionalMu: 'additionalMU'
|
361
354
|
};
|
362
|
-
/**
|
363
|
-
*
|
364
|
-
* @export
|
365
|
-
* @enum {string}
|
366
|
-
*/
|
367
|
-
export const TransactionCurrencyKind = {
|
368
|
-
Points: 'points',
|
369
|
-
CustomDealBudget: 'customDealBudget',
|
370
|
-
SalesBudget: 'salesBudget'
|
371
|
-
};
|
372
355
|
/**
|
373
356
|
*
|
374
357
|
* @export
|
@@ -398,8 +381,7 @@ export const TransactionSource = {
|
|
398
381
|
Promotion: 'promotion',
|
399
382
|
Manual: 'manual',
|
400
383
|
Expiry: 'expiry',
|
401
|
-
Transfer: 'transfer'
|
402
|
-
SalesBudget: 'sales_budget'
|
384
|
+
Transfer: 'transfer'
|
403
385
|
};
|
404
386
|
/**
|
405
387
|
*
|
@@ -1026,6 +1008,37 @@ export const BulkApiAxiosParamCreator = function (configuration) {
|
|
1026
1008
|
options: localVarRequestOptions,
|
1027
1009
|
};
|
1028
1010
|
}),
|
1011
|
+
/**
|
1012
|
+
* Update multiple clients
|
1013
|
+
* @summary Update multiple clients
|
1014
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1015
|
+
* @param {*} [options] Override http request option.
|
1016
|
+
* @throws {RequiredError}
|
1017
|
+
*/
|
1018
|
+
bulkUpdateClients: (clientsBulkUpdateRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1019
|
+
const localVarPath = `/admins/clients/bulk`;
|
1020
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1021
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
1022
|
+
let baseOptions;
|
1023
|
+
if (configuration) {
|
1024
|
+
baseOptions = configuration.baseOptions;
|
1025
|
+
}
|
1026
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
1027
|
+
const localVarHeaderParameter = {};
|
1028
|
+
const localVarQueryParameter = {};
|
1029
|
+
// authentication systemJWT required
|
1030
|
+
// http bearer authentication required
|
1031
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
1032
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1033
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1035
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1036
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration);
|
1037
|
+
return {
|
1038
|
+
url: toPathString(localVarUrlObj),
|
1039
|
+
options: localVarRequestOptions,
|
1040
|
+
};
|
1041
|
+
}),
|
1029
1042
|
};
|
1030
1043
|
};
|
1031
1044
|
/**
|
@@ -1074,6 +1087,19 @@ export const BulkApiFp = function (configuration) {
|
|
1074
1087
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1075
1088
|
});
|
1076
1089
|
},
|
1090
|
+
/**
|
1091
|
+
* Update multiple clients
|
1092
|
+
* @summary Update multiple clients
|
1093
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1094
|
+
* @param {*} [options] Override http request option.
|
1095
|
+
* @throws {RequiredError}
|
1096
|
+
*/
|
1097
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1098
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1099
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
1100
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1101
|
+
});
|
1102
|
+
},
|
1077
1103
|
};
|
1078
1104
|
};
|
1079
1105
|
/**
|
@@ -1113,6 +1139,16 @@ export const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1113
1139
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1114
1140
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
1115
1141
|
},
|
1142
|
+
/**
|
1143
|
+
* Update multiple clients
|
1144
|
+
* @summary Update multiple clients
|
1145
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1146
|
+
* @param {*} [options] Override http request option.
|
1147
|
+
* @throws {RequiredError}
|
1148
|
+
*/
|
1149
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1150
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
1151
|
+
},
|
1116
1152
|
};
|
1117
1153
|
};
|
1118
1154
|
/**
|
@@ -1155,6 +1191,17 @@ export class BulkApi extends BaseAPI {
|
|
1155
1191
|
bulkCreateTags(tagsBulkCreationRequest, options) {
|
1156
1192
|
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
1157
1193
|
}
|
1194
|
+
/**
|
1195
|
+
* Update multiple clients
|
1196
|
+
* @summary Update multiple clients
|
1197
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
1198
|
+
* @param {*} [options] Override http request option.
|
1199
|
+
* @throws {RequiredError}
|
1200
|
+
* @memberof BulkApi
|
1201
|
+
*/
|
1202
|
+
bulkUpdateClients(clientsBulkUpdateRequest, options) {
|
1203
|
+
return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
1204
|
+
}
|
1158
1205
|
}
|
1159
1206
|
/**
|
1160
1207
|
* CategoryApi - axios parameter creator
|
@@ -1831,13 +1878,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1831
1878
|
/**
|
1832
1879
|
* Create custom deal restrictions
|
1833
1880
|
* @summary Create custom deal restrictions
|
1834
|
-
* @param {
|
1881
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1835
1882
|
* @param {*} [options] Override http request option.
|
1836
1883
|
* @throws {RequiredError}
|
1837
1884
|
*/
|
1838
|
-
createCustomDealRestrictions: (
|
1839
|
-
// verify required parameter '
|
1840
|
-
assertParamExists('createCustomDealRestrictions', '
|
1885
|
+
createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
1886
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
1887
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
|
1841
1888
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
1842
1889
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
1843
1890
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -1855,7 +1902,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
|
|
1855
1902
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
1856
1903
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
1857
1904
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
1858
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
1905
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration);
|
1859
1906
|
return {
|
1860
1907
|
url: toPathString(localVarUrlObj),
|
1861
1908
|
options: localVarRequestOptions,
|
@@ -1901,13 +1948,13 @@ export const CustomDealsApiFp = function (configuration) {
|
|
1901
1948
|
/**
|
1902
1949
|
* Create custom deal restrictions
|
1903
1950
|
* @summary Create custom deal restrictions
|
1904
|
-
* @param {
|
1951
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1905
1952
|
* @param {*} [options] Override http request option.
|
1906
1953
|
* @throws {RequiredError}
|
1907
1954
|
*/
|
1908
|
-
createCustomDealRestrictions(
|
1955
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
1909
1956
|
return __awaiter(this, void 0, void 0, function* () {
|
1910
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(
|
1957
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
1911
1958
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
1912
1959
|
});
|
1913
1960
|
},
|
@@ -1935,12 +1982,12 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
|
|
1935
1982
|
/**
|
1936
1983
|
* Create custom deal restrictions
|
1937
1984
|
* @summary Create custom deal restrictions
|
1938
|
-
* @param {
|
1985
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1939
1986
|
* @param {*} [options] Override http request option.
|
1940
1987
|
* @throws {RequiredError}
|
1941
1988
|
*/
|
1942
|
-
createCustomDealRestrictions(
|
1943
|
-
return localVarFp.createCustomDealRestrictions(
|
1989
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
1990
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
1944
1991
|
},
|
1945
1992
|
/**
|
1946
1993
|
* List custom deal restrictions
|
@@ -1963,13 +2010,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
1963
2010
|
/**
|
1964
2011
|
* Create custom deal restrictions
|
1965
2012
|
* @summary Create custom deal restrictions
|
1966
|
-
* @param {
|
2013
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
1967
2014
|
* @param {*} [options] Override http request option.
|
1968
2015
|
* @throws {RequiredError}
|
1969
2016
|
* @memberof CustomDealsApi
|
1970
2017
|
*/
|
1971
|
-
createCustomDealRestrictions(
|
1972
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(
|
2018
|
+
createCustomDealRestrictions(customDealRestrictionRequest, options) {
|
2019
|
+
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
1973
2020
|
}
|
1974
2021
|
/**
|
1975
2022
|
* List custom deal restrictions
|
@@ -2745,37 +2792,6 @@ export class NotificationApi extends BaseAPI {
|
|
2745
2792
|
*/
|
2746
2793
|
export const OrderApiAxiosParamCreator = function (configuration) {
|
2747
2794
|
return {
|
2748
|
-
/**
|
2749
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2750
|
-
* @summary Create an order for a product
|
2751
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
2752
|
-
* @param {*} [options] Override http request option.
|
2753
|
-
* @throws {RequiredError}
|
2754
|
-
*/
|
2755
|
-
createAdminOrder: (adminOrderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2756
|
-
const localVarPath = `/admins/orders`;
|
2757
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2758
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
2759
|
-
let baseOptions;
|
2760
|
-
if (configuration) {
|
2761
|
-
baseOptions = configuration.baseOptions;
|
2762
|
-
}
|
2763
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
2764
|
-
const localVarHeaderParameter = {};
|
2765
|
-
const localVarQueryParameter = {};
|
2766
|
-
// authentication systemJWT required
|
2767
|
-
// http bearer authentication required
|
2768
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
2769
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
2770
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2771
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2772
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
2773
|
-
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration);
|
2774
|
-
return {
|
2775
|
-
url: toPathString(localVarUrlObj),
|
2776
|
-
options: localVarRequestOptions,
|
2777
|
-
};
|
2778
|
-
}),
|
2779
2795
|
/**
|
2780
2796
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
2781
2797
|
* @summary Create an order for a product
|
@@ -2882,12 +2898,10 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
2882
2898
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
2883
2899
|
* @param {Array<string>} [userIDs] Filter by user ids
|
2884
2900
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
2885
|
-
* @param {OrderKind} [kind] Filter by kind
|
2886
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
2887
2901
|
* @param {*} [options] Override http request option.
|
2888
2902
|
* @throws {RequiredError}
|
2889
2903
|
*/
|
2890
|
-
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
2904
|
+
listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
2891
2905
|
const localVarPath = `/admins/orders`;
|
2892
2906
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
2893
2907
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -2929,12 +2943,6 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
2929
2943
|
if (clientIDs) {
|
2930
2944
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
2931
2945
|
}
|
2932
|
-
if (kind !== undefined) {
|
2933
|
-
localVarQueryParameter['kind'] = kind;
|
2934
|
-
}
|
2935
|
-
if (source !== undefined) {
|
2936
|
-
localVarQueryParameter['source'] = source;
|
2937
|
-
}
|
2938
2946
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
2939
2947
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
2940
2948
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
@@ -3012,19 +3020,6 @@ export const OrderApiAxiosParamCreator = function (configuration) {
|
|
3012
3020
|
export const OrderApiFp = function (configuration) {
|
3013
3021
|
const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration);
|
3014
3022
|
return {
|
3015
|
-
/**
|
3016
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3017
|
-
* @summary Create an order for a product
|
3018
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3019
|
-
* @param {*} [options] Override http request option.
|
3020
|
-
* @throws {RequiredError}
|
3021
|
-
*/
|
3022
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3023
|
-
return __awaiter(this, void 0, void 0, function* () {
|
3024
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
3025
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3026
|
-
});
|
3027
|
-
},
|
3028
3023
|
/**
|
3029
3024
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3030
3025
|
* @summary Create an order for a product
|
@@ -3075,14 +3070,12 @@ export const OrderApiFp = function (configuration) {
|
|
3075
3070
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3076
3071
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3077
3072
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3078
|
-
* @param {OrderKind} [kind] Filter by kind
|
3079
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3080
3073
|
* @param {*} [options] Override http request option.
|
3081
3074
|
* @throws {RequiredError}
|
3082
3075
|
*/
|
3083
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3076
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3084
3077
|
return __awaiter(this, void 0, void 0, function* () {
|
3085
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3078
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
3086
3079
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
3087
3080
|
});
|
3088
3081
|
},
|
@@ -3114,16 +3107,6 @@ export const OrderApiFp = function (configuration) {
|
|
3114
3107
|
export const OrderApiFactory = function (configuration, basePath, axios) {
|
3115
3108
|
const localVarFp = OrderApiFp(configuration);
|
3116
3109
|
return {
|
3117
|
-
/**
|
3118
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3119
|
-
* @summary Create an order for a product
|
3120
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3121
|
-
* @param {*} [options] Override http request option.
|
3122
|
-
* @throws {RequiredError}
|
3123
|
-
*/
|
3124
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3125
|
-
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
3126
|
-
},
|
3127
3110
|
/**
|
3128
3111
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3129
3112
|
* @summary Create an order for a product
|
@@ -3165,13 +3148,11 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3165
3148
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3166
3149
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3167
3150
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3168
|
-
* @param {OrderKind} [kind] Filter by kind
|
3169
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3170
3151
|
* @param {*} [options] Override http request option.
|
3171
3152
|
* @throws {RequiredError}
|
3172
3153
|
*/
|
3173
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3174
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3154
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3155
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
3175
3156
|
},
|
3176
3157
|
/**
|
3177
3158
|
* List existing orders
|
@@ -3198,17 +3179,6 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
|
|
3198
3179
|
* @extends {BaseAPI}
|
3199
3180
|
*/
|
3200
3181
|
export class OrderApi extends BaseAPI {
|
3201
|
-
/**
|
3202
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3203
|
-
* @summary Create an order for a product
|
3204
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
3205
|
-
* @param {*} [options] Override http request option.
|
3206
|
-
* @throws {RequiredError}
|
3207
|
-
* @memberof OrderApi
|
3208
|
-
*/
|
3209
|
-
createAdminOrder(adminOrderCreationRequest, options) {
|
3210
|
-
return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
3211
|
-
}
|
3212
3182
|
/**
|
3213
3183
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
3214
3184
|
* @summary Create an order for a product
|
@@ -3253,14 +3223,12 @@ export class OrderApi extends BaseAPI {
|
|
3253
3223
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
3254
3224
|
* @param {Array<string>} [userIDs] Filter by user ids
|
3255
3225
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
3256
|
-
* @param {OrderKind} [kind] Filter by kind
|
3257
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
3258
3226
|
* @param {*} [options] Override http request option.
|
3259
3227
|
* @throws {RequiredError}
|
3260
3228
|
* @memberof OrderApi
|
3261
3229
|
*/
|
3262
|
-
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3263
|
-
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
3230
|
+
listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
|
3231
|
+
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
3264
3232
|
}
|
3265
3233
|
/**
|
3266
3234
|
* List existing orders
|