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 CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.1237-prerelease0
1
+ ## flexinet-api@0.0.1265-prerelease0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install flexinet-api@0.0.1237-prerelease0 --save
39
+ npm install flexinet-api@0.0.1265-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -23,6 +23,25 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface AdminOrderCreationRequest
30
+ */
31
+ export interface AdminOrderCreationRequest {
32
+ /**
33
+ *
34
+ * @type {Array<OrderItemCreationRequest>}
35
+ * @memberof AdminOrderCreationRequest
36
+ */
37
+ 'items': Array<OrderItemCreationRequest>;
38
+ /**
39
+ *
40
+ * @type {Beneficiary}
41
+ * @memberof AdminOrderCreationRequest
42
+ */
43
+ 'beneficiary'?: Beneficiary;
44
+ }
26
45
  /**
27
46
  *
28
47
  * @export
@@ -238,7 +257,7 @@ export interface BalanceUpdateRequest {
238
257
  * @type {TransactionKind}
239
258
  * @memberof BalanceUpdateRequest
240
259
  */
241
- 'transactionKind'?: TransactionKind;
260
+ 'transactionKind': TransactionKind;
242
261
  /**
243
262
  *
244
263
  * @type {TransactionCurrencyKind}
@@ -716,6 +735,19 @@ export const Condition = {
716
735
  export type Condition = typeof Condition[keyof typeof Condition];
717
736
 
718
737
 
738
+ /**
739
+ *
740
+ * @export
741
+ * @interface CustomDealMinTargetValueResponse
742
+ */
743
+ export interface CustomDealMinTargetValueResponse {
744
+ /**
745
+ *
746
+ * @type {number}
747
+ * @memberof CustomDealMinTargetValueResponse
748
+ */
749
+ 'minTargetValue': number;
750
+ }
719
751
  /**
720
752
  * @type CustomDealRestriction
721
753
  * @export
@@ -1283,6 +1315,12 @@ export interface Order {
1283
1315
  * @memberof Order
1284
1316
  */
1285
1317
  'status'?: OrderStatus;
1318
+ /**
1319
+ *
1320
+ * @type {string}
1321
+ * @memberof Order
1322
+ */
1323
+ 'clientID'?: string;
1286
1324
  }
1287
1325
 
1288
1326
 
@@ -1332,7 +1370,8 @@ export interface OrderItemCreationRequest {
1332
1370
 
1333
1371
  export const OrderKind = {
1334
1372
  Webshop: 'webshop',
1335
- Promotions: 'promotions'
1373
+ Promotions: 'promotions',
1374
+ SalesBudget: 'sales_budget'
1336
1375
  } as const;
1337
1376
 
1338
1377
  export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
@@ -3690,7 +3729,8 @@ export const TransactionSource = {
3690
3729
  Promotion: 'promotion',
3691
3730
  Manual: 'manual',
3692
3731
  Expiry: 'expiry',
3693
- Transfer: 'transfer'
3732
+ Transfer: 'transfer',
3733
+ SalesBudget: 'sales_budget'
3694
3734
  } as const;
3695
3735
 
3696
3736
  export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
@@ -3700,7 +3740,7 @@ export type TransactionSource = typeof TransactionSource[keyof typeof Transactio
3700
3740
  * @type TransactionSourceReference
3701
3741
  * @export
3702
3742
  */
3703
- export type TransactionSourceReference = BalanceWithBeneficiaryRef | Order | PeriodPromotion | User;
3743
+ export type TransactionSourceReference = BalanceWithBeneficiaryRef | PeriodPromotion | User | UserOrder;
3704
3744
 
3705
3745
  /**
3706
3746
  *
@@ -4055,7 +4095,7 @@ export interface UserOrder {
4055
4095
  * @type {string}
4056
4096
  * @memberof UserOrder
4057
4097
  */
4058
- 'source'?: string;
4098
+ 'source': string;
4059
4099
  /**
4060
4100
  *
4061
4101
  * @type {string}
@@ -4064,10 +4104,10 @@ export interface UserOrder {
4064
4104
  'userID'?: string;
4065
4105
  /**
4066
4106
  *
4067
- * @type {OrderStatus}
4107
+ * @type {string}
4068
4108
  * @memberof UserOrder
4069
4109
  */
4070
- 'status'?: OrderStatus;
4110
+ 'clientID': string;
4071
4111
  }
4072
4112
 
4073
4113
 
@@ -5954,6 +5994,86 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
5954
5994
  options: localVarRequestOptions,
5955
5995
  };
5956
5996
  },
5997
+ /**
5998
+ * Get custom deal min target value
5999
+ * @summary Get custom deal min target value
6000
+ * @param {string} startingAt start at
6001
+ * @param {string} endingAt end at
6002
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6003
+ * @param {Array<string>} beneficiaryValues beneficiary values
6004
+ * @param {string} tagKey tag key
6005
+ * @param {string} tagValue tag value
6006
+ * @param {*} [options] Override http request option.
6007
+ * @throws {RequiredError}
6008
+ */
6009
+ getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6010
+ // verify required parameter 'startingAt' is not null or undefined
6011
+ assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
6012
+ // verify required parameter 'endingAt' is not null or undefined
6013
+ assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
6014
+ // verify required parameter 'beneficiaryKind' is not null or undefined
6015
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
6016
+ // verify required parameter 'beneficiaryValues' is not null or undefined
6017
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
6018
+ // verify required parameter 'tagKey' is not null or undefined
6019
+ assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
6020
+ // verify required parameter 'tagValue' is not null or undefined
6021
+ assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
6022
+ const localVarPath = `/admins/custom-deals/min-target-value`;
6023
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6024
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6025
+ let baseOptions;
6026
+ if (configuration) {
6027
+ baseOptions = configuration.baseOptions;
6028
+ }
6029
+
6030
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6031
+ const localVarHeaderParameter = {} as any;
6032
+ const localVarQueryParameter = {} as any;
6033
+
6034
+ // authentication systemJWT required
6035
+ // http bearer authentication required
6036
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6037
+
6038
+ if (startingAt !== undefined) {
6039
+ localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
6040
+ (startingAt as any).toISOString() :
6041
+ startingAt;
6042
+ }
6043
+
6044
+ if (endingAt !== undefined) {
6045
+ localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
6046
+ (endingAt as any).toISOString() :
6047
+ endingAt;
6048
+ }
6049
+
6050
+ if (beneficiaryKind !== undefined) {
6051
+ localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
6052
+ }
6053
+
6054
+ if (beneficiaryValues) {
6055
+ localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
6056
+ }
6057
+
6058
+ if (tagKey !== undefined) {
6059
+ localVarQueryParameter['tagKey'] = tagKey;
6060
+ }
6061
+
6062
+ if (tagValue !== undefined) {
6063
+ localVarQueryParameter['tagValue'] = tagValue;
6064
+ }
6065
+
6066
+
6067
+
6068
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6069
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6070
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6071
+
6072
+ return {
6073
+ url: toPathString(localVarUrlObj),
6074
+ options: localVarRequestOptions,
6075
+ };
6076
+ },
5957
6077
  /**
5958
6078
  * List custom deal restrictions
5959
6079
  * @summary List custom deal restrictions
@@ -6009,6 +6129,22 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
6009
6129
  const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
6010
6130
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6011
6131
  },
6132
+ /**
6133
+ * Get custom deal min target value
6134
+ * @summary Get custom deal min target value
6135
+ * @param {string} startingAt start at
6136
+ * @param {string} endingAt end at
6137
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6138
+ * @param {Array<string>} beneficiaryValues beneficiary values
6139
+ * @param {string} tagKey tag key
6140
+ * @param {string} tagValue tag value
6141
+ * @param {*} [options] Override http request option.
6142
+ * @throws {RequiredError}
6143
+ */
6144
+ async getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
6145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
6146
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6147
+ },
6012
6148
  /**
6013
6149
  * List custom deal restrictions
6014
6150
  * @summary List custom deal restrictions
@@ -6039,6 +6175,21 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
6039
6175
  createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void> {
6040
6176
  return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
6041
6177
  },
6178
+ /**
6179
+ * Get custom deal min target value
6180
+ * @summary Get custom deal min target value
6181
+ * @param {string} startingAt start at
6182
+ * @param {string} endingAt end at
6183
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6184
+ * @param {Array<string>} beneficiaryValues beneficiary values
6185
+ * @param {string} tagKey tag key
6186
+ * @param {string} tagValue tag value
6187
+ * @param {*} [options] Override http request option.
6188
+ * @throws {RequiredError}
6189
+ */
6190
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
6191
+ return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
6192
+ },
6042
6193
  /**
6043
6194
  * List custom deal restrictions
6044
6195
  * @summary List custom deal restrictions
@@ -6070,6 +6221,23 @@ export class CustomDealsApi extends BaseAPI {
6070
6221
  return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
6071
6222
  }
6072
6223
 
6224
+ /**
6225
+ * Get custom deal min target value
6226
+ * @summary Get custom deal min target value
6227
+ * @param {string} startingAt start at
6228
+ * @param {string} endingAt end at
6229
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6230
+ * @param {Array<string>} beneficiaryValues beneficiary values
6231
+ * @param {string} tagKey tag key
6232
+ * @param {string} tagValue tag value
6233
+ * @param {*} [options] Override http request option.
6234
+ * @throws {RequiredError}
6235
+ * @memberof CustomDealsApi
6236
+ */
6237
+ public getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) {
6238
+ return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
6239
+ }
6240
+
6073
6241
  /**
6074
6242
  * List custom deal restrictions
6075
6243
  * @summary List custom deal restrictions
@@ -6919,6 +7087,44 @@ export class NotificationApi extends BaseAPI {
6919
7087
  */
