flexinet-api 0.0.1264-prerelease0 → 0.0.1264

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/api.ts CHANGED
@@ -23,25 +23,6 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
25
25
 
26
- /**
27
- *
28
- * @export
29
- * @interface AdminOrderCreationRequest
30
- */
31
- export interface AdminOrderCreationRequest {
32
- /**
33
- *
34
- * @type {Array<OrderItemCreationRequest>}
35
- * @memberof AdminOrderCreationRequest
36
- */
37
- 'items': Array<OrderItemCreationRequest>;
38
- /**
39
- *
40
- * @type {Beneficiary}
41
- * @memberof AdminOrderCreationRequest
42
- */
43
- 'beneficiary'?: Beneficiary;
44
- }
45
26
  /**
46
27
  *
47
28
  * @export
@@ -225,15 +206,7 @@ export interface Balance {
225
206
  * @memberof Balance
226
207
  */
227
208
  'beneficiary': Beneficiary;
228
- /**
229
- *
230
- * @type {TransactionCurrencyKind}
231
- * @memberof Balance
232
- */
233
- 'currency': TransactionCurrencyKind;
234
209
  }
235
-
236
-
237
210
  /**
238
211
  *
239
212
  * @export
@@ -257,13 +230,7 @@ export interface BalanceUpdateRequest {
257
230
  * @type {TransactionKind}
258
231
  * @memberof BalanceUpdateRequest
259
232
  */
260
- 'transactionKind': TransactionKind;
261
- /**
262
- *
263
- * @type {TransactionCurrencyKind}
264
- * @memberof BalanceUpdateRequest
265
- */
266
- 'currency'?: TransactionCurrencyKind;
233
+ 'transactionKind'?: TransactionKind;
267
234
  }
268
235
 
269
236
 
@@ -291,15 +258,7 @@ export interface BalanceWithBeneficiaryRef {
291
258
  * @memberof BalanceWithBeneficiaryRef
292
259
  */
293
260
  'beneficiaryRef': BeneficiaryWithRef;
294
- /**
295
- *
296
- * @type {TransactionCurrencyKind}
297
- * @memberof BalanceWithBeneficiaryRef
298
- */
299
- 'currency': TransactionCurrencyKind;
300
261
  }
301
-
302
-
303
262
  /**
304
263
  *
305
264
  * @export
@@ -440,7 +399,7 @@ export interface CallbackBeneficiaryDetails {
440
399
  * @type {string}
441
400
  * @memberof CallbackBeneficiaryDetails
442
401
  */
443
- 'clientReference': string;
402
+ 'clientReference'?: string;
444
403
  /**
445
404
  *
446
405
  * @type {BeneficiaryKind}
@@ -452,7 +411,7 @@ export interface CallbackBeneficiaryDetails {
452
411
  * @type {string}
453
412
  * @memberof CallbackBeneficiaryDetails
454
413
  */
455
- 'userReference'?: string;
414
+ 'userReference': string;
456
415
  }
457
416
 
458
417
 
@@ -644,6 +603,12 @@ export interface Client {
644
603
  * @memberof Client
645
604
  */
646
605
  'isSuspended'?: boolean;
606
+ /**
607
+ *
608
+ * @type {boolean}
609
+ * @memberof Client
610
+ */
611
+ 'isExcluded'?: boolean;
647
612
  }
648
613
  /**
649
614
  *
@@ -707,6 +672,25 @@ export interface ClientListResponse {
707
672
  */
708
673
  'hasMore': boolean;
709
674
  }
675
+ /**
676
+ *
677
+ * @export
678
+ * @interface ClientUpdateRequest
679
+ */
680
+ export interface ClientUpdateRequest {
681
+ /**
682
+ *
683
+ * @type {string}
684
+ * @memberof ClientUpdateRequest
685
+ */
686
+ 'referenceId': string;
687
+ /**
688
+ *
689
+ * @type {boolean}
690
+ * @memberof ClientUpdateRequest
691
+ */
692
+ 'isExcluded': boolean;
693
+ }
710
694
  /**
711
695
  *
712
696
  * @export
@@ -720,6 +704,19 @@ export interface ClientsBulkCreationRequest {
720
704
  */
