flexinet-api 0.0.1272-prerelease0 → 0.0.1273
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 +225 -439
- package/dist/api.d.ts +173 -295
- package/dist/api.js +91 -240
- package/dist/esm/api.d.ts +173 -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
|
748
757
|
*/
|
749
|
-
'
|
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;
|
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];
|
@@ -2307,12 +2309,6 @@ export interface Promotion {
|
|
2307
2309
|
* @memberof Promotion
|
2308
2310
|
*/
|
2309
2311
|
'status'?: PromotionStatus;
|
2310
|
-
/**
|
2311
|
-
*
|
2312
|
-
* @type {string}
|
2313
|
-
* @memberof Promotion
|
2314
|
-
*/
|
2315
|
-
'reference'?: string;
|
2316
2312
|
}
|
2317
2313
|
|
2318
2314
|
|
@@ -2526,18 +2522,6 @@ export interface PromotionRequest {
|
|
2526
2522
|
* @memberof PromotionRequest
|
2527
2523
|
*/
|
2528
2524
|
'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
2525
|
}
|
2542
2526
|
/**
|
2543
2527
|
*
|
@@ -2733,32 +2717,6 @@ export const ReportTypesResponseTypesEnum = {
|
|
2733
2717
|
|
2734
2718
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2735
2719
|
|
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
2720
|
/**
|
2763
2721
|
* @type Rule
|
2764
2722
|
* @export
|
@@ -3590,30 +3548,9 @@ export interface Transaction {
|
|
3590
3548
|
* @memberof Transaction
|
3591
3549
|
*/
|
3592
3550
|
'createdAt': string;
|
3593
|
-
/**
|
3594
|
-
*
|
3595
|
-
* @type {TransactionCurrencyKind}
|
3596
|
-
* @memberof Transaction
|
3597
|
-
*/
|
3598
|
-
'currency': TransactionCurrencyKind;
|
3599
3551
|
}
|
3600
3552
|
|
3601
3553
|
|
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
3554
|
/**
|
3618
3555
|
*
|
3619
3556
|
* @export
|
@@ -3729,8 +3666,7 @@ export const TransactionSource = {
|
|
3729
3666
|
Promotion: 'promotion',
|
3730
3667
|
Manual: 'manual',
|
3731
3668
|
Expiry: 'expiry',
|
3732
|
-
Transfer: 'transfer'
|
3733
|
-
SalesBudget: 'sales_budget'
|
3669
|
+
Transfer: 'transfer'
|
3734
3670
|
} as const;
|
3735
3671
|
|
3736
3672
|
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
@@ -3740,7 +3676,7 @@ export type TransactionSource = typeof TransactionSource[keyof typeof Transactio
|
|
3740
3676
|
* @type TransactionSourceReference
|
3741
3677
|
* @export
|
3742
3678
|
*/
|
3743
|
-
export type TransactionSourceReference = BalanceWithBeneficiaryRef |
|
3679
|
+
export type TransactionSourceReference = BalanceWithBeneficiaryRef | Order | PeriodPromotion | User;
|
3744
3680
|
|
3745
3681
|
/**
|
3746
3682
|
*
|
@@ -3875,12 +3811,6 @@ export interface UpdatePromotionRequest {
|
|
3875
3811
|
* @memberof UpdatePromotionRequest
|
3876
3812
|
*/
|
3877
3813
|
'notificationConfig'?: PromotionNotificationConfig;
|
3878
|
-
/**
|
3879
|
-
*
|
3880
|
-
* @type {string}
|
3881
|
-
* @memberof UpdatePromotionRequest
|
3882
|
-
*/
|
3883
|
-
'reference'?: string;
|
3884
3814
|
}
|
3885
3815
|
|
3886
3816
|
|
@@ -4095,7 +4025,7 @@ export interface UserOrder {
|
|
4095
4025
|
* @type {string}
|
4096
4026
|
* @memberof UserOrder
|
4097
4027
|
*/
|
4098
|
-
'source'
|
4028
|
+
'source'?: string;
|
4099
4029
|
/**
|
4100
4030
|
*
|
4101
4031
|
* @type {string}
|
@@ -4104,10 +4034,10 @@ export interface UserOrder {
|
|
4104
4034
|
'userID'?: string;
|
4105
4035
|
/**
|
4106
4036
|
*
|
4107
|
-
* @type {
|
4037
|
+
* @type {OrderStatus}
|
4108
4038
|
* @memberof UserOrder
|
4109
4039
|
*/
|
4110
|
-
'
|
4040
|
+
'status'?: OrderStatus;
|
4111
4041
|
}
|
4112
4042
|
|
4113
4043
|
|
@@ -5078,6 +5008,44 @@ export const BulkApiAxiosParamCreator = function (configuration?: Configuration)
|
|
5078
5008
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5079
5009
|
localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
|
5080
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
|
+
|
5081
5049
|
return {
|
5082
5050
|
url: toPathString(localVarUrlObj),
|
5083
5051
|
options: localVarRequestOptions,
|
@@ -5126,6 +5094,17 @@ export const BulkApiFp = function(configuration?: Configuration) {
|
|
5126
5094
|
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
|
5127
5095
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5128
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
|
+
},
|
5129
5108
|
}
|
5130
5109
|
};
|
5131
5110
|
|
@@ -5166,6 +5145,16 @@ export const BulkApiFactory = function (configuration?: Configuration, basePath?
|
|
5166
5145
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
|
5167
5146
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
5168
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
|
+
},
|
5169
5158
|
};
|
5170
5159
|
};
|
5171
5160
|
|
@@ -5211,6 +5200,18 @@ export class BulkApi extends BaseAPI {
|
|
5211
5200
|
public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
|
5212
5201
|
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
5213
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
|
+
}
|
5214
5215
|
}
|
5215
5216
|
|
5216
5217
|
|
@@ -5957,13 +5958,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5957
5958
|
/**
|
5958
5959
|
* Create custom deal restrictions
|
5959
5960
|
* @summary Create custom deal restrictions
|
5960
|
-
* @param {
|
5961
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
5961
5962
|
* @param {*} [options] Override http request option.
|
5962
5963
|
* @throws {RequiredError}
|
5963
5964
|
*/
|
5964
|
-
createCustomDealRestrictions: async (
|
5965
|
-
// verify required parameter '
|
5966
|
-
assertParamExists('createCustomDealRestrictions', '
|
5965
|
+
createCustomDealRestrictions: async (customDealRestrictionRequest: CustomDealRestrictionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5966
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
5967
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest)
|
5967
5968
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
5968
5969
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5969
5970
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5987,87 +5988,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5987
5988
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5988
5989
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5989
5990
|
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};
|
5991
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration)
|
6071
5992
|
|
6072
5993
|
return {
|
6073
5994
|
url: toPathString(localVarUrlObj),
|
@@ -6121,28 +6042,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
6121
6042
|
/**
|
6122
6043
|
* Create custom deal restrictions
|
6123
6044
|
* @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
|
6045
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6141
6046
|
* @param {*} [options] Override http request option.
|
6142
6047
|
* @throws {RequiredError}
|
6143
6048
|
*/
|
6144
|
-
async
|
6145
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
6049
|
+
async createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6050
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
6146
6051
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6147
6052
|
},
|
6148
6053
|
/**
|
@@ -6168,27 +6073,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6168
6073
|
/**
|
6169
6074
|
* Create custom deal restrictions
|
6170
6075
|
* @summary Create custom deal restrictions
|
6171
|
-
* @param {
|
6076
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6172
6077
|
* @param {*} [options] Override http request option.
|
6173
6078
|
* @throws {RequiredError}
|
6174
6079
|
*/
|
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));
|
6080
|
+
createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void> {
|
6081
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
6192
6082
|
},
|
6193
6083
|
/**
|
6194
6084
|
* List custom deal restrictions
|
@@ -6212,30 +6102,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
6212
6102
|
/**
|
6213
6103
|
* Create custom deal restrictions
|
6214
6104
|
* @summary Create custom deal restrictions
|
6215
|
-
* @param {
|
6105
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6216
6106
|
* @param {*} [options] Override http request option.
|
6217
6107
|
* @throws {RequiredError}
|
6218
6108
|
* @memberof CustomDealsApi
|
6219
6109
|
*/
|
6220
|
-
public createCustomDealRestrictions(
|
6221
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(
|
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
|
6233
|
-
* @param {*} [options] Override http request option.
|
6234
|
-
* @throws {RequiredError}
|
6235
|
-
* @memberof CustomDealsApi
|
6236
|
-
*/
|
6237
|
-
public getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig) {
|
6238
|
-
return CustomDealsApiFp(this.configuration).getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, 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));
|
6239
6112
|
}
|
6240
6113
|
|
6241
6114
|
/**
|
@@ -7087,44 +6960,6 @@ export class NotificationApi extends BaseAPI {
|
|
7087
6960
|
*/
|
7088
6961
|
export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
|
7089
6962
|
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
6963
|
/**
|
7129
6964
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7130
6965
|
* @summary Create an order for a product
|
@@ -7250,12 +7085,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7250
7085
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7251
7086
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7252
7087
|
* @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
7088
|
* @param {*} [options] Override http request option.
|
7256
7089
|
* @throws {RequiredError}
|
7257
7090
|
*/
|
7258
|
-
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
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> => {
|
7259
7092
|
const localVarPath = `/admins/orders`;
|
7260
7093
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7261
7094
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7308,14 +7141,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7308
7141
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
7309
7142
|
}
|
7310
7143
|
|
7311
|
-
if (kind !== undefined) {
|
7312
|
-
localVarQueryParameter['kind'] = kind;
|
7313
|
-
}
|
7314
|
-
|
7315
|
-
if (source !== undefined) {
|
7316
|
-
localVarQueryParameter['source'] = source;
|
7317
|
-
}
|
7318
|
-
|
7319
7144
|
|
7320
7145
|
|
7321
7146
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -7410,17 +7235,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7410
7235
|
export const OrderApiFp = function(configuration?: Configuration) {
|
7411
7236
|
const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
|
7412
7237
|
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
7238
|
/**
|
7425
7239
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7426
7240
|
* @summary Create an order for a product
|
@@ -7465,13 +7279,11 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7465
7279
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7466
7280
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7467
7281
|
* @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
7282
|
* @param {*} [options] Override http request option.
|
7471
7283
|
* @throws {RequiredError}
|
7472
7284
|
*/
|
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,
|
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);
|
7475
7287
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7476
7288
|
},
|
7477
7289
|
/**
|
@@ -7501,16 +7313,6 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7501
7313
|
export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
7502
7314
|
const localVarFp = OrderApiFp(configuration)
|
7503
7315
|
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
7316
|
/**
|
7515
7317
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7516
7318
|
* @summary Create an order for a product
|
@@ -7552,13 +7354,11 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7552
7354
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7553
7355
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7554
7356
|
* @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
7357
|
* @param {*} [options] Override http request option.
|
7558
7358
|
* @throws {RequiredError}
|
7559
7359
|
*/
|
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,
|
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));
|
7562
7362
|
},
|
7563
7363
|
/**
|
7564
7364
|
* List existing orders
|
@@ -7586,18 +7386,6 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7586
7386
|
* @extends {BaseAPI}
|
7587
7387
|
*/
|
7588
7388
|
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
7389
|
/**
|
7602
7390
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7603
7391
|
* @summary Create an order for a product
|
@@ -7645,14 +7433,12 @@ export class OrderApi extends BaseAPI {
|
|
7645
7433
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7646
7434
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7647
7435
|
* @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
7436
|
* @param {*} [options] Override http request option.
|
7651
7437
|
* @throws {RequiredError}
|
7652
7438
|
* @memberof OrderApi
|
7653
7439
|
*/
|
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,
|
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));
|
7656
7442
|
}
|
7657
7443
|
|
7658
7444
|
/**
|