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/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.1264-prerelease0
|
2
2
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
4
4
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
36
36
|
_published:_
|
37
37
|
|
38
38
|
```
|
39
|
-
npm install flexinet-api@0.0.
|
39
|
+
npm install flexinet-api@0.0.1264-prerelease0 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -23,6 +23,25 @@ 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
|
+
}
|
26
45
|
/**
|
27
46
|
*
|
28
47
|
* @export
|
@@ -238,7 +257,7 @@ export interface BalanceUpdateRequest {
|
|
238
257
|
* @type {TransactionKind}
|
239
258
|
* @memberof BalanceUpdateRequest
|
240
259
|
*/
|
241
|
-
'transactionKind'
|
260
|
+
'transactionKind': TransactionKind;
|
242
261
|
/**
|
243
262
|
*
|
244
263
|
* @type {TransactionCurrencyKind}
|
@@ -717,55 +736,10 @@ export type Condition = typeof Condition[keyof typeof Condition];
|
|
717
736
|
|
718
737
|
|
719
738
|
/**
|
720
|
-
*
|
739
|
+
* @type CustomDealRestriction
|
721
740
|
* @export
|
722
|
-
* @interface CustomDealRestriction
|
723
741
|
*/
|
724
|
-
export
|
725
|
-
/**
|
726
|
-
*
|
727
|
-
* @type {string}
|
728
|
-
* @memberof CustomDealRestriction
|
729
|
-
*/
|
730
|
-
'tagKey': string;
|
731
|
-
/**
|
732
|
-
*
|
733
|
-
* @type {string}
|
734
|
-
* @memberof CustomDealRestriction
|
735
|
-
*/
|
736
|
-
'tagValue': string;
|
737
|
-
/**
|
738
|
-
*
|
739
|
-
* @type {number}
|
740
|
-
* @memberof CustomDealRestriction
|
741
|
-
*/
|
742
|
-
'minTurnoverPercent': number;
|
743
|
-
/**
|
744
|
-
*
|
745
|
-
* @type {CustomDealRestrictionPriority}
|
746
|
-
* @memberof CustomDealRestriction
|
747
|
-
*/
|
748
|
-
'priority': CustomDealRestrictionPriority;
|
749
|
-
/**
|
750
|
-
*
|
751
|
-
* @type {number}
|
752
|
-
* @memberof CustomDealRestriction
|
753
|
-
*/
|
754
|
-
'points': number;
|
755
|
-
/**
|
756
|
-
*
|
757
|
-
* @type {string}
|
758
|
-
* @memberof CustomDealRestriction
|
759
|
-
*/
|
760
|
-
'createdAt': string;
|
761
|
-
/**
|
762
|
-
*
|
763
|
-
* @type {string}
|
764
|
-
* @memberof CustomDealRestriction
|
765
|
-
*/
|
766
|
-
'updatedAt': string;
|
767
|
-
}
|
768
|
-
|
742
|
+
export type CustomDealRestriction = { kind: 'minTurnover' } & MinTurnoverRestriction | { kind: 'required' } & RequiredRestriction;
|
769
743
|
|
770
744
|
/**
|
771
745
|
*
|
@@ -782,45 +756,6 @@ export const CustomDealRestrictionPriority = {
|
|
782
756
|
export type CustomDealRestrictionPriority = typeof CustomDealRestrictionPriority[keyof typeof CustomDealRestrictionPriority];
|
783
757
|
|
784
758
|
|
785
|
-
/**
|
786
|
-
*
|
787
|
-
* @export
|
788
|
-
* @interface CustomDealRestrictionRequest
|
789
|
-
*/
|
790
|
-
export interface CustomDealRestrictionRequest {
|
791
|
-
/**
|
792
|
-
*
|
793
|
-
* @type {string}
|
794
|
-
* @memberof CustomDealRestrictionRequest
|
795
|
-
*/
|
796
|
-
'tagKey': string;
|
797
|
-
/**
|
798
|
-
*
|
799
|
-
* @type {string}
|
800
|
-
* @memberof CustomDealRestrictionRequest
|
801
|
-
*/
|
802
|
-
'tagValue': string;
|
803
|
-
/**
|
804
|
-
*
|
805
|
-
* @type {number}
|
806
|
-
* @memberof CustomDealRestrictionRequest
|
807
|
-
*/
|
808
|
-
'minTurnoverPercent': number;
|
809
|
-
/**
|
810
|
-
*
|
811
|
-
* @type {CustomDealRestrictionPriority}
|
812
|
-
* @memberof CustomDealRestrictionRequest
|
813
|
-
*/
|
814
|
-
'priority': CustomDealRestrictionPriority;
|
815
|
-
/**
|
816
|
-
*
|
817
|
-
* @type {number}
|
818
|
-
* @memberof CustomDealRestrictionRequest
|
819
|
-
*/
|
820
|
-
'points': number;
|
821
|
-
}
|
822
|
-
|
823
|
-
|
824
759
|
/**
|
825
760
|
*
|
826
761
|
* @export
|
@@ -1035,6 +970,71 @@ export interface MetricsCollection {
|
|
1035
970
|
*/
|
1036
971
|
'total': Metrics;
|
1037
972
|
}
|
973
|
+
/**
|
974
|
+
*
|
975
|
+
* @export
|
976
|
+
* @interface MinTurnoverRestriction
|
977
|
+
*/
|
978
|
+
export interface MinTurnoverRestriction {
|
979
|
+
/**
|
980
|
+
*
|
981
|
+
* @type {string}
|
982
|
+
* @memberof MinTurnoverRestriction
|
983
|
+
*/
|
984
|
+
'kind': MinTurnoverRestrictionKindEnum;
|
985
|
+
/**
|
986
|
+
*
|
987
|
+
* @type {Array<MinTurnoverRestrictionValue>}
|
988
|
+
* @memberof MinTurnoverRestriction
|
989
|
+
*/
|
990
|
+
'values': Array<MinTurnoverRestrictionValue>;
|
991
|
+
}
|
992
|
+
|
993
|
+
export const MinTurnoverRestrictionKindEnum = {
|
994
|
+
MinTurnover: 'minTurnover'
|
995
|
+
} as const;
|
996
|
+
|
997
|
+
export type MinTurnoverRestrictionKindEnum = typeof MinTurnoverRestrictionKindEnum[keyof typeof MinTurnoverRestrictionKindEnum];
|
998
|
+
|
999
|
+
/**
|
1000
|
+
*
|
1001
|
+
* @export
|
1002
|
+
* @interface MinTurnoverRestrictionValue
|
1003
|
+
*/
|
1004
|
+
export interface MinTurnoverRestrictionValue {
|
1005
|
+
/**
|
1006
|
+
*
|
1007
|
+
* @type {string}
|
1008
|
+
* @memberof MinTurnoverRestrictionValue
|
1009
|
+
*/
|
1010
|
+
'tagKey': string;
|
1011
|
+
/**
|
1012
|
+
*
|
1013
|
+
* @type {string}
|
1014
|
+
* @memberof MinTurnoverRestrictionValue
|
1015
|
+
*/
|
1016
|
+
'tagValue': string;
|
1017
|
+
/**
|
1018
|
+
*
|
1019
|
+
* @type {number}
|
1020
|
+
* @memberof MinTurnoverRestrictionValue
|
1021
|
+
*/
|
1022
|
+
'minTurnoverPercent': number;
|
1023
|
+
/**
|
1024
|
+
*
|
1025
|
+
* @type {CustomDealRestrictionPriority}
|
1026
|
+
* @memberof MinTurnoverRestrictionValue
|
1027
|
+
*/
|
1028
|
+
'priority': CustomDealRestrictionPriority;
|
1029
|
+
/**
|
1030
|
+
*
|
1031
|
+
* @type {number}
|
1032
|
+
* @memberof MinTurnoverRestrictionValue
|
1033
|
+
*/
|
1034
|
+
'points': number;
|
1035
|
+
}
|
1036
|
+
|
1037
|
+
|
1038
1038
|
/**
|
1039
1039
|
*
|
1040
1040
|
* @export
|
@@ -1302,6 +1302,12 @@ export interface Order {
|
|
1302
1302
|
* @memberof Order
|
1303
1303
|
*/
|
1304
1304
|
'status'?: OrderStatus;
|
1305
|
+
/**
|
1306
|
+
*
|
1307
|
+
* @type {string}
|
1308
|
+
* @memberof Order
|
1309
|
+
*/
|
1310
|
+
'clientID'?: string;
|
1305
1311
|
}
|
1306
1312
|
|
1307
1313
|
|
@@ -1351,7 +1357,8 @@ export interface OrderItemCreationRequest {
|
|
1351
1357
|
|
1352
1358
|
export const OrderKind = {
|
1353
1359
|
Webshop: 'webshop',
|
1354
|
-
Promotions: 'promotions'
|
1360
|
+
Promotions: 'promotions',
|
1361
|
+
SalesBudget: 'sales_budget'
|
1355
1362
|
} as const;
|
1356
1363
|
|
1357
1364
|
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
@@ -2287,6 +2294,12 @@ export interface Promotion {
|
|
2287
2294
|
* @memberof Promotion
|
2288
2295
|
*/
|
2289
2296
|
'status'?: PromotionStatus;
|
2297
|
+
/**
|
2298
|
+
*
|
2299
|
+
* @type {string}
|
2300
|
+
* @memberof Promotion
|
2301
|
+
*/
|
2302
|
+
'reference'?: string;
|
2290
2303
|
}
|
2291
2304
|
|
2292
2305
|
|
@@ -2500,6 +2513,18 @@ export interface PromotionRequest {
|
|
2500
2513
|
* @memberof PromotionRequest
|
2501
2514
|
*/
|
2502
2515
|
'notificationConfig'?: PromotionNotificationConfig;
|
2516
|
+
/**
|
2517
|
+
*
|
2518
|
+
* @type {PromotionType}
|
2519
|
+
* @memberof PromotionRequest
|
2520
|
+
*/
|
2521
|
+
'type'?: PromotionType;
|
2522
|
+
/**
|
2523
|
+
*
|
2524
|
+
* @type {string}
|
2525
|
+
* @memberof PromotionRequest
|
2526
|
+
*/
|
2527
|
+
'reference'?: string;
|
2503
2528
|
}
|
2504
2529
|
/**
|
2505
2530
|
*
|
@@ -2695,6 +2720,32 @@ export const ReportTypesResponseTypesEnum = {
|
|
2695
2720
|
|
2696
2721
|
export type ReportTypesResponseTypesEnum = typeof ReportTypesResponseTypesEnum[keyof typeof ReportTypesResponseTypesEnum];
|
2697
2722
|
|
2723
|
+
/**
|
2724
|
+
*
|
2725
|
+
* @export
|
2726
|
+
* @interface RequiredRestriction
|
2727
|
+
*/
|
2728
|
+
export interface RequiredRestriction {
|
2729
|
+
/**
|
2730
|
+
*
|
2731
|
+
* @type {string}
|
2732
|
+
* @memberof RequiredRestriction
|
2733
|
+
*/
|
2734
|
+
'kind': RequiredRestrictionKindEnum;
|
2735
|
+
/**
|
2736
|
+
*
|
2737
|
+
* @type {Array<string>}
|
2738
|
+
* @memberof RequiredRestriction
|
2739
|
+
*/
|
2740
|
+
'tagKeys': Array<string>;
|
2741
|
+
}
|
2742
|
+
|
2743
|
+
export const RequiredRestrictionKindEnum = {
|
2744
|
+
Required: 'required'
|
2745
|
+
} as const;
|
2746
|
+
|
2747
|
+
export type RequiredRestrictionKindEnum = typeof RequiredRestrictionKindEnum[keyof typeof RequiredRestrictionKindEnum];
|
2748
|
+
|
2698
2749
|
/**
|
2699
2750
|
* @type Rule
|
2700
2751
|
* @export
|
@@ -3665,7 +3716,8 @@ export const TransactionSource = {
|
|
3665
3716
|
Promotion: 'promotion',
|
3666
3717
|
Manual: 'manual',
|
3667
3718
|
Expiry: 'expiry',
|
3668
|
-
Transfer: 'transfer'
|
3719
|
+
Transfer: 'transfer',
|
3720
|
+
SalesBudget: 'sales_budget'
|
3669
3721
|
} as const;
|
3670
3722
|
|
3671
3723
|
export type TransactionSource = typeof TransactionSource[keyof typeof TransactionSource];
|
@@ -3675,7 +3727,7 @@ export type TransactionSource = typeof TransactionSource[keyof typeof Transactio
|
|
3675
3727
|
* @type TransactionSourceReference
|
3676
3728
|
* @export
|
3677
3729
|
*/
|
3678
|
-
export type TransactionSourceReference = BalanceWithBeneficiaryRef |
|
3730
|
+
export type TransactionSourceReference = BalanceWithBeneficiaryRef | PeriodPromotion | User | UserOrder;
|
3679
3731
|
|
3680
3732
|
/**
|
3681
3733
|
*
|
@@ -3810,6 +3862,12 @@ export interface UpdatePromotionRequest {
|
|
3810
3862
|
* @memberof UpdatePromotionRequest
|
3811
3863
|
*/
|
3812
3864
|
'notificationConfig'?: PromotionNotificationConfig;
|
3865
|
+
/**
|
3866
|
+
*
|
3867
|
+
* @type {string}
|
3868
|
+
* @memberof UpdatePromotionRequest
|
3869
|
+
*/
|
3870
|
+
'reference'?: string;
|
3813
3871
|
}
|
3814
3872
|
|
3815
3873
|
|
@@ -4024,7 +4082,7 @@ export interface UserOrder {
|
|
4024
4082
|
* @type {string}
|
4025
4083
|
* @memberof UserOrder
|
4026
4084
|
*/
|
4027
|
-
'source'
|
4085
|
+
'source': string;
|
4028
4086
|
/**
|
4029
4087
|
*
|
4030
4088
|
* @type {string}
|
@@ -4033,10 +4091,10 @@ export interface UserOrder {
|
|
4033
4091
|
'userID'?: string;
|
4034
4092
|
/**
|
4035
4093
|
*
|
4036
|
-
* @type {
|
4094
|
+
* @type {string}
|
4037
4095
|
* @memberof UserOrder
|
4038
4096
|
*/
|
4039
|
-
'
|
4097
|
+
'clientID': string;
|
4040
4098
|
}
|
4041
4099
|
|
4042
4100
|
|
@@ -5886,13 +5944,13 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5886
5944
|
/**
|
5887
5945
|
* Create custom deal restrictions
|
5888
5946
|
* @summary Create custom deal restrictions
|
5889
|
-
* @param {
|
5947
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
5890
5948
|
* @param {*} [options] Override http request option.
|
5891
5949
|
* @throws {RequiredError}
|
5892
5950
|
*/
|
5893
|
-
createCustomDealRestrictions: async (
|
5894
|
-
// verify required parameter '
|
5895
|
-
assertParamExists('createCustomDealRestrictions', '
|
5951
|
+
createCustomDealRestrictions: async (customDealRestriction: CustomDealRestriction, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
5952
|
+
// verify required parameter 'customDealRestriction' is not null or undefined
|
5953
|
+
assertParamExists('createCustomDealRestrictions', 'customDealRestriction', customDealRestriction)
|
5896
5954
|
const localVarPath = `/admins/custom-deals/restrictions`;
|
5897
5955
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
5898
5956
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -5916,7 +5974,7 @@ export const CustomDealsApiAxiosParamCreator = function (configuration?: Configu
|
|
5916
5974
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
5917
5975
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
5918
5976
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
5919
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
5977
|
+
localVarRequestOptions.data = serializeDataIfNeeded(customDealRestriction, localVarRequestOptions, configuration)
|
5920
5978
|
|
5921
5979
|
return {
|
5922
5980
|
url: toPathString(localVarUrlObj),
|
@@ -5970,12 +6028,12 @@ export const CustomDealsApiFp = function(configuration?: Configuration) {
|
|
5970
6028
|
/**
|
5971
6029
|
* Create custom deal restrictions
|
5972
6030
|
* @summary Create custom deal restrictions
|
5973
|
-
* @param {
|
6031
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
5974
6032
|
* @param {*} [options] Override http request option.
|
5975
6033
|
* @throws {RequiredError}
|
5976
6034
|
*/
|
5977
|
-
async createCustomDealRestrictions(
|
5978
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(
|
6035
|
+
async createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
6036
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomDealRestrictions(customDealRestriction, options);
|
5979
6037
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
5980
6038
|
},
|
5981
6039
|
/**
|
@@ -6001,12 +6059,12 @@ export const CustomDealsApiFactory = function (configuration?: Configuration, ba
|
|
6001
6059
|
/**
|
6002
6060
|
* Create custom deal restrictions
|
6003
6061
|
* @summary Create custom deal restrictions
|
6004
|
-
* @param {
|
6062
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
6005
6063
|
* @param {*} [options] Override http request option.
|
6006
6064
|
* @throws {RequiredError}
|
6007
6065
|
*/
|
6008
|
-
createCustomDealRestrictions(
|
6009
|
-
return localVarFp.createCustomDealRestrictions(
|
6066
|
+
createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: any): AxiosPromise<void> {
|
6067
|
+
return localVarFp.createCustomDealRestrictions(customDealRestriction, options).then((request) => request(axios, basePath));
|
6010
6068
|
},
|
6011
6069
|
/**
|
6012
6070
|
* List custom deal restrictions
|
@@ -6030,13 +6088,13 @@ export class CustomDealsApi extends BaseAPI {
|
|
6030
6088
|
/**
|
6031
6089
|
* Create custom deal restrictions
|
6032
6090
|
* @summary Create custom deal restrictions
|
6033
|
-
* @param {
|
6091
|
+
* @param {CustomDealRestriction} customDealRestriction Custom deal restrictions
|
6034
6092
|
* @param {*} [options] Override http request option.
|
6035
6093
|
* @throws {RequiredError}
|
6036
6094
|
* @memberof CustomDealsApi
|
6037
6095
|
*/
|
6038
|
-
public createCustomDealRestrictions(
|
6039
|
-
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(
|
6096
|
+
public createCustomDealRestrictions(customDealRestriction: CustomDealRestriction, options?: AxiosRequestConfig) {
|
6097
|
+
return CustomDealsApiFp(this.configuration).createCustomDealRestrictions(customDealRestriction, options).then((request) => request(this.axios, this.basePath));
|
6040
6098
|
}
|
6041
6099
|
|
6042
6100
|
/**
|
@@ -6888,6 +6946,44 @@ export class NotificationApi extends BaseAPI {
|
|
6888
6946
|
*/
|
6889
6947
|
export const OrderApiAxiosParamCreator = function (configuration?: Configuration) {
|
6890
6948
|
return {
|
6949
|
+
/**
|
6950
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
6951
|
+
* @summary Create an order for a product
|
6952
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
6953
|
+
* @param {*} [options] Override http request option.
|
6954
|
+
* @throws {RequiredError}
|
6955
|
+
*/
|
6956
|
+
createAdminOrder: async (adminOrderCreationRequest?: AdminOrderCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
6957
|
+
const localVarPath = `/admins/orders`;
|
6958
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
6959
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
6960
|
+
let baseOptions;
|
6961
|
+
if (configuration) {
|
6962
|
+
baseOptions = configuration.baseOptions;
|
6963
|
+
}
|
6964
|
+
|
6965
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
6966
|
+
const localVarHeaderParameter = {} as any;
|
6967
|
+
const localVarQueryParameter = {} as any;
|
6968
|
+
|
6969
|
+
// authentication systemJWT required
|
6970
|
+
// http bearer authentication required
|
6971
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
6972
|
+
|
6973
|
+
|
6974
|
+
|
6975
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
6976
|
+
|
6977
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
6978
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
6979
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
6980
|
+
localVarRequestOptions.data = serializeDataIfNeeded(adminOrderCreationRequest, localVarRequestOptions, configuration)
|
6981
|
+
|
6982
|
+
return {
|
6983
|
+
url: toPathString(localVarUrlObj),
|
6984
|
+
options: localVarRequestOptions,
|
6985
|
+
};
|
6986
|
+
},
|
6891
6987
|
/**
|
6892
6988
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
6893
6989
|
* @summary Create an order for a product
|
@@ -7013,10 +7109,12 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7013
7109
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7014
7110
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7015
7111
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7112
|
+
* @param {OrderKind} [kind] Filter by kind
|
7113
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7016
7114
|
* @param {*} [options] Override http request option.
|
7017
7115
|
* @throws {RequiredError}
|
7018
7116
|
*/
|
7019
|
-
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> => {
|
7117
|
+
listOrders: async (paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
7020
7118
|
const localVarPath = `/admins/orders`;
|
7021
7119
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
7022
7120
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
@@ -7069,6 +7167,14 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7069
7167
|
localVarQueryParameter['clientIDs'] = clientIDs;
|
7070
7168
|
}
|
7071
7169
|
|
7170
|
+
if (kind !== undefined) {
|
7171
|
+
localVarQueryParameter['kind'] = kind;
|
7172
|
+
}
|
7173
|
+
|
7174
|
+
if (source !== undefined) {
|
7175
|
+
localVarQueryParameter['source'] = source;
|
7176
|
+
}
|
7177
|
+
|
7072
7178
|
|
7073
7179
|
|
7074
7180
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
@@ -7163,6 +7269,17 @@ export const OrderApiAxiosParamCreator = function (configuration?: Configuration
|
|
7163
7269
|
export const OrderApiFp = function(configuration?: Configuration) {
|
7164
7270
|
const localVarAxiosParamCreator = OrderApiAxiosParamCreator(configuration)
|
7165
7271
|
return {
|
7272
|
+
/**
|
7273
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7274
|
+
* @summary Create an order for a product
|
7275
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7276
|
+
* @param {*} [options] Override http request option.
|
7277
|
+
* @throws {RequiredError}
|
7278
|
+
*/
|
7279
|
+
async createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Order>> {
|
7280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAdminOrder(adminOrderCreationRequest, options);
|
7281
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7282
|
+
},
|
7166
7283
|
/**
|
7167
7284
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7168
7285
|
* @summary Create an order for a product
|
@@ -7207,11 +7324,13 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7207
7324
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7208
7325
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7209
7326
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7327
|
+
* @param {OrderKind} [kind] Filter by kind
|
7328
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7210
7329
|
* @param {*} [options] Override http request option.
|
7211
7330
|
* @throws {RequiredError}
|
7212
7331
|
*/
|
7213
|
-
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>> {
|
7214
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options);
|
7332
|
+
async listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderListResponse>> {
|
7333
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options);
|
7215
7334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7216
7335
|
},
|
7217
7336
|
/**
|
@@ -7241,6 +7360,16 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7241
7360
|
export const OrderApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
7242
7361
|
const localVarFp = OrderApiFp(configuration)
|
7243
7362
|
return {
|
7363
|
+
/**
|
7364
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7365
|
+
* @summary Create an order for a product
|
7366
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7367
|
+
* @param {*} [options] Override http request option.
|
7368
|
+
* @throws {RequiredError}
|
7369
|
+
*/
|
7370
|
+
createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: any): AxiosPromise<Order> {
|
7371
|
+
return localVarFp.createAdminOrder(adminOrderCreationRequest, options).then((request) => request(axios, basePath));
|
7372
|
+
},
|
7244
7373
|
/**
|
7245
7374
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7246
7375
|
* @summary Create an order for a product
|
@@ -7282,11 +7411,13 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7282
7411
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7283
7412
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7284
7413
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7414
|
+
* @param {OrderKind} [kind] Filter by kind
|
7415
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7285
7416
|
* @param {*} [options] Override http request option.
|
7286
7417
|
* @throws {RequiredError}
|
7287
7418
|
*/
|
7288
|
-
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: any): AxiosPromise<OrderListResponse> {
|
7289
|
-
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(axios, basePath));
|
7419
|
+
listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: any): AxiosPromise<OrderListResponse> {
|
7420
|
+
return localVarFp.listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(axios, basePath));
|
7290
7421
|
},
|
7291
7422
|
/**
|
7292
7423
|
* List existing orders
|
@@ -7314,6 +7445,18 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7314
7445
|
* @extends {BaseAPI}
|
7315
7446
|
*/
|
7316
7447
|
export class OrderApi extends BaseAPI {
|
7448
|
+
/**
|
7449
|
+
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7450
|
+
* @summary Create an order for a product
|
7451
|
+
* @param {AdminOrderCreationRequest} [adminOrderCreationRequest]
|
7452
|
+
* @param {*} [options] Override http request option.
|
7453
|
+
* @throws {RequiredError}
|
7454
|
+
* @memberof OrderApi
|
7455
|
+
*/
|
7456
|
+
public createAdminOrder(adminOrderCreationRequest?: AdminOrderCreationRequest, options?: AxiosRequestConfig) {
|
7457
|
+
return OrderApiFp(this.configuration).createAdminOrder(adminOrderCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
7458
|
+
}
|
7459
|
+
|
7317
7460
|
/**
|
7318
7461
|
* Create a product order. If successful the value of the product will be deducted from the used balance.
|
7319
7462
|
* @summary Create an order for a product
|
@@ -7361,12 +7504,14 @@ export class OrderApi extends BaseAPI {
|
|
7361
7504
|
* @param {string} [createdBefore] Filter orders created before the specified date
|
7362
7505
|
* @param {Array<string>} [userIDs] Filter by user ids
|
7363
7506
|
* @param {Array<string>} [clientIDs] Filter by client ids
|
7507
|
+
* @param {OrderKind} [kind] Filter by kind
|
7508
|
+
* @param {string} [source] Filter by order source. Either promotion or user reference, depending on the kind.
|
7364
7509
|
* @param {*} [options] Override http request option.
|
7365
7510
|
* @throws {RequiredError}
|
7366
7511
|
* @memberof OrderApi
|
7367
7512
|
*/
|
7368
|
-
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, options?: AxiosRequestConfig) {
|
7369
|
-
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, options).then((request) => request(this.axios, this.basePath));
|
7513
|
+
public listOrders(paginationToken?: string, search?: string, productId?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, clientIDs?: Array<string>, kind?: OrderKind, source?: string, options?: AxiosRequestConfig) {
|
7514
|
+
return OrderApiFp(this.configuration).listOrders(paginationToken, search, productId, balanceIDs, createdAfter, createdBefore, userIDs, clientIDs, kind, source, options).then((request) => request(this.axios, this.basePath));
|
7370
7515
|
}
|
7371
7516
|
|
7372
7517
|
/**
|