721
705
  'clients': Array<ClientCreationRequest>;
722
706
  }
707
+ /**
708
+ *
709
+ * @export
710
+ * @interface ClientsBulkUpdateRequest
711
+ */
712
+ export interface ClientsBulkUpdateRequest {
713
+ /**
714
+ *
715
+ * @type {Array<ClientUpdateRequest>}
716
+ * @memberof ClientsBulkUpdateRequest
717
+ */
718
+ 'clients': Array<ClientUpdateRequest>;
719
+ }
723
720
  /**
724
721
  *
725
722
  * @export
@@ -736,10 +733,55 @@ export type Condition = typeof Condition[keyof typeof Condition];
736
733
 
737
734
 
738
735
  /**
739
- * @type CustomDealRestriction
736
+ *
740
737
  * @export
738
+ * @interface CustomDealRestriction
741
739
  */
742
- export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
740
+ export interface CustomDealRestriction {
741
+ /**
742
+ *
743
+ * @type {string}
744
+ * @memberof CustomDealRestriction
745
+ */
746
+ 'tagKey': string;
747
+ /**
748
+ *
749
+ * @type {string}
750
+ * @memberof CustomDealRestriction
751
+ */
752
+ 'tagValue': string;
753
+ /**
754
+ *
755
+ * @type {number}
756
+ * @memberof CustomDealRestriction
757
+ */
758
+ 'minTurnoverPercent': number;
759
+ /**
760
+ *
761
+ * @type {CustomDealRestrictionPriority}
762
+ * @memberof CustomDealRestriction
763
+ */
764
+ 'priority': CustomDealRestrictionPriority;
765
+ /**
766
+ *
767
+ * @type {number}
768
+ * @memberof CustomDealRestriction
769
+ */
770
+ 'points': number;
771
+ /**
772
+ *
773
+ * @type {string}
774
+ * @memberof CustomDealRestriction
775
+ */
776
+ 'createdAt': string;
777
+ /**
778
+ *
779
+ * @type {string}
780
+ * @memberof CustomDealRestriction
781
+ */
782
+ 'updatedAt': string;
783
+ }
784
+
743
785
 
744
786
  /**
745
787
  *
@@ -756,6 +798,45 @@ export const CustomDealRestrictionPriority = {
756
798
  export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
757
799
 
758
800
 
801
+ /**
802
+ *
803
+ * @export
804
+ * @interface CustomDealRestrictionRequest
805
+ */
806
+ export interface CustomDealRestrictionRequest {
807
+ /**
808
+ *
809
+ * @type {string}
810
+ * @memberof CustomDealRestrictionRequest
811
+ */
812
+ 'tagKey': string;
813
+ /**
814
+ *
815
+ * @type {string}
816
+ * @memberof CustomDealRestrictionRequest
817
+ */
818
+ 'tagValue': string;
819
+ /**
820
+ *
821
+ * @type {number}
822
+ * @memberof CustomDealRestrictionRequest
823
+ */
824
+ 'minTurnoverPercent': number;
825
+ /**
826
+ *
827
+ * @type {CustomDealRestrictionPriority}
828
+ * @memberof CustomDealRestrictionRequest
829
+ */
830
+ 'priority': CustomDealRestrictionPriority;
831
+ /**
832
+ *
833
+ * @type {number}
834
+ * @memberof CustomDealRestrictionRequest
835
+ */
836
+ 'points': number;
837
+ }
838
+
839
+
759
840
  /**
760
841
  *
761
842
  * @export
@@ -950,6 +1031,12 @@ export interface MetricsAggregation {
950
1031
  * @memberof MetricsAggregation
951
1032
  */
952
1033
  'total': MetricsCollection;
1034
+ /**
1035
+ *
1036
+ * @type {string}
1037
+ * @memberof MetricsAggregation
1038
+ */
1039
+ 'updatedAt'?: string;
953
1040
  }
954
1041
  /**
955
1042
  *
@@ -970,71 +1057,6 @@ export interface MetricsCollection {
970
1057
  */
971
1058
  'total': Metrics;
972
1059
  }
973
- /**
974
- *
975
- * @export
976
- * @interface MinTurnoverRestriction
977
- */
978
- export interface MinTurnoverRestriction {
979
- /**
980
- *
981
- * @type {string}
982
- * @memberof MinTurnoverRestriction
983
- */
984
- 'kind': MinTurnoverRestrictionKindEnum;
985
- /**
986
- *
987
- * @type {Array<MinTurnoverRestrictionValue>}
988
- * @memberof MinTurnoverRestriction
989
- */
990
- 'values': Array<MinTurnoverRestrictionValue>;
991
- }
992
-
993
- export const MinTurnoverRestrictionKindEnum = {
994
- MinTurnover: 'minTurnover'
995
- } as const;
996
-
997
- export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
998
-
999
- /**
1000
- *
1001
- * @export
1002
- * @interface MinTurnoverRestrictionValue
1003
- */
1004
- export interface MinTurnoverRestrictionValue {
1005
- /**
1006
- *
1007
- * @type {string}
1008
- * @memberof MinTurnoverRestrictionValue
1009
- */
1010
- 'tagKey': string;
1011
- /**
1012
- *
1013
- * @type {string}
1014
- * @memberof MinTurnoverRestrictionValue
1015
- */
1016
- 'tagValue': string;
1017
- /**
1018
- *
1019
- * @type {number}
1020
- * @memberof MinTurnoverRestrictionValue
1021
- */
1022
- 'minTurnoverPercent': number;
1023
- /**
1024
- *
1025
- * @type {CustomDealRestrictionPriority}
1026
- * @memberof MinTurnoverRestrictionValue
1027
- */
1028
- 'priority': CustomDealRestrictionPriority;
1029
- /**
1030
- *
1031
- * @type {number}
1032
- * @memberof MinTurnoverRestrictionValue
1033
- */
1034
- 'points': number;
1035
- }
1036
-
1037
-
1038
1060
  /**
1039
1061
  *
1040
1062
  * @export
@@ -1302,12 +1324,6 @@ export interface Order {
1302
1324
  * @memberof Order
1303
1325
  */
1304
1326
  'status'?: OrderStatus;
1305
- /**
1306
- *
1307
- * @type {string}
1308
- * @memberof Order
1309
- */
1310
- 'clientID'?: string;
1311
1327
  }
1312
1328
 
1313
1329
 
@@ -1357,8 +1373,7 @@ export interface OrderItemCreationRequest {
1357
1373
 
1358
1374
  export const OrderKind = {
1359
1375
  Webshop: 'webshop',
1360
- Promotions: 'promotions',
1361
- SalesBudget: 'sales_budget'
1376
+ Promotions: 'promotions'
1362
1377
  } as const;
1363
1378
 
1364
1379
  export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
@@ -2294,12 +2309,6 @@ export interface Promotion {
2294
2309
  * @memberof Promotion
2295
2310
  */
2296
2311
  'status'?: PromotionStatus;
2297
- /**
2298
- *
2299
- * @type {string}
2300
- * @memberof Promotion
2301
- */
2302
- 'reference'?: string;
2303
2312
  }
2304
2313
 
2305
2314
 
@@ -2513,18 +2522,6 @@ export interface PromotionRequest {
2513
2522
  * @memberof PromotionRequest
2514
2523
  */
2515
2524
  'notificationConfig'?: PromotionNotificationConfig;
2516
- /**
2517
- *
2518
- * @type {PromotionType}
2519
- * @memberof PromotionRequest
2520
- */
2521
- 'type'?: PromotionType;
2522
- /**
2523
- *
2524
- * @type {string}
2525
- * @memberof PromotionRequest
2526
- */
2527
- 'reference'?: string;
2528
2525
  }
2529
2526
  /**
2530
2527
  *
@@ -2720,32 +2717,6 @@ export const ReportTypesResponseTypesEnum = {
2720
2717
 
2721
2718
  export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
2722
2719
 
2723
- /**
2724
- *
2725
- * @export
2726
- * @interface RequiredRestriction
2727
- */
2728
- export interface RequiredRestriction {
2729
- /**
2730
- *
2731
- * @type {string}
2732
- * @memberof RequiredRestriction
2733
- */
2734
- 'kind': RequiredRestrictionKindEnum;
2735
- /**
2736
- *
2737
- * @type {Array<string>}
2738
- * @memberof RequiredRestriction
2739
- */
2740
- 'tagKeys': Array<string>;
2741
- }
2742
-
2743
- export const RequiredRestrictionKindEnum = {
2744
- Required: 'required'
2745
- } as const;
2746
-
2747
- export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
2748
-
2749
2720
  /**
2750
2721
  * @type Rule
2751
2722
  * @export
@@ -3577,30 +3548,9 @@ export interface Transaction {
3577
3548
  * @memberof Transaction
3578
3549
  */
3579
3550
  'createdAt': string;
3580
- /**
3581
- *
3582
- * @type {TransactionCurrencyKind}
3583
- * @memberof Transaction
3584
- */
3585
- 'currency': TransactionCurrencyKind;
3586
3551
  }
3587
3552
 
3588
3553
 
3589
- /**
3590
- *
3591
- * @export
3592
- * @enum {string}
3593
- */
3594
-
3595
- export const TransactionCurrencyKind = {
3596
- Points: 'points',
3597
- CustomDealBudget: 'customDealBudget',
3598
- SalesBudget: 'salesBudget'
3599
- } as const;
3600
-
3601
- export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
3602
-
3603
-
3604
3554
  /**
3605
3555
  *
3606
3556
  * @export
@@ -3716,8 +3666,7 @@ export const TransactionSource = {
3716
3666
  Promotion: 'promotion',
3717
3667
  Manual: 'manual',
3718
3668
  Expiry: 'expiry',
3719
- Transfer: 'transfer',
3720
- SalesBudget: 'sales_budget'
3669
+ Transfer: 'transfer'
3721
3670
  } as const;
3722
3671
 
3723
3672
  export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
@@ -3727,7 +3676,7 @@ export type TransactionSource = typeof TransactionSource[keyof typeof Transactio
3727
3676
  * @type TransactionSourceReference
3728
3677
  * @export
3729
3678
  */
3730
- export type TransactionSourceReference = BalanceWithBeneficiaryRef | PeriodPromotion | User | UserOrder;
3679
+ export type TransactionSourceReference = BalanceWithBeneficiaryRef | Order | PeriodPromotion | User;
3731
3680
 
3732
3681
  /**
3733
3682
  *
@@ -3862,12 +3811,6 @@ export interface UpdatePromotionRequest {
3862
3811
  * @memberof UpdatePromotionRequest
3863
3812
  */
3864
3813
  'notificationConfig'?: PromotionNotificationConfig;
3865
- /**
3866
- *
3867
- * @type {string}
3868
- * @memberof UpdatePromotionRequest
3869
- */
3870
- 'reference'?: string;
3871
3814
  }
3872
3815
 
3873
3816
 
@@ -4082,7 +4025,7 @@ export interface UserOrder {
4082
4025
  * @type {string}
4083
4026
  * @memberof UserOrder
4084
4027
  */
4085
- 'source': string;
4028
+ 'source'?: string;
4086
4029
  /**
4087
4030
  *
4088
4031
  * @type {string}
@@ -4091,10 +4034,10 @@ export interface UserOrder {
4091
4034
  'userID'?: string;
4092
4035
  /**
4093
4036
  *
4094
- * @type {string}
4037
+ * @type {OrderStatus}
4095
4038
  * @memberof UserOrder
4096
4039
  */
4097
- 'clientID': string;
4040
+ 'status'?: OrderStatus;
4098
4041
  }
4099
4042
 
4100
4043
 
@@ -5065,6 +5008,44 @@ export const BulkApiAxiosParamCreator = function (configuration?: Configuration)
5065
5008
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5066
5009
  localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
5067
5010
 
5011
+ return {
5012
+ url: toPathString(localVarUrlObj),
5013
+ options: localVarRequestOptions,
5014
+ };
5015
+ },
5016
+ /**
5017
+ * Update multiple clients
5018
+ * @summary Update multiple clients
5019
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
5020
+ * @param {*} [options] Override http request option.
5021
+ * @throws {RequiredError}
5022
+ */
5023
+ bulkUpdateClients: async (clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5024
+ const localVarPath = `/admins/clients/bulk`;
5025
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5026
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5027
+ let baseOptions;
5028
+ if (configuration) {
5029
+ baseOptions = configuration.baseOptions;
5030
+ }
5031
+
5032
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
5033
+ const localVarHeaderParameter = {} as any;
5034
+ const localVarQueryParameter = {} as any;
5035
+
5036
+ // authentication systemJWT required
5037
+ // http bearer authentication required
5038
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5039
+
5040
+
5041
+
5042
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5043
+
5044
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5045
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5046
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5047
+ localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration)
5048
+
5068
5049
  return {
5069
5050
  url: toPathString(localVarUrlObj),
5070
5051
  options: localVarRequestOptions,
@@ -5113,6 +5094,17 @@ export const BulkApiFp = function(configuration?: Configuration) {
5113
5094
  const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
5114
5095
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5115
5096
  },
5097
+ /**
5098
+ * Update multiple clients
5099
+ * @summary Update multiple clients
5100
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
5101
+ * @param {*} [options] Override http request option.
5102
+ * @throws {RequiredError}
5103
+ */
5104
+ async bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
5105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
5106
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5107
+ },
5116
5108
  }
5117
5109
  };
5118
5110
 
@@ -5153,6 +5145,16 @@ export const BulkApiFactory = function (configuration?: Configuration, basePath?
5153
5145
  bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
5154
5146
  return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
5155
5147
  },
5148
+ /**
5149
+ * Update multiple clients
5150
+ * @summary Update multiple clients
5151
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
5152
+ * @param {*} [options] Override http request option.
5153
+ * @throws {RequiredError}
5154
+ */
5155
+ bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: any): AxiosPromise<Array<Client>> {
5156
+ return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
5157
+ },
5156
5158
  };
5157
5159
  };
5158
5160
 
@@ -5198,6 +5200,18 @@ export class BulkApi extends BaseAPI {
5198
5200
  public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
5199
5201
  return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
5200
5202
  }
5203
+
5204
+ /**
5205
+ * Update multiple clients
5206
+ * @summary Update multiple clients
5207
+ * @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
5208
+ * @param {*} [options] Override http request option.
5209
+ * @throws {RequiredError}
5210
+ * @memberof BulkApi
5211
+ */
5212
+ public bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig) {
5213
+ return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
5214
+ }
5201
5215
  }
5202
5216
 
5203
5217
 
@@ -5944,13 +5958,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
5944
5958
  /**
5945
5959
  * Create custom deal restrictions
5946
5960
  * @summary Create custom deal restrictions
5947
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
5961
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
5948
5962
  * @param {*} [options] Override http request option.
5949
5963
  * @throws {RequiredError}
5950
5964
  */
5951
- createCustomDealRestrictions: async (customDealRestriction: CustomDealRestriction, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5952
- // verify required parameter 'customDealRestriction' is not null or undefined
5953
- assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction)
5965
+ createCustomDealRestrictions: async (customDealRestrictionRequest: CustomDealRestrictionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5966
+ // verify required parameter 'customDealRestrictionRequest' is not null or undefined
5967
+ assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest)
5954
5968
  const localVarPath = `/admins/custom-deals/restrictions`;
5955
5969
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5956
5970
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5974,7 +5988,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
5974
5988
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5975
5989
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5976
5990
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5977
- localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration)
5991
+ localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration)
5978
5992
 
5979
5993
  return {
5980
5994
  url: toPathString(localVarUrlObj),
@@ -6028,12 +6042,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
6028
6042
  /**
6029
6043
  * Create custom deal restrictions
6030
6044
  * @summary Create custom deal restrictions
6031
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
6045
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6032
6046
  * @param {*} [options] Override http request option.
6033
6047
  * @throws {RequiredError}
6034
6048
  */
6035
- async createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6036
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
6049
+ async createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
6050
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
6037
6051
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6038
6052
  },
6039
6053
  /**
@@ -6059,12 +6073,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
6059
6073
  /**
6060
6074
  * Create custom deal restrictions
6061
6075
  * @summary Create custom deal restrictions
6062
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
6076
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6063
6077
  * @param {*} [options] Override http request option.
6064
6078
  * @throws {RequiredError}
6065
6079
  */
6066
- createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void> {
6067
- return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
6080
+ createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void> {
6081
+ return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
6068
6082
  },
6069
6083
  /**
6070
6084
  * List custom deal restrictions
@@ -6088,13 +6102,13 @@ export class CustomDealsApi extends BaseAPI {
6088
6102
  /**
6089
6103
  * Create custom deal restrictions
6090
6104
  * @summary Create custom deal restrictions
6091
- * @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
6105
+ * @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
6092
6106
  * @param {*} [options] Override http request option.
6093
6107
  * @throws {RequiredError}
6094
6108
  * @memberof CustomDealsApi
6095
6109
  */
6096
- public createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) {
6097
- return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
6110
+ public createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) {
6111
+ return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
6098
6112
  }
6099
6113
 
6100
6114
  /**
@@ -6946,44 +6960,6 @@ export class NotificationApi extends BaseAPI {
6946
6960
  */
6947
6961
  export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
6948
6962
  return {
6949
- /**
6950
- * Create a product order. If successful the value of the product will be deducted from the used balance.
6951
- * @summary Create an order for a product
6952
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
6953
- * @param {*} [options] Override http request option.
6954
- * @throws {RequiredError}
6955
- */
6956
- createAdminOrder: async (adminOrderCreationRequest?: AdminOrderCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6957
- const localVarPath = `/admins/orders`;
6958
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6959
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6960
- let baseOptions;
6961
- if (configuration) {
6962
- baseOptions = configuration.baseOptions;
6963
- }
6964
-
6965
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6966
- const localVarHeaderParameter = {} as any;
6967
- const localVarQueryParameter = {} as any;
6968
-
6969
- // authentication systemJWT required
6970
- // http bearer authentication required
6971
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
6972
-
6973
-
6974
-
6975
- localVarHeaderParameter['Content-Type'] = 'application/json';
6976
-
6977
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6978
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6979
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6980
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration)
6981
-
6982
- return {
6983
- url: toPathString(localVarUrlObj),
6984
- options: localVarRequestOptions,
6985
- };
6986
- },
6987
6963
  /**
6988
6964
  * Create a product order. If successful the value of the product will be deducted from the used balance.
6989
6965
  * @summary Create an order for a product
@@ -7109,12 +7085,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7109
7085
  * @param {string} [createdBefore] Filter orders created before the specified date
7110
7086
  * @param {Array<string>} [userIDs] Filter by user ids
7111
7087
  * @param {Array<string>} [clientIDs] Filter by client ids
7112
- * @param {OrderKind} [kind] Filter by kind
7113
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7114
7088
  * @param {*} [options] Override http request option.
7115
7089
  * @throws {RequiredError}
7116
7090
  */
7117
- listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7091
+ listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7118
7092
  const localVarPath = `/admins/orders`;
7119
7093
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7120
7094
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7167,14 +7141,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7167
7141
  localVarQueryParameter['clientIDs'] = clientIDs;
7168
7142
  }
7169
7143
 
7170
- if (kind !== undefined) {
7171
- localVarQueryParameter['kind'] = kind;
7172
- }
7173
-
7174
- if (source !== undefined) {
7175
- localVarQueryParameter['source'] = source;
7176
- }
7177
-
7178
7144
 
