flexinet-api 0.0.1860-prerelease0-dev → 0.0.1861

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.1860-prerelease0-dev
1
+ ## flexinet-api@0.0.1861
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.1860-prerelease0-dev --save
39
+ npm install flexinet-api@0.0.1861 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -297,6 +297,12 @@ export interface BalanceBulkUpdateRequest {
297
297
  * @memberof BalanceBulkUpdateRequest
298
298
  */
299
299
  'currency'?: TransactionCurrencyKind;
300
+ /**
301
+ *
302
+ * @type {string}
303
+ * @memberof BalanceBulkUpdateRequest
304
+ */
305
+ 'description'?: string;
300
306
  }
301
307
 
302
308
 
@@ -330,6 +336,12 @@ export interface BalanceUpdateRequest {
330
336
  * @memberof BalanceUpdateRequest
331
337
  */
332
338
  'currency'?: TransactionCurrencyKind;
339
+ /**
340
+ *
341
+ * @type {string}
342
+ * @memberof BalanceUpdateRequest
343
+ */
344
+ 'description'?: string;
333
345
  }
334
346
 
335
347
 
@@ -898,7 +910,7 @@ export interface CustomDealMinTargetValueResponse {
898
910
  * @type CustomDealRestriction
899
911
  * @export
900
912
  */
901
- export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction;
913
+ export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
902
914
 
903
915
  /**
904
916
  *
@@ -1139,45 +1151,6 @@ export interface MetricsCollection {
1139
1151
  */
1140
1152
  'total': Metrics;
1141
1153
  }
1142
- /**
1143
- *
1144
- * @export
1145
- * @interface MinTargetValue
1146
- */
1147
- export interface MinTargetValue {
1148
- /**
1149
- *
1150
- * @type {string}
1151
- * @memberof MinTargetValue
1152
- */
1153
- 'startingAt': string;
1154
- /**
1155
- *
1156
- * @type {string}
1157
- * @memberof MinTargetValue
1158
- */
1159
- 'endingAt': string;
1160
- /**
1161
- *
1162
- * @type {BeneficiaryKind}
1163
- * @memberof MinTargetValue
1164
- */
1165
- 'beneficiaryKind': BeneficiaryKind;
1166
- /**
1167
- *
1168
- * @type {Array<string>}
1169
- * @memberof MinTargetValue
1170
- */
1171
- 'beneficiaryValues': Array<string>;
1172
- /**
1173
- *
1174
- * @type {Array<Rule>}
1175
- * @memberof MinTargetValue
1176
- */
1177
- 'rules': Array<Rule>;
1178
- }
1179
-
1180
-
1181
1154
  /**
1182
1155
  *
1183
1156
  * @export
@@ -1212,10 +1185,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
1212
1185
  export interface MinTurnoverRestrictionValue {
1213
1186
  /**
1214
1187
  *
1215
- * @type {Array<Rule>}
1188
+ * @type {string}
1216
1189
  * @memberof MinTurnoverRestrictionValue
1217
1190
  */
1218
- 'rules': Array<Rule>;
1191
+ 'tagKey': string;
1192
+ /**
1193
+ *
1194
+ * @type {string}
1195
+ * @memberof MinTurnoverRestrictionValue
1196
+ */
1197
+ 'tagValue': string;
1219
1198
  /**
1220
1199
  *
1221
1200
  * @type {string}
@@ -1230,10 +1209,10 @@ export interface MinTurnoverRestrictionValue {
1230
1209
  'priority': CustomDealRestrictionPriority;
1231
1210
  /**
1232
1211
  *
1233
- * @type {string}
1212
+ * @type {number}
1234
1213
  * @memberof MinTurnoverRestrictionValue
1235
1214
  */
1236
- 'pointsPercent': string;
1215
+ 'points': number;
1237
1216
  }
1238
1217
 
1239
1218
 
@@ -1492,6 +1471,12 @@ export interface Order {
1492
1471
  * @memberof Order
1493
1472
  */
1494
1473
  'source'?: string;
1474
+ /**
1475
+ *
1476
+ * @type {OrderSourceReference}
1477
+ * @memberof Order
1478
+ */
1479
+ 'sourceReference'?: OrderSourceReference;
1495
1480
  /**
1496
1481
  *
1497
1482
  * @type {string}
@@ -1585,6 +1570,12 @@ export interface OrderListResponse {
1585
1570
  */
1586
1571
  'nextToken'?: string;
1587
1572
  }
1573
+ /**
1574
+ * @type OrderSourceReference
1575
+ * @export
1576
+ */
1577
+ export type OrderSourceReference = PeriodPromotion | User;
1578
+
1588
1579
  /**
1589
1580
  *
1590
1581
  * @export
@@ -2932,6 +2923,32 @@ export const ReportTypesResponseTypesEnum = {
2932
2923
 
2933
2924
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2934
2925
 
2926
+ /**
2927
+ *
2928
+ * @export
2929
+ * @interface RequiredRestriction
2930
+ */
2931
+ export interface RequiredRestriction {
2932
+ /**
2933
+ *
2934
+ * @type {string}
2935
+ * @memberof RequiredRestriction
2936
+ */
2937
+ 'kind': RequiredRestrictionKindEnum;
2938
+ /**
2939
+ *
2940
+ * @type {Array<string>}
2941
+ * @memberof RequiredRestriction
2942
+ */
2943
+ 'tagKeys': Array<string>;
2944
+ }
2945
+
2946
+ export const RequiredRestrictionKindEnum = {
2947
+ Required: 'required'
2948
+ } as const;
2949
+
2950
+ export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2951
+
2935
2952
  /**
2936
2953
  * @type Rule
2937
2954
  * @export
@@ -3771,6 +3788,12 @@ export interface Transaction {
3771
3788
  * @memberof Transaction
3772
3789
  */
3773
3790
  'currency': TransactionCurrencyKind;
3791
+ /**
3792
+ *
3793
+ * @type {string}
3794
+ * @memberof Transaction
3795
+ */
3796
+ 'description'?: string;
3774
3797
  }
3775
3798
 
3776
3799
 
@@ -4302,7 +4325,7 @@ export interface UserOrder {
4302
4325
  * @type {string}
4303
4326
  * @memberof UserOrder
4304
4327
  */
4305
- 'clientID': string;
4328
+ 'clientID'?: string;
4306
4329
  /**
4307
4330
  *
4308
4331
  * @type {OrderStatus}
@@ -6595,13 +6618,28 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6595
6618
  /**
6596
6619
  * Get custom deal min target value
6597
6620
  * @summary Get custom deal min target value
6598
- * @param {MinTargetValue} minTargetValue
6599
- * @param {*} [options] Override http request option.
6600
- * @throws {RequiredError}
6601
- */
6602
- getCustomDealMinTargetValue: async (minTargetValue: MinTargetValue, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6603
- // verify required parameter 'minTargetValue' is not null or undefined
6604
- assertParamExists('getCustomDealMinTargetValue', 'minTargetValue', minTargetValue)
6621
+ * @param {string} startingAt start at
6622
+ * @param {string} endingAt end at
6623
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6624
+ * @param {Array<string>} beneficiaryValues beneficiary values
6625
+ * @param {string} tagKey tag key
6626
+ * @param {string} tagValue tag value
6627
+ * @param {*} [options] Override http request option.
6628
+ * @throws {RequiredError}
6629
+ */
6630
+ getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6631
+ // verify required parameter 'startingAt' is not null or undefined
6632
+ assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
6633
+ // verify required parameter 'endingAt' is not null or undefined
6634
+ assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
6635
+ // verify required parameter 'beneficiaryKind' is not null or undefined
6636
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
6637
+ // verify required parameter 'beneficiaryValues' is not null or undefined
6638
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
6639
+ // verify required parameter 'tagKey' is not null or undefined
6640
+ assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
6641
+ // verify required parameter 'tagValue' is not null or undefined
6642
+ assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
6605
6643
  const localVarPath = `/admins/custom-deals/min-target-value`;
6606
6644
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6607
6645
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6610,7 +6648,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6610
6648
  baseOptions = configuration.baseOptions;
6611
6649
  }
6612
6650
 
6613
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6651
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6614
6652
  const localVarHeaderParameter = {} as any;
6615
6653
  const localVarQueryParameter = {} as any;
6616
6654
 
@@ -6618,14 +6656,39 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6618
6656
  // http bearer authentication required
6619
6657
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
6620
6658
 
6659
+ if (startingAt !== undefined) {
6660
+ localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
6661
+ (startingAt as any).toISOString() :
6662
+ startingAt;
6663
+ }
6621
6664
 
6622
-
6623
- localVarHeaderParameter['Content-Type'] = 'application/json';
6665
+ if (endingAt !== undefined) {
6666
+ localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
6667
+ (endingAt as any).toISOString() :
6668
+ endingAt;
6669
+ }
6624
6670
 
6671
+ if (beneficiaryKind !== undefined) {
6672
+ localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
6673
+ }
6674
+
6675
+ if (beneficiaryValues) {
6676
+ localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
6677
+ }
6678
+
6679
+ if (tagKey !== undefined) {
6680
+ localVarQueryParameter['tagKey'] = tagKey;
6681
+ }
6682
+
6683
+ if (tagValue !== undefined) {
6684
+ localVarQueryParameter['tagValue'] = tagValue;
6685
+ }
6686
+
6687
+
6688
+
6625
6689
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6626
6690
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6627
6691
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6628
- localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration)
6629
6692
 
6630
6693
  return {
6631
6694
  url: toPathString(localVarUrlObj),
@@ -6690,12 +6753,17 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
6690
6753
  /**
6691
6754
  * Get custom deal min target value
6692
6755
  * @summary Get custom deal min target value
6693
- * @param {MinTargetValue} minTargetValue
6756
+ * @param {string} startingAt start at
6757
+ * @param {string} endingAt end at
6758
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6759
+ * @param {Array<string>} beneficiaryValues beneficiary values
6760
+ * @param {string} tagKey tag key
6761
+ * @param {string} tagValue tag value
6694
6762
  * @param {*} [options] Override http request option.
6695
6763
  * @throws {RequiredError}
6696
6764
  */
6697
- async getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
6698
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(minTargetValue, options);
6765
+ async getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
6766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
6699
6767
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6700
6768
  },
6701
6769
  /**
@@ -6731,12 +6799,17 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
6731
6799
  /**
6732
6800
  * Get custom deal min target value
6733
6801
  * @summary Get custom deal min target value
6734
- * @param {MinTargetValue} minTargetValue
6802
+ * @param {string} startingAt start at
6803
+ * @param {string} endingAt end at
6804
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6805
+ * @param {Array<string>} beneficiaryValues beneficiary values
6806
+ * @param {string} tagKey tag key
6807
+ * @param {string} tagValue tag value
6735
6808
  * @param {*} [options] Override http request option.
6736
6809
  * @throws {RequiredError}
6737
6810
  */
6738
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
6739
- return localVarFp.getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(axios, basePath));
6811
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
6812
+ return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
6740
6813
  },
6741
6814
  /**
6742
6815
  * List custom deal restrictions
@@ -6772,13 +6845,18 @@ export class CustomDealsApi extends BaseAPI {
6772
6845
  /**
6773
6846
  * Get custom deal min target value
6774
6847
  * @summary Get custom deal min target value
6775
- * @param {MinTargetValue} minTargetValue
6848
+ * @param {string} startingAt start at
6849
+ * @param {string} endingAt end at
6850
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6851
+ * @param {Array<string>} beneficiaryValues beneficiary values
6852
+ * @param {string} tagKey tag key
6853
+ * @param {string} tagValue tag value
6776
6854
  * @param {*} [options] Override http request option.
6777
6855
  * @throws {RequiredError}
6778
6856
  * @memberof CustomDealsApi
6779
6857
  */
6780
- public getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig) {
6781
- return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(this.axios, this.basePath));
6858
+ public getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) {
6859
+ return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
6782
6860
  }
6783
6861
 
6784
6862
  /**
package/dist/api.d.ts CHANGED
@@ -268,6 +268,12 @@ export interface BalanceBulkUpdateRequest {
268
268
  * @memberof BalanceBulkUpdateRequest
269
269
  */
270
270
  'currency'?: TransactionCurrencyKind;
271
+ /**
272
+ *
273
+ * @type {string}
274
+ * @memberof BalanceBulkUpdateRequest
275
+ */
276
+ 'description'?: string;
271
277
  }
272
278
  /**
273
279
  *
@@ -299,6 +305,12 @@ export interface BalanceUpdateRequest {
299
305
  * @memberof BalanceUpdateRequest
300
306
  */
301
307
  'currency'?: TransactionCurrencyKind;
308
+ /**
309
+ *
310
+ * @type {string}
311
+ * @memberof BalanceUpdateRequest
312
+ */
313
+ 'description'?: string;
302
314
  }
303
315
  /**
304
316
  *
@@ -843,7 +855,9 @@ export interface CustomDealMinTargetValueResponse {
843
855
  */
844
856
  export type CustomDealRestriction = {
845
857
  kind: 'minTurnover';
846
- } & MinTurnoverRestriction;
858
+ } & MinTurnoverRestriction | {
859
+ kind: 'required';
860
+ } & RequiredRestriction;
847
861
  /**
848
862
  *
849
863
  * @export
@@ -1073,43 +1087,6 @@ export interface MetricsCollection {
1073
1087
  */
1074
1088
  'total': Metrics;
1075
1089
  }
1076
- /**
1077
- *
1078
- * @export
1079
- * @interface MinTargetValue
1080
- */
1081
- export interface MinTargetValue {
1082
- /**
1083
- *
1084
- * @type {string}
1085
- * @memberof MinTargetValue
1086
- */
1087
- 'startingAt': string;
1088
- /**
1089
- *
1090
- * @type {string}
1091
- * @memberof MinTargetValue
1092
- */
1093
- 'endingAt': string;
1094
- /**
1095
- *
1096
- * @type {BeneficiaryKind}
1097
- * @memberof MinTargetValue
1098
- */
1099
- 'beneficiaryKind': BeneficiaryKind;
1100
- /**
1101
- *
1102
- * @type {Array<string>}
1103
- * @memberof MinTargetValue
1104
- */
1105
- 'beneficiaryValues': Array<string>;
1106
- /**
1107
- *
1108
- * @type {Array<Rule>}
1109
- * @memberof MinTargetValue
1110
- */
1111
- 'rules': Array<Rule>;
1112
- }
1113
1090
  /**
1114
1091
  *
1115
1092
  * @export
@@ -1141,10 +1118,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
1141
1118
  export interface MinTurnoverRestrictionValue {
1142
1119
  /**
1143
1120
  *
1144
- * @type {Array<Rule>}
1121
+ * @type {string}
1145
1122
  * @memberof MinTurnoverRestrictionValue
1146
1123
  */
1147
- 'rules': Array<Rule>;
1124
+ 'tagKey': string;
1125
+ /**
1126
+ *
1127
+ * @type {string}
1128
+ * @memberof MinTurnoverRestrictionValue
1129
+ */
1130
+ 'tagValue': string;
1148
1131
  /**
1149
1132
  *
1150
1133
  * @type {string}
@@ -1159,10 +1142,10 @@ export interface MinTurnoverRestrictionValue {
1159
1142
  'priority': CustomDealRestrictionPriority;
1160
1143
  /**
1161
1144
  *
1162
- * @type {string}
1145
+ * @type {number}
1163
1146
  * @memberof MinTurnoverRestrictionValue
1164
1147
  */
1165
- 'pointsPercent': string;
1148
+ 'points': number;
1166
1149
  }
1167
1150
  /**
1168
1151
  *
@@ -1402,6 +1385,12 @@ export interface Order {
1402
1385
  * @memberof Order
1403
1386
  */
1404
1387
  'source'?: string;
1388
+ /**
1389
+ *
1390
+ * @type {OrderSourceReference}
1391
+ * @memberof Order
1392
+ */
1393
+ 'sourceReference'?: OrderSourceReference;
1405
1394
  /**
1406
1395
  *
1407
1396
  * @type {string}
@@ -1489,6 +1478,11 @@ export interface OrderListResponse {
1489
1478
  */
1490
1479
  'nextToken'?: string;
1491
1480
  }
1481
+ /**
1482
+ * @type OrderSourceReference
1483
+ * @export
1484
+ */
1485
+ export type OrderSourceReference = PeriodPromotion | User;
1492
1486
  /**
1493
1487
  *
1494
1488
  * @export
@@ -2769,6 +2763,29 @@ export declare const ReportTypesResponseTypesEnum: {
2769
2763
  readonly PromotionExpanded: "promotion_expanded";
2770
2764
  };
2771
2765
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2766
+ /**
2767
+ *
2768
+ * @export
2769
+ * @interface RequiredRestriction
2770
+ */
2771
+ export interface RequiredRestriction {
2772
+ /**
2773
+ *
2774
+ * @type {string}
2775
+ * @memberof RequiredRestriction
2776
+ */
2777
+ 'kind': RequiredRestrictionKindEnum;
2778
+ /**
2779
+ *
2780
+ * @type {Array<string>}
2781
+ * @memberof RequiredRestriction
2782
+ */
2783
+ 'tagKeys': Array<string>;
2784
+ }
2785
+ export declare const RequiredRestrictionKindEnum: {
2786
+ readonly Required: "required";
2787
+ };
2788
+ export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2772
2789
  /**
2773
2790
  * @type Rule
2774
2791
  * @export
@@ -3572,6 +3589,12 @@ export interface Transaction {
3572
3589
  * @memberof Transaction
3573
3590
  */
3574
3591
  'currency': TransactionCurrencyKind;
3592
+ /**
3593
+ *
3594
+ * @type {string}
3595
+ * @memberof Transaction
3596
+ */
3597
+ 'description'?: string;
3575
3598
  }
3576
3599
  /**
3577
3600
  *
@@ -4085,7 +4108,7 @@ export interface UserOrder {
4085
4108
  * @type {string}
4086
4109
  * @memberof UserOrder
4087
4110
  */
4088
- 'clientID': string;
4111
+ 'clientID'?: string;
4089
4112
  /**
4090
4113
  *
4091
4114
  * @type {OrderStatus}
@@ -5345,11 +5368,16 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
5345
5368
  /**
5346
5369
  * Get custom deal min target value
5347
5370
  * @summary Get custom deal min target value
5348
- * @param {MinTargetValue} minTargetValue
5371
+ * @param {string} startingAt start at
5372
+ * @param {string} endingAt end at
5373
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5374
+ * @param {Array<string>} beneficiaryValues beneficiary values
5375
+ * @param {string} tagKey tag key
5376
+ * @param {string} tagValue tag value
5349
5377
  * @param {*} [options] Override http request option.
5350
5378
  * @throws {RequiredError}
5351
5379
  */
5352
- getCustomDealMinTargetValue: (minTargetValue: MinTargetValue, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5380
+ getCustomDealMinTargetValue: (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5353
5381
  /**
5354
5382
  * List custom deal restrictions
5355
5383
  * @summary List custom deal restrictions
@@ -5374,11 +5402,16 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
5374
5402
  /**
5375
5403
  * Get custom deal min target value
5376
5404
  * @summary Get custom deal min target value
5377
- * @param {MinTargetValue} minTargetValue
5405
+ * @param {string} startingAt start at
5406
+ * @param {string} endingAt end at
5407
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5408
+ * @param {Array<string>} beneficiaryValues beneficiary values
5409
+ * @param {string} tagKey tag key
5410
+ * @param {string} tagValue tag value
5378
5411
  * @param {*} [options] Override http request option.
5379
5412
  * @throws {RequiredError}
5380
5413
  */
5381
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
5414
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
5382
5415
  /**
5383
5416
  * List custom deal restrictions
5384
5417
  * @summary List custom deal restrictions
@@ -5403,11 +5436,16 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
5403
5436
  /**
5404
5437
  * Get custom deal min target value
5405
5438
  * @summary Get custom deal min target value
5406
- * @param {MinTargetValue} minTargetValue
5439
+ * @param {string} startingAt start at
5440
+ * @param {string} endingAt end at
5441
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5442
+ * @param {Array<string>} beneficiaryValues beneficiary values
5443
+ * @param {string} tagKey tag key
5444
+ * @param {string} tagValue tag value
5407
5445
  * @param {*} [options] Override http request option.
5408
5446
  * @throws {RequiredError}
5409
5447
  */
5410
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
5448
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
5411
5449
  /**
5412
5450
  * List custom deal restrictions
5413
5451
  * @summary List custom deal restrictions
@@ -5435,12 +5473,17 @@ export declare class CustomDealsApi extends BaseAPI {
5435
5473
  /**
5436
5474
  * Get custom deal min target value
5437
5475
  * @summary Get custom deal min target value
5438
- * @param {MinTargetValue} minTargetValue
5476
+ * @param {string} startingAt start at
5477
+ * @param {string} endingAt end at
5478
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5479
+ * @param {Array<string>} beneficiaryValues beneficiary values
5480
+ * @param {string} tagKey tag key
5481
+ * @param {string} tagValue tag value
5439
5482
  * @param {*} [options] Override http request option.
5440
5483
  * @throws {RequiredError}
5441
5484
  * @memberof CustomDealsApi
5442
5485
  */
5443
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
5486
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
5444
5487
  /**
5445
5488
  * List custom deal restrictions
5446
5489
  * @summary List custom deal restrictions
package/dist/api.js CHANGED
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventPriority = exports.TransactionEventKind = exports.TransactionCurrencyKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.MinTurnoverRestrictionKindEnum = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
26
- exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = void 0;
27
- exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = void 0;
25
+ exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventPriority = exports.TransactionEventKind = exports.TransactionCurrencyKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.RequiredRestrictionKindEnum = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.MinTurnoverRestrictionKindEnum = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
26
+ exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = void 0;
27
+ exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = exports.ReportApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = void 0;
28
28
  const axios_1 = require("axios");
29
29
  // Some imports not used depending on template conditions
30
30
  // @ts-ignore
@@ -297,6 +297,9 @@ exports.ReportTypesResponseTypesEnum = {
297
297
  Promotion: 'promotion',
298
298
  PromotionExpanded: 'promotion_expanded'
299
299
  };
300
+ exports.RequiredRestrictionKindEnum = {
301
+ Required: 'required'
302
+ };
300
303
  /**
301
304
  *
302
305
  * @export
@@ -2248,13 +2251,28 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
2248
2251
  /**
2249
2252
  * Get custom deal min target value
2250
2253
  * @summary Get custom deal min target value
2251
- * @param {MinTargetValue} minTargetValue
2252
- * @param {*} [options] Override http request option.
2253
- * @throws {RequiredError}
2254
- */
2255
- getCustomDealMinTargetValue: (minTargetValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
2256
- // verify required parameter 'minTargetValue' is not null or undefined
2257
- (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'minTargetValue', minTargetValue);
2254
+ * @param {string} startingAt start at
2255
+ * @param {string} endingAt end at
2256
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2257
+ * @param {Array<string>} beneficiaryValues beneficiary values
2258
+ * @param {string} tagKey tag key
2259
+ * @param {string} tagValue tag value
2260
+ * @param {*} [options] Override http request option.
2261
+ * @throws {RequiredError}
2262
+ */
2263
+ getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
2264
+ // verify required parameter 'startingAt' is not null or undefined
2265
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'startingAt', startingAt);
2266
+ // verify required parameter 'endingAt' is not null or undefined
2267
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'endingAt', endingAt);
2268
+ // verify required parameter 'beneficiaryKind' is not null or undefined
2269
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
2270
+ // verify required parameter 'beneficiaryValues' is not null or undefined
2271
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
2272
+ // verify required parameter 'tagKey' is not null or undefined
2273
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagKey', tagKey);
2274
+ // verify required parameter 'tagValue' is not null or undefined
2275
+ (0, common_1.assertParamExists)('getCustomDealMinTargetValue', 'tagValue', tagValue);
2258
2276
  const localVarPath = `/admins/custom-deals/min-target-value`;
2259
2277
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2260
2278
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2262,17 +2280,37 @@ const CustomDealsApiAxiosParamCreator = function (configuration) {
2262
2280
  if (configuration) {
2263
2281
  baseOptions = configuration.baseOptions;
2264
2282
  }
2265
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2283
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2266
2284
  const localVarHeaderParameter = {};
2267
2285
  const localVarQueryParameter = {};
2268
2286
  // authentication systemJWT required
2269
2287
  // http bearer authentication required
2270
2288
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2271
- localVarHeaderParameter['Content-Type'] = 'application/json';
2289
+ if (startingAt !== undefined) {
2290
+ localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
2291
+ startingAt.toISOString() :
2292
+ startingAt;
2293
+ }
2294
+ if (endingAt !== undefined) {
2295
+ localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
2296
+ endingAt.toISOString() :
2297
+ endingAt;
2298
+ }
2299
+ if (beneficiaryKind !== undefined) {
2300
+ localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
2301
+ }
2302
+ if (beneficiaryValues) {
2303
+ localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
2304
+ }
2305
+ if (tagKey !== undefined) {
2306
+ localVarQueryParameter['tagKey'] = tagKey;
2307
+ }
2308
+ if (tagValue !== undefined) {
2309
+ localVarQueryParameter['tagValue'] = tagValue;
2310
+ }
2272
2311
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2273
2312
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2274
2313
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2275
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(minTargetValue, localVarRequestOptions, configuration);
2276
2314
  return {
2277
2315
  url: (0, common_1.toPathString)(localVarUrlObj),
2278
2316
  options: localVarRequestOptions,
@@ -2332,13 +2370,18 @@ const CustomDealsApiFp = function (configuration) {
2332
2370
  /**
2333
2371
  * Get custom deal min target value
2334
2372
  * @summary Get custom deal min target value
2335
- * @param {MinTargetValue} minTargetValue
2373
+ * @param {string} startingAt start at
2374
+ * @param {string} endingAt end at
2375
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2376
+ * @param {Array<string>} beneficiaryValues beneficiary values
2377
+ * @param {string} tagKey tag key
2378
+ * @param {string} tagValue tag value
2336
2379
  * @param {*} [options] Override http request option.
2337
2380
  * @throws {RequiredError}
2338
2381
  */
2339
- getCustomDealMinTargetValue(minTargetValue, options) {
2382
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2340
2383
  return __awaiter(this, void 0, void 0, function* () {
2341
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(minTargetValue, options);
2384
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
2342
2385
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
2343
2386
  });
2344
2387
  },
@@ -2377,12 +2420,17 @@ const CustomDealsApiFactory = function (configuration, basePath, axios) {
2377
2420
  /**
2378
2421
  * Get custom deal min target value
2379
2422
  * @summary Get custom deal min target value
2380
- * @param {MinTargetValue} minTargetValue
2423
+ * @param {string} startingAt start at
2424
+ * @param {string} endingAt end at
2425
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2426
+ * @param {Array<string>} beneficiaryValues beneficiary values
2427
+ * @param {string} tagKey tag key
2428
+ * @param {string} tagValue tag value
2381
2429
  * @param {*} [options] Override http request option.
2382
2430
  * @throws {RequiredError}
2383
2431
  */
2384
- getCustomDealMinTargetValue(minTargetValue, options) {
2385
- return localVarFp.getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(axios, basePath));
2432
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2433
+ return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
2386
2434
  },
2387
2435
  /**
2388
2436
  * List custom deal restrictions
@@ -2417,13 +2465,18 @@ class CustomDealsApi extends base_1.BaseAPI {
2417
2465
  /**
2418
2466
  * Get custom deal min target value
2419
2467
  * @summary Get custom deal min target value
2420
- * @param {MinTargetValue} minTargetValue
2468
+ * @param {string} startingAt start at
2469
+ * @param {string} endingAt end at
2470
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2471
+ * @param {Array<string>} beneficiaryValues beneficiary values
2472
+ * @param {string} tagKey tag key
2473
+ * @param {string} tagValue tag value
2421
2474
  * @param {*} [options] Override http request option.
2422
2475
  * @throws {RequiredError}
2423
2476
  * @memberof CustomDealsApi
2424
2477
  */
2425
- getCustomDealMinTargetValue(minTargetValue, options) {
2426
- return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(this.axios, this.basePath));
2478
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2479
+ return (0, exports.CustomDealsApiFp)(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
2427
2480
  }
2428
2481
  /**
2429
2482
  * List custom deal restrictions
package/dist/esm/api.d.ts CHANGED
@@ -268,6 +268,12 @@ export interface BalanceBulkUpdateRequest {
268
268
  * @memberof BalanceBulkUpdateRequest
269
269
  */
270
270
  'currency'?: TransactionCurrencyKind;
271
+ /**
272
+ *
273
+ * @type {string}
274
+ * @memberof BalanceBulkUpdateRequest
275
+ */
276
+ 'description'?: string;
271
277
  }
272
278
  /**
273
279
  *
@@ -299,6 +305,12 @@ export interface BalanceUpdateRequest {
299
305
  * @memberof BalanceUpdateRequest
300
306
  */
301
307
  'currency'?: TransactionCurrencyKind;
308
+ /**
309
+ *
310
+ * @type {string}
311
+ * @memberof BalanceUpdateRequest
312
+ */
313
+ 'description'?: string;
302
314
  }
303
315
  /**
304
316
  *
@@ -843,7 +855,9 @@ export interface CustomDealMinTargetValueResponse {
843
855
  */
844
856
  export type CustomDealRestriction = {
845
857
  kind: 'minTurnover';
846
- } & MinTurnoverRestriction;
858
+ } & MinTurnoverRestriction | {
859
+ kind: 'required';
860
+ } & RequiredRestriction;
847
861
  /**
848
862
  *
849
863
  * @export
@@ -1073,43 +1087,6 @@ export interface MetricsCollection {
1073
1087
  */
1074
1088
  'total': Metrics;
1075
1089
  }
1076
- /**
1077
- *
1078
- * @export
1079
- * @interface MinTargetValue
1080
- */
1081
- export interface MinTargetValue {
1082
- /**
1083
- *
1084
- * @type {string}
1085
- * @memberof MinTargetValue
1086
- */
1087
- 'startingAt': string;
1088
- /**
1089
- *
1090
- * @type {string}
1091
- * @memberof MinTargetValue
1092
- */
1093
- 'endingAt': string;
1094
- /**
1095
- *
1096
- * @type {BeneficiaryKind}
1097
- * @memberof MinTargetValue
1098
- */
1099
- 'beneficiaryKind': BeneficiaryKind;
1100
- /**
1101
- *
1102
- * @type {Array<string>}
1103
- * @memberof MinTargetValue
1104
- */
1105
- 'beneficiaryValues': Array<string>;
1106
- /**
1107
- *
1108
- * @type {Array<Rule>}
1109
- * @memberof MinTargetValue
1110
- */
1111
- 'rules': Array<Rule>;
1112
- }
1113
1090
  /**
1114
1091
  *
1115
1092
  * @export
@@ -1141,10 +1118,16 @@ export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEn
1141
1118
  export interface MinTurnoverRestrictionValue {
1142
1119
  /**
1143
1120
  *
1144
- * @type {Array<Rule>}
1121
+ * @type {string}
1145
1122
  * @memberof MinTurnoverRestrictionValue
1146
1123
  */
1147
- 'rules': Array<Rule>;
1124
+ 'tagKey': string;
1125
+ /**
1126
+ *
1127
+ * @type {string}
1128
+ * @memberof MinTurnoverRestrictionValue
1129
+ */
1130
+ 'tagValue': string;
1148
1131
  /**
1149
1132
  *
1150
1133
  * @type {string}
@@ -1159,10 +1142,10 @@ export interface MinTurnoverRestrictionValue {
1159
1142
  'priority': CustomDealRestrictionPriority;
1160
1143
  /**
1161
1144
  *
1162
- * @type {string}
1145
+ * @type {number}
1163
1146
  * @memberof MinTurnoverRestrictionValue
1164
1147
  */
1165
- 'pointsPercent': string;
1148
+ 'points': number;
1166
1149
  }
1167
1150
  /**
1168
1151
  *
@@ -1402,6 +1385,12 @@ export interface Order {
1402
1385
  * @memberof Order
1403
1386
  */
1404
1387
  'source'?: string;
1388
+ /**
1389
+ *
1390
+ * @type {OrderSourceReference}
1391
+ * @memberof Order
1392
+ */
1393
+ 'sourceReference'?: OrderSourceReference;
1405
1394
  /**
1406
1395
  *
1407
1396
  * @type {string}
@@ -1489,6 +1478,11 @@ export interface OrderListResponse {
1489
1478
  */
1490
1479
  'nextToken'?: string;
1491
1480
  }
1481
+ /**
1482
+ * @type OrderSourceReference
1483
+ * @export
1484
+ */
1485
+ export type OrderSourceReference = PeriodPromotion | User;
1492
1486
  /**
1493
1487
  *
1494
1488
  * @export
@@ -2769,6 +2763,29 @@ export declare const ReportTypesResponseTypesEnum: {
2769
2763
  readonly PromotionExpanded: "promotion_expanded";
2770
2764
  };
2771
2765
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2766
+ /**
2767
+ *
2768
+ * @export
2769
+ * @interface RequiredRestriction
2770
+ */
2771
+ export interface RequiredRestriction {
2772
+ /**
2773
+ *
2774
+ * @type {string}
2775
+ * @memberof RequiredRestriction
2776
+ */
2777
+ 'kind': RequiredRestrictionKindEnum;
2778
+ /**
2779
+ *
2780
+ * @type {Array<string>}
2781
+ * @memberof RequiredRestriction
2782
+ */
2783
+ 'tagKeys': Array<string>;
2784
+ }
2785
+ export declare const RequiredRestrictionKindEnum: {
2786
+ readonly Required: "required";
2787
+ };
2788
+ export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2772
2789
  /**
2773
2790
  * @type Rule
2774
2791
  * @export
@@ -3572,6 +3589,12 @@ export interface Transaction {
3572
3589
  * @memberof Transaction
3573
3590
  */
3574
3591
  'currency': TransactionCurrencyKind;
3592
+ /**
3593
+ *
3594
+ * @type {string}
3595
+ * @memberof Transaction
3596
+ */
3597
+ 'description'?: string;
3575
3598
  }
3576
3599
  /**
3577
3600
  *
@@ -4085,7 +4108,7 @@ export interface UserOrder {
4085
4108
  * @type {string}
4086
4109
  * @memberof UserOrder
4087
4110
  */
4088
- 'clientID': string;
4111
+ 'clientID'?: string;
4089
4112
  /**
4090
4113
  *
4091
4114
  * @type {OrderStatus}
@@ -5345,11 +5368,16 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
5345
5368
  /**
5346
5369
  * Get custom deal min target value
5347
5370
  * @summary Get custom deal min target value
5348
- * @param {MinTargetValue} minTargetValue
5371
+ * @param {string} startingAt start at
5372
+ * @param {string} endingAt end at
5373
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5374
+ * @param {Array<string>} beneficiaryValues beneficiary values
5375
+ * @param {string} tagKey tag key
5376
+ * @param {string} tagValue tag value
5349
5377
  * @param {*} [options] Override http request option.
5350
5378
  * @throws {RequiredError}
5351
5379
  */
5352
- getCustomDealMinTargetValue: (minTargetValue: MinTargetValue, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5380
+ getCustomDealMinTargetValue: (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5353
5381
  /**
5354
5382
  * List custom deal restrictions
5355
5383
  * @summary List custom deal restrictions
@@ -5374,11 +5402,16 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
5374
5402
  /**
5375
5403
  * Get custom deal min target value
5376
5404
  * @summary Get custom deal min target value
5377
- * @param {MinTargetValue} minTargetValue
5405
+ * @param {string} startingAt start at
5406
+ * @param {string} endingAt end at
5407
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5408
+ * @param {Array<string>} beneficiaryValues beneficiary values
5409
+ * @param {string} tagKey tag key
5410
+ * @param {string} tagValue tag value
5378
5411
  * @param {*} [options] Override http request option.
5379
5412
  * @throws {RequiredError}
5380
5413
  */
5381
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
5414
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>>;
5382
5415
  /**
5383
5416
  * List custom deal restrictions
5384
5417
  * @summary List custom deal restrictions
@@ -5403,11 +5436,16 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
5403
5436
  /**
5404
5437
  * Get custom deal min target value
5405
5438
  * @summary Get custom deal min target value
5406
- * @param {MinTargetValue} minTargetValue
5439
+ * @param {string} startingAt start at
5440
+ * @param {string} endingAt end at
5441
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5442
+ * @param {Array<string>} beneficiaryValues beneficiary values
5443
+ * @param {string} tagKey tag key
5444
+ * @param {string} tagValue tag value
5407
5445
  * @param {*} [options] Override http request option.
5408
5446
  * @throws {RequiredError}
5409
5447
  */
5410
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
5448
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse>;
5411
5449
  /**
5412
5450
  * List custom deal restrictions
5413
5451
  * @summary List custom deal restrictions
@@ -5435,12 +5473,17 @@ export declare class CustomDealsApi extends BaseAPI {
5435
5473
  /**
5436
5474
  * Get custom deal min target value
5437
5475
  * @summary Get custom deal min target value
5438
- * @param {MinTargetValue} minTargetValue
5476
+ * @param {string} startingAt start at
5477
+ * @param {string} endingAt end at
5478
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
5479
+ * @param {Array<string>} beneficiaryValues beneficiary values
5480
+ * @param {string} tagKey tag key
5481
+ * @param {string} tagValue tag value
5439
5482
  * @param {*} [options] Override http request option.
5440
5483
  * @throws {RequiredError}
5441
5484
  * @memberof CustomDealsApi
5442
5485
  */
5443
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
5486
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CustomDealMinTargetValueResponse, any>>;
5444
5487
  /**
5445
5488
  * List custom deal restrictions
5446
5489
  * @summary List custom deal restrictions
package/dist/esm/api.js CHANGED
@@ -292,6 +292,9 @@ export const ReportTypesResponseTypesEnum = {
292
292
  Promotion: 'promotion',
293
293
  PromotionExpanded: 'promotion_expanded'
294
294
  };
295
+ export const RequiredRestrictionKindEnum = {
296
+ Required: 'required'
297
+ };
295
298
  /**
296
299
  *
297
300
  * @export
@@ -2219,13 +2222,28 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
2219
2222
  /**
2220
2223
  * Get custom deal min target value
2221
2224
  * @summary Get custom deal min target value
2222
- * @param {MinTargetValue} minTargetValue
2223
- * @param {*} [options] Override http request option.
2224
- * @throws {RequiredError}
2225
- */
2226
- getCustomDealMinTargetValue: (minTargetValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
2227
- // verify required parameter 'minTargetValue' is not null or undefined
2228
- assertParamExists('getCustomDealMinTargetValue', 'minTargetValue', minTargetValue);
2225
+ * @param {string} startingAt start at
2226
+ * @param {string} endingAt end at
2227
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2228
+ * @param {Array<string>} beneficiaryValues beneficiary values
2229
+ * @param {string} tagKey tag key
2230
+ * @param {string} tagValue tag value
2231
+ * @param {*} [options] Override http request option.
2232
+ * @throws {RequiredError}
2233
+ */
2234
+ getCustomDealMinTargetValue: (startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options = {}) => __awaiter(this, void 0, void 0, function* () {
2235
+ // verify required parameter 'startingAt' is not null or undefined
2236
+ assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt);
2237
+ // verify required parameter 'endingAt' is not null or undefined
2238
+ assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt);
2239
+ // verify required parameter 'beneficiaryKind' is not null or undefined
2240
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind);
2241
+ // verify required parameter 'beneficiaryValues' is not null or undefined
2242
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues);
2243
+ // verify required parameter 'tagKey' is not null or undefined
2244
+ assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey);
2245
+ // verify required parameter 'tagValue' is not null or undefined
2246
+ assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue);
2229
2247
  const localVarPath = `/admins/custom-deals/min-target-value`;
2230
2248
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2231
2249
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2233,17 +2251,37 @@ export const CustomDealsApiAxiosParamCreator = function (configuration) {
2233
2251
  if (configuration) {
2234
2252
  baseOptions = configuration.baseOptions;
2235
2253
  }
2236
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2254
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2237
2255
  const localVarHeaderParameter = {};
2238
2256
  const localVarQueryParameter = {};
2239
2257
  // authentication systemJWT required
2240
2258
  // http bearer authentication required
2241
2259
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2242
- localVarHeaderParameter['Content-Type'] = 'application/json';
2260
+ if (startingAt !== undefined) {
2261
+ localVarQueryParameter['startingAt'] = (startingAt instanceof Date) ?
2262
+ startingAt.toISOString() :
2263
+ startingAt;
2264
+ }
2265
+ if (endingAt !== undefined) {
2266
+ localVarQueryParameter['endingAt'] = (endingAt instanceof Date) ?
2267
+ endingAt.toISOString() :
2268
+ endingAt;
2269
+ }
2270
+ if (beneficiaryKind !== undefined) {
2271
+ localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
2272
+ }
2273
+ if (beneficiaryValues) {
2274
+ localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
2275
+ }
2276
+ if (tagKey !== undefined) {
2277
+ localVarQueryParameter['tagKey'] = tagKey;
2278
+ }
2279
+ if (tagValue !== undefined) {
2280
+ localVarQueryParameter['tagValue'] = tagValue;
2281
+ }
2243
2282
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2244
2283
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2245
2284
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2246
- localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration);
2247
2285
  return {
2248
2286
  url: toPathString(localVarUrlObj),
2249
2287
  options: localVarRequestOptions,
@@ -2302,13 +2340,18 @@ export const CustomDealsApiFp = function (configuration) {
2302
2340
  /**
2303
2341
  * Get custom deal min target value
2304
2342
  * @summary Get custom deal min target value
2305
- * @param {MinTargetValue} minTargetValue
2343
+ * @param {string} startingAt start at
2344
+ * @param {string} endingAt end at
2345
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2346
+ * @param {Array<string>} beneficiaryValues beneficiary values
2347
+ * @param {string} tagKey tag key
2348
+ * @param {string} tagValue tag value
2306
2349
  * @param {*} [options] Override http request option.
2307
2350
  * @throws {RequiredError}
2308
2351
  */
2309
- getCustomDealMinTargetValue(minTargetValue, options) {
2352
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2310
2353
  return __awaiter(this, void 0, void 0, function* () {
2311
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(minTargetValue, options);
2354
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
2312
2355
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2313
2356
  });
2314
2357
  },
@@ -2346,12 +2389,17 @@ export const CustomDealsApiFactory = function (configuration, basePath, axios) {
2346
2389
  /**
2347
2390
  * Get custom deal min target value
2348
2391
  * @summary Get custom deal min target value
2349
- * @param {MinTargetValue} minTargetValue
2392
+ * @param {string} startingAt start at
2393
+ * @param {string} endingAt end at
2394
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2395
+ * @param {Array<string>} beneficiaryValues beneficiary values
2396
+ * @param {string} tagKey tag key
2397
+ * @param {string} tagValue tag value
2350
2398
  * @param {*} [options] Override http request option.
2351
2399
  * @throws {RequiredError}
2352
2400
  */
2353
- getCustomDealMinTargetValue(minTargetValue, options) {
2354
- return localVarFp.getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(axios, basePath));
2401
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2402
+ return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
2355
2403
  },
2356
2404
  /**
2357
2405
  * List custom deal restrictions
@@ -2385,13 +2433,18 @@ export class CustomDealsApi extends BaseAPI {
2385
2433
  /**
2386
2434
  * Get custom deal min target value
2387
2435
  * @summary Get custom deal min target value
2388
- * @param {MinTargetValue} minTargetValue
2436
+ * @param {string} startingAt start at
2437
+ * @param {string} endingAt end at
2438
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
2439
+ * @param {Array<string>} beneficiaryValues beneficiary values
2440
+ * @param {string} tagKey tag key
2441
+ * @param {string} tagValue tag value
2389
2442
  * @param {*} [options] Override http request option.
2390
2443
  * @throws {RequiredError}
2391
2444
  * @memberof CustomDealsApi
2392
2445
  */
2393
- getCustomDealMinTargetValue(minTargetValue, options) {
2394
- return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(this.axios, this.basePath));
2446
+ getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options) {
2447
+ return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
2395
2448
  }
2396
2449
  /**
2397
2450
  * List custom deal restrictions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.1860-prerelease0-dev",
3
+ "version": "0.0.1861",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {