flexinet-api 0.0.1294-prerelease0 → 0.0.1295
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 +2 -2
- package/api.ts +231 -439
- package/dist/api.d.ts +179 -295
- package/dist/api.js +91 -240
- package/dist/esm/api.d.ts +179 -295
- package/dist/esm/api.js +88 -237
- package/package.json +1 -1
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'
|
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'
|
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'
|
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
|
@@ -738,21 +735,53 @@ export type Condition = typeof Condition[keyof typeof Condition];
|
|
738
735
|
/**
|
739
736
|
*
|
740
737
|
* @export
|
741
|
-
* @interface
|
738
|
+
* @interface CustomDealRestriction
|
742
739
|
*/
|
743
|
-
export interface
|
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;
|
744
753
|
/**
|
745
754
|
*
|
746
755
|
* @type {number}
|
747
|
-
* @memberof
|
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
|
748
775
|
*/
|
749
|
-
'
|
776
|
+
'createdAt': string;
|
777
|
+
/**
|
778
|
+
*
|
779
|
+
* @type {string}
|
780
|
+
* @memberof CustomDealRestriction
|
781
|
+
*/
|
782
|
+
'updatedAt': string;
|
750
783
|
}
|
751
|
-
|
752
|
-
* @type CustomDealRestriction
|
753
|
-
* @export
|
754
|
-
*/
|
755
|
-
export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
|
784
|
+
|
756
785
|
|
757
786
|
/**
|
758
787
|
*
|
@@ -769,6 +798,45 @@ export const CustomDealRestrictionPriority = {
|
|
769
798
|
export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
|
770
799
|
|
771
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
|
+
|
772
840
|
/**
|
773
841
|
*
|
774
842
|
* @export
|
@@ -963,6 +1031,12 @@ export interface MetricsAggregation {
|
|
963
1031
|
* @memberof MetricsAggregation
|
964
1032
|
*/
|
965
1033
|
'total': MetricsCollection;
|
1034
|
+
/**
|
1035
|
+
*
|
1036
|
+
* @type {string}
|
1037
|
+
* @memberof MetricsAggregation
|
1038
|
+
*/
|
1039
|
+
'updatedAt'?: string;
|
966
1040
|
}
|
967
1041
|
/**
|
968
1042
|
*
|
@@ -983,71 +1057,6 @@ export interface MetricsCollection {
|
|
983
1057
|
*/
|
984
1058
|
'total': Metrics;
|
985
1059
|
}
|
986
|
-
/**
|
987
|
-
*
|
988
|
-
* @export
|
989
|
-
* @interface MinTurnoverRestriction
|
990
|
-
*/
|
991
|
-
export interface MinTurnoverRestriction {
|
992
|
-
/**
|
993
|
-
*
|
994
|
-
* @type {string}
|
995
|
-
* @memberof MinTurnoverRestriction
|
996
|
-
*/
|
997
|
-
'kind': MinTurnoverRestrictionKindEnum;
|
998
|
-
/**
|
999
|
-
*
|
1000
|
-
* @type {Array<MinTurnoverRestrictionValue>}
|
1001
|
-
* @memberof MinTurnoverRestriction
|
1002
|
-
*/
|
1003
|
-
'values': Array<MinTurnoverRestrictionValue>;
|
1004
|
-
}
|
1005
|
-
|
1006
|
-
export const MinTurnoverRestrictionKindEnum = {
|
1007
|
-
MinTurnover: 'minTurnover'
|
1008
|
-
} as const;
|
1009
|
-
|
1010
|
-
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
1011
|
-
|
1012
|
-
/**
|
1013
|
-
*
|
1014
|
-
* @export
|
1015
|
-
* @interface MinTurnoverRestrictionValue
|
1016
|
-
*/
|
1017
|
-
export interface MinTurnoverRestrictionValue {
|
1018
|
-
/**
|
1019
|
-
*
|
1020
|
-
* @type {string}
|
1021
|
-
* @memberof MinTurnoverRestrictionValue
|
1022
|
-
*/
|
1023
|
-
'tagKey': string;
|
1024
|
-
/**
|
1025
|
-
*
|
1026
|
-
* @type {string}
|
1027
|
-
* @memberof MinTurnoverRestrictionValue
|
1028
|
-
*/
|
1029
|
-
'tagValue': string;
|
1030
|
-
/**
|
1031
|
-
*
|
1032
|
-
* @type {number}
|
1033
|
-
* @memberof MinTurnoverRestrictionValue
|
1034
|
-
*/
|
1035
|
-
'minTurnoverPercent': number;
|
1036
|
-
/**
|
1037
|
-
*
|
1038
|
-
* @type {CustomDealRestrictionPriority}
|
1039
|
-
* @memberof MinTurnoverRestrictionValue
|
1040
|
-
*/
|
1041
|
-
'priority': CustomDealRestrictionPriority;
|
1042
|
-
/**
|
1043
|
-
*
|
1044
|
-
* @type {number}
|
1045
|
-
* @memberof MinTurnoverRestrictionValue
|
1046
|
-
*/
|
1047
|
-
'points': number;
|
1048
|
-
}
|
1049
|
-
|
1050
|
-
|
1051
1060
|
/**
|
1052
1061
|
*
|
1053
1062
|
* @export
|
@@ -1315,12 +1324,6 @@ export interface Order {
|
|
1315
1324
|
* @memberof Order
|
1316
1325
|
*/
|
1317
1326
|
'status'?: OrderStatus;
|
1318
|
-
/**
|
1319
|
-
*
|
1320
|
-
* @type {string}
|
1321
|
-
* @memberof Order
|
1322
|
-
*/
|
1323
|
-
'clientID'?: string;
|
1324
1327
|
}
|
1325
1328
|
|
1326
1329
|
|
@@ -1370,8 +1373,7 @@ export interface OrderItemCreationRequest {
|
|
1370
1373
|
|
1371
1374
|
export const OrderKind = {
|
1372
1375
|
Webshop: 'webshop',
|
1373
|
-
Promotions: 'promotions'
|
1374
|
-
SalesBudget: 'sales_budget'
|
1376
|
+
Promotions: 'promotions'
|
1375
1377
|
} as const;
|
1376
1378
|
|
1377
1379
|
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
@@ -2037,6 +2039,12 @@ export interface Profile {
|
|
2037
2039
|
* @interface Progress
|
2038
2040
|
*/
|
2039
2041
|
export interface Progress {
|
2042
|
+
/**
|
2043
|
+
*
|
2044
|
+
* @type {string}
|
2045
|
+
* @memberof Progress
|
2046
|
+
*/
|
2047
|
+
'promotionId': string;
|
2040
2048
|
/**
|
2041
2049
|
*
|
2042
2050
|
* @type {string}
|
@@ -2307,12 +2315,6 @@ export interface Promotion {
|
|
2307
2315
|
* @memberof Promotion
|
2308
2316
|
*/
|
2309
2317
|
'status'?: PromotionStatus;
|
2310
|
-
/**
|
2311
|
-
*
|
2312
|
-
* @type {string}
|
2313
|
-
* @memberof Promotion
|
2314
|
-
*/
|
2315
|
-
'reference'?: string;
|
2316
2318
|
}
|
2317
2319
|
|
2318
2320
|
|
@@ -2526,18 +2528,6 @@ export interface PromotionRequest {
|
|
2526
2528
|
* @memberof PromotionRequest
|
2527
2529
|
*/
|
2528
2530
|
'notificationConfig'?: PromotionNotificationConfig;
|
2529
|
-
/**
|
2530
|
-
*
|
2531
|
-
* @type {PromotionType}
|
2532
|
-
* @memberof PromotionRequest
|
2533
|
-
*/
|
2534
|
-
'type'?: PromotionType;
|
2535
|
-
/**
|
2536
|
-
*
|
2537
|
-
* @type {string}
|
2538
|
-
* @memberof PromotionRequest
|
2539
|
-
*/
|
2540
|
-
'reference'?: string;
|
2541
2531
|
}
|
2542
2532
|
/**
|
2543
2533
|
*
|
@@ -2733,32 +2723,6 @@ export const ReportTypesResponseTypesEnum = {
|
|
2733
2723
|
|
2734
2724
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2735
2725
|
|
2736
|
-
/**
|
2737
|
-
*
|
2738
|
-
* @export
|
2739
|
-
* @interface RequiredRestriction
|
2740
|
-
*/
|
2741
|
-
export interface RequiredRestriction {
|
2742
|
-
/**
|
2743
|
-
*
|
2744
|
-
* @type {string}
|
2745
|
-
* @memberof RequiredRestriction
|
2746
|
-
*/
|
2747
|
-
'kind': RequiredRestrictionKindEnum;
|
2748
|
-
/**
|
2749
|
-
*
|
2750
|
-
* @type {Array<string>}
|
2751
|
-
* @memberof RequiredRestriction
|
2752
|
-
*/
|
2753
|
-
'tagKeys': Array<string>;
|
2754
|
-
}
|
2755
|
-
|
2756
|
-
export const RequiredRestrictionKindEnum = {
|
2757
|
-
Required: 'required'
|
2758
|
-
} as const;
|
2759
|
-
|
2760
|
-
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2761
|
-
|
2762
2726
|
/**
|
2763
2727
|
* @type Rule
|
2764
2728
|
* @export
|
@@ -3590,30 +3554,9 @@ export interface Transaction {
|
|
3590
3554
|
* @memberof Transaction
|
3591
3555
|
*/
|
3592
3556
|
'createdAt': string;
|
3593
|
-
/**
|
3594
|
-
*
|
3595
|
-
* @type {TransactionCurrencyKind}
|
3596
|
-
* @memberof Transaction
|
3597
|
-
*/
|
3598
|
-
'currency': TransactionCurrencyKind;
|
3599
3557
|
}
|
3600
3558
|
|
3601
3559
|
|
3602
|
-
/**
|
3603
|
-
*
|
3604
|
-
* @export
|
3605
|
-
* @enum {string}
|
3606
|
-
*/
|
3607
|
-
|
3608
|
-
export const TransactionCurrencyKind = {
|
3609
|
-
Points: 'points',
|
3610
|
-
CustomDealBudget: 'customDealBudget',
|
3611
|
-
SalesBudget: 'salesBudget'
|
3612
|
-
} as const;
|
3613
|
-
|
3614
|
-
export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
|
3615
|
-
|
3616
|
-
|
3617
3560
|
/**
|
3618
3561
|
*
|
3619
3562
|
* @export
|
@@ -3729,8 +3672,7 @@ export const TransactionSource = {
|
|
3729
3672
|
Promotion: 'promotion',
|
3730
3673
|
Manual: 'manual',
|
3731
3674
|
Expiry: 'expiry',
|
3732
|
-
Transfer: 'transfer'
|
3733
|
-
SalesBudget: 'sales_budget'
|
3675
|
+
Transfer: 'transfer'
|
3734
3676
|
} as const;
|
3735
3677
|
|
3736
3678
|
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
@@ -3740,7 +3682,7 @@ export type TransactionSource = typeof TransactionSource[keyof typeof Transactio
|
|
3740
3682
|
* @type TransactionSourceReference
|
3741
3683
|
* @export
|
3742
3684
|
*/
|
3743
|
-
export type TransactionSourceReference = BalanceWithBeneficiaryRef |
|
3685
|
+
export type TransactionSourceReference = BalanceWithBeneficiaryRef | Order | PeriodPromotion | User;
|
3744
3686
|
|
3745
3687
|
/**
|
3746
3688
|
*
|
@@ -3875,12 +3817,6 @@ export interface UpdatePromotionRequest {
|
|
3875
3817
|
* @memberof UpdatePromotionRequest
|
3876
3818
|
*/
|
3877
3819
|
'notificationConfig'?: PromotionNotificationConfig;
|
3878
|
-
/**
|
3879
|
-
*
|
3880
|
-
* @type {string}
|
3881
|
-
* @memberof UpdatePromotionRequest
|
3882
|
-
*/
|
3883
|
-
'reference'?: string;
|
3884
3820
|
}
|
3885
3821
|
|
3886
3822
|
|
@@ -4095,7 +4031,7 @@ export interface UserOrder {
|
|
4095
4031
|
* @type {string}
|
4096
4032
|
* @memberof UserOrder
|
4097
4033
|
*/
|
4098
|
-
'source'
|
4034
|
+
'source'?: string;
|
4099
4035
|
/**
|
4100
4036
|
*
|
4101
4037
|
* @type {string}
|
@@ -4104,10 +4040,10 @@ export interface UserOrder {
|
|
4104
4040
|
'userID'?: string;
|
4105
4041
|
/**
|
4106
4042
|
*
|
4107
|
-
* @type {
|
4043
|
+
* @type {OrderStatus}
|
4108
4044
|
* @memberof UserOrder
|
4109
4045
|
*/
|
4110
|
-
'
|
4046
|
+
'status'?: OrderStatus;
|
4111
4047
|
}
|
4112
4048
|
|
4113
4049
|
|
@@ -5078,6 +5014,44 @@ export const BulkApiAxiosParamCreator = function (configuration?: Configuration)
|
|
5078
5014
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5079
5015
|
localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
|
5080
5016
|
|
5017
|
+
return {
|
5018
|
+
url: toPathString(localVarUrlObj),
|
5019
|
+
options: localVarRequestOptions,
|
5020
|
+
};
|
5021
|
+
},
|
5022
|
+
/**
|
5023
|
+
* Update multiple clients
|
5024
|
+
* @summary Update multiple clients
|
5025
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5026
|
+
* @param {*} [options] Override http request option.
|
5027
|
+
* @throws {RequiredError}
|
5028
|
+
*/
|
5029
|
+
bulkUpdateClients: async (clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5030
|
+
const localVarPath = `/admins/clients/bulk`;
|
5031
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5032
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
5033
|
+
let baseOptions;
|
5034
|
+
if (configuration) {
|
5035
|
+
baseOptions = configuration.baseOptions;
|
5036
|
+
}
|
5037
|
+
|
5038
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
5039
|
+
const localVarHeaderParameter = {} as any;
|
5040
|
+
const localVarQueryParameter = {} as any;
|
5041
|
+
|
5042
|
+
// authentication systemJWT required
|
5043
|
+
// http bearer authentication required
|
5044
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
5045
|
+
|
5046
|
+
|
5047
|
+
|
5048
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
5049
|
+
|
5050
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5051
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5052
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5053
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration)
|
5054
|
+
|
5081
5055
|
return {
|
5082
5056
|
url: toPathString(localVarUrlObj),
|
5083
5057
|
options: localVarRequestOptions,
|
@@ -5126,6 +5100,17 @@ export const BulkApiFp = function(configuration?: Configuration) {
|
|
5126
5100
|
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
|
5127
5101
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5128
5102
|
},
|
5103
|
+
/**
|
5104
|
+
* Update multiple clients
|
5105
|
+
* @summary Update multiple clients
|
5106
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5107
|
+
* @param {*} [options] Override http request option.
|
5108
|
+
* @throws {RequiredError}
|
5109
|
+
*/
|
5110
|
+
async bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
|
5111
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
5112
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5113
|
+
},
|
5129
5114
|
}
|
5130
5115
|
};
|
5131
5116
|
|
@@ -5166,6 +5151,16 @@ export const BulkApiFactory = function (configuration?: Configuration, basePath?
|
|
5166
5151
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
|
5167
5152
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
5168
5153
|
},
|
5154
|
+
/**
|
5155
|
+
* Update multiple clients
|
5156
|
+
* @summary Update multiple clients
|
5157
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5158
|
+
* @param {*} [options] Override http request option.
|
5159
|
+
* @throws {RequiredError}
|
5160
|
+
*/
|
5161
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: any): AxiosPromise<Array<Client>> {
|
5162
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
5163
|
+
},
|
5169
5164
|
};
|
5170
5165
|
};
|
5171
5166
|
|
@@ -5211,6 +5206,18 @@ export class BulkApi extends BaseAPI {
|
|
5211
5206
|
public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
|
5212
5207
|
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
5213
5208
|
}
|
5209
|
+
|
5210
|
+
/**
|
5211
|
+
* Update multiple clients
|
5212
|
+
* @summary Update multiple clients
|
5213
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5214
|
+
* @param {*} [options] Override http request option.
|
5215
|
+
* @throws {RequiredError}
|
5216
|
+
* @memberof BulkApi
|
5217
|
+
*/
|
5218
|
+
public bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig) {
|
5219
|
+
return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
5220
|
+
}
|
5214
5221
|
}
|
5215
5222
|
|
5216
5223
|
|
@@ -5957,13 +5964,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5957
5964
|
/**
|
5958
5965
|
* Create custom deal restrictions
|
5959
5966
|
* @summary Create custom deal restrictions
|
5960
|
-
* @param {
|
5967
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
5961
5968
|
* @param {*} [options] Override http request option.
|
5962
5969
|
* @throws {RequiredError}
|
5963
5970
|
*/
|
5964
|
-
createCustomDealRestrictions: async (
|
5965
|
-
// verify required parameter '
|
5966
|
-
assertParamExists('createCustomDealRestrictions', '
|
5971
|
+
createCustomDealRestrictions: async (customDealRestrictionRequest: CustomDealRestrictionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5972
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
5973
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest)
|
5967
5974
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
5968
5975
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5969
5976
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5987,87 +5994,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5987
5994
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5988
5995
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5989
5996
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5990
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
5991
|
-
|
5992
|
-
return {
|
5993
|
-
url: toPathString(localVarUrlObj),
|
5994
|
-
options: localVarRequestOptions,
|
5995
|
-
};
|
5996
|
-
},
|
5997
|
-
/**
|
5998
|
-
* Get custom deal min target value
|
5999
|
-
* @summary Get custom deal min target value
|
6000
|
-
* @param {string} startingAt start at
|
6001
|
-
* @param {string} endingAt end at
|
6002
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6003
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6004
|
-
* @param {string} tagKey tag key
|
6005
|
-
* @param {string} tagValue tag value
|
6006
|
-
* @param {*} [options] Override http request option.
|
6007
|
-
* @throws {RequiredError}
|
6008
|
-
*/
|
6009
|
-
getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6010
|
-
// verify required parameter 'startingAt' is not null or undefined
|
6011
|
-
assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
|
6012
|
-
// verify required parameter 'endingAt' is not null or undefined
|
6013
|
-
assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
|
6014
|
-
// verify required parameter 'beneficiaryKind' is not null or undefined
|
6015
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
|
6016
|
-
// verify required parameter 'beneficiaryValues' is not null or undefined
|
6017
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
|
6018
|
-
// verify required parameter 'tagKey' is not null or undefined
|
6019
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
|
6020
|
-
// verify required parameter 'tagValue' is not null or undefined
|
6021
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
|
6022
|
-
const localVarPath = `/admins/custom-deals/min-target-value`;
|
6023
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6024
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6025
|
-
let baseOptions;
|
6026
|
-
if (configuration) {
|
6027
|
-
baseOptions = configuration.baseOptions;
|
6028
|
-
}
|
6029
|
-
|
6030
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
6031
|
-
const localVarHeaderParameter = {} as any;
|
6032
|
-
const localVarQueryParameter = {} as any;
|
6033
|
-
|
6034
|
-
// authentication systemJWT required
|
6035
|
-
// http bearer authentication required
|
6036
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6037
|
-
|
6038
|
-
if (startingAt !== undefined) {
|
6039
|
-
localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
|
6040
|
-
(startingAt as any).toISOString() :
|
6041
|
-
startingAt;
|
6042
|
-
}
|
6043
|
-
|
6044
|
-
if (endingAt !== undefined) {
|
6045
|
-
localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
|
6046
|
-
(endingAt as any).toISOString() :
|
6047
|
-
endingAt;
|
6048
|
-
}
|
6049
|
-
|
6050
|
-
if (beneficiaryKind !== undefined) {
|
6051
|
-
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
6052
|
-
}
|
6053
|
-
|
6054
|
-
if (beneficiaryValues) {
|
6055
|
-
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
6056
|
-
}
|
6057
|
-
|
6058
|
-
if (tagKey !== undefined) {
|
6059
|
-
localVarQueryParameter['tagKey'] = tagKey;
|
6060
|
-
}
|
6061
|
-
|
6062
|
-
if (tagValue !== undefined) {
|
6063
|
-
localVarQueryParameter['tagValue'] = tagValue;
|
6064
|
-
}
|
6065
|
-
|
6066
|
-
|
6067
|
-
|
6068
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6069
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6070
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5997
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration)
|
6071
5998
|
|
6072
5999
|
return {
|
6073
6000
|
url: toPathString(localVarUrlObj),
|
@@ -6121,28 +6048,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
6121
6048
|
/**
|
6122
6049
|
* Create custom deal restrictions
|
6123
6050
|
* @summary Create custom deal restrictions
|
6124
|
-
* @param {
|
6125
|
-
* @param {*} [options] Override http request option.
|
6126
|
-
* @throws {RequiredError}
|
6127
|
-
*/
|
6128
|
-
async createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6129
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
|
6130
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6131
|
-
},
|
6132
|
-
/**
|
6133
|
-
* Get custom deal min target value
|
6134
|
-
* @summary Get custom deal min target value
|
6135
|
-
* @param {string} startingAt start at
|
6136
|
-
* @param {string} endingAt end at
|
6137
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6138
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6139
|
-
* @param {string} tagKey tag key
|
6140
|
-
* @param {string} tagValue tag value
|
6051
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6141
6052
|
* @param {*} [options] Override http request option.
|
6142
6053
|
* @throws {RequiredError}
|
6143
6054
|
*/
|
6144
|
-
async
|
6145
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
6055
|
+
async createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6056
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
6146
6057
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6147
6058
|
},
|
6148
6059
|
/**
|
@@ -6168,27 +6079,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6168
6079
|
/**
|
6169
6080
|
* Create custom deal restrictions
|
6170
6081
|
* @summary Create custom deal restrictions
|
6171
|
-
* @param {
|
6082
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6172
6083
|
* @param {*} [options] Override http request option.
|
6173
6084
|
* @throws {RequiredError}
|
6174
6085
|
*/
|
6175
|
-
createCustomDealRestrictions(
|
6176
|
-
return localVarFp.createCustomDealRestrictions(
|
6177
|
-
},
|
6178
|
-
/**
|
6179
|
-
* Get custom deal min target value
|
6180
|
-
* @summary Get custom deal min target value
|
6181
|
-
* @param {string} startingAt start at
|
6182
|
-
* @param {string} endingAt end at
|
6183
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6184
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6185
|
-
* @param {string} tagKey tag key
|
6186
|
-
* @param {string} tagValue tag value
|
6187
|
-
* @param {*} [options] Override http request option.
|
6188
|
-
* @throws {RequiredError}
|
6189
|
-
*/
|
6190
|
-
getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: any): AxiosPromise<CustomDealMinTargetValueResponse> {
|
6191
|
-
return localVarFp.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options).then((request) => request(axios, basePath));
|
6086
|
+
createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void> {
|
6087
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
6192
6088
|
},
|
6193
6089
|
/**
|
6194
6090
|
* List custom deal restrictions
|
@@ -6212,30 +6108,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
6212
6108
|
/**
|
6213
6109
|
* Create custom deal restrictions
|
6214
6110
|
* @summary Create custom deal restrictions
|
6215
|
-
* @param {
|
6216
|
-
* @param {*} [options] Override http request option.
|
6217
|
-
* @throws {RequiredError}
|
6218
|
-
* @memberof CustomDealsApi
|
6219
|
-
*/
|
6220
|
-
public createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) {
|
6221
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
6222
|
-
}
|
6223
|
-
|
6224
|
-
/**
|
6225
|
-
* Get custom deal min target value
|
6226
|
-
* @summary Get custom deal min target value
|
6227
|
-
* @param {string} startingAt start at
|
6228
|
-
* @param {string} endingAt end at
|
6229
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6230
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6231
|
-
* @param {string} tagKey tag key
|
6232
|
-
* @param {string} tagValue tag value
|
6111
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6233
6112
|
* @param {*} [options] Override http request option.
|
6234
6113
|
* @throws {RequiredError}
|
6235
6114
|
* @memberof CustomDealsApi
|
6236
6115
|
*/
|
6237
|
-
public
|
6238
|
-
return CustomDealsApiFp(this.configuration).
|
6116
|
+
public createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) {
|
6117
|
+
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
6239
6118
|
}
|
6240
6119
|
|
6241
6120
|
/**
|
@@ -7087,44 +6966,6 @@ export class NotificationApi extends BaseAPI {
|
|
7087
6966
|
*/
|
7088
6967
|
export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
|
7089
6968
|
return {
|
7090
|
-
/**
|
7091
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7092
|
-
* @summary Create an order for a product
|
7093
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7094
|
-
* @param {*} [options] Override http request option.
|
7095
|
-
* @throws {RequiredError}
|
7096
|
-
*/
|
7097
|
-
createAdminOrder: async (adminOrderCreationRequest?: AdminOrderCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7098
|
-
const localVarPath = `/admins/orders`;
|
7099
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7100
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
7101
|
-
let baseOptions;
|
7102
|
-
if (configuration) {
|
7103
|
-
baseOptions = configuration.baseOptions;
|
7104
|
-
}
|
7105
|
-
|
7106
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
7107
|
-
const localVarHeaderParameter = {} as any;
|
7108
|
-
const localVarQueryParameter = {} as any;
|
7109
|
-
|
7110
|
-
// authentication systemJWT required
|
7111
|
-
// http bearer authentication required
|
7112
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
7113
|
-
|
7114
|
-
|
7115
|
-
|
7116
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
7117
|
-
|
7118
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7119
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7120
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7121
|
-
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration)
|
7122
|
-
|
7123
|
-
return {
|
7124
|
-
url: toPathString(localVarUrlObj),
|
7125
|
-
options: localVarRequestOptions,
|
7126
|
-
};
|
7127
|
-
},
|
7128
6969
|
/**
|
7129
6970
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7130
6971
|
* @summary Create an order for a product
|
@@ -7250,12 +7091,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7250
7091
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7251
7092
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7252
7093
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7253
|
-
* @param {OrderKind} [kind] Filter by kind
|
7254
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7255
7094
|
* @param {*} [options] Override http request option.
|
7256
7095
|
* @throws {RequiredError}
|
7257
7096
|
*/
|
7258
|
-
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7097
|
+
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> => {
|
7259
7098
|
const localVarPath = `/admins/orders`;
|
7260
7099
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7261
7100
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7308,14 +7147,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7308
7147
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
7309
7148
|
}
|
7310
7149
|
|
7311
|
-
if (kind !== undefined) {
|
7312
|
-
localVarQueryParameter['kind'] = kind;
|
7313
|
-
}
|
7314
|
-
|
7315
|
-
if (source !== undefined) {
|
7316
|
-
localVarQueryParameter['source'] = source;
|
7317
|
-
}
|
7318
|
-
|
7319
7150
|
|
7320
7151
|
|
7321
7152
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -7410,17 +7241,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7410
7241
|
export const OrderApiFp = function(configuration?: Configuration) {
|
7411
7242
|
const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
|
7412
7243
|
return {
|
7413
|
-
/**
|
7414
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7415
|
-
* @summary Create an order for a product
|
7416
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7417
|
-
* @param {*} [options] Override http request option.
|
7418
|
-
* @throws {RequiredError}
|
7419
|
-
*/
|
7420
|
-
async createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
|
7421
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
7422
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7423
|
-
},
|
7424
7244
|
/**
|
7425
7245
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7426
7246
|
* @summary Create an order for a product
|
@@ -7465,13 +7285,11 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7465
7285
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7466
7286
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7467
7287
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7468
|
-
* @param {OrderKind} [kind] Filter by kind
|
7469
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7470
7288
|
* @param {*} [options] Override http request option.
|
7471
7289
|
* @throws {RequiredError}
|
7472
7290
|
*/
|
7473
|
-
async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7474
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7291
|
+
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>> {
|
7292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
7475
7293
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7476
7294
|
},
|
7477
7295
|
/**
|
@@ -7501,16 +7319,6 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7501
7319
|
export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
7502
7320
|
const localVarFp = OrderApiFp(configuration)
|
7503
7321
|
return {
|
7504
|
-
/**
|
7505
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7506
|
-
* @summary Create an order for a product
|
7507
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7508
|
-
* @param {*} [options] Override http request option.
|
7509
|
-
* @throws {RequiredError}
|
7510
|
-
*/
|
7511
|
-
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order> {
|
7512
|
-
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
7513
|
-
},
|
7514
7322
|
/**
|
7515
7323
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7516
7324
|
* @summary Create an order for a product
|
@@ -7552,13 +7360,11 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7552
7360
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7553
7361
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7554
7362
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7555
|
-
* @param {OrderKind} [kind] Filter by kind
|
7556
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7557
7363
|
* @param {*} [options] Override http request option.
|
7558
7364
|
* @throws {RequiredError}
|
7559
7365
|
*/
|
7560
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7561
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7366
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse> {
|
7367
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
7562
7368
|
},
|
7563
7369
|
/**
|
7564
7370
|
* List existing orders
|
@@ -7586,18 +7392,6 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7586
7392
|
* @extends {BaseAPI}
|
7587
7393
|
*/
|
7588
7394
|
export class OrderApi extends BaseAPI {
|
7589
|
-
/**
|
7590
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7591
|
-
* @summary Create an order for a product
|
7592
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7593
|
-
* @param {*} [options] Override http request option.
|
7594
|
-
* @throws {RequiredError}
|
7595
|
-
* @memberof OrderApi
|
7596
|
-
*/
|
7597
|
-
public createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) {
|
7598
|
-
return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
7599
|
-
}
|
7600
|
-
|
7601
7395
|
/**
|
7602
7396
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7603
7397
|
* @summary Create an order for a product
|
@@ -7645,14 +7439,12 @@ export class OrderApi extends BaseAPI {
|
|
7645
7439
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7646
7440
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7647
7441
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7648
|
-
* @param {OrderKind} [kind] Filter by kind
|
7649
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7650
7442
|
* @param {*} [options] Override http request option.
|
7651
7443
|
* @throws {RequiredError}
|
7652
7444
|
* @memberof OrderApi
|
7653
7445
|
*/
|
7654
|
-
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7655
|
-
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7446
|
+
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) {
|
7447
|
+
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
7656
7448
|
}
|
7657
7449
|
|
7658
7450
|
/**
|