7179
7145
 
7180
7146
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -7269,17 +7235,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
7269
7235
  export const OrderApiFp = function(configuration?: Configuration) {
7270
7236
  const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
7271
7237
  return {
7272
- /**
7273
- * Create a product order. If successful the value of the product will be deducted from the used balance.
7274
- * @summary Create an order for a product
7275
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7276
- * @param {*} [options] Override http request option.
7277
- * @throws {RequiredError}
7278
- */
7279
- async createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
7280
- const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
7281
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7282
- },
7283
7238
  /**
7284
7239
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7285
7240
  * @summary Create an order for a product
@@ -7324,13 +7279,11 @@ export const OrderApiFp = function(configuration?: Configuration) {
7324
7279
  * @param {string} [createdBefore] Filter orders created before the specified date
7325
7280
  * @param {Array<string>} [userIDs] Filter by user ids
7326
7281
  * @param {Array<string>} [clientIDs] Filter by client ids
7327
- * @param {OrderKind} [kind] Filter by kind
7328
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7329
7282
  * @param {*} [options] Override http request option.
7330
7283
  * @throws {RequiredError}
7331
7284
  */
7332
- async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
7333
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
7285
+ async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
7286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
7334
7287
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7335
7288
  },
7336
7289
  /**
@@ -7360,16 +7313,6 @@ export const OrderApiFp = function(configuration?: Configuration) {
7360
7313
  export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7361
7314
  const localVarFp = OrderApiFp(configuration)
7362
7315
  return {
7363
- /**
7364
- * Create a product order. If successful the value of the product will be deducted from the used balance.
7365
- * @summary Create an order for a product
7366
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7367
- * @param {*} [options] Override http request option.
7368
- * @throws {RequiredError}
7369
- */
7370
- createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order> {
7371
- return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
7372
- },
7373
7316
  /**
7374
7317
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7375
7318
  * @summary Create an order for a product
@@ -7411,13 +7354,11 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7411
7354
  * @param {string} [createdBefore] Filter orders created before the specified date
7412
7355
  * @param {Array<string>} [userIDs] Filter by user ids
7413
7356
  * @param {Array<string>} [clientIDs] Filter by client ids
7414
- * @param {OrderKind} [kind] Filter by kind
7415
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7416
7357
  * @param {*} [options] Override http request option.
7417
7358
  * @throws {RequiredError}
7418
7359
  */
7419
- 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> {
7420
- return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
7360
+ listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse> {
7361
+ return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
7421
7362
  },
7422
7363
  /**
7423
7364
  * List existing orders
@@ -7445,18 +7386,6 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
7445
7386
  * @extends {BaseAPI}
7446
7387
  */
7447
7388
  export class OrderApi extends BaseAPI {
7448
- /**
7449
- * Create a product order. If successful the value of the product will be deducted from the used balance.
7450
- * @summary Create an order for a product
7451
- * @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
7452
- * @param {*} [options] Override http request option.
7453
- * @throws {RequiredError}
7454
- * @memberof OrderApi
7455
- */
7456
- public createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) {
7457
- return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
7458
- }
7459
-
7460
7389
  /**
7461
7390
  * Create a product order. If successful the value of the product will be deducted from the used balance.
7462
7391
  * @summary Create an order for a product
@@ -7504,14 +7433,12 @@ export class OrderApi extends BaseAPI {
7504
7433
  * @param {string} [createdBefore] Filter orders created before the specified date
7505
7434
  * @param {Array<string>} [userIDs] Filter by user ids
7506
7435
  * @param {Array<string>} [clientIDs] Filter by client ids
7507
- * @param {OrderKind} [kind] Filter by kind
7508
- * @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
7509
7436
  * @param {*} [options] Override http request option.
7510
7437
  * @throws {RequiredError}
7511
7438
  * @memberof OrderApi
7512
7439
  */
7513
- public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig) {
7514
- return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
7440
+ public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) {
7441
+ return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
7515
7442
  }
7516
7443
 
7517
7444
  /**