6920
7088
  export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
6921
7089
  return {
7090
+ /**
7091
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
7092
+ * @summary Create an order for a product
7093
+ * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7094
+ * @param {*} [options] Override http request option.
7095
+ * @throws {RequiredError}
7096
+ */
7097
+ createAdminOrder: async (adminOrderCreationRequest?: AdminOrderCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7098
+ const localVarPath = `/admins/orders`;
7099
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7101
+ let baseOptions;
7102
+ if (configuration) {
7103
+ baseOptions = configuration.baseOptions;
7104
+ }
7105
+
7106
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7107
+ const localVarHeaderParameter = {} as any;
7108
+ const localVarQueryParameter = {} as any;
7109
+
7110
+ // authentication systemJWT required
7111
+ // http bearer authentication required
7112
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
7113
+
7114
+
7115
+
7116
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7117
+
7118
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7119
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7120
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7121
+ localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration)
7122
+
7123
+ return {
7124
+ url: toPathString(localVarUrlObj),
7125
+ options: localVarRequestOptions,
7126
+ };
7127
+ },
6922
7128
  /**
6923
7129
  * Create a product order. If successful the value of the product will be deducted from the used balance.
6924
7130
  * @summary Create an order for a product
@@ -7044,10 +7250,12 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7044
7250
  * @param {string} [createdBefore] Filter orders created before the specified date
7045
7251
  * @param {Array<string>} [userIDs] Filter by user ids
7046
7252
  * @param {Array<string>} [clientIDs] Filter by client ids
7253
+ * @param {OrderKind} [kind] Filter by kind
7254
+ * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7047
7255
  * @param {*} [options] Override http request option.
7048
7256
  * @throws {RequiredError}
7049
7257
  */
7050
- listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7258
+ listOrders: async (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> => {
7051
7259
  const localVarPath = `/admins/orders`;
7052
7260
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7053
7261
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7100,6 +7308,14 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7100
7308
  localVarQueryParameter['clientIDs'] = clientIDs;
7101
7309
  }
7102
7310
 
7311
+ if (kind !== undefined) {
7312
+ localVarQueryParameter['kind'] = kind;
7313
+ }
7314
+
7315
+ if (source !== undefined) {
7316
+ localVarQueryParameter['source'] = source;
7317
+ }
7318
+
7103
7319
 
7104
7320
 
7105
7321
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7194,6 +7410,17 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7194
7410
  export const OrderApiFp = function(configuration?: Configuration) {
7195
7411
  const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
7196
7412
  return {
7413
+ /**
7414
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
7415
+ * @summary Create an order for a product
7416
+ * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7417
+ * @param {*} [options] Override http request option.
7418
+ * @throws {RequiredError}
7419
+ */
7420
+ async createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
7421
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
7422
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7423
+ },
7197
7424
  /**
7198
7425
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7199
7426
  * @summary Create an order for a product
@@ -7238,11 +7465,13 @@ export const OrderApiFp = function(configuration?: Configuration) {
7238
7465
  * @param {string} [createdBefore] Filter orders created before the specified date
7239
7466
  * @param {Array<string>} [userIDs] Filter by user ids
7240
7467
  * @param {Array<string>} [clientIDs] Filter by client ids
7468
+ * @param {OrderKind} [kind] Filter by kind
7469
+ * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7241
7470
  * @param {*} [options] Override http request option.
7242
7471
  * @throws {RequiredError}
7243
7472
  */
7244
- async 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>> {
7245
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
7473
+ async 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>> {
7474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
7246
7475
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7247
7476
  },
7248
7477
  /**
@@ -7272,6 +7501,16 @@ export const OrderApiFp = function(configuration?: Configuration) {
7272
7501
  export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7273
7502
  const localVarFp = OrderApiFp(configuration)
7274
7503
  return {
7504
+ /**
7505
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
7506
+ * @summary Create an order for a product
7507
+ * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7508
+ * @param {*} [options] Override http request option.
7509
+ * @throws {RequiredError}
7510
+ */
7511
+ createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order> {
7512
+ return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
7513
+ },
7275
7514
  /**
7276
7515
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7277
7516
  * @summary Create an order for a product
@@ -7313,11 +7552,13 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7313
7552
  * @param {string} [createdBefore] Filter orders created before the specified date
7314
7553
  * @param {Array<string>} [userIDs] Filter by user ids
7315
7554
  * @param {Array<string>} [clientIDs] Filter by client ids
7555
+ * @param {OrderKind} [kind] Filter by kind
7556
+ * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7316
7557
  * @param {*} [options] Override http request option.
7317
7558
  * @throws {RequiredError}
7318
7559
  */
7319
- listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse> {
7320
- return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
7560
+ 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> {
7561
+ return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
7321
7562
  },
7322
7563
  /**
7323
7564
  * List existing orders
@@ -7345,6 +7586,18 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7345
7586
  * @extends {BaseAPI}
7346
7587
  */
7347
7588
  export class OrderApi extends BaseAPI {
7589
+ /**
7590
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
7591
+ * @summary Create an order for a product
7592
+ * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7593
+ * @param {*} [options] Override http request option.
7594
+ * @throws {RequiredError}
7595
+ * @memberof OrderApi
7596
+ */
7597
+ public createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) {
7598
+ return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
7599
+ }
7600
+
7348
7601
  /**
7349
7602
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7350
7603
  * @summary Create an order for a product
@@ -7392,12 +7645,14 @@ export class OrderApi extends BaseAPI {
7392
7645
  * @param {string} [createdBefore] Filter orders created before the specified date
7393
7646
  * @param {Array<string>} [userIDs] Filter by user ids
7394
7647
  * @param {Array<string>} [clientIDs] Filter by client ids
7648
+ * @param {OrderKind} [kind] Filter by kind
7649
+ * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7395
7650
  * @param {*} [options] Override http request option.
7396
7651
  * @throws {RequiredError}
7397
7652
  * @memberof OrderApi
7398
7653
  */
7399
- public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) {
7400
- return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
7654
+ public 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) {
7655
+ return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
7401
7656
  }
7402
7657
 
7403
7658
  /**