flexinet-api 0.0.1318-prerelease0 → 0.0.1320
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 +415 -463
- package/dist/api.d.ts +279 -316
- package/dist/api.js +226 -245
- package/dist/esm/api.d.ts +279 -316
- package/dist/esm/api.js +223 -242
- 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;
|
753
|
+
/**
|
754
|
+
*
|
755
|
+
* @type {number}
|
756
|
+
* @memberof CustomDealRestriction
|
757
|
+
*/
|
758
|
+
'minTurnoverPercent': number;
|
759
|
+
/**
|
760
|
+
*
|
761
|
+
* @type {CustomDealRestrictionPriority}
|
762
|
+
* @memberof CustomDealRestriction
|
763
|
+
*/
|
764
|
+
'priority': CustomDealRestrictionPriority;
|
744
765
|
/**
|
745
766
|
*
|
746
767
|
* @type {number}
|
747
|
-
* @memberof
|
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
|
748
781
|
*/
|
749
|
-
'
|
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
|
@@ -855,7 +923,10 @@ export const Feature = {
|
|
855
923
|
Promotions: 'promotions',
|
856
924
|
SalesBudget: 'sales_budget',
|
857
925
|
CustomDeals: 'custom_deals',
|
858
|
-
UserInfo: 'user_info'
|
926
|
+
UserInfo: 'user_info',
|
927
|
+
ExternalInventory: 'external_inventory',
|
928
|
+
OrderEvents: 'order_events',
|
929
|
+
OrderStatusPolling: 'order_status_polling'
|
859
930
|
} as const;
|
860
931
|
|
861
932
|
export type Feature = typeof Feature[keyof typeof Feature];
|
@@ -900,9 +971,10 @@ export interface Item {
|
|
900
971
|
*/
|
901
972
|
|
902
973
|
export const Locale = {
|
903
|
-
EnUs: 'en-
|
904
|
-
RoRo: 'ro-
|
905
|
-
HuHu: 'hu-
|
974
|
+
EnUs: 'en-US',
|
975
|
+
RoRo: 'ro-RO',
|
976
|
+
HuHu: 'hu-HU',
|
977
|
+
DeDe: 'de-DE'
|
906
978
|
} as const;
|
907
979
|
|
908
980
|
export type Locale = typeof Locale[keyof typeof Locale];
|
@@ -934,10 +1006,10 @@ export interface Metrics {
|
|
934
1006
|
'participationCountPerProgress'?: { [key: string]: number; };
|
935
1007
|
/**
|
936
1008
|
*
|
937
|
-
* @type {
|
1009
|
+
* @type {string}
|
938
1010
|
* @memberof Metrics
|
939
1011
|
*/
|
940
|
-
'salesValue'?:
|
1012
|
+
'salesValue'?: string;
|
941
1013
|
}
|
942
1014
|
/**
|
943
1015
|
*
|
@@ -989,71 +1061,6 @@ export interface MetricsCollection {
|
|
989
1061
|
*/
|
990
1062
|
'total': Metrics;
|
991
1063
|
}
|
992
|
-
/**
|
993
|
-
*
|
994
|
-
* @export
|
995
|
-
* @interface MinTurnoverRestriction
|
996
|
-
*/
|
997
|
-
export interface MinTurnoverRestriction {
|
998
|
-
/**
|
999
|
-
*
|
1000
|
-
* @type {string}
|
1001
|
-
* @memberof MinTurnoverRestriction
|
1002
|
-
*/
|
1003
|
-
'kind': MinTurnoverRestrictionKindEnum;
|
1004
|
-
/**
|
1005
|
-
*
|
1006
|
-
* @type {Array<MinTurnoverRestrictionValue>}
|
1007
|
-
* @memberof MinTurnoverRestriction
|
1008
|
-
*/
|
1009
|
-
'values': Array<MinTurnoverRestrictionValue>;
|
1010
|
-
}
|
1011
|
-
|
1012
|
-
export const MinTurnoverRestrictionKindEnum = {
|
1013
|
-
MinTurnover: 'minTurnover'
|
1014
|
-
} as const;
|
1015
|
-
|
1016
|
-
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
1017
|
-
|
1018
|
-
/**
|
1019
|
-
*
|
1020
|
-
* @export
|
1021
|
-
* @interface MinTurnoverRestrictionValue
|
1022
|
-
*/
|
1023
|
-
export interface MinTurnoverRestrictionValue {
|
1024
|
-
/**
|
1025
|
-
*
|
1026
|
-
* @type {string}
|
1027
|
-
* @memberof MinTurnoverRestrictionValue
|
1028
|
-
*/
|
1029
|
-
'tagKey': string;
|
1030
|
-
/**
|
1031
|
-
*
|
1032
|
-
* @type {string}
|
1033
|
-
* @memberof MinTurnoverRestrictionValue
|
1034
|
-
*/
|
1035
|
-
'tagValue': string;
|
1036
|
-
/**
|
1037
|
-
*
|
1038
|
-
* @type {number}
|
1039
|
-
* @memberof MinTurnoverRestrictionValue
|
1040
|
-
*/
|
1041
|
-
'minTurnoverPercent': number;
|
1042
|
-
/**
|
1043
|
-
*
|
1044
|
-
* @type {CustomDealRestrictionPriority}
|
1045
|
-
* @memberof MinTurnoverRestrictionValue
|
1046
|
-
*/
|
1047
|
-
'priority': CustomDealRestrictionPriority;
|
1048
|
-
/**
|
1049
|
-
*
|
1050
|
-
* @type {number}
|
1051
|
-
* @memberof MinTurnoverRestrictionValue
|
1052
|
-
*/
|
1053
|
-
'points': number;
|
1054
|
-
}
|
1055
|
-
|
1056
|
-
|
1057
1064
|
/**
|
1058
1065
|
*
|
1059
1066
|
* @export
|
@@ -1321,12 +1328,6 @@ export interface Order {
|
|
1321
1328
|
* @memberof Order
|
1322
1329
|
*/
|
1323
1330
|
'status'?: OrderStatus;
|
1324
|
-
/**
|
1325
|
-
*
|
1326
|
-
* @type {string}
|
1327
|
-
* @memberof Order
|
1328
|
-
*/
|
1329
|
-
'clientID'?: string;
|
1330
1331
|
}
|
1331
1332
|
|
1332
1333
|
|
@@ -1376,8 +1377,7 @@ export interface OrderItemCreationRequest {
|
|
1376
1377
|
|
1377
1378
|
export const OrderKind = {
|
1378
1379
|
Webshop: 'webshop',
|
1379
|
-
Promotions: 'promotions'
|
1380
|
-
SalesBudget: 'sales_budget'
|
1380
|
+
Promotions: 'promotions'
|
1381
1381
|
} as const;
|
1382
1382
|
|
1383
1383
|
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
@@ -1504,7 +1504,15 @@ export interface Preferences {
|
|
1504
1504
|
* @memberof Preferences
|
1505
1505
|
*/
|
1506
1506
|
'promotionConfig': PromotionConfig;
|
1507
|
+
/**
|
1508
|
+
*
|
1509
|
+
* @type {Locale}
|
1510
|
+
* @memberof Preferences
|
1511
|
+
*/
|
1512
|
+
'locale'?: Locale;
|
1507
1513
|
}
|
1514
|
+
|
1515
|
+
|
1508
1516
|
/**
|
1509
1517
|
*
|
1510
1518
|
* @export
|
@@ -1517,12 +1525,6 @@ export interface PreferencesRequest {
|
|
1517
1525
|
* @memberof PreferencesRequest
|
1518
1526
|
*/
|
1519
1527
|
'preferredLocale'?: Locale;
|
1520
|
-
/**
|
1521
|
-
*
|
1522
|
-
* @type {Array<NotificationPreference>}
|
1523
|
-
* @memberof PreferencesRequest
|
1524
|
-
*/
|
1525
|
-
'notificationPreferences': Array<NotificationPreference>;
|
1526
1528
|
}
|
1527
1529
|
|
1528
1530
|
|
@@ -2043,6 +2045,12 @@ export interface Profile {
|
|
2043
2045
|
* @interface Progress
|
2044
2046
|
*/
|
2045
2047
|
export interface Progress {
|
2048
|
+
/**
|
2049
|
+
*
|
2050
|
+
* @type {string}
|
2051
|
+
* @memberof Progress
|
2052
|
+
*/
|
2053
|
+
'promotionId': string;
|
2046
2054
|
/**
|
2047
2055
|
*
|
2048
2056
|
* @type {string}
|
@@ -2051,10 +2059,10 @@ export interface Progress {
|
|
2051
2059
|
'id': string;
|
2052
2060
|
/**
|
2053
2061
|
*
|
2054
|
-
* @type {
|
2062
|
+
* @type {string}
|
2055
2063
|
* @memberof Progress
|
2056
2064
|
*/
|
2057
|
-
'value':
|
2065
|
+
'value': string;
|
2058
2066
|
/**
|
2059
2067
|
*
|
2060
2068
|
* @type {string}
|
@@ -2063,10 +2071,10 @@ export interface Progress {
|
|
2063
2071
|
'value_mu': string;
|
2064
2072
|
/**
|
2065
2073
|
*
|
2066
|
-
* @type {{ [key: string]:
|
2074
|
+
* @type {{ [key: string]: string; }}
|
2067
2075
|
* @memberof Progress
|
2068
2076
|
*/
|
2069
|
-
'value_detailed'?: { [key: string]:
|
2077
|
+
'value_detailed'?: { [key: string]: string; };
|
2070
2078
|
/**
|
2071
2079
|
*
|
2072
2080
|
* @type {ProgressState}
|
@@ -2313,12 +2321,6 @@ export interface Promotion {
|
|
2313
2321
|
* @memberof Promotion
|
2314
2322
|
*/
|
2315
2323
|
'status'?: PromotionStatus;
|
2316
|
-
/**
|
2317
|
-
*
|
2318
|
-
* @type {string}
|
2319
|
-
* @memberof Promotion
|
2320
|
-
*/
|
2321
|
-
'reference'?: string;
|
2322
2324
|
}
|
2323
2325
|
|
2324
2326
|
|
@@ -2532,18 +2534,6 @@ export interface PromotionRequest {
|
|
2532
2534
|
* @memberof PromotionRequest
|
2533
2535
|
*/
|
2534
2536
|
'notificationConfig'?: PromotionNotificationConfig;
|
2535
|
-
/**
|
2536
|
-
*
|
2537
|
-
* @type {PromotionType}
|
2538
|
-
* @memberof PromotionRequest
|
2539
|
-
*/
|
2540
|
-
'type'?: PromotionType;
|
2541
|
-
/**
|
2542
|
-
*
|
2543
|
-
* @type {string}
|
2544
|
-
* @memberof PromotionRequest
|
2545
|
-
*/
|
2546
|
-
'reference'?: string;
|
2547
2537
|
}
|
2548
2538
|
/**
|
2549
2539
|
*
|
@@ -2739,32 +2729,6 @@ export const ReportTypesResponseTypesEnum = {
|
|
2739
2729
|
|
2740
2730
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2741
2731
|
|
2742
|
-
/**
|
2743
|
-
*
|
2744
|
-
* @export
|
2745
|
-
* @interface RequiredRestriction
|
2746
|
-
*/
|
2747
|
-
export interface RequiredRestriction {
|
2748
|
-
/**
|
2749
|
-
*
|
2750
|
-
* @type {string}
|
2751
|
-
* @memberof RequiredRestriction
|
2752
|
-
*/
|
2753
|
-
'kind': RequiredRestrictionKindEnum;
|
2754
|
-
/**
|
2755
|
-
*
|
2756
|
-
* @type {Array<string>}
|
2757
|
-
* @memberof RequiredRestriction
|
2758
|
-
*/
|
2759
|
-
'tagKeys': Array<string>;
|
2760
|
-
}
|
2761
|
-
|
2762
|
-
export const RequiredRestrictionKindEnum = {
|
2763
|
-
Required: 'required'
|
2764
|
-
} as const;
|
2765
|
-
|
2766
|
-
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2767
|
-
|
2768
2732
|
/**
|
2769
2733
|
* @type Rule
|
2770
2734
|
* @export
|
@@ -3282,10 +3246,10 @@ export interface TagRuleValueNumber {
|
|
3282
3246
|
'kind': TagRuleKind;
|
3283
3247
|
/**
|
3284
3248
|
*
|
3285
|
-
* @type {
|
3249
|
+
* @type {string}
|
3286
3250
|
* @memberof TagRuleValueNumber
|
3287
3251
|
*/
|
3288
|
-
'value':
|
3252
|
+
'value': string;
|
3289
3253
|
}
|
3290
3254
|
|
3291
3255
|
|
@@ -3437,10 +3401,10 @@ export interface Target {
|
|
3437
3401
|
export interface TargetLevel {
|
3438
3402
|
/**
|
3439
3403
|
*
|
3440
|
-
* @type {
|
3404
|
+
* @type {string}
|
3441
3405
|
* @memberof TargetLevel
|
3442
3406
|
*/
|
3443
|
-
'value':
|
3407
|
+
'value': string;
|
3444
3408
|
/**
|
3445
3409
|
*
|
3446
3410
|
* @type {BonusValue}
|
@@ -3549,11 +3513,13 @@ export interface Tenant {
|
|
3549
3513
|
'azureEntraClientID': string;
|
3550
3514
|
/**
|
3551
3515
|
*
|
3552
|
-
* @type {
|
3516
|
+
* @type {Locale}
|
3553
3517
|
* @memberof Tenant
|
3554
3518
|
*/
|
3555
|
-
'locale':
|
3519
|
+
'locale': Locale;
|
3556
3520
|
}
|
3521
|
+
|
3522
|
+
|
3557
3523
|
/**
|
3558
3524
|
*
|
3559
3525
|
* @export
|
@@ -3596,34 +3562,13 @@ export interface Transaction {
|
|
3596
3562
|
* @memberof Transaction
|
3597
3563
|
*/
|
3598
3564
|
'createdAt': string;
|
3599
|
-
/**
|
3600
|
-
*
|
3601
|
-
* @type {TransactionCurrencyKind}
|
3602
|
-
* @memberof Transaction
|
3603
|
-
*/
|
3604
|
-
'currency': TransactionCurrencyKind;
|
3605
3565
|
}
|
3606
3566
|
|
3607
3567
|
|
3608
3568
|
/**
|
3609
3569
|
*
|
3610
3570
|
* @export
|
3611
|
-
* @
|
3612
|
-
*/
|
3613
|
-
|
3614
|
-
export const TransactionCurrencyKind = {
|
3615
|
-
Points: 'points',
|
3616
|
-
CustomDealBudget: 'customDealBudget',
|
3617
|
-
SalesBudget: 'salesBudget'
|
3618
|
-
} as const;
|
3619
|
-
|
3620
|
-
export type TransactionCurrencyKind = typeof TransactionCurrencyKind[keyof typeof TransactionCurrencyKind];
|
3621
|
-
|
3622
|
-
|
3623
|
-
/**
|
3624
|
-
*
|
3625
|
-
* @export
|
3626
|
-
* @interface TransactionEventDetails
|
3571
|
+
* @interface TransactionEventDetails
|
3627
3572
|
*/
|
3628
3573
|
export interface TransactionEventDetails {
|
3629
3574
|
/**
|
@@ -3735,8 +3680,7 @@ export const TransactionSource = {
|
|
3735
3680
|
Promotion: 'promotion',
|
3736
3681
|
Manual: 'manual',
|
3737
3682
|
Expiry: 'expiry',
|
3738
|
-
Transfer: 'transfer'
|
3739
|
-
SalesBudget: 'sales_budget'
|
3683
|
+
Transfer: 'transfer'
|
3740
3684
|
} as const;
|
3741
3685
|
|
3742
3686
|
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
@@ -3746,7 +3690,7 @@ export type TransactionSource = typeof TransactionSource[keyof typeof Transactio
|
|
3746
3690
|
* @type TransactionSourceReference
|
3747
3691
|
* @export
|
3748
3692
|
*/
|
3749
|
-
export type TransactionSourceReference = BalanceWithBeneficiaryRef |
|
3693
|
+
export type TransactionSourceReference = BalanceWithBeneficiaryRef | Order | PeriodPromotion | User;
|
3750
3694
|
|
3751
3695
|
/**
|
3752
3696
|
*
|
@@ -3881,12 +3825,6 @@ export interface UpdatePromotionRequest {
|
|
3881
3825
|
* @memberof UpdatePromotionRequest
|
3882
3826
|
*/
|
3883
3827
|
'notificationConfig'?: PromotionNotificationConfig;
|
3884
|
-
/**
|
3885
|
-
*
|
3886
|
-
* @type {string}
|
3887
|
-
* @memberof UpdatePromotionRequest
|
3888
|
-
*/
|
3889
|
-
'reference'?: string;
|
3890
3828
|
}
|
3891
3829
|
|
3892
3830
|
|
@@ -4101,7 +4039,7 @@ export interface UserOrder {
|
|
4101
4039
|
* @type {string}
|
4102
4040
|
* @memberof UserOrder
|
4103
4041
|
*/
|
4104
|
-
'source'
|
4042
|
+
'source'?: string;
|
4105
4043
|
/**
|
4106
4044
|
*
|
4107
4045
|
* @type {string}
|
@@ -4110,10 +4048,10 @@ export interface UserOrder {
|
|
4110
4048
|
'userID'?: string;
|
4111
4049
|
/**
|
4112
4050
|
*
|
4113
|
-
* @type {
|
4051
|
+
* @type {OrderStatus}
|
4114
4052
|
* @memberof UserOrder
|
4115
4053
|
*/
|
4116
|
-
'
|
4054
|
+
'status'?: OrderStatus;
|
4117
4055
|
}
|
4118
4056
|
|
4119
4057
|
|
@@ -4136,6 +4074,27 @@ export interface UserOrderListResponse {
|
|
4136
4074
|
*/
|
4137
4075
|
'nextToken'?: string;
|
4138
4076
|
}
|
4077
|
+
/**
|
4078
|
+
*
|
4079
|
+
* @export
|
4080
|
+
* @interface UserPreferencesRequest
|
4081
|
+
*/
|
4082
|
+
export interface UserPreferencesRequest {
|
4083
|
+
/**
|
4084
|
+
*
|
4085
|
+
* @type {Locale}
|
4086
|
+
* @memberof UserPreferencesRequest
|
4087
|
+
*/
|
4088
|
+
'preferredLocale'?: Locale;
|
4089
|
+
/**
|
4090
|
+
*
|
4091
|
+
* @type {Array<NotificationPreference>}
|
4092
|
+
* @memberof UserPreferencesRequest
|
4093
|
+
*/
|
4094
|
+
'notificationPreferences': Array<NotificationPreference>;
|
4095
|
+
}
|
4096
|
+
|
4097
|
+
|
4139
4098
|
/**
|
4140
4099
|
*
|
4141
4100
|
* @export
|
@@ -5084,6 +5043,44 @@ export const BulkApiAxiosParamCreator = function (configuration?: Configuration)
|
|
5084
5043
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5085
5044
|
localVarRequestOptions.data = serializeDataIfNeeded(tagsBulkCreationRequest, localVarRequestOptions, configuration)
|
5086
5045
|
|
5046
|
+
return {
|
5047
|
+
url: toPathString(localVarUrlObj),
|
5048
|
+
options: localVarRequestOptions,
|
5049
|
+
};
|
5050
|
+
},
|
5051
|
+
/**
|
5052
|
+
* Update multiple clients
|
5053
|
+
* @summary Update multiple clients
|
5054
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5055
|
+
* @param {*} [options] Override http request option.
|
5056
|
+
* @throws {RequiredError}
|
5057
|
+
*/
|
5058
|
+
bulkUpdateClients: async (clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5059
|
+
const localVarPath = `/admins/clients/bulk`;
|
5060
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5061
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
5062
|
+
let baseOptions;
|
5063
|
+
if (configuration) {
|
5064
|
+
baseOptions = configuration.baseOptions;
|
5065
|
+
}
|
5066
|
+
|
5067
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
5068
|
+
const localVarHeaderParameter = {} as any;
|
5069
|
+
const localVarQueryParameter = {} as any;
|
5070
|
+
|
5071
|
+
// authentication systemJWT required
|
5072
|
+
// http bearer authentication required
|
5073
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
5074
|
+
|
5075
|
+
|
5076
|
+
|
5077
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
5078
|
+
|
5079
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5080
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5081
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5082
|
+
localVarRequestOptions.data = serializeDataIfNeeded(clientsBulkUpdateRequest, localVarRequestOptions, configuration)
|
5083
|
+
|
5087
5084
|
return {
|
5088
5085
|
url: toPathString(localVarUrlObj),
|
5089
5086
|
options: localVarRequestOptions,
|
@@ -5132,6 +5129,17 @@ export const BulkApiFp = function(configuration?: Configuration) {
|
|
5132
5129
|
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
|
5133
5130
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5134
5131
|
},
|
5132
|
+
/**
|
5133
|
+
* Update multiple clients
|
5134
|
+
* @summary Update multiple clients
|
5135
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5136
|
+
* @param {*} [options] Override http request option.
|
5137
|
+
* @throws {RequiredError}
|
5138
|
+
*/
|
5139
|
+
async bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Client>>> {
|
5140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUpdateClients(clientsBulkUpdateRequest, options);
|
5141
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5142
|
+
},
|
5135
5143
|
}
|
5136
5144
|
};
|
5137
5145
|
|
@@ -5172,6 +5180,16 @@ export const BulkApiFactory = function (configuration?: Configuration, basePath?
|
|
5172
5180
|
bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: any): AxiosPromise<Array<TagDetailed>> {
|
5173
5181
|
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
5174
5182
|
},
|
5183
|
+
/**
|
5184
|
+
* Update multiple clients
|
5185
|
+
* @summary Update multiple clients
|
5186
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5187
|
+
* @param {*} [options] Override http request option.
|
5188
|
+
* @throws {RequiredError}
|
5189
|
+
*/
|
5190
|
+
bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: any): AxiosPromise<Array<Client>> {
|
5191
|
+
return localVarFp.bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(axios, basePath));
|
5192
|
+
},
|
5175
5193
|
};
|
5176
5194
|
};
|
5177
5195
|
|
@@ -5217,6 +5235,18 @@ export class BulkApi extends BaseAPI {
|
|
5217
5235
|
public bulkCreateTags(tagsBulkCreationRequest?: TagsBulkCreationRequest, options?: AxiosRequestConfig) {
|
5218
5236
|
return BulkApiFp(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
5219
5237
|
}
|
5238
|
+
|
5239
|
+
/**
|
5240
|
+
* Update multiple clients
|
5241
|
+
* @summary Update multiple clients
|
5242
|
+
* @param {ClientsBulkUpdateRequest} [clientsBulkUpdateRequest]
|
5243
|
+
* @param {*} [options] Override http request option.
|
5244
|
+
* @throws {RequiredError}
|
5245
|
+
* @memberof BulkApi
|
5246
|
+
*/
|
5247
|
+
public bulkUpdateClients(clientsBulkUpdateRequest?: ClientsBulkUpdateRequest, options?: AxiosRequestConfig) {
|
5248
|
+
return BulkApiFp(this.configuration).bulkUpdateClients(clientsBulkUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
5249
|
+
}
|
5220
5250
|
}
|
5221
5251
|
|
5222
5252
|
|
@@ -5963,13 +5993,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5963
5993
|
/**
|
5964
5994
|
* Create custom deal restrictions
|
5965
5995
|
* @summary Create custom deal restrictions
|
5966
|
-
* @param {
|
5996
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
5967
5997
|
* @param {*} [options] Override http request option.
|
5968
5998
|
* @throws {RequiredError}
|
5969
5999
|
*/
|
5970
|
-
createCustomDealRestrictions: async (
|
5971
|
-
// verify required parameter '
|
5972
|
-
assertParamExists('createCustomDealRestrictions', '
|
6000
|
+
createCustomDealRestrictions: async (customDealRestrictionRequest: CustomDealRestrictionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6001
|
+
// verify required parameter 'customDealRestrictionRequest' is not null or undefined
|
6002
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestrictionRequest', customDealRestrictionRequest)
|
5973
6003
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
5974
6004
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5975
6005
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5993,87 +6023,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5993
6023
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5994
6024
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5995
6025
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5996
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
5997
|
-
|
5998
|
-
return {
|
5999
|
-
url: toPathString(localVarUrlObj),
|
6000
|
-
options: localVarRequestOptions,
|
6001
|
-
};
|
6002
|
-
},
|
6003
|
-
/**
|
6004
|
-
* Get custom deal min target value
|
6005
|
-
* @summary Get custom deal min target value
|
6006
|
-
* @param {string} startingAt start at
|
6007
|
-
* @param {string} endingAt end at
|
6008
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6009
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6010
|
-
* @param {string} tagKey tag key
|
6011
|
-
* @param {string} tagValue tag value
|
6012
|
-
* @param {*} [options] Override http request option.
|
6013
|
-
* @throws {RequiredError}
|
6014
|
-
*/
|
6015
|
-
getCustomDealMinTargetValue: async (startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6016
|
-
// verify required parameter 'startingAt' is not null or undefined
|
6017
|
-
assertParamExists('getCustomDealMinTargetValue', 'startingAt', startingAt)
|
6018
|
-
// verify required parameter 'endingAt' is not null or undefined
|
6019
|
-
assertParamExists('getCustomDealMinTargetValue', 'endingAt', endingAt)
|
6020
|
-
// verify required parameter 'beneficiaryKind' is not null or undefined
|
6021
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryKind', beneficiaryKind)
|
6022
|
-
// verify required parameter 'beneficiaryValues' is not null or undefined
|
6023
|
-
assertParamExists('getCustomDealMinTargetValue', 'beneficiaryValues', beneficiaryValues)
|
6024
|
-
// verify required parameter 'tagKey' is not null or undefined
|
6025
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagKey', tagKey)
|
6026
|
-
// verify required parameter 'tagValue' is not null or undefined
|
6027
|
-
assertParamExists('getCustomDealMinTargetValue', 'tagValue', tagValue)
|
6028
|
-
const localVarPath = `/admins/custom-deals/min-target-value`;
|
6029
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6030
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6031
|
-
let baseOptions;
|
6032
|
-
if (configuration) {
|
6033
|
-
baseOptions = configuration.baseOptions;
|
6034
|
-
}
|
6035
|
-
|
6036
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
6037
|
-
const localVarHeaderParameter = {} as any;
|
6038
|
-
const localVarQueryParameter = {} as any;
|
6039
|
-
|
6040
|
-
// authentication systemJWT required
|
6041
|
-
// http bearer authentication required
|
6042
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6043
|
-
|
6044
|
-
if (startingAt !== undefined) {
|
6045
|
-
localVarQueryParameter['startingAt'] = (startingAt as any instanceof Date) ?
|
6046
|
-
(startingAt as any).toISOString() :
|
6047
|
-
startingAt;
|
6048
|
-
}
|
6049
|
-
|
6050
|
-
if (endingAt !== undefined) {
|
6051
|
-
localVarQueryParameter['endingAt'] = (endingAt as any instanceof Date) ?
|
6052
|
-
(endingAt as any).toISOString() :
|
6053
|
-
endingAt;
|
6054
|
-
}
|
6055
|
-
|
6056
|
-
if (beneficiaryKind !== undefined) {
|
6057
|
-
localVarQueryParameter['beneficiaryKind'] = beneficiaryKind;
|
6058
|
-
}
|
6059
|
-
|
6060
|
-
if (beneficiaryValues) {
|
6061
|
-
localVarQueryParameter['beneficiaryValues'] = beneficiaryValues;
|
6062
|
-
}
|
6063
|
-
|
6064
|
-
if (tagKey !== undefined) {
|
6065
|
-
localVarQueryParameter['tagKey'] = tagKey;
|
6066
|
-
}
|
6067
|
-
|
6068
|
-
if (tagValue !== undefined) {
|
6069
|
-
localVarQueryParameter['tagValue'] = tagValue;
|
6070
|
-
}
|
6071
|
-
|
6072
|
-
|
6073
|
-
|
6074
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6075
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6076
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6026
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestrictionRequest, localVarRequestOptions, configuration)
|
6077
6027
|
|
6078
6028
|
return {
|
6079
6029
|
url: toPathString(localVarUrlObj),
|
@@ -6127,28 +6077,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
6127
6077
|
/**
|
6128
6078
|
* Create custom deal restrictions
|
6129
6079
|
* @summary Create custom deal restrictions
|
6130
|
-
* @param {
|
6080
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6131
6081
|
* @param {*} [options] Override http request option.
|
6132
6082
|
* @throws {RequiredError}
|
6133
6083
|
*/
|
6134
|
-
async createCustomDealRestrictions(
|
6135
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(
|
6136
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6137
|
-
},
|
6138
|
-
/**
|
6139
|
-
* Get custom deal min target value
|
6140
|
-
* @summary Get custom deal min target value
|
6141
|
-
* @param {string} startingAt start at
|
6142
|
-
* @param {string} endingAt end at
|
6143
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6144
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6145
|
-
* @param {string} tagKey tag key
|
6146
|
-
* @param {string} tagValue tag value
|
6147
|
-
* @param {*} [options] Override http request option.
|
6148
|
-
* @throws {RequiredError}
|
6149
|
-
*/
|
6150
|
-
async getCustomDealMinTargetValue(startingAt: string, endingAt: string, beneficiaryKind: BeneficiaryKind, beneficiaryValues: Array<string>, tagKey: string, tagValue: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CustomDealMinTargetValueResponse>> {
|
6151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomDealMinTargetValue(startingAt, endingAt, beneficiaryKind, beneficiaryValues, tagKey, tagValue, options);
|
6084
|
+
async createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6085
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestrictionRequest, options);
|
6152
6086
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6153
6087
|
},
|
6154
6088
|
/**
|
@@ -6174,27 +6108,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6174
6108
|
/**
|
6175
6109
|
* Create custom deal restrictions
|
6176
6110
|
* @summary Create custom deal restrictions
|
6177
|
-
* @param {
|
6178
|
-
* @param {*} [options] Override http request option.
|
6179
|
-
* @throws {RequiredError}
|
6180
|
-
*/
|
6181
|
-
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void> {
|
6182
|
-
return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
|
6183
|
-
},
|
6184
|
-
/**
|
6185
|
-
* Get custom deal min target value
|
6186
|
-
* @summary Get custom deal min target value
|
6187
|
-
* @param {string} startingAt start at
|
6188
|
-
* @param {string} endingAt end at
|
6189
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6190
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6191
|
-
* @param {string} tagKey tag key
|
6192
|
-
* @param {string} tagValue tag value
|
6111
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6193
6112
|
* @param {*} [options] Override http request option.
|
6194
6113
|
* @throws {RequiredError}
|
6195
6114
|
*/
|
6196
|
-
|
6197
|
-
return localVarFp.
|
6115
|
+
createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: any): AxiosPromise<void> {
|
6116
|
+
return localVarFp.createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(axios, basePath));
|
6198
6117
|
},
|
6199
6118
|
/**
|
6200
6119
|
* List custom deal restrictions
|
@@ -6218,30 +6137,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
6218
6137
|
/**
|
6219
6138
|
* Create custom deal restrictions
|
6220
6139
|
* @summary Create custom deal restrictions
|
6221
|
-
* @param {
|
6222
|
-
* @param {*} [options] Override http request option.
|
6223
|
-
* @throws {RequiredError}
|
6224
|
-
* @memberof CustomDealsApi
|
6225
|
-
*/
|
6226
|
-
public createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) {
|
6227
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
6228
|
-
}
|
6229
|
-
|
6230
|
-
/**
|
6231
|
-
* Get custom deal min target value
|
6232
|
-
* @summary Get custom deal min target value
|
6233
|
-
* @param {string} startingAt start at
|
6234
|
-
* @param {string} endingAt end at
|
6235
|
-
* @param {BeneficiaryKind} beneficiaryKind beneficiary kind
|
6236
|
-
* @param {Array<string>} beneficiaryValues beneficiary values
|
6237
|
-
* @param {string} tagKey tag key
|
6238
|
-
* @param {string} tagValue tag value
|
6140
|
+
* @param {CustomDealRestrictionRequest} customDealRestrictionRequest Custom deal restrictions
|
6239
6141
|
* @param {*} [options] Override http request option.
|
6240
6142
|
* @throws {RequiredError}
|
6241
6143
|
* @memberof CustomDealsApi
|
6242
6144
|
*/
|
6243
|
-
public
|
6244
|
-
return CustomDealsApiFp(this.configuration).
|
6145
|
+
public createCustomDealRestrictions(customDealRestrictionRequest: CustomDealRestrictionRequest, options?: AxiosRequestConfig) {
|
6146
|
+
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestrictionRequest, options).then((request) => request(this.axios, this.basePath));
|
6245
6147
|
}
|
6246
6148
|
|
6247
6149
|
/**
|
@@ -6707,6 +6609,40 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
6707
6609
|
* @throws {RequiredError}
|
6708
6610
|
*/
|
6709
6611
|
getPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6612
|
+
const localVarPath = `/admins/preferences`;
|
6613
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6614
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6615
|
+
let baseOptions;
|
6616
|
+
if (configuration) {
|
6617
|
+
baseOptions = configuration.baseOptions;
|
6618
|
+
}
|
6619
|
+
|
6620
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
6621
|
+
const localVarHeaderParameter = {} as any;
|
6622
|
+
const localVarQueryParameter = {} as any;
|
6623
|
+
|
6624
|
+
// authentication customerJWT required
|
6625
|
+
// http bearer authentication required
|
6626
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6627
|
+
|
6628
|
+
|
6629
|
+
|
6630
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6632
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6633
|
+
|
6634
|
+
return {
|
6635
|
+
url: toPathString(localVarUrlObj),
|
6636
|
+
options: localVarRequestOptions,
|
6637
|
+
};
|
6638
|
+
},
|
6639
|
+
/**
|
6640
|
+
* Get preferences for the authenticated user
|
6641
|
+
* @summary Get preferences
|
6642
|
+
* @param {*} [options] Override http request option.
|
6643
|
+
* @throws {RequiredError}
|
6644
|
+
*/
|
6645
|
+
getUserPreferences: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6710
6646
|
const localVarPath = `/users/preferences`;
|
6711
6647
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6712
6648
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -6826,7 +6762,7 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
6826
6762
|
updatePreferences: async (preferencesRequest: PreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6827
6763
|
// verify required parameter 'preferencesRequest' is not null or undefined
|
6828
6764
|
assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest)
|
6829
|
-
const localVarPath = `/
|
6765
|
+
const localVarPath = `/admins/preferences`;
|
6830
6766
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6831
6767
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6832
6768
|
let baseOptions;
|
@@ -6851,6 +6787,46 @@ export const NotificationApiAxiosParamCreator = function (configuration?: Config
|
|
6851
6787
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6852
6788
|
localVarRequestOptions.data = serializeDataIfNeeded(preferencesRequest, localVarRequestOptions, configuration)
|
6853
6789
|
|
6790
|
+
return {
|
6791
|
+
url: toPathString(localVarUrlObj),
|
6792
|
+
options: localVarRequestOptions,
|
6793
|
+
};
|
6794
|
+
},
|
6795
|
+
/**
|
6796
|
+
* Update preferences for the authenticated user
|
6797
|
+
* @summary Update preferences
|
6798
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
6799
|
+
* @param {*} [options] Override http request option.
|
6800
|
+
* @throws {RequiredError}
|
6801
|
+
*/
|
6802
|
+
updateUserPreferences: async (userPreferencesRequest: UserPreferencesRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6803
|
+
// verify required parameter 'userPreferencesRequest' is not null or undefined
|
6804
|
+
assertParamExists('updateUserPreferences', 'userPreferencesRequest', userPreferencesRequest)
|
6805
|
+
const localVarPath = `/users/preferences`;
|
6806
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6807
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6808
|
+
let baseOptions;
|
6809
|
+
if (configuration) {
|
6810
|
+
baseOptions = configuration.baseOptions;
|
6811
|
+
}
|
6812
|
+
|
6813
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
6814
|
+
const localVarHeaderParameter = {} as any;
|
6815
|
+
const localVarQueryParameter = {} as any;
|
6816
|
+
|
6817
|
+
// authentication customerJWT required
|
6818
|
+
// http bearer authentication required
|
6819
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6820
|
+
|
6821
|
+
|
6822
|
+
|
6823
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
6824
|
+
|
6825
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6827
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6828
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userPreferencesRequest, localVarRequestOptions, configuration)
|
6829
|
+
|
6854
6830
|
return {
|
6855
6831
|
url: toPathString(localVarUrlObj),
|
6856
6832
|
options: localVarRequestOptions,
|
@@ -6898,6 +6874,16 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
6898
6874
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferences(options);
|
6899
6875
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6900
6876
|
},
|
6877
|
+
/**
|
6878
|
+
* Get preferences for the authenticated user
|
6879
|
+
* @summary Get preferences
|
6880
|
+
* @param {*} [options] Override http request option.
|
6881
|
+
* @throws {RequiredError}
|
6882
|
+
*/
|
6883
|
+
async getUserPreferences(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Preferences>> {
|
6884
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPreferences(options);
|
6885
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6886
|
+
},
|
6901
6887
|
/**
|
6902
6888
|
* List paginated notifications
|
6903
6889
|
* @summary List notifications
|
@@ -6932,6 +6918,17 @@ export const NotificationApiFp = function(configuration?: Configuration) {
|
|
6932
6918
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
|
6933
6919
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6934
6920
|
},
|
6921
|
+
/**
|
6922
|
+
* Update preferences for the authenticated user
|
6923
|
+
* @summary Update preferences
|
6924
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
6925
|
+
* @param {*} [options] Override http request option.
|
6926
|
+
* @throws {RequiredError}
|
6927
|
+
*/
|
6928
|
+
async updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6929
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPreferences(userPreferencesRequest, options);
|
6930
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6931
|
+
},
|
6935
6932
|
}
|
6936
6933
|
};
|
6937
6934
|
|
@@ -6971,6 +6968,15 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
6971
6968
|
getPreferences(options?: any): AxiosPromise<Preferences> {
|
6972
6969
|
return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
|
6973
6970
|
},
|
6971
|
+
/**
|
6972
|
+
* Get preferences for the authenticated user
|
6973
|
+
* @summary Get preferences
|
6974
|
+
* @param {*} [options] Override http request option.
|
6975
|
+
* @throws {RequiredError}
|
6976
|
+
*/
|
6977
|
+
getUserPreferences(options?: any): AxiosPromise<Preferences> {
|
6978
|
+
return localVarFp.getUserPreferences(options).then((request) => request(axios, basePath));
|
6979
|
+
},
|
6974
6980
|
/**
|
6975
6981
|
* List paginated notifications
|
6976
6982
|
* @summary List notifications
|
@@ -7002,6 +7008,16 @@ export const NotificationApiFactory = function (configuration?: Configuration, b
|
|
7002
7008
|
updatePreferences(preferencesRequest: PreferencesRequest, options?: any): AxiosPromise<void> {
|
7003
7009
|
return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
|
7004
7010
|
},
|
7011
|
+
/**
|
7012
|
+
* Update preferences for the authenticated user
|
7013
|
+
* @summary Update preferences
|
7014
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
7015
|
+
* @param {*} [options] Override http request option.
|
7016
|
+
* @throws {RequiredError}
|
7017
|
+
*/
|
7018
|
+
updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: any): AxiosPromise<void> {
|
7019
|
+
return localVarFp.updateUserPreferences(userPreferencesRequest, options).then((request) => request(axios, basePath));
|
7020
|
+
},
|
7005
7021
|
};
|
7006
7022
|
};
|
7007
7023
|
|
@@ -7047,6 +7063,17 @@ export class NotificationApi extends BaseAPI {
|
|
7047
7063
|
return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
|
7048
7064
|
}
|
7049
7065
|
|
7066
|
+
/**
|
7067
|
+
* Get preferences for the authenticated user
|
7068
|
+
* @summary Get preferences
|
7069
|
+
* @param {*} [options] Override http request option.
|
7070
|
+
* @throws {RequiredError}
|
7071
|
+
* @memberof NotificationApi
|
7072
|
+
*/
|
7073
|
+
public getUserPreferences(options?: AxiosRequestConfig) {
|
7074
|
+
return NotificationApiFp(this.configuration).getUserPreferences(options).then((request) => request(this.axios, this.basePath));
|
7075
|
+
}
|
7076
|
+
|
7050
7077
|
/**
|
7051
7078
|
* List paginated notifications
|
7052
7079
|
* @summary List notifications
|
@@ -7083,6 +7110,18 @@ export class NotificationApi extends BaseAPI {
|
|
7083
7110
|
public updatePreferences(preferencesRequest: PreferencesRequest, options?: AxiosRequestConfig) {
|
7084
7111
|
return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
7085
7112
|
}
|
7113
|
+
|
7114
|
+
/**
|
7115
|
+
* Update preferences for the authenticated user
|
7116
|
+
* @summary Update preferences
|
7117
|
+
* @param {UserPreferencesRequest} userPreferencesRequest notification preferences
|
7118
|
+
* @param {*} [options] Override http request option.
|
7119
|
+
* @throws {RequiredError}
|
7120
|
+
* @memberof NotificationApi
|
7121
|
+
*/
|
7122
|
+
public updateUserPreferences(userPreferencesRequest: UserPreferencesRequest, options?: AxiosRequestConfig) {
|
7123
|
+
return NotificationApiFp(this.configuration).updateUserPreferences(userPreferencesRequest, options).then((request) => request(this.axios, this.basePath));
|
7124
|
+
}
|
7086
7125
|
}
|
7087
7126
|
|
7088
7127
|
|
@@ -7093,44 +7132,6 @@ export class NotificationApi extends BaseAPI {
|
|
7093
7132
|
*/
|
7094
7133
|
export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
|
7095
7134
|
return {
|
7096
|
-
/**
|
7097
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7098
|
-
* @summary Create an order for a product
|
7099
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7100
|
-
* @param {*} [options] Override http request option.
|
7101
|
-
* @throws {RequiredError}
|
7102
|
-
*/
|
7103
|
-
createAdminOrder: async (adminOrderCreationRequest?: AdminOrderCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7104
|
-
const localVarPath = `/admins/orders`;
|
7105
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7106
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
7107
|
-
let baseOptions;
|
7108
|
-
if (configuration) {
|
7109
|
-
baseOptions = configuration.baseOptions;
|
7110
|
-
}
|
7111
|
-
|
7112
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
7113
|
-
const localVarHeaderParameter = {} as any;
|
7114
|
-
const localVarQueryParameter = {} as any;
|
7115
|
-
|
7116
|
-
// authentication systemJWT required
|
7117
|
-
// http bearer authentication required
|
7118
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
7119
|
-
|
7120
|
-
|
7121
|
-
|
7122
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
7123
|
-
|
7124
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
7125
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
7126
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
7127
|
-
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration)
|
7128
|
-
|
7129
|
-
return {
|
7130
|
-
url: toPathString(localVarUrlObj),
|
7131
|
-
options: localVarRequestOptions,
|
7132
|
-
};
|
7133
|
-
},
|
7134
7135
|
/**
|
7135
7136
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7136
7137
|
* @summary Create an order for a product
|
@@ -7256,12 +7257,10 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7256
7257
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7257
7258
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7258
7259
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7259
|
-
* @param {OrderKind} [kind] Filter by kind
|
7260
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7261
7260
|
* @param {*} [options] Override http request option.
|
7262
7261
|
* @throws {RequiredError}
|
7263
7262
|
*/
|
7264
|
-
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7263
|
+
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> => {
|
7265
7264
|
const localVarPath = `/admins/orders`;
|
7266
7265
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7267
7266
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7314,14 +7313,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7314
7313
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
7315
7314
|
}
|
7316
7315
|
|
7317
|
-
if (kind !== undefined) {
|
7318
|
-
localVarQueryParameter['kind'] = kind;
|
7319
|
-
}
|
7320
|
-
|
7321
|
-
if (source !== undefined) {
|
7322
|
-
localVarQueryParameter['source'] = source;
|
7323
|
-
}
|
7324
|
-
|
7325
7316
|
|
7326
7317
|
|
7327
7318
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -7416,17 +7407,6 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7416
7407
|
export const OrderApiFp = function(configuration?: Configuration) {
|
7417
7408
|
const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
|
7418
7409
|
return {
|
7419
|
-
/**
|
7420
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7421
|
-
* @summary Create an order for a product
|
7422
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7423
|
-
* @param {*} [options] Override http request option.
|
7424
|
-
* @throws {RequiredError}
|
7425
|
-
*/
|
7426
|
-
async createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
|
7427
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
7428
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7429
|
-
},
|
7430
7410
|
/**
|
7431
7411
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7432
7412
|
* @summary Create an order for a product
|
@@ -7471,13 +7451,11 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7471
7451
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7472
7452
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7473
7453
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7474
|
-
* @param {OrderKind} [kind] Filter by kind
|
7475
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7476
7454
|
* @param {*} [options] Override http request option.
|
7477
7455
|
* @throws {RequiredError}
|
7478
7456
|
*/
|
7479
|
-
async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7480
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7457
|
+
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>> {
|
7458
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
7481
7459
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7482
7460
|
},
|
7483
7461
|
/**
|
@@ -7507,16 +7485,6 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7507
7485
|
export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
7508
7486
|
const localVarFp = OrderApiFp(configuration)
|
7509
7487
|
return {
|
7510
|
-
/**
|
7511
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7512
|
-
* @summary Create an order for a product
|
7513
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7514
|
-
* @param {*} [options] Override http request option.
|
7515
|
-
* @throws {RequiredError}
|
7516
|
-
*/
|
7517
|
-
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order> {
|
7518
|
-
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
7519
|
-
},
|
7520
7488
|
/**
|
7521
7489
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7522
7490
|
* @summary Create an order for a product
|
@@ -7558,13 +7526,11 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7558
7526
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7559
7527
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7560
7528
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7561
|
-
* @param {OrderKind} [kind] Filter by kind
|
7562
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7563
7529
|
* @param {*} [options] Override http request option.
|
7564
7530
|
* @throws {RequiredError}
|
7565
7531
|
*/
|
7566
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7567
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7532
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse> {
|
7533
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
7568
7534
|
},
|
7569
7535
|
/**
|
7570
7536
|
* List existing orders
|
@@ -7592,18 +7558,6 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7592
7558
|
* @extends {BaseAPI}
|
7593
7559
|
*/
|
7594
7560
|
export class OrderApi extends BaseAPI {
|
7595
|
-
/**
|
7596
|
-
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7597
|
-
* @summary Create an order for a product
|
7598
|
-
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7599
|
-
* @param {*} [options] Override http request option.
|
7600
|
-
* @throws {RequiredError}
|
7601
|
-
* @memberof OrderApi
|
7602
|
-
*/
|
7603
|
-
public createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) {
|
7604
|
-
return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
7605
|
-
}
|
7606
|
-
|
7607
7561
|
/**
|
7608
7562
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7609
7563
|
* @summary Create an order for a product
|
@@ -7651,14 +7605,12 @@ export class OrderApi extends BaseAPI {
|
|
7651
7605
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7652
7606
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7653
7607
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7654
|
-
* @param {OrderKind} [kind] Filter by kind
|
7655
|
-
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7656
7608
|
* @param {*} [options] Override http request option.
|
7657
7609
|
* @throws {RequiredError}
|
7658
7610
|
* @memberof OrderApi
|
7659
7611
|
*/
|
7660
|
-
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>,
|
7661
|
-
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs,
|
7612
|
+
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) {
|
7613
|
+
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
7662
7614
|
}
|
7663
7615
|
|
7664
7616
|
/**
|