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/dist/esm/api.js CHANGED
@@ -110,6 +110,9 @@ export const Locale = {
110
110
  RoRo: 'ro-ro',
111
111
  HuHu: 'hu-hu'
112
112
  };
113
+ export const MinTurnoverRestrictionKindEnum = {
114
+ MinTurnover: 'minTurnover'
115
+ };
113
116
  /**
114
117
  *
115
118
  * @export
@@ -150,7 +153,8 @@ export const NotificationStatus = {
150
153
  */
151
154
  export const OrderKind = {
152
155
  Webshop: 'webshop',
153
- Promotions: 'promotions'
156
+ Promotions: 'promotions',
157
+ SalesBudget: 'sales_budget'
154
158
  };
155
159
  /**
156
160
  *
@@ -284,6 +288,9 @@ export const ReportTypesResponseTypesEnum = {
284
288
  Promotion: 'promotion',
285
289
  PromotionExpanded: 'promotion_expanded'
286
290
  };
291
+ export const RequiredRestrictionKindEnum = {
292
+ Required: 'required'
293
+ };
287
294
  /**
288
295
  *
289
296
  * @export
@@ -391,7 +398,8 @@ export const TransactionSource = {
391
398
  Promotion: 'promotion',
392
399
  Manual: 'manual',
393
400
  Expiry: 'expiry',
394
- Transfer: 'transfer'
401
+ Transfer: 'transfer',
402
+ SalesBudget: 'sales_budget'
395
403
  };
396
404
  /**
397
405
  *
@@ -1823,13 +1831,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
1823
1831
  /**
1824
1832
  * Create custom deal restrictions
1825
1833
  * @summary Create custom deal restrictions
1826
- * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1834
+ * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1827
1835
  * @param {*} [options] Override http request option.
1828
1836
  * @throws {RequiredError}
1829
1837
  */
