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/dist/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'?: 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 | Order | PeriodPromotion | User;
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'?: string;
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 {OrderStatus}
3909
+ * @type {string}
3870
3910
  * @memberof UserOrder
3871
3911
  */
3872
- 'status'?: OrderStatus;
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/api.js CHANGED
@@ -158,7 +158,8 @@ exports.NotificationStatus = {
158
158
  */
159
159
  exports.OrderKind = {
160
160
  Webshop: 'webshop',
161
- Promotions: 'promotions'
161
+ Promotions: 'promotions',
162
+ SalesBudget: 'sales_budget'
162
163
  };
163
164
  /**
164
165
  *
@@ -402,7 +403,8 @@ exports.TransactionSource = {
402
403
  Promotion: 'promotion',
403
404
  Manual: 'manual',
404
405
  Expiry: 'expiry',
405
- Transfer: 'transfer'
406
+ Transfer: 'transfer',
407
+ SalesBudget: 'sales_budget'
406
408
  };
407
409
  /**
408
410
  *
@@ -1888,6 +1890,74 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
1888
1890
  options: localVarRequestOptions,
1889
1891
  };
1890
1892
  }),
1893
+ /**
1894
+ * Get custom deal min target value
1895
+ * @summary Get custom deal min target value
1896
+ * @param {string} startingAt start at
1897
+ * @param {string} endingAt end at
1898
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
1899
+ * @param {Array<string>} beneficiaryValues beneficiary values
1900
+ * @param {string} tagKey tag key
1901
+ * @param {string} tagValue tag value
1902
+ * @param {*} [options] Override http request option.
1903
+ * @throws {RequiredError}
1904
+ */
1905
+ getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
1906
+ // verify required parameter 'startingAt' is not null or undefined
1907
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'startingAt', startingAt);
1908
+ // verify required parameter 'endingAt' is not null or undefined
1909
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'endingAt', endingAt);
1910
+ // verify required parameter 'beneficiaryKind' is not null or undefined
1911
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
1912
+ // verify required parameter 'beneficiaryValues' is not null or undefined
1913
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
1914
+ // verify required parameter 'tagKey' is not null or undefined
1915
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagKey', tagKey);
1916
+ // verify required parameter 'tagValue' is not null or undefined
1917
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagValue', tagValue);
1918
+ const localVarPath = `/admins/custom-deals/min-target-value`;
1919
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1920
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1921
+ let baseOptions;
1922
+ if (configuration) {
1923
+ baseOptions = configuration.baseOptions;
1924
+ }
1925
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1926
+ const localVarHeaderParameter = {};
1927
+ const localVarQueryParameter = {};
1928
+ // authentication systemJWT required
1929
+ // http bearer authentication required
1930
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1931
+ if (startingAt !== undefined) {
1932
+ localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
1933
+ startingAt.toISOString() :
1934
+ startingAt;
1935
+ }
1936
+ if (endingAt !== undefined) {
1937
+ localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
1938
+ endingAt.toISOString() :
1939
+ endingAt;
1940
+ }
1941
+ if (beneficiaryKind !== undefined) {
1942
+ localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
1943
+ }
1944
+ if (beneficiaryValues) {
1945
+ localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
1946
+ }
1947
+ if (tagKey !== undefined) {
1948
+ localVarQueryParameter['tagKey'] = tagKey;
1949
+ }
1950
+ if (tagValue !== undefined) {
1951
+ localVarQueryParameter['tagValue'] = tagValue;
1952
+ }
1953
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1955
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1956
+ return {
1957
+ url: (0, common_1.toPathString)(localVarUrlObj),
1958
+ options: localVarRequestOptions,
1959
+ };
1960
+ }),
1891
1961
  /**
1892
1962
  * List custom deal restrictions
1893
1963
  * @summary List custom deal restrictions
@@ -1939,6 +2009,24 @@ const CustomDealsApiFp = function (configuration) {
1939
2009
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1940
2010
  });
1941
2011
  },
2012
+ /**
2013
+ * Get custom deal min target value
2014
+ * @summary Get custom deal min target value
2015
+ * @param {string} startingAt start at
2016
+ * @param {string} endingAt end at
2017
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2018
+ * @param {Array<string>} beneficiaryValues beneficiary values
2019
+ * @param {string} tagKey tag key
2020
+ * @param {string} tagValue tag value
2021
+ * @param {*} [options] Override http request option.
2022
+ * @throws {RequiredError}
2023
+ */
2024
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2025
+ return __awaiter(this, void 0, void 0, function* () {
2026
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
2027
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2028
+ });
2029
+ },
1942
2030
  /**
1943
2031
  * List custom deal restrictions
1944
2032
  * @summary List custom deal restrictions
@@ -1971,6 +2059,21 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
1971
2059
  createCustomDealRestrictions(customDealRestriction, options) {
1972
2060
  return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
1973
2061
  },
2062
+ /**
2063
+ * Get custom deal min target value
2064
+ * @summary Get custom deal min target value
2065
+ * @param {string} startingAt start at
2066
+ * @param {string} endingAt end at
2067
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2068
+ * @param {Array<string>} beneficiaryValues beneficiary values
2069
+ * @param {string} tagKey tag key
2070
+ * @param {string} tagValue tag value
2071
+ * @param {*} [options] Override http request option.
2072
+ * @throws {RequiredError}
2073
+ */
2074
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2075
+ return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
2076
+ },
1974
2077
  /**
1975
2078
  * List custom deal restrictions
1976
2079
  * @summary List custom deal restrictions
@@ -2001,6 +2104,22 @@ class CustomDealsApi extends base_1.BaseAPI {
2001
2104
  createCustomDealRestrictions(customDealRestriction, options) {
2002
2105
  return (0, exports.CustomDealsApiFp)(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
2003
2106
  }
2107
+ /**
2108
+ * Get custom deal min target value
2109
+ * @summary Get custom deal min target value
2110
+ * @param {string} startingAt start at
2111
+ * @param {string} endingAt end at
2112
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2113
+ * @param {Array<string>} beneficiaryValues beneficiary values
2114
+ * @param {string} tagKey tag key
2115
+ * @param {string} tagValue tag value
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ * @memberof CustomDealsApi
2119
+ */
2120
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2121
+ return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
2122
+ }
2004
2123
  /**
2005
2124
  * List custom deal restrictions
2006
2125
  * @summary List custom deal restrictions
@@ -2788,6 +2907,37 @@ exports.NotificationApi = NotificationApi;
2788
2907
  */
2789
2908
  const OrderApiAxiosParamCreator = function (configuration) {
2790
2909
  return {
2910
+ /**
2911
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
2912
+ * @summary Create an order for a product
2913
+ * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
2914
+ * @param {*} [options] Override http request option.
2915
+ * @throws {RequiredError}
2916
+ */
2917
+ createAdminOrder: (adminOrderCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2918
+ const localVarPath = `/admins/orders`;
2919
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2920
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2921
+ let baseOptions;
2922
+ if (configuration) {
2923
+ baseOptions = configuration.baseOptions;
2924
+ }
2925
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2926
+ const localVarHeaderParameter = {};
2927
+ const localVarQueryParameter = {};
2928
+ // authentication systemJWT required
2929
+ // http bearer authentication required
2930
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2931
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2932
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2933
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2934
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2935
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminOrderCreationRequest, localVarRequestOptions, configuration);
2936
+ return {
2937
+ url: (0, common_1.toPathString)(localVarUrlObj),
2938
+ options: localVarRequestOptions,
2939
+ };
2940
+ }),
2791
2941
  /**
2792
2942
  * Create a product order. If successful the value of the product will be deducted from the used balance.
2793
2943
  * @summary Create an order for a product
@@ -2894,10 +3044,12 @@ const OrderApiAxiosParamCreator = function (configuration) {
2894
3044
  * @param {string} [createdBefore] Filter orders created before the specified date
2895
3045
  * @param {Array<string>} [userIDs] Filter by user ids
2896
3046
  * @param {Array<string>} [clientIDs] Filter by client ids
3047
+ * @param {OrderKind} [kind] Filter by kind
3048
+ * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
2897
3049
  * @param {*} [options] Override http request option.
2898
3050
  * @throws {RequiredError}
2899
3051
  */
2900
- listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options = {}) => __awaiter(this, void 0, void 0, function* () {
3052
+ listOrders: (paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options = {}) => __awaiter(this, void 0, void 0, function* () {
2901
3053
  const localVarPath = `/admins/orders`;
2902
3054
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2903
3055
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2939,6 +3091,12 @@ const OrderApiAxiosParamCreator = function (configuration) {
2939
3091
  if (clientIDs) {
2940
3092
  localVarQueryParameter['clientIDs'] = clientIDs;
2941
3093
  }
3094
+ if (kind !== undefined) {
3095
+ localVarQueryParameter['kind'] = kind;
3096
+ }
3097
+ if (source !== undefined) {
3098
+ localVarQueryParameter['source'] = source;
3099
+ }
2942
3100
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2943
3101
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2944
3102
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3017,6 +3175,19 @@ exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
3017
3175
  const OrderApiFp = function (configuration) {
3018
3176
  const localVarAxiosParamCreator = (0, exports.OrderApiAxiosParamCreator)(configuration);
3019
3177
  return {
3178
+ /**
3179
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
3180
+ * @summary Create an order for a product
3181
+ * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
3182
+ * @param {*} [options] Override http request option.
3183
+ * @throws {RequiredError}
3184
+ */
3185
+ createAdminOrder(adminOrderCreationRequest, options) {
3186
+ return __awaiter(this, void 0, void 0, function* () {
3187
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
3188
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3189
+ });
3190
+ },
3020
3191
  /**
3021
3192
  * Create a product order. If successful the value of the product will be deducted from the used balance.
3022
3193
  * @summary Create an order for a product
@@ -3067,12 +3238,14 @@ const OrderApiFp = function (configuration) {
3067
3238
  * @param {string} [createdBefore] Filter orders created before the specified date
3068
3239
  * @param {Array<string>} [userIDs] Filter by user ids
3069
3240
  * @param {Array<string>} [clientIDs] Filter by client ids
3241
+ * @param {OrderKind} [kind] Filter by kind
3242
+ * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
3070
3243
  * @param {*} [options] Override http request option.
3071
3244
  * @throws {RequiredError}
3072
3245
  */
3073
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3246
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3074
3247
  return __awaiter(this, void 0, void 0, function* () {
3075
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
3248
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
3076
3249
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3077
3250
  });
3078
3251
  },
@@ -3105,6 +3278,16 @@ exports.OrderApiFp = OrderApiFp;
3105
3278
  const OrderApiFactory = function (configuration, basePath, axios) {
3106
3279
  const localVarFp = (0, exports.OrderApiFp)(configuration);
3107
3280
  return {
3281
+ /**
3282
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
3283
+ * @summary Create an order for a product
3284
+ * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
3285
+ * @param {*} [options] Override http request option.
3286
+ * @throws {RequiredError}
3287
+ */
3288
+ createAdminOrder(adminOrderCreationRequest, options) {
3289
+ return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
3290
+ },
3108
3291
  /**
3109
3292
  * Create a product order. If successful the value of the product will be deducted from the used balance.
3110
3293
  * @summary Create an order for a product
@@ -3146,11 +3329,13 @@ const OrderApiFactory = function (configuration, basePath, axios) {
3146
3329
  * @param {string} [createdBefore] Filter orders created before the specified date
3147
3330
  * @param {Array<string>} [userIDs] Filter by user ids
3148
3331
  * @param {Array<string>} [clientIDs] Filter by client ids
3332
+ * @param {OrderKind} [kind] Filter by kind
3333
+ * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
3149
3334
  * @param {*} [options] Override http request option.
3150
3335
  * @throws {RequiredError}
3151
3336
  */
3152
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3153
- return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
3337
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3338
+ return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
3154
3339
  },
3155
3340
  /**
3156
3341
  * List existing orders
@@ -3178,6 +3363,17 @@ exports.OrderApiFactory = OrderApiFactory;
3178
3363
  * @extends {BaseAPI}
3179
3364
  */
3180
3365
  class OrderApi extends base_1.BaseAPI {
3366
+ /**
3367
+ * Create a product order. If successful the value of the product will be deducted from the used balance.
3368
+ * @summary Create an order for a product
3369
+ * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
3370
+ * @param {*} [options] Override http request option.
3371
+ * @throws {RequiredError}
3372
+ * @memberof OrderApi
3373
+ */
3374
+ createAdminOrder(adminOrderCreationRequest, options) {
3375
+ return (0, exports.OrderApiFp)(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
3376
+ }
3181
3377
  /**
3182
3378
  * Create a product order. If successful the value of the product will be deducted from the used balance.
3183
3379
  * @summary Create an order for a product
@@ -3222,12 +3418,14 @@ class OrderApi extends base_1.BaseAPI {
3222
3418
  * @param {string} [createdBefore] Filter orders created before the specified date
3223
3419
  * @param {Array<string>} [userIDs] Filter by user ids
3224
3420
  * @param {Array<string>} [clientIDs] Filter by client ids
3421
+ * @param {OrderKind} [kind] Filter by kind
3422
+ * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
3225
3423
  * @param {*} [options] Override http request option.
3226
3424
  * @throws {RequiredError}
3227
3425
  * @memberof OrderApi
3228
3426
  */
3229
- listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options) {
3230
- return (0, exports.OrderApiFp)(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
3427
+ listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options) {
3428
+ 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));
3231
3429
  }
3232
3430
  /**
3233
3431
  * List existing orders