flexinet-api 0.0.1236-prerelease0 → 0.0.1264-prerelease0
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 +259 -114
- package/dist/api.d.ts +198 -100
- package/dist/api.js +113 -26
- package/dist/esm/api.d.ts +198 -100
- package/dist/esm/api.js +110 -23
- package/package.json +1 -1
package/dist/esm/api.d.ts
CHANGED
@@ -13,6 +13,25 @@ import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
14
14
|
import type { RequestArgs } from './base';
|
15
15
|
import { BaseAPI } from './base';
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* @export
|
19
|
+
* @interface AdminOrderCreationRequest
|
20
|
+
*/
|
21
|
+
export interface AdminOrderCreationRequest {
|
22
|
+
/**
|
23
|
+
*
|
24
|
+
* @type {Array<OrderItemCreationRequest>}
|
25
|
+
* @memberof AdminOrderCreationRequest
|
26
|
+
*/
|
27
|
+
'items': Array<OrderItemCreationRequest>;
|
28
|
+
/**
|
29
|
+
*
|
30
|
+
* @type {Beneficiary}
|
31
|
+
* @memberof AdminOrderCreationRequest
|
32
|
+
*/
|
33
|
+
'beneficiary'?: Beneficiary;
|
34
|
+
}
|
16
35
|
/**
|
17
36
|
*
|
18
37
|
* @export
|
@@ -211,7 +230,7 @@ export interface BalanceUpdateRequest {
|
|
211
230
|
* @type {TransactionKind}
|
212
231
|
* @memberof BalanceUpdateRequest
|
213
232
|
*/
|
214
|
-
'transactionKind'
|
233
|
+
'transactionKind': TransactionKind;
|
215
234
|
/**
|
216
235
|
*
|
217
236
|
* @type {TransactionCurrencyKind}
|
@@ -668,54 +687,14 @@ export declare const Condition: {
|
|
668
687
|
};
|
669
688
|
export type Condition = typeof Condition[keyof typeof Condition];
|
670
689
|
/**
|
671
|
-
*
|
690
|
+
* @type CustomDealRestriction
|
672
691
|
* @export
|
673
|
-
* @interface CustomDealRestriction
|
674
692
|
*/
|
675
|
-
export
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
*/
|
681
|
-
'tagKey': string;
|
682
|
-
/**
|
683
|
-
*
|
684
|
-
* @type {string}
|
685
|
-
* @memberof CustomDealRestriction
|
686
|
-
*/
|
687
|
-
'tagValue': string;
|
688
|
-
/**
|
689
|
-
*
|
690
|
-
* @type {number}
|
691
|
-
* @memberof CustomDealRestriction
|
692
|
-
*/
|
693
|
-
'minTurnoverPercent': number;
|
694
|
-
/**
|
695
|
-
*
|
696
|
-
* @type {CustomDealRestrictionPriority}
|
697
|
-
* @memberof CustomDealRestriction
|
698
|
-
*/
|
699
|
-
'priority': CustomDealRestrictionPriority;
|
700
|
-
/**
|
701
|
-
*
|
702
|
-
* @type {number}
|
703
|
-
* @memberof CustomDealRestriction
|
704
|
-
*/
|
705
|
-
'points': number;
|
706
|
-
/**
|
707
|
-
*
|
708
|
-
* @type {string}
|
709
|
-
* @memberof CustomDealRestriction
|
710
|
-
*/
|
711
|
-
'createdAt': string;
|
712
|
-
/**
|
713
|
-
*
|
714
|
-
* @type {string}
|
715
|
-
* @memberof CustomDealRestriction
|
716
|
-
*/
|
717
|
-
'updatedAt': string;
|
718
|
-
}
|
693
|
+
export type CustomDealRestriction = {
|
694
|
+
kind: 'minTurnover';
|
695
|
+
} & MinTurnoverRestriction | {
|
696
|
+
kind: 'required';
|
697
|
+
} & RequiredRestriction;
|
719
698
|
/**
|
720
699
|
*
|
721
700
|
* @export
|
@@ -727,43 +706,6 @@ export declare const CustomDealRestrictionPriority: {
|
|
727
706
|
readonly High: "high";
|
728
707
|
};
|
729
708
|
export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
|
730
|
-
/**
|
731
|
-
*
|
732
|
-
* @export
|
733
|
-
* @interface CustomDealRestrictionRequest
|
734
|
-
*/
|
735
|
-
export interface CustomDealRestrictionRequest {
|
736
|
-
/**
|
737
|
-
*
|
738
|
-
* @type {string}
|
739
|
-
* @memberof CustomDealRestrictionRequest
|
740
|
-
*/
|
741
|
-
'tagKey': string;
|
742
|
-
/**
|
743
|
-
*
|
744
|
-
* @type {string}
|
745
|
-
* @memberof CustomDealRestrictionRequest
|
746
|
-
*/
|
747
|
-
'tagValue': string;
|
748
|
-
/**
|
749
|
-
*
|
750
|
-
* @type {number}
|
751
|
-
* @memberof CustomDealRestrictionRequest
|
752
|
-
*/
|
753
|
-
'minTurnoverPercent': number;
|
754
|
-
/**
|
755
|
-
*
|
756
|
-
* @type {CustomDealRestrictionPriority}
|
757
|
-
* @memberof CustomDealRestrictionRequest
|
758
|
-
*/
|
759
|
-
'priority': CustomDealRestrictionPriority;
|
760
|
-
/**
|
761
|
-
*
|
762
|
-
* @type {number}
|
763
|
-
* @memberof CustomDealRestrictionRequest
|
764
|
-
*/
|
765
|
-
'points': number;
|
766
|
-
}
|
767
709
|
/**
|
768
710
|
*
|
769
711
|
* @export
|
@@ -972,6 +914,66 @@ export interface MetricsCollection {
|
|
972
914
|
*/
|
973
915
|
'total': Metrics;
|
974
916
|
}
|
917
|
+
/**
|
918
|
+
*
|
919
|
+
* @export
|
920
|
+
* @interface MinTurnoverRestriction
|
921
|
+
*/
|
922
|
+
export interface MinTurnoverRestriction {
|
923
|
+
/**
|
924
|
+
*
|
925
|
+
* @type {string}
|
926
|
+
* @memberof MinTurnoverRestriction
|
927
|
+
*/
|
928
|
+
'kind': MinTurnoverRestrictionKindEnum;
|
929
|
+
/**
|
930
|
+
*
|
931
|
+
* @type {Array<MinTurnoverRestrictionValue>}
|
932
|
+
* @memberof MinTurnoverRestriction
|
933
|
+
*/
|
934
|
+
'values': Array<MinTurnoverRestrictionValue>;
|
935
|
+
}
|
936
|
+
export declare const MinTurnoverRestrictionKindEnum: {
|
937
|
+
readonly MinTurnover: "minTurnover";
|
938
|
+
};
|
939
|
+
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
940
|
+
/**
|
941
|
+
*
|
942
|
+
* @export
|
943
|
+
* @interface MinTurnoverRestrictionValue
|
944
|
+
*/
|
945
|
+
export interface MinTurnoverRestrictionValue {
|
946
|
+
/**
|
947
|
+
*
|
948
|
+
* @type {string}
|
949
|
+
* @memberof MinTurnoverRestrictionValue
|
950
|
+
*/
|
951
|
+
'tagKey': string;
|
952
|
+
/**
|
953
|
+
*
|
954
|
+
* @type {string}
|
955
|
+
* @memberof MinTurnoverRestrictionValue
|
956
|
+
*/
|
957
|
+
'tagValue': string;
|
958
|
+
/**
|
959
|
+
*
|
960
|
+
* @type {number}
|
961
|
+
* @memberof MinTurnoverRestrictionValue
|
962
|
+
*/
|
963
|
+
'minTurnoverPercent': number;
|
964
|
+
/**
|
965
|
+
*
|
966
|
+
* @type {CustomDealRestrictionPriority}
|
967
|
+
* @memberof MinTurnoverRestrictionValue
|
968
|
+
*/
|
969
|
+
'priority': CustomDealRestrictionPriority;
|
970
|
+
/**
|
971
|
+
*
|
972
|
+
* @type {number}
|
973
|
+
* @memberof MinTurnoverRestrictionValue
|
974
|
+
*/
|
975
|
+
'points': number;
|
976
|
+
}
|
975
977
|
/**
|
976
978
|
*
|
977
979
|
* @export
|
@@ -1222,6 +1224,12 @@ export interface Order {
|
|
1222
1224
|
* @memberof Order
|
1223
1225
|
*/
|
1224
1226
|
'status'?: OrderStatus;
|
1227
|
+
/**
|
1228
|
+
*
|
1229
|
+
* @type {string}
|
1230
|
+
* @memberof Order
|
1231
|
+
*/
|
1232
|
+
'clientID'?: string;
|
1225
1233
|
}
|
1226
1234
|
/**
|
1227
1235
|
*
|
@@ -1269,6 +1277,7 @@ export interface OrderItemCreationRequest {
|
|
1269
1277
|
export declare const OrderKind: {
|
1270
1278
|
readonly Webshop: "webshop";
|
1271
1279
|
readonly Promotions: "promotions";
|
1280
|
+
readonly SalesBudget: "sales_budget";
|
1272
1281
|
};
|
1273
1282
|
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
1274
1283
|
/**
|
@@ -2158,6 +2167,12 @@ export interface Promotion {
|
|
2158
2167
|
* @memberof Promotion
|
2159
2168
|
*/
|
2160
2169
|
'status'?: PromotionStatus;
|
2170
|
+
/**
|
2171
|
+
*
|
2172
|
+
* @type {string}
|
2173
|
+
* @memberof Promotion
|
2174
|
+
*/
|
2175
|
+
'reference'?: string;
|
2161
2176
|
}
|
2162
2177
|
/**
|
2163
2178
|
* @type PromotionBeneficiariesResponse
|
@@ -2372,6 +2387,18 @@ export interface PromotionRequest {
|
|
2372
2387
|
* @memberof PromotionRequest
|
2373
2388
|
*/
|
2374
2389
|
'notificationConfig'?: PromotionNotificationConfig;
|
2390
|
+
/**
|
2391
|
+
*
|
2392
|
+
* @type {PromotionType}
|
2393
|
+
* @memberof PromotionRequest
|
2394
|
+
*/
|
2395
|
+
'type'?: PromotionType;
|
2396
|
+
/**
|
2397
|
+
*
|
2398
|
+
* @type {string}
|
2399
|
+
* @memberof PromotionRequest
|
2400
|
+
*/
|
2401
|
+
'reference'?: string;
|
2375
2402
|
}
|
2376
2403
|
/**
|
2377
2404
|
*
|
@@ -2546,6 +2573,29 @@ export declare const ReportTypesResponseTypesEnum: {
|
|
2546
2573
|
readonly PromotionExpanded: "promotion_expanded";
|
2547
2574
|
};
|
2548
2575
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2576
|
+
/**
|
2577
|
+
*
|
2578
|
+
* @export
|
2579
|
+
* @interface RequiredRestriction
|
2580
|
+
*/
|
2581
|
+
export interface RequiredRestriction {
|
2582
|
+
/**
|
2583
|
+
*
|
2584
|
+
* @type {string}
|
2585
|
+
* @memberof RequiredRestriction
|
2586
|
+
*/
|
2587
|
+
'kind': RequiredRestrictionKindEnum;
|
2588
|
+
/**
|
2589
|
+
*
|
2590
|
+
* @type {Array<string>}
|
2591
|
+
* @memberof RequiredRestriction
|
2592
|
+
*/
|
2593
|
+
'tagKeys': Array<string>;
|
2594
|
+
}
|
2595
|
+
export declare const RequiredRestrictionKindEnum: {
|
2596
|
+
readonly Required: "required";
|
2597
|
+
};
|
2598
|
+
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2549
2599
|
/**
|
2550
2600
|
* @type Rule
|
2551
2601
|
* @export
|
@@ -3470,13 +3520,14 @@ export declare const TransactionSource: {
|
|
3470
3520
|
readonly Manual: "manual";
|
3471
3521
|
readonly Expiry: "expiry";
|
3472
3522
|
readonly Transfer: "transfer";
|
3523
|
+
readonly SalesBudget: "sales_budget";
|
3473
3524
|
};
|
3474
3525
|
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
3475
3526
|
/**
|
3476
3527
|
* @type TransactionSourceReference
|
3477
3528
|
* @export
|
3478
3529
|
*/
|
3479
|
-
export type TransactionSourceReference = BalanceWithBeneficiaryRef |
|
3530
|
+
export type TransactionSourceReference = BalanceWithBeneficiaryRef | PeriodPromotion | User | UserOrder;
|
3480
3531
|
/**
|
3481
3532
|
*
|
3482
3533
|
* @export
|
@@ -3612,6 +3663,12 @@ export interface UpdatePromotionRequest {
|
|
3612
3663
|
* @memberof UpdatePromotionRequest
|
3613
3664
|
*/
|
3614
3665
|
'notificationConfig'?: PromotionNotificationConfig;
|
3666
|
+
/**
|
3667
|
+
*
|
3668
|
+
* @type {string}
|
3669
|
+
* @memberof UpdatePromotionRequest
|
3670
|
+
*/
|
3671
|
+
'reference'?: string;
|
3615
3672
|
}
|
3616
3673
|
/**
|
3617
3674
|
*
|
@@ -3827,7 +3884,7 @@ export interface UserOrder {
|
|
3827
3884
|
* @type {string}
|
3828
3885
|
* @memberof UserOrder
|
3829
3886
|
*/
|
3830
|
-
'source'
|
3887
|
+
'source': string;
|
3831
3888
|
/**
|
3832
3889
|
*
|
3833
3890
|
* @type {string}
|
@@ -3836,10 +3893,10 @@ export interface UserOrder {
|
|
3836
3893
|
'userID'?: string;
|
3837
3894
|
/**
|
3838
3895
|
*
|
3839
|
-
* @type {
|
3896
|
+
* @type {string}
|
3840
3897
|
* @memberof UserOrder
|
3841
3898
|
*/
|
3842
|
-
'
|
3899
|
+
'clientID': string;
|
3843
3900
|
}
|
3844
3901
|
/**
|
3845
3902
|
*
|
@@ -4893,11 +4950,11 @@ export declare const CustomDealsApiAxiosParamCreator: (configuration?: Configura
|
|
4893
4950
|
/**
|
4894
4951
|
* Create custom deal restrictions
|
4895
4952
|
* @summary Create custom deal restrictions
|
4896
|
-
* @param {
|
4953
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4897
4954
|
* @param {*} [options] Override http request option.
|
4898
4955
|
* @throws {RequiredError}
|
4899
4956
|
*/
|
4900
|
-
createCustomDealRestrictions: (
|
4957
|
+
createCustomDealRestrictions: (customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
4901
4958
|
/**
|
4902
4959
|
* List custom deal restrictions
|
4903
4960
|
* @summary List custom deal restrictions
|
@@ -4914,11 +4971,11 @@ export declare const CustomDealsApiFp: (configuration?: Configuration) => {
|
|
4914
4971
|
/**
|
4915
4972
|
* Create custom deal restrictions
|
4916
4973
|
* @summary Create custom deal restrictions
|
4917
|
-
* @param {
|
4974
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4918
4975
|
* @param {*} [options] Override http request option.
|
4919
4976
|
* @throws {RequiredError}
|
4920
4977
|
*/
|
4921
|
-
createCustomDealRestrictions(
|
4978
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
4922
4979
|
/**
|
4923
4980
|
* List custom deal restrictions
|
4924
4981
|
* @summary List custom deal restrictions
|
@@ -4935,11 +4992,11 @@ export declare const CustomDealsApiFactory: (configuration?: Configuration, base
|
|
4935
4992
|
/**
|
4936
4993
|
* Create custom deal restrictions
|
4937
4994
|
* @summary Create custom deal restrictions
|
4938
|
-
* @param {
|
4995
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4939
4996
|
* @param {*} [options] Override http request option.
|
4940
4997
|
* @throws {RequiredError}
|
4941
4998
|
*/
|
4942
|
-
createCustomDealRestrictions(
|
4999
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void>;
|
4943
5000
|
/**
|
4944
5001
|
* List custom deal restrictions
|
4945
5002
|
* @summary List custom deal restrictions
|
@@ -4958,12 +5015,12 @@ export declare class CustomDealsApi extends BaseAPI {
|
|
4958
5015
|
/**
|
4959
5016
|
* Create custom deal restrictions
|
4960
5017
|
* @summary Create custom deal restrictions
|
4961
|
-
* @param {
|
5018
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
4962
5019
|
* @param {*} [options] Override http request option.
|
4963
5020
|
* @throws {RequiredError}
|
4964
5021
|
* @memberof CustomDealsApi
|
4965
5022
|
*/
|
4966
|
-
createCustomDealRestrictions(
|
5023
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
4967
5024
|
/**
|
4968
5025
|
* List custom deal restrictions
|
4969
5026
|
* @summary List custom deal restrictions
|
@@ -5382,6 +5439,14 @@ export declare class NotificationApi extends BaseAPI {
|
|
5382
5439
|
* @export
|
5383
5440
|
*/
|
5384
5441
|
export declare const OrderApiAxiosParamCreator: (configuration?: Configuration) => {
|
5442
|
+
/**
|
5443
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5444
|
+
* @summary Create an order for a product
|
5445
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
5446
|
+
* @param {*} [options] Override http request option.
|
5447
|
+
* @throws {RequiredError}
|
5448
|
+
*/
|
5449
|
+
createAdminOrder: (adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5385
5450
|
/**
|
5386
5451
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5387
5452
|
* @summary Create an order for a product
|
@@ -5417,10 +5482,12 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
5417
5482
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
5418
5483
|
* @param {Array<string>} [userIDs] Filter by user ids
|
5419
5484
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
5485
|
+
* @param {OrderKind} [kind] Filter by kind
|
5486
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
5420
5487
|
* @param {*} [options] Override http request option.
|
5421
5488
|
* @throws {RequiredError}
|
5422
5489
|
*/
|
5423
|
-
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5490
|
+
listOrders: (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
5424
5491
|
/**
|
5425
5492
|
* List existing orders
|
5426
5493
|
* @summary List existing orders
|
@@ -5441,6 +5508,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
|
|
5441
5508
|
* @export
|
5442
5509
|
*/
|
5443
5510
|
export declare const OrderApiFp: (configuration?: Configuration) => {
|
5511
|
+
/**
|
5512
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5513
|
+
* @summary Create an order for a product
|
5514
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
5515
|
+
* @param {*} [options] Override http request option.
|
5516
|
+
* @throws {RequiredError}
|
5517
|
+
*/
|
5518
|
+
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>>;
|
5444
5519
|
/**
|
5445
5520
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5446
5521
|
* @summary Create an order for a product
|
@@ -5476,10 +5551,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5476
5551
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
5477
5552
|
* @param {Array<string>} [userIDs] Filter by user ids
|
5478
5553
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
5554
|
+
* @param {OrderKind} [kind] Filter by kind
|
5555
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
5479
5556
|
* @param {*} [options] Override http request option.
|
5480
5557
|
* @throws {RequiredError}
|
5481
5558
|
*/
|
5482
|
-
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>>;
|
5559
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>>;
|
5483
5560
|
/**
|
5484
5561
|
* List existing orders
|
5485
5562
|
* @summary List existing orders
|
@@ -5500,6 +5577,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5500
5577
|
* @export
|
5501
5578
|
*/
|
5502
5579
|
export declare const OrderApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
5580
|
+
/**
|
5581
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5582
|
+
* @summary Create an order for a product
|
5583
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
5584
|
+
* @param {*} [options] Override http request option.
|
5585
|
+
* @throws {RequiredError}
|
5586
|
+
*/
|
5587
|
+
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order>;
|
5503
5588
|
/**
|
5504
5589
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5505
5590
|
* @summary Create an order for a product
|
@@ -5535,10 +5620,12 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5535
5620
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
5536
5621
|
* @param {Array<string>} [userIDs] Filter by user ids
|
5537
5622
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
5623
|
+
* @param {OrderKind} [kind] Filter by kind
|
5624
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
5538
5625
|
* @param {*} [options] Override http request option.
|
5539
5626
|
* @throws {RequiredError}
|
5540
5627
|
*/
|
5541
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse>;
|
5628
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: any): AxiosPromise<OrderListResponse>;
|
5542
5629
|
/**
|
5543
5630
|
* List existing orders
|
5544
5631
|
* @summary List existing orders
|
@@ -5561,6 +5648,15 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5561
5648
|
* @extends {BaseAPI}
|
5562
5649
|
*/
|
5563
5650
|
export declare class OrderApi extends BaseAPI {
|
5651
|
+
/**
|
5652
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5653
|
+
* @summary Create an order for a product
|
5654
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
5655
|
+
* @param {*} [options] Override http request option.
|
5656
|
+
* @throws {RequiredError}
|
5657
|
+
* @memberof OrderApi
|
5658
|
+
*/
|
5659
|
+
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Order, any>>;
|
5564
5660
|
/**
|
5565
5661
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
5566
5662
|
* @summary Create an order for a product
|
@@ -5599,11 +5695,13 @@ export declare class OrderApi extends BaseAPI {
|
|
5599
5695
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
5600
5696
|
* @param {Array<string>} [userIDs] Filter by user ids
|
5601
5697
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
5698
|
+
* @param {OrderKind} [kind] Filter by kind
|
5699
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
5602
5700
|
* @param {*} [options] Override http request option.
|
5603
5701
|
* @throws {RequiredError}
|
5604
5702
|
* @memberof OrderApi
|
5605
5703
|
*/
|
5606
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
5704
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderListResponse, any>>;
|
5607
5705
|
/**
|
5608
5706
|
* List existing orders
|
5609
5707
|
* @summary List existing orders
|