flexinet-api 0.0.1231-prerelease0 → 0.0.1236-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 +198 -14
- package/dist/api.d.ts +193 -16
- package/dist/api.js +7 -2
- package/dist/esm/api.d.ts +193 -16
- package/dist/esm/api.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## flexinet-api@0.0.
|
1
|
+
## flexinet-api@0.0.1236-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.1236-prerelease0 --save
|
40
40
|
```
|
41
41
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
@@ -1280,10 +1280,10 @@ export interface Order {
|
|
1280
1280
|
'createdAt'?: string;
|
1281
1281
|
/**
|
1282
1282
|
*
|
1283
|
-
* @type {
|
1283
|
+
* @type {OrderKind}
|
1284
1284
|
* @memberof Order
|
1285
1285
|
*/
|
1286
|
-
'kind'
|
1286
|
+
'kind': OrderKind;
|
1287
1287
|
/**
|
1288
1288
|
*
|
1289
1289
|
* @type {string}
|
@@ -1304,12 +1304,6 @@ export interface Order {
|
|
1304
1304
|
'status'?: OrderStatus;
|
1305
1305
|
}
|
1306
1306
|
|
1307
|
-
export const OrderKindEnum = {
|
1308
|
-
Webshop: 'webshop',
|
1309
|
-
Promotions: 'promotions'
|
1310
|
-
} as const;
|
1311
|
-
|
1312
|
-
export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
|
1313
1307
|
|
1314
1308
|
/**
|
1315
1309
|
*
|
@@ -1349,6 +1343,20 @@ export interface OrderItemCreationRequest {
|
|
1349
1343
|
*/
|
1350
1344
|
'productId': string;
|
1351
1345
|
}
|
1346
|
+
/**
|
1347
|
+
*
|
1348
|
+
* @export
|
1349
|
+
* @enum {string}
|
1350
|
+
*/
|
1351
|
+
|
1352
|
+
export const OrderKind = {
|
1353
|
+
Webshop: 'webshop',
|
1354
|
+
Promotions: 'promotions'
|
1355
|
+
} as const;
|
1356
|
+
|
1357
|
+
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
1358
|
+
|
1359
|
+
|
1352
1360
|
/**
|
1353
1361
|
*
|
1354
1362
|
* @export
|
@@ -3931,6 +3939,25 @@ export interface UserBalance {
|
|
3931
3939
|
*/
|
3932
3940
|
export type UserDetails = { source: 'customer' } & CustomerUserDetails | { source: 'system' } & SystemUserDetails;
|
3933
3941
|
|
3942
|
+
/**
|
3943
|
+
*
|
3944
|
+
* @export
|
3945
|
+
* @interface UserItem
|
3946
|
+
*/
|
3947
|
+
export interface UserItem {
|
3948
|
+
/**
|
3949
|
+
*
|
3950
|
+
* @type {number}
|
3951
|
+
* @memberof UserItem
|
3952
|
+
*/
|
3953
|
+
'qty': number;
|
3954
|
+
/**
|
3955
|
+
*
|
3956
|
+
* @type {UserProduct}
|
3957
|
+
* @memberof UserItem
|
3958
|
+
*/
|
3959
|
+
'product': UserProduct;
|
3960
|
+
}
|
3934
3961
|
/**
|
3935
3962
|
*
|
3936
3963
|
* @export
|
@@ -3956,6 +3983,163 @@ export interface UserListResponse {
|
|
3956
3983
|
*/
|
3957
3984
|
'hasMore': boolean;
|
3958
3985
|
}
|
3986
|
+
/**
|
3987
|
+
*
|
3988
|
+
* @export
|
3989
|
+
* @interface UserOrder
|
3990
|
+
*/
|
3991
|
+
export interface UserOrder {
|
3992
|
+
/**
|
3993
|
+
*
|
3994
|
+
* @type {Balance}
|
3995
|
+
* @memberof UserOrder
|
3996
|
+
*/
|
3997
|
+
'balance'?: Balance;
|
3998
|
+
/**
|
3999
|
+
*
|
4000
|
+
* @type {Array<UserItem>}
|
4001
|
+
* @memberof UserOrder
|
4002
|
+
*/
|
4003
|
+
'items': Array<UserItem>;
|
4004
|
+
/**
|
4005
|
+
*
|
4006
|
+
* @type {string}
|
4007
|
+
* @memberof UserOrder
|
4008
|
+
*/
|
4009
|
+
'id': string;
|
4010
|
+
/**
|
4011
|
+
*
|
4012
|
+
* @type {string}
|
4013
|
+
* @memberof UserOrder
|
4014
|
+
*/
|
4015
|
+
'createdAt'?: string;
|
4016
|
+
/**
|
4017
|
+
*
|
4018
|
+
* @type {OrderKind}
|
4019
|
+
* @memberof UserOrder
|
4020
|
+
*/
|
4021
|
+
'kind': OrderKind;
|
4022
|
+
/**
|
4023
|
+
*
|
4024
|
+
* @type {string}
|
4025
|
+
* @memberof UserOrder
|
4026
|
+
*/
|
4027
|
+
'source'?: string;
|
4028
|
+
/**
|
4029
|
+
*
|
4030
|
+
* @type {string}
|
4031
|
+
* @memberof UserOrder
|
4032
|
+
*/
|
4033
|
+
'userID'?: string;
|
4034
|
+
/**
|
4035
|
+
*
|
4036
|
+
* @type {OrderStatus}
|
4037
|
+
* @memberof UserOrder
|
4038
|
+
*/
|
4039
|
+
'status'?: OrderStatus;
|
4040
|
+
}
|
4041
|
+
|
4042
|
+
|
4043
|
+
/**
|
4044
|
+
*
|
4045
|
+
* @export
|
4046
|
+
* @interface UserOrderListResponse
|
4047
|
+
*/
|
4048
|
+
export interface UserOrderListResponse {
|
4049
|
+
/**
|
4050
|
+
*
|
4051
|
+
* @type {Array<UserOrder>}
|
4052
|
+
* @memberof UserOrderListResponse
|
4053
|
+
*/
|
4054
|
+
'orders': Array<UserOrder>;
|
4055
|
+
/**
|
4056
|
+
* This is the pagination token
|
4057
|
+
* @type {string}
|
4058
|
+
* @memberof UserOrderListResponse
|
4059
|
+
*/
|
4060
|
+
'nextToken'?: string;
|
4061
|
+
}
|
4062
|
+
/**
|
4063
|
+
*
|
4064
|
+
* @export
|
4065
|
+
* @interface UserProduct
|
4066
|
+
*/
|
4067
|
+
export interface UserProduct {
|
4068
|
+
/**
|
4069
|
+
*
|
4070
|
+
* @type {string}
|
4071
|
+
* @memberof UserProduct
|
4072
|
+
*/
|
4073
|
+
'id': string;
|
4074
|
+
/**
|
4075
|
+
*
|
4076
|
+
* @type {string}
|
4077
|
+
* @memberof UserProduct
|
4078
|
+
*/
|
4079
|
+
'name': string;
|
4080
|
+
/**
|
4081
|
+
*
|
4082
|
+
* @type {string}
|
4083
|
+
* @memberof UserProduct
|
4084
|
+
*/
|
4085
|
+
'description': string;
|
4086
|
+
/**
|
4087
|
+
*
|
4088
|
+
* @type {number}
|
4089
|
+
* @memberof UserProduct
|
4090
|
+
*/
|
4091
|
+
'value': number;
|
4092
|
+
/**
|
4093
|
+
*
|
4094
|
+
* @type {ProductAvailability}
|
4095
|
+
* @memberof UserProduct
|
4096
|
+
*/
|
4097
|
+
'availability': ProductAvailability;
|
4098
|
+
/**
|
4099
|
+
*
|
4100
|
+
* @type {Array<string>}
|
4101
|
+
* @memberof UserProduct
|
4102
|
+
*/
|
4103
|
+
'media': Array<string>;
|
4104
|
+
/**
|
4105
|
+
*
|
4106
|
+
* @type {string}
|
4107
|
+
* @memberof UserProduct
|
4108
|
+
*/
|
4109
|
+
'productCode': string;
|
4110
|
+
/**
|
4111
|
+
*
|
4112
|
+
* @type {ProductKind}
|
4113
|
+
* @memberof UserProduct
|
4114
|
+
*/
|
4115
|
+
'kind': ProductKind;
|
4116
|
+
/**
|
4117
|
+
*
|
4118
|
+
* @type {string}
|
4119
|
+
* @memberof UserProduct
|
4120
|
+
*/
|
4121
|
+
'createdAt': string;
|
4122
|
+
/**
|
4123
|
+
*
|
4124
|
+
* @type {string}
|
4125
|
+
* @memberof UserProduct
|
4126
|
+
*/
|
4127
|
+
'updatedAt': string;
|
4128
|
+
/**
|
4129
|
+
*
|
4130
|
+
* @type {string}
|
4131
|
+
* @memberof UserProduct
|
4132
|
+
*/
|
4133
|
+
'category': string;
|
4134
|
+
/**
|
4135
|
+
*
|
4136
|
+
* @type {number}
|
4137
|
+
* @memberof UserProduct
|
4138
|
+
*/
|
4139
|
+
'quantity': number;
|
4140
|
+
}
|
4141
|
+
|
4142
|
+
|
3959
4143
|
/**
|
3960
4144
|
*
|
3961
4145
|
* @export
|
@@ -6986,7 +7170,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
6986
7170
|
* @param {*} [options] Override http request option.
|
6987
7171
|
* @throws {RequiredError}
|
6988
7172
|
*/
|
6989
|
-
async createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
7173
|
+
async createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>> {
|
6990
7174
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrder(orderCreationRequest, options);
|
6991
7175
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
6992
7176
|
},
|
@@ -7008,7 +7192,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7008
7192
|
* @param {*} [options] Override http request option.
|
7009
7193
|
* @throws {RequiredError}
|
7010
7194
|
*/
|
7011
|
-
async getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
7195
|
+
async getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>> {
|
7012
7196
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserOrder(id, options);
|
7013
7197
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7014
7198
|
},
|
@@ -7043,7 +7227,7 @@ export const OrderApiFp = function(configuration?: Configuration) {
|
|
7043
7227
|
* @param {*} [options] Override http request option.
|
7044
7228
|
* @throws {RequiredError}
|
7045
7229
|
*/
|
7046
|
-
async listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
7230
|
+
async listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrderListResponse>> {
|
7047
7231
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options);
|
7048
7232
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
7049
7233
|
},
|
@@ -7064,7 +7248,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7064
7248
|
* @param {*} [options] Override http request option.
|
7065
7249
|
* @throws {RequiredError}
|
7066
7250
|
*/
|
7067
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<
|
7251
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder> {
|
7068
7252
|
return localVarFp.createOrder(orderCreationRequest, options).then((request) => request(axios, basePath));
|
7069
7253
|
},
|
7070
7254
|
/**
|
@@ -7084,7 +7268,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7084
7268
|
* @param {*} [options] Override http request option.
|
7085
7269
|
* @throws {RequiredError}
|
7086
7270
|
*/
|
7087
|
-
getUserOrder(id: string, options?: any): AxiosPromise<
|
7271
|
+
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder> {
|
7088
7272
|
return localVarFp.getUserOrder(id, options).then((request) => request(axios, basePath));
|
7089
7273
|
},
|
7090
7274
|
/**
|
@@ -7117,7 +7301,7 @@ export const OrderApiFactory = function (configuration?: Configuration, basePath
|
|
7117
7301
|
* @param {*} [options] Override http request option.
|
7118
7302
|
* @throws {RequiredError}
|
7119
7303
|
*/
|
7120
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<
|
7304
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse> {
|
7121
7305
|
return localVarFp.listOrdersUser(paginationToken, search, productID, balanceIDs, createdAfter, createdBefore, userIDs, options).then((request) => request(axios, basePath));
|
7122
7306
|
},
|
7123
7307
|
};
|
package/dist/api.d.ts
CHANGED
@@ -1200,10 +1200,10 @@ export interface Order {
|
|
1200
1200
|
'createdAt'?: string;
|
1201
1201
|
/**
|
1202
1202
|
*
|
1203
|
-
* @type {
|
1203
|
+
* @type {OrderKind}
|
1204
1204
|
* @memberof Order
|
1205
1205
|
*/
|
1206
|
-
'kind'
|
1206
|
+
'kind': OrderKind;
|
1207
1207
|
/**
|
1208
1208
|
*
|
1209
1209
|
* @type {string}
|
@@ -1223,11 +1223,6 @@ export interface Order {
|
|
1223
1223
|
*/
|
1224
1224
|
'status'?: OrderStatus;
|
1225
1225
|
}
|
1226
|
-
export declare const OrderKindEnum: {
|
1227
|
-
readonly Webshop: "webshop";
|
1228
|
-
readonly Promotions: "promotions";
|
1229
|
-
};
|
1230
|
-
export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
|
1231
1226
|
/**
|
1232
1227
|
*
|
1233
1228
|
* @export
|
@@ -1266,6 +1261,16 @@ export interface OrderItemCreationRequest {
|
|
1266
1261
|
*/
|
1267
1262
|
'productId': string;
|
1268
1263
|
}
|
1264
|
+
/**
|
1265
|
+
*
|
1266
|
+
* @export
|
1267
|
+
* @enum {string}
|
1268
|
+
*/
|
1269
|
+
export declare const OrderKind: {
|
1270
|
+
readonly Webshop: "webshop";
|
1271
|
+
readonly Promotions: "promotions";
|
1272
|
+
};
|
1273
|
+
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
1269
1274
|
/**
|
1270
1275
|
*
|
1271
1276
|
* @export
|
@@ -3737,6 +3742,25 @@ export type UserDetails = {
|
|
3737
3742
|
} & CustomerUserDetails | {
|
3738
3743
|
source: 'system';
|
3739
3744
|
} & SystemUserDetails;
|
3745
|
+
/**
|
3746
|
+
*
|
3747
|
+
* @export
|
3748
|
+
* @interface UserItem
|
3749
|
+
*/
|
3750
|
+
export interface UserItem {
|
3751
|
+
/**
|
3752
|
+
*
|
3753
|
+
* @type {number}
|
3754
|
+
* @memberof UserItem
|
3755
|
+
*/
|
3756
|
+
'qty': number;
|
3757
|
+
/**
|
3758
|
+
*
|
3759
|
+
* @type {UserProduct}
|
3760
|
+
* @memberof UserItem
|
3761
|
+
*/
|
3762
|
+
'product': UserProduct;
|
3763
|
+
}
|
3740
3764
|
/**
|
3741
3765
|
*
|
3742
3766
|
* @export
|
@@ -3762,6 +3786,159 @@ export interface UserListResponse {
|
|
3762
3786
|
*/
|
3763
3787
|
'hasMore': boolean;
|
3764
3788
|
}
|
3789
|
+
/**
|
3790
|
+
*
|
3791
|
+
* @export
|
3792
|
+
* @interface UserOrder
|
3793
|
+
*/
|
3794
|
+
export interface UserOrder {
|
3795
|
+
/**
|
3796
|
+
*
|
3797
|
+
* @type {Balance}
|
3798
|
+
* @memberof UserOrder
|
3799
|
+
*/
|
3800
|
+
'balance'?: Balance;
|
3801
|
+
/**
|
3802
|
+
*
|
3803
|
+
* @type {Array<UserItem>}
|
3804
|
+
* @memberof UserOrder
|
3805
|
+
*/
|
3806
|
+
'items': Array<UserItem>;
|
3807
|
+
/**
|
3808
|
+
*
|
3809
|
+
* @type {string}
|
3810
|
+
* @memberof UserOrder
|
3811
|
+
*/
|
3812
|
+
'id': string;
|
3813
|
+
/**
|
3814
|
+
*
|
3815
|
+
* @type {string}
|
3816
|
+
* @memberof UserOrder
|
3817
|
+
*/
|
3818
|
+
'createdAt'?: string;
|
3819
|
+
/**
|
3820
|
+
*
|
3821
|
+
* @type {OrderKind}
|
3822
|
+
* @memberof UserOrder
|
3823
|
+
*/
|
3824
|
+
'kind': OrderKind;
|
3825
|
+
/**
|
3826
|
+
*
|
3827
|
+
* @type {string}
|
3828
|
+
* @memberof UserOrder
|
3829
|
+
*/
|
3830
|
+
'source'?: string;
|
3831
|
+
/**
|
3832
|
+
*
|
3833
|
+
* @type {string}
|
3834
|
+
* @memberof UserOrder
|
3835
|
+
*/
|
3836
|
+
'userID'?: string;
|
3837
|
+
/**
|
3838
|
+
*
|
3839
|
+
* @type {OrderStatus}
|
3840
|
+
* @memberof UserOrder
|
3841
|
+
*/
|
3842
|
+
'status'?: OrderStatus;
|
3843
|
+
}
|
3844
|
+
/**
|
3845
|
+
*
|
3846
|
+
* @export
|
3847
|
+
* @interface UserOrderListResponse
|
3848
|
+
*/
|
3849
|
+
export interface UserOrderListResponse {
|
3850
|
+
/**
|
3851
|
+
*
|
3852
|
+
* @type {Array<UserOrder>}
|
3853
|
+
* @memberof UserOrderListResponse
|
3854
|
+
*/
|
3855
|
+
'orders': Array<UserOrder>;
|
3856
|
+
/**
|
3857
|
+
* This is the pagination token
|
3858
|
+
* @type {string}
|
3859
|
+
* @memberof UserOrderListResponse
|
3860
|
+
*/
|
3861
|
+
'nextToken'?: string;
|
3862
|
+
}
|
3863
|
+
/**
|
3864
|
+
*
|
3865
|
+
* @export
|
3866
|
+
* @interface UserProduct
|
3867
|
+
*/
|
3868
|
+
export interface UserProduct {
|
3869
|
+
/**
|
3870
|
+
*
|
3871
|
+
* @type {string}
|
3872
|
+
* @memberof UserProduct
|
3873
|
+
*/
|
3874
|
+
'id': string;
|
3875
|
+
/**
|
3876
|
+
*
|
3877
|
+
* @type {string}
|
3878
|
+
* @memberof UserProduct
|
3879
|
+
*/
|
3880
|
+
'name': string;
|
3881
|
+
/**
|
3882
|
+
*
|
3883
|
+
* @type {string}
|
3884
|
+
* @memberof UserProduct
|
3885
|
+
*/
|
3886
|
+
'description': string;
|
3887
|
+
/**
|
3888
|
+
*
|
3889
|
+
* @type {number}
|
3890
|
+
* @memberof UserProduct
|
3891
|
+
*/
|
3892
|
+
'value': number;
|
3893
|
+
/**
|
3894
|
+
*
|
3895
|
+
* @type {ProductAvailability}
|
3896
|
+
* @memberof UserProduct
|
3897
|
+
*/
|
3898
|
+
'availability': ProductAvailability;
|
3899
|
+
/**
|
3900
|
+
*
|
3901
|
+
* @type {Array<string>}
|
3902
|
+
* @memberof UserProduct
|
3903
|
+
*/
|
3904
|
+
'media': Array<string>;
|
3905
|
+
/**
|
3906
|
+
*
|
3907
|
+
* @type {string}
|
3908
|
+
* @memberof UserProduct
|
3909
|
+
*/
|
3910
|
+
'productCode': string;
|
3911
|
+
/**
|
3912
|
+
*
|
3913
|
+
* @type {ProductKind}
|
3914
|
+
* @memberof UserProduct
|
3915
|
+
*/
|
3916
|
+
'kind': ProductKind;
|
3917
|
+
/**
|
3918
|
+
*
|
3919
|
+
* @type {string}
|
3920
|
+
* @memberof UserProduct
|
3921
|
+
*/
|
3922
|
+
'createdAt': string;
|
3923
|
+
/**
|
3924
|
+
*
|
3925
|
+
* @type {string}
|
3926
|
+
* @memberof UserProduct
|
3927
|
+
*/
|
3928
|
+
'updatedAt': string;
|
3929
|
+
/**
|
3930
|
+
*
|
3931
|
+
* @type {string}
|
3932
|
+
* @memberof UserProduct
|
3933
|
+
*/
|
3934
|
+
'category': string;
|
3935
|
+
/**
|
3936
|
+
*
|
3937
|
+
* @type {number}
|
3938
|
+
* @memberof UserProduct
|
3939
|
+
*/
|
3940
|
+
'quantity': number;
|
3941
|
+
}
|
3765
3942
|
/**
|
3766
3943
|
*
|
3767
3944
|
* @export
|
@@ -5271,7 +5448,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5271
5448
|
* @param {*} [options] Override http request option.
|
5272
5449
|
* @throws {RequiredError}
|
5273
5450
|
*/
|
5274
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5451
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
5275
5452
|
/**
|
5276
5453
|
* Get order details
|
5277
5454
|
* @summary Get order details
|
@@ -5287,7 +5464,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5287
5464
|
* @param {*} [options] Override http request option.
|
5288
5465
|
* @throws {RequiredError}
|
5289
5466
|
*/
|
5290
|
-
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5467
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
5291
5468
|
/**
|
5292
5469
|
* List existing orders
|
5293
5470
|
* @summary List existing orders
|
@@ -5316,7 +5493,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5316
5493
|
* @param {*} [options] Override http request option.
|
5317
5494
|
* @throws {RequiredError}
|
5318
5495
|
*/
|
5319
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5496
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrderListResponse>>;
|
5320
5497
|
};
|
5321
5498
|
/**
|
5322
5499
|
* OrderApi - factory interface
|
@@ -5330,7 +5507,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5330
5507
|
* @param {*} [options] Override http request option.
|
5331
5508
|
* @throws {RequiredError}
|
5332
5509
|
*/
|
5333
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<
|
5510
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder>;
|
5334
5511
|
/**
|
5335
5512
|
* Get order details
|
5336
5513
|
* @summary Get order details
|
@@ -5346,7 +5523,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5346
5523
|
* @param {*} [options] Override http request option.
|
5347
5524
|
* @throws {RequiredError}
|
5348
5525
|
*/
|
5349
|
-
getUserOrder(id: string, options?: any): AxiosPromise<
|
5526
|
+
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder>;
|
5350
5527
|
/**
|
5351
5528
|
* List existing orders
|
5352
5529
|
* @summary List existing orders
|
@@ -5375,7 +5552,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5375
5552
|
* @param {*} [options] Override http request option.
|
5376
5553
|
* @throws {RequiredError}
|
5377
5554
|
*/
|
5378
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<
|
5555
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse>;
|
5379
5556
|
};
|
5380
5557
|
/**
|
5381
5558
|
* OrderApi - object-oriented interface
|
@@ -5392,7 +5569,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5392
5569
|
* @throws {RequiredError}
|
5393
5570
|
* @memberof OrderApi
|
5394
5571
|
*/
|
5395
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5572
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
5396
5573
|
/**
|
5397
5574
|
* Get order details
|
5398
5575
|
* @summary Get order details
|
@@ -5410,7 +5587,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5410
5587
|
* @throws {RequiredError}
|
5411
5588
|
* @memberof OrderApi
|
5412
5589
|
*/
|
5413
|
-
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5590
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
5414
5591
|
/**
|
5415
5592
|
* List existing orders
|
5416
5593
|
* @summary List existing orders
|
@@ -5441,7 +5618,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5441
5618
|
* @throws {RequiredError}
|
5442
5619
|
* @memberof OrderApi
|
5443
5620
|
*/
|
5444
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5621
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrderListResponse, any>>;
|
5445
5622
|
}
|
5446
5623
|
/**
|
5447
5624
|
* ProductApi - axios parameter creator
|
package/dist/api.js
CHANGED
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
22
22
|
});
|
23
23
|
};
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TransactionCurrencyKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.
|
25
|
+
exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TransactionCurrencyKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.ReportTypesResponseTypesEnum = exports.Repetition = exports.PromotionType = exports.PromotionStatus = exports.PromotionSortByField = exports.ProgressStateAggregation = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderStatus = exports.OrderKind = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
26
26
|
exports.ReportApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = void 0;
|
27
27
|
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.ReportApi = exports.ReportApiFactory = exports.ReportApiFp = void 0;
|
28
28
|
const axios_1 = require("axios");
|
@@ -148,7 +148,12 @@ exports.NotificationStatus = {
|
|
148
148
|
Unread: 'unread',
|
149
149
|
Read: 'read'
|
150
150
|
};
|
151
|
-
|
151
|
+
/**
|
152
|
+
*
|
153
|
+
* @export
|
154
|
+
* @enum {string}
|
155
|
+
*/
|
156
|
+
exports.OrderKind = {
|
152
157
|
Webshop: 'webshop',
|
153
158
|
Promotions: 'promotions'
|
154
159
|
};
|
package/dist/esm/api.d.ts
CHANGED
@@ -1200,10 +1200,10 @@ export interface Order {
|
|
1200
1200
|
'createdAt'?: string;
|
1201
1201
|
/**
|
1202
1202
|
*
|
1203
|
-
* @type {
|
1203
|
+
* @type {OrderKind}
|
1204
1204
|
* @memberof Order
|
1205
1205
|
*/
|
1206
|
-
'kind'
|
1206
|
+
'kind': OrderKind;
|
1207
1207
|
/**
|
1208
1208
|
*
|
1209
1209
|
* @type {string}
|
@@ -1223,11 +1223,6 @@ export interface Order {
|
|
1223
1223
|
*/
|
1224
1224
|
'status'?: OrderStatus;
|
1225
1225
|
}
|
1226
|
-
export declare const OrderKindEnum: {
|
1227
|
-
readonly Webshop: "webshop";
|
1228
|
-
readonly Promotions: "promotions";
|
1229
|
-
};
|
1230
|
-
export type OrderKindEnum = typeof OrderKindEnum[keyof typeof OrderKindEnum];
|
1231
1226
|
/**
|
1232
1227
|
*
|
1233
1228
|
* @export
|
@@ -1266,6 +1261,16 @@ export interface OrderItemCreationRequest {
|
|
1266
1261
|
*/
|
1267
1262
|
'productId': string;
|
1268
1263
|
}
|
1264
|
+
/**
|
1265
|
+
*
|
1266
|
+
* @export
|
1267
|
+
* @enum {string}
|
1268
|
+
*/
|
1269
|
+
export declare const OrderKind: {
|
1270
|
+
readonly Webshop: "webshop";
|
1271
|
+
readonly Promotions: "promotions";
|
1272
|
+
};
|
1273
|
+
export type OrderKind = typeof OrderKind[keyof typeof OrderKind];
|
1269
1274
|
/**
|
1270
1275
|
*
|
1271
1276
|
* @export
|
@@ -3737,6 +3742,25 @@ export type UserDetails = {
|
|
3737
3742
|
} & CustomerUserDetails | {
|
3738
3743
|
source: 'system';
|
3739
3744
|
} & SystemUserDetails;
|
3745
|
+
/**
|
3746
|
+
*
|
3747
|
+
* @export
|
3748
|
+
* @interface UserItem
|
3749
|
+
*/
|
3750
|
+
export interface UserItem {
|
3751
|
+
/**
|
3752
|
+
*
|
3753
|
+
* @type {number}
|
3754
|
+
* @memberof UserItem
|
3755
|
+
*/
|
3756
|
+
'qty': number;
|
3757
|
+
/**
|
3758
|
+
*
|
3759
|
+
* @type {UserProduct}
|
3760
|
+
* @memberof UserItem
|
3761
|
+
*/
|
3762
|
+
'product': UserProduct;
|
3763
|
+
}
|
3740
3764
|
/**
|
3741
3765
|
*
|
3742
3766
|
* @export
|
@@ -3762,6 +3786,159 @@ export interface UserListResponse {
|
|
3762
3786
|
*/
|
3763
3787
|
'hasMore': boolean;
|
3764
3788
|
}
|
3789
|
+
/**
|
3790
|
+
*
|
3791
|
+
* @export
|
3792
|
+
* @interface UserOrder
|
3793
|
+
*/
|
3794
|
+
export interface UserOrder {
|
3795
|
+
/**
|
3796
|
+
*
|
3797
|
+
* @type {Balance}
|
3798
|
+
* @memberof UserOrder
|
3799
|
+
*/
|
3800
|
+
'balance'?: Balance;
|
3801
|
+
/**
|
3802
|
+
*
|
3803
|
+
* @type {Array<UserItem>}
|
3804
|
+
* @memberof UserOrder
|
3805
|
+
*/
|
3806
|
+
'items': Array<UserItem>;
|
3807
|
+
/**
|
3808
|
+
*
|
3809
|
+
* @type {string}
|
3810
|
+
* @memberof UserOrder
|
3811
|
+
*/
|
3812
|
+
'id': string;
|
3813
|
+
/**
|
3814
|
+
*
|
3815
|
+
* @type {string}
|
3816
|
+
* @memberof UserOrder
|
3817
|
+
*/
|
3818
|
+
'createdAt'?: string;
|
3819
|
+
/**
|
3820
|
+
*
|
3821
|
+
* @type {OrderKind}
|
3822
|
+
* @memberof UserOrder
|
3823
|
+
*/
|
3824
|
+
'kind': OrderKind;
|
3825
|
+
/**
|
3826
|
+
*
|
3827
|
+
* @type {string}
|
3828
|
+
* @memberof UserOrder
|
3829
|
+
*/
|
3830
|
+
'source'?: string;
|
3831
|
+
/**
|
3832
|
+
*
|
3833
|
+
* @type {string}
|
3834
|
+
* @memberof UserOrder
|
3835
|
+
*/
|
3836
|
+
'userID'?: string;
|
3837
|
+
/**
|
3838
|
+
*
|
3839
|
+
* @type {OrderStatus}
|
3840
|
+
* @memberof UserOrder
|
3841
|
+
*/
|
3842
|
+
'status'?: OrderStatus;
|
3843
|
+
}
|
3844
|
+
/**
|
3845
|
+
*
|
3846
|
+
* @export
|
3847
|
+
* @interface UserOrderListResponse
|
3848
|
+
*/
|
3849
|
+
export interface UserOrderListResponse {
|
3850
|
+
/**
|
3851
|
+
*
|
3852
|
+
* @type {Array<UserOrder>}
|
3853
|
+
* @memberof UserOrderListResponse
|
3854
|
+
*/
|
3855
|
+
'orders': Array<UserOrder>;
|
3856
|
+
/**
|
3857
|
+
* This is the pagination token
|
3858
|
+
* @type {string}
|
3859
|
+
* @memberof UserOrderListResponse
|
3860
|
+
*/
|
3861
|
+
'nextToken'?: string;
|
3862
|
+
}
|
3863
|
+
/**
|
3864
|
+
*
|
3865
|
+
* @export
|
3866
|
+
* @interface UserProduct
|
3867
|
+
*/
|
3868
|
+
export interface UserProduct {
|
3869
|
+
/**
|
3870
|
+
*
|
3871
|
+
* @type {string}
|
3872
|
+
* @memberof UserProduct
|
3873
|
+
*/
|
3874
|
+
'id': string;
|
3875
|
+
/**
|
3876
|
+
*
|
3877
|
+
* @type {string}
|
3878
|
+
* @memberof UserProduct
|
3879
|
+
*/
|
3880
|
+
'name': string;
|
3881
|
+
/**
|
3882
|
+
*
|
3883
|
+
* @type {string}
|
3884
|
+
* @memberof UserProduct
|
3885
|
+
*/
|
3886
|
+
'description': string;
|
3887
|
+
/**
|
3888
|
+
*
|
3889
|
+
* @type {number}
|
3890
|
+
* @memberof UserProduct
|
3891
|
+
*/
|
3892
|
+
'value': number;
|
3893
|
+
/**
|
3894
|
+
*
|
3895
|
+
* @type {ProductAvailability}
|
3896
|
+
* @memberof UserProduct
|
3897
|
+
*/
|
3898
|
+
'availability': ProductAvailability;
|
3899
|
+
/**
|
3900
|
+
*
|
3901
|
+
* @type {Array<string>}
|
3902
|
+
* @memberof UserProduct
|
3903
|
+
*/
|
3904
|
+
'media': Array<string>;
|
3905
|
+
/**
|
3906
|
+
*
|
3907
|
+
* @type {string}
|
3908
|
+
* @memberof UserProduct
|
3909
|
+
*/
|
3910
|
+
'productCode': string;
|
3911
|
+
/**
|
3912
|
+
*
|
3913
|
+
* @type {ProductKind}
|
3914
|
+
* @memberof UserProduct
|
3915
|
+
*/
|
3916
|
+
'kind': ProductKind;
|
3917
|
+
/**
|
3918
|
+
*
|
3919
|
+
* @type {string}
|
3920
|
+
* @memberof UserProduct
|
3921
|
+
*/
|
3922
|
+
'createdAt': string;
|
3923
|
+
/**
|
3924
|
+
*
|
3925
|
+
* @type {string}
|
3926
|
+
* @memberof UserProduct
|
3927
|
+
*/
|
3928
|
+
'updatedAt': string;
|
3929
|
+
/**
|
3930
|
+
*
|
3931
|
+
* @type {string}
|
3932
|
+
* @memberof UserProduct
|
3933
|
+
*/
|
3934
|
+
'category': string;
|
3935
|
+
/**
|
3936
|
+
*
|
3937
|
+
* @type {number}
|
3938
|
+
* @memberof UserProduct
|
3939
|
+
*/
|
3940
|
+
'quantity': number;
|
3941
|
+
}
|
3765
3942
|
/**
|
3766
3943
|
*
|
3767
3944
|
* @export
|
@@ -5271,7 +5448,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5271
5448
|
* @param {*} [options] Override http request option.
|
5272
5449
|
* @throws {RequiredError}
|
5273
5450
|
*/
|
5274
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5451
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
5275
5452
|
/**
|
5276
5453
|
* Get order details
|
5277
5454
|
* @summary Get order details
|
@@ -5287,7 +5464,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5287
5464
|
* @param {*} [options] Override http request option.
|
5288
5465
|
* @throws {RequiredError}
|
5289
5466
|
*/
|
5290
|
-
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5467
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrder>>;
|
5291
5468
|
/**
|
5292
5469
|
* List existing orders
|
5293
5470
|
* @summary List existing orders
|
@@ -5316,7 +5493,7 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
|
|
5316
5493
|
* @param {*} [options] Override http request option.
|
5317
5494
|
* @throws {RequiredError}
|
5318
5495
|
*/
|
5319
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
5496
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserOrderListResponse>>;
|
5320
5497
|
};
|
5321
5498
|
/**
|
5322
5499
|
* OrderApi - factory interface
|
@@ -5330,7 +5507,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5330
5507
|
* @param {*} [options] Override http request option.
|
5331
5508
|
* @throws {RequiredError}
|
5332
5509
|
*/
|
5333
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<
|
5510
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: any): AxiosPromise<UserOrder>;
|
5334
5511
|
/**
|
5335
5512
|
* Get order details
|
5336
5513
|
* @summary Get order details
|
@@ -5346,7 +5523,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5346
5523
|
* @param {*} [options] Override http request option.
|
5347
5524
|
* @throws {RequiredError}
|
5348
5525
|
*/
|
5349
|
-
getUserOrder(id: string, options?: any): AxiosPromise<
|
5526
|
+
getUserOrder(id: string, options?: any): AxiosPromise<UserOrder>;
|
5350
5527
|
/**
|
5351
5528
|
* List existing orders
|
5352
5529
|
* @summary List existing orders
|
@@ -5375,7 +5552,7 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
|
|
5375
5552
|
* @param {*} [options] Override http request option.
|
5376
5553
|
* @throws {RequiredError}
|
5377
5554
|
*/
|
5378
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<
|
5555
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: any): AxiosPromise<UserOrderListResponse>;
|
5379
5556
|
};
|
5380
5557
|
/**
|
5381
5558
|
* OrderApi - object-oriented interface
|
@@ -5392,7 +5569,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5392
5569
|
* @throws {RequiredError}
|
5393
5570
|
* @memberof OrderApi
|
5394
5571
|
*/
|
5395
|
-
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5572
|
+
createOrder(orderCreationRequest?: OrderCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
5396
5573
|
/**
|
5397
5574
|
* Get order details
|
5398
5575
|
* @summary Get order details
|
@@ -5410,7 +5587,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5410
5587
|
* @throws {RequiredError}
|
5411
5588
|
* @memberof OrderApi
|
5412
5589
|
*/
|
5413
|
-
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5590
|
+
getUserOrder(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrder, any>>;
|
5414
5591
|
/**
|
5415
5592
|
* List existing orders
|
5416
5593
|
* @summary List existing orders
|
@@ -5441,7 +5618,7 @@ export declare class OrderApi extends BaseAPI {
|
|
5441
5618
|
* @throws {RequiredError}
|
5442
5619
|
* @memberof OrderApi
|
5443
5620
|
*/
|
5444
|
-
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
5621
|
+
listOrdersUser(paginationToken?: string, search?: string, productID?: string, balanceIDs?: Array<string>, createdAfter?: string, createdBefore?: string, userIDs?: Array<string>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UserOrderListResponse, any>>;
|
5445
5622
|
}
|
5446
5623
|
/**
|
5447
5624
|
* ProductApi - axios parameter creator
|
package/dist/esm/api.js
CHANGED
@@ -143,7 +143,12 @@ export const NotificationStatus = {
|
|
143
143
|
Unread: 'unread',
|
144
144
|
Read: 'read'
|
145
145
|
};
|
146
|
-
|
146
|
+
/**
|
147
|
+
*
|
148
|
+
* @export
|
149
|
+
* @enum {string}
|
150
|
+
*/
|
151
|
+
export const OrderKind = {
|
147
152
|
Webshop: 'webshop',
|
148
153
|
Promotions: 'promotions'
|
149
154
|
};
|