1830
- createCustomDealRestrictions: (customDealRestrictionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1831
- // verify required parameter 'customDealRestrictionRequest' is not null or undefined
1832
- assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest);
1838
+ createCustomDealRestrictions: (customDealRestriction, options = {}) => __awaiter(this, void 0, void 0, function* () {
1839
+ // verify required parameter 'customDealRestriction' is not null or undefined
1840
+ assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction);
1833
1841
  const localVarPath = `/admins/custom-deals/restrictions`;
1834
1842
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1835
1843
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1847,7 +1855,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
1847
1855
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1848
1856
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1849
1857
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1850
- localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration);
1858
+ localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration);
1851
1859
  return {
1852
1860
  url: toPathString(localVarUrlObj),
1853
1861
  options: localVarRequestOptions,
@@ -1893,13 +1901,13 @@ export const CustomDealsApiFp = function (configuration) {
1893
1901
  /**
1894
1902
  * Create custom deal restrictions
1895
1903
  * @summary Create custom deal restrictions
1896
- * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1904
+ * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1897
1905
  * @param {*} [options] Override http request option.
1898
1906
  * @throws {RequiredError}
1899
1907
  */
1900
- createCustomDealRestrictions(customDealRestrictionRequest, options) {
1908
+ createCustomDealRestrictions(customDealRestriction, options) {
1901
1909
  return __awaiter(this, void 0, void 0, function* () {
1902
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
1910
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
1903
1911
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1904
1912
  });
1905
1913
  },
@@ -1927,12 +1935,12 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
1927
1935
  /**
1928
1936
  * Create custom deal restrictions
1929
1937
  * @summary Create custom deal restrictions
1930
- * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1938
+ * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1931
1939
  * @param {*} [options] Override http request option.
1932
1940
  * @throws {RequiredError}
1933
1941
  */
1934
- createCustomDealRestrictions(customDealRestrictionRequest, options) {
1935
- return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
1942
+ createCustomDealRestrictions(customDealRestriction, options) {
1943
+ return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
1936
1944
  },
1937
1945
  /**
1938
1946
  * List custom deal restrictions
@@ -1955,13 +1963,13 @@ export class CustomDealsApi extends BaseAPI {
1955
1963
  /**
1956
1964
  * Create custom deal restrictions
1957
1965
  * @summary Create custom deal restrictions
1958
- * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
1966
+ * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
1959
1967
  * @param {*} [options] Override http request option.
1960
1968
  * @throws {RequiredError}
1961
1969
  * @memberof CustomDealsApi
1962
1970
  */
1963
- createCustomDealRestrictions(customDealRestrictionRequest, options) {
1964
- return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
1971
+ createCustomDealRestrictions(customDealRestriction, options) {
1972
+ return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
1965
1973
  }
1966
1974
  /**
1967
1975
  * List custom deal restrictions
@@ -2737,6 +2745,37 @@ export class NotificationApi extends BaseAPI {
2737
2745
  */
2738
2746
  export const OrderApiAxiosParamCreator = function (configuration) {
2739
2747
  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
+ }),
2740
2779
  /**
2741
2780
  * Create a product order. If successful the value of the product will be deducted from the used balance.
2742
2781
  * @summary Create an order for a product
@@ -2843,10 +2882,12 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2843
2882
  * @param {string} [createdBefore] Filter orders created before the specified date
2844
2883
  * @param {Array<string>} [userIDs] Filter by user ids
2845
2884
  * @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.
2846
2887
  * @param {*} [options] Override http request option.
2847
2888
  * @throws {RequiredError}
2848
2889
  */
2849
- listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
2890
+ listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
2850
2891
  const localVarPath = `/admins/orders`;
2851
2892
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2852
2893
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2888,6 +2929,12 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2888
2929
  if (clientIDs) {
2889
2930
  localVarQueryParameter['clientIDs'] = clientIDs;
2890
2931
  }
2932
+ if (kind !== undefined) {
2933
+ localVarQueryParameter['kind'] = kind;
2934
+ }
2935
+ if (source !== undefined) {
2936
+ localVarQueryParameter['source'] = source;
2937
+ }
2891
2938
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2892
2939
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2893
2940
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2965,6 +3012,19 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2965
3012
  export const OrderApiFp = function (configuration) {
2966
3013
  const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration);
2967
3014
  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
+ },
2968
3028
  /**
2969
3029
  * Create a product order. If successful the value of the product will be deducted from the used balance.
2970
3030
  * @summary Create an order for a product
@@ -3015,12 +3075,14 @@ export const OrderApiFp = function (configuration) {
3015
3075
  * @param {string} [createdBefore] Filter orders created before the specified date
3016
3076
  * @param {Array<string>} [userIDs] Filter by user ids
3017
3077
  * @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.
3018
3080
  * @param {*} [options] Override http request option.
3019
3081
  * @throws {RequiredError}
3020
3082
  */
3021
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3083
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3022
3084
  return __awaiter(this, void 0, void 0, function* () {
3023
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
3085
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
3024
3086
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3025
3087
  });
3026
3088
  },
@@ -3052,6 +3114,16 @@ export const OrderApiFp = function (configuration) {
3052
3114
  export const OrderApiFactory = function (configuration, basePath, axios) {
3053
3115
  const localVarFp = OrderApiFp(configuration);
3054
3116
  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
+ },
3055
3127
  /**
3056
3128
  * Create a product order. If successful the value of the product will be deducted from the used balance.
3057
3129
  * @summary Create an order for a product
@@ -3093,11 +3165,13 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
3093
3165
  * @param {string} [createdBefore] Filter orders created before the specified date
3094
3166
  * @param {Array<string>} [userIDs] Filter by user ids
3095
3167
  * @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.
3096
3170
  * @param {*} [options] Override http request option.
3097
3171
  * @throws {RequiredError}
3098
3172
  */
3099
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3100
- return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
3173
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3174
+ return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
3101
3175
  },
3102
3176
  /**
3103
3177
  * List existing orders
@@ -3124,6 +3198,17 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
3124
3198
  * @extends {BaseAPI}
3125
3199
  */
3126
3200
  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
+ }
3127
3212
  /**
3128
3213
  * Create a product order. If successful the value of the product will be deducted from the used balance.
3129
3214
  * @summary Create an order for a product
@@ -3168,12 +3253,14 @@ export class OrderApi extends BaseAPI {
3168
3253
  * @param {string} [createdBefore] Filter orders created before the specified date
3169
3254
  * @param {Array<string>} [userIDs] Filter by user ids
3170
3255
  * @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.
3171
3258
  * @param {*} [options] Override http request option.
3172
3259
  * @throws {RequiredError}
3173
3260
  * @memberof OrderApi
3174
3261
  */
3175
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3176
- return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
3262
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3263
+ return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
3177
3264
  }
3178
3265
  /**
3179
3266
  * List existing orders
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.1236-prerelease0",
3
+ "version": "0.0.1264-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {