flexinet-api 0.0.1892-prerelease0-dev → 0.0.1892

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.1892-prerelease0-dev
1
+ ## flexinet-api@0.0.1892
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.1892-prerelease0-dev --save
39
+ npm install flexinet-api@0.0.1892 --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
@@ -1594,8 +1585,7 @@ export interface OrderListResponse {
1594
1585
  export const OrderStatus = {
1595
1586
  Pending: 'pending',
1596
1587
  Completed: 'completed',
1597
- Cancelled: 'cancelled',
1598
- Unknown: 'unknown'
1588
+ Cancelled: 'cancelled'
1599
1589
  } as const;
1600
1590
 
1601
1591
  export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
@@ -2933,6 +2923,32 @@ export const ReportTypesResponseTypesEnum = {
2933
2923
 
2934
2924
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2935
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
+
2936
2952
  /**
2937
2953
  * @type Rule
2938
2954
  * @export
@@ -3721,6 +3737,12 @@ export interface Tenant {
3721
3737
  * @memberof Tenant
3722
3738
  */
3723
3739
  'locale': Locale;
3740
+ /**
3741
+ *
3742
+ * @type {string}
3743
+ * @memberof Tenant
3744
+ */
3745
+ 'announcement'?: string;
3724
3746
  }
3725
3747
 
3726
3748
 
@@ -3772,6 +3794,12 @@ export interface Transaction {
3772
3794
  * @memberof Transaction
3773
3795
  */
3774
3796
  'currency': TransactionCurrencyKind;
3797
+ /**
3798
+ *
3799
+ * @type {string}
3800
+ * @memberof Transaction
3801
+ */
3802
+ 'description'?: string;
3775
3803
  }
3776
3804
 
3777
3805
 
@@ -4303,13 +4331,19 @@ export interface UserOrder {
4303
4331
  * @type {string}
4304
4332
  * @memberof UserOrder
4305
4333
  */
4306
- 'clientID': string;
4334
+ 'clientID'?: string;
4307
4335
  /**
4308
4336
  *
4309
4337
  * @type {OrderStatus}
4310
4338
  * @memberof UserOrder
4311
4339
  */
4312
4340
  'status'?: OrderStatus;
4341
+ /**
4342
+ *
4343
+ * @type {OrderSourceReference}
4344
+ * @memberof UserOrder
4345
+ */
4346
+ 'sourceReference'?: OrderSourceReference;
4313
4347
  }
4314
4348
 
4315
4349
 
@@ -6596,13 +6630,28 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6596
6630
  /**
6597
6631
  * Get custom deal min target value
6598
6632
  * @summary Get custom deal min target value
6599
- * @param {MinTargetValue} minTargetValue
6600
- * @param {*} [options] Override http request option.
6601
- * @throws {RequiredError}
6602
- */
6603
- getCustomDealMinTargetValue: async (minTargetValue: MinTargetValue, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6604
- // verify required parameter 'minTargetValue' is not null or undefined
6605
- assertParamExists('getCustomDealMinTargetValue', 'minTargetValue', minTargetValue)
6633
+ * @param {string} startingAt start at
6634
+ * @param {string} endingAt end at
6635
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6636
+ * @param {Array<string>} beneficiaryValues beneficiary values
6637
+ * @param {string} tagKey tag key
6638
+ * @param {string} tagValue tag value
6639
+ * @param {*} [options] Override http request option.
6640
+ * @throws {RequiredError}
6641
+ */
6642
+ getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6643
+ // verify required parameter 'startingAt' is not null or undefined
6644
+ assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
6645
+ // verify required parameter 'endingAt' is not null or undefined
6646
+ assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
6647
+ // verify required parameter 'beneficiaryKind' is not null or undefined
6648
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
6649
+ // verify required parameter 'beneficiaryValues' is not null or undefined
6650
+ assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
6651
+ // verify required parameter 'tagKey' is not null or undefined
6652
+ assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
6653
+ // verify required parameter 'tagValue' is not null or undefined
6654
+ assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
6606
6655
  const localVarPath = `/admins/custom-deals/min-target-value`;
6607
6656
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6608
6657
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6611,7 +6660,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6611
6660
  baseOptions = configuration.baseOptions;
6612
6661
  }
6613
6662
 
6614
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6663
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6615
6664
  const localVarHeaderParameter = {} as any;
6616
6665
  const localVarQueryParameter = {} as any;
6617
6666
 
@@ -6619,14 +6668,39 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
6619
6668
  // http bearer authentication required
6620
6669
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
6621
6670
 
6671
+ if (startingAt !== undefined) {
6672
+ localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
6673
+ (startingAt as any).toISOString() :
6674
+ startingAt;
6675
+ }
6622
6676
 
6623
-
6624
- localVarHeaderParameter['Content-Type'] = 'application/json';
6677
+ if (endingAt !== undefined) {
6678
+ localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
6679
+ (endingAt as any).toISOString() :
6680
+ endingAt;
6681
+ }
6682
+
6683
+ if (beneficiaryKind !== undefined) {
6684
+ localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
6685
+ }
6686
+
6687
+ if (beneficiaryValues) {
6688
+ localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
6689
+ }
6690
+
6691
+ if (tagKey !== undefined) {
6692
+ localVarQueryParameter['tagKey'] = tagKey;
6693
+ }
6625
6694
 
6695
+ if (tagValue !== undefined) {
6696
+ localVarQueryParameter['tagValue'] = tagValue;
6697
+ }
6698
+
6699
+
6700
+
6626
6701
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6627
6702
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6628
6703
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6629
- localVarRequestOptions.data = serializeDataIfNeeded(minTargetValue, localVarRequestOptions, configuration)
6630
6704
 
6631
6705
  return {
6632
6706
  url: toPathString(localVarUrlObj),
@@ -6691,12 +6765,17 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
6691
6765
  /**
6692
6766
  * Get custom deal min target value
6693
6767
  * @summary Get custom deal min target value
6694
- * @param {MinTargetValue} minTargetValue
6768
+ * @param {string} startingAt start at
6769
+ * @param {string} endingAt end at
6770
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6771
+ * @param {Array<string>} beneficiaryValues beneficiary values
6772
+ * @param {string} tagKey tag key
6773
+ * @param {string} tagValue tag value
6695
6774
  * @param {*} [options] Override http request option.
6696
6775
  * @throws {RequiredError}
6697
6776
  */
6698
- async getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
6699
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(minTargetValue, options);
6777
+ async getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
6778
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
6700
6779
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6701
6780
  },
6702
6781
  /**
@@ -6732,12 +6811,17 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
6732
6811
  /**
6733
6812
  * Get custom deal min target value
6734
6813
  * @summary Get custom deal min target value
6735
- * @param {MinTargetValue} minTargetValue
6814
+ * @param {string} startingAt start at
6815
+ * @param {string} endingAt end at
6816
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6817
+ * @param {Array<string>} beneficiaryValues beneficiary values
6818
+ * @param {string} tagKey tag key
6819
+ * @param {string} tagValue tag value
6736
6820
  * @param {*} [options] Override http request option.
6737
6821
  * @throws {RequiredError}
6738
6822
  */
6739
- getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
6740
- return localVarFp.getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(axios, basePath));
6823
+ getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
6824
+ return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
6741
6825
  },
6742
6826
  /**
6743
6827
  * List custom deal restrictions
@@ -6773,13 +6857,18 @@ export class CustomDealsApi extends BaseAPI {
6773
6857
  /**
6774
6858
  * Get custom deal min target value
6775
6859
  * @summary Get custom deal min target value
6776
- * @param {MinTargetValue} minTargetValue
6860
+ * @param {string} startingAt start at
6861
+ * @param {string} endingAt end at
6862
+ * @param {BeneficiaryKind} beneficiaryKind beneficiary kind
6863
+ * @param {Array<string>} beneficiaryValues beneficiary values
6864
+ * @param {string} tagKey tag key
6865
+ * @param {string} tagValue tag value
6777
6866
  * @param {*} [options] Override http request option.
6778
6867
  * @throws {RequiredError}
6779
6868
  * @memberof CustomDealsApi
6780
6869
  */
6781
- public getCustomDealMinTargetValue(minTargetValue: MinTargetValue, options?: AxiosRequestConfig) {
6782
- return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(minTargetValue, options).then((request) => request(this.axios, this.basePath));
6870
+ public getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) {
6871
+ return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(this.axios, this.basePath));
6783
6872
  }
6784
6873
 
6785
6874
  /**
@@ -10073,10 +10162,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10073
10162
  * @param {PromotionSortByField} [sortBy] sort by field
10074
10163
  * @param {SortDirection} [sortDirection] sort direction
10075
10164
  * @param {boolean} [onlyClaimable] only claimable promotions
10165
+ * @param {Array<string>} [iDs] IDs to filter by
10076
10166
  * @param {*} [options] Override http request option.
10077
10167
  * @throws {RequiredError}
10078
10168
  */
10079
- listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10169
+ listPromotions: async (nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, iDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10080
10170
  const localVarPath = `/admins/promotions`;
10081
10171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10082
10172
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10157,6 +10247,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10157
10247
  localVarQueryParameter['onlyClaimable'] = onlyClaimable;
10158
10248
  }
10159
10249
 
10250
+ if (iDs) {
10251
+ localVarQueryParameter['IDs'] = iDs;
10252
+ }
10253
+
10160
10254
 
10161
10255
 
10162
10256
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10182,10 +10276,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10182
10276
  * @param {SortDirection} [sortDirection] sort direction
10183
10277
  * @param {boolean} [onlyClaimable] only claimable promotions
10184
10278
  * @param {PromotionType} [type] promotion type
10279
+ * @param {Array<string>} [iDs] IDs to filter by
10185
10280
  * @param {*} [options] Override http request option.
10186
10281
  * @throws {RequiredError}
10187
10282
  */
10188
- listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10283
+ listUserPromotions: async (nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
10189
10284
  const localVarPath = `/users/promotions`;
10190
10285
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10191
10286
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10254,6 +10349,10 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
10254
10349
  localVarQueryParameter['type'] = type;
10255
10350
  }
10256
10351
 
10352
+ if (iDs) {
10353
+ localVarQueryParameter['IDs'] = iDs;
10354
+ }
10355
+
10257
10356
 
10258
10357
 
10259
10358
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -10454,11 +10553,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
10454
10553
  * @param {PromotionSortByField} [sortBy] sort by field
10455
10554
  * @param {SortDirection} [sortDirection] sort direction
10456
10555
  * @param {boolean} [onlyClaimable] only claimable promotions
10556
+ * @param {Array<string>} [iDs] IDs to filter by
10457
10557
  * @param {*} [options] Override http request option.
10458
10558
  * @throws {RequiredError}
10459
10559
  */
10460
- async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
10461
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options);
10560
+ async listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, iDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromotionsResponse>> {
10561
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options);
10462
10562
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10463
10563
  },
10464
10564
  /**
@@ -10475,11 +10575,12 @@ export const PromotionApiFp = function(configuration?: Configuration) {
10475
10575
  * @param {SortDirection} [sortDirection] sort direction
10476
10576
  * @param {boolean} [onlyClaimable] only claimable promotions
10477
10577
  * @param {PromotionType} [type] promotion type
10578
+ * @param {Array<string>} [iDs] IDs to filter by
10478
10579
  * @param {*} [options] Override http request option.
10479
10580
  * @throws {RequiredError}
10480
10581
  */
10481
- async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>> {
10482
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options);
10582
+ async listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPromotionsResponse>> {
10583
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options);
10483
10584
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
10484
10585
  },
10485
10586
  /**
@@ -10629,11 +10730,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
10629
10730
  * @param {PromotionSortByField} [sortBy] sort by field
10630
10731
  * @param {SortDirection} [sortDirection] sort direction
10631
10732
  * @param {boolean} [onlyClaimable] only claimable promotions
10733
+ * @param {Array<string>} [iDs] IDs to filter by
10632
10734
  * @param {*} [options] Override http request option.
10633
10735
  * @throws {RequiredError}
10634
10736
  */
10635
- listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: any): AxiosPromise<PromotionsResponse> {
10636
- return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(axios, basePath));
10737
+ listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, iDs?: Array<string>, options?: any): AxiosPromise<PromotionsResponse> {
10738
+ return localVarFp.listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(axios, basePath));
10637
10739
  },
10638
10740
  /**
10639
10741
  * List users promotions
@@ -10649,11 +10751,12 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
10649
10751
  * @param {SortDirection} [sortDirection] sort direction
10650
10752
  * @param {boolean} [onlyClaimable] only claimable promotions
10651
10753
  * @param {PromotionType} [type] promotion type
10754
+ * @param {Array<string>} [iDs] IDs to filter by
10652
10755
  * @param {*} [options] Override http request option.
10653
10756
  * @throws {RequiredError}
10654
10757
  */
10655
- listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: any): AxiosPromise<UserPromotionsResponse> {
10656
- return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(axios, basePath));
10758
+ listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: any): AxiosPromise<UserPromotionsResponse> {
10759
+ return localVarFp.listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(axios, basePath));
10657
10760
  },
10658
10761
  /**
10659
10762
  * Update promotion by id
@@ -10821,12 +10924,13 @@ export class PromotionApi extends BaseAPI {
10821
10924
  * @param {PromotionSortByField} [sortBy] sort by field
10822
10925
  * @param {SortDirection} [sortDirection] sort direction
10823
10926
  * @param {boolean} [onlyClaimable] only claimable promotions
10927
+ * @param {Array<string>} [iDs] IDs to filter by
10824
10928
  * @param {*} [options] Override http request option.
10825
10929
  * @throws {RequiredError}
10826
10930
  * @memberof PromotionApi
10827
10931
  */
10828
- public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, options?: AxiosRequestConfig) {
10829
- return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, options).then((request) => request(this.axios, this.basePath));
10932
+ public listPromotions(nextToken?: string, tags?: string, segmentId?: string, ownerID?: string, type?: PromotionType, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, clientIDs?: Array<string>, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, iDs?: Array<string>, options?: AxiosRequestConfig) {
10933
+ return PromotionApiFp(this.configuration).listPromotions(nextToken, tags, segmentId, ownerID, type, startingAfter, endingBefore, startingBefore, endingAfter, clientIDs, search, sortBy, sortDirection, onlyClaimable, iDs, options).then((request) => request(this.axios, this.basePath));
10830
10934
  }
10831
10935
 
10832
10936
  /**
@@ -10843,12 +10947,13 @@ export class PromotionApi extends BaseAPI {
10843
10947
  * @param {SortDirection} [sortDirection] sort direction
10844
10948
  * @param {boolean} [onlyClaimable] only claimable promotions
10845
10949
  * @param {PromotionType} [type] promotion type
10950
+ * @param {Array<string>} [iDs] IDs to filter by
10846
10951
  * @param {*} [options] Override http request option.
10847
10952
  * @throws {RequiredError}
10848
10953
  * @memberof PromotionApi
10849
10954
  */
10850
- public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, options?: AxiosRequestConfig) {
10851
- return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, options).then((request) => request(this.axios, this.basePath));
10955
+ public listUserPromotions(nextToken?: string, tags?: string, startingAfter?: string, endingBefore?: string, startingBefore?: string, endingAfter?: string, search?: string, sortBy?: PromotionSortByField, sortDirection?: SortDirection, onlyClaimable?: boolean, type?: PromotionType, iDs?: Array<string>, options?: AxiosRequestConfig) {
10956
+ return PromotionApiFp(this.configuration).listUserPromotions(nextToken, tags, startingAfter, endingBefore, startingBefore, endingAfter, search, sortBy, sortDirection, onlyClaimable, type, iDs, options).then((request) => request(this.axios, this.basePath));
10852
10957
  }
10853
10958
 
10854
10959
  /**