@be-link/ecommerce-trade-service-node-sdk 0.0.42 → 0.0.44
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.
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { ENUM } from '../../..';
|
|
2
2
|
export declare namespace PosCoreService {
|
|
3
|
+
namespace Dto {
|
|
4
|
+
interface ICoupon {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
code: string;
|
|
8
|
+
quantity: number;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
3
11
|
namespace ByWeb {
|
|
4
12
|
namespace Request {
|
|
5
13
|
interface IShipOrder {
|
|
@@ -19,8 +27,6 @@ export declare namespace PosCoreService {
|
|
|
19
27
|
fileUrl: string;
|
|
20
28
|
}
|
|
21
29
|
interface IUpdateOrderAddress {
|
|
22
|
-
/** 用户ID */
|
|
23
|
-
userId: string;
|
|
24
30
|
/** 订单ID */
|
|
25
31
|
orderId: string;
|
|
26
32
|
/** 收货人姓名 */
|
|
@@ -89,11 +95,7 @@ export declare namespace PosCoreService {
|
|
|
89
95
|
phone: string;
|
|
90
96
|
};
|
|
91
97
|
/** 用户选择使用的优惠券的券码 */
|
|
92
|
-
couponInfos?:
|
|
93
|
-
id: string;
|
|
94
|
-
quantity: number;
|
|
95
|
-
name: string;
|
|
96
|
-
}[];
|
|
98
|
+
couponInfos?: Dto.ICoupon[];
|
|
97
99
|
/** 用户选择使用的积分数 */
|
|
98
100
|
pointNum?: number;
|
|
99
101
|
}
|
|
@@ -158,6 +158,7 @@ export declare namespace PosOrderQueryService {
|
|
|
158
158
|
createdAt: number;
|
|
159
159
|
payTime: number;
|
|
160
160
|
deliveryTime: number;
|
|
161
|
+
actualAmount: number;
|
|
161
162
|
source: ENUM.OrderSource;
|
|
162
163
|
platform: ENUM.OrderPlatform;
|
|
163
164
|
status: ENUM.OrderStatus;
|
|
@@ -209,11 +210,18 @@ export declare namespace PosOrderQueryService {
|
|
|
209
210
|
discountAmount: number;
|
|
210
211
|
actualAmount: number;
|
|
211
212
|
};
|
|
213
|
+
coupons: {
|
|
214
|
+
id: string;
|
|
215
|
+
code: string;
|
|
216
|
+
name: string;
|
|
217
|
+
discount: number;
|
|
218
|
+
}[];
|
|
212
219
|
verificationRecords: {
|
|
213
220
|
productId: string;
|
|
214
221
|
productName: string;
|
|
215
222
|
specName: string;
|
|
216
223
|
specCode: string;
|
|
224
|
+
quantity: number;
|
|
217
225
|
validStartTime: number;
|
|
218
226
|
validEndTime: number;
|
|
219
227
|
verificationTime?: number;
|
|
@@ -268,6 +276,8 @@ export declare namespace PosOrderQueryService {
|
|
|
268
276
|
pageIndex: number;
|
|
269
277
|
/** 每页数量 */
|
|
270
278
|
pageSize: number;
|
|
279
|
+
/** 是否查询退款订单 */
|
|
280
|
+
hasRefund?: boolean;
|
|
271
281
|
}
|
|
272
282
|
interface ICountOrderByStatus {
|
|
273
283
|
/** 用户ID */
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -94,7 +94,14 @@ export interface ITradeOrderPromotion {
|
|
|
94
94
|
type: string;
|
|
95
95
|
quantity: number;
|
|
96
96
|
discount: number;
|
|
97
|
-
snapshot:
|
|
97
|
+
snapshot: {
|
|
98
|
+
coupon?: {
|
|
99
|
+
id: string;
|
|
100
|
+
code: string;
|
|
101
|
+
name: string;
|
|
102
|
+
discount: number;
|
|
103
|
+
}[];
|
|
104
|
+
};
|
|
98
105
|
createdAt: number;
|
|
99
106
|
updatedAt: number;
|
|
100
107
|
}
|