@be-link/ecommerce-trade-service-node-sdk 0.0.43 → 0.0.45
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;
|
|
@@ -338,69 +346,67 @@ export declare namespace PosOrderQueryService {
|
|
|
338
346
|
applyRefund: ENUM.ApplyRefundStatus;
|
|
339
347
|
}
|
|
340
348
|
interface IOrderDetail {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
349
|
+
/** 订单基础信息 */
|
|
350
|
+
basic: {
|
|
351
|
+
/** 订单ID */
|
|
352
|
+
orderId: string;
|
|
353
|
+
/** 订单实付金额 */
|
|
354
|
+
actualAmount: number;
|
|
355
|
+
/** 订单状态 */
|
|
356
|
+
orderStatus: ENUM.OrderStatus;
|
|
357
|
+
/** 订单总金额 */
|
|
358
|
+
totalAmount: number;
|
|
359
|
+
/** 订单创建时间 */
|
|
360
|
+
createdAt: number;
|
|
361
|
+
/** 订单付款时间 */
|
|
362
|
+
payTime: number;
|
|
363
|
+
/** 收货人 */
|
|
364
|
+
receiverName: string;
|
|
365
|
+
/** 收货人手机号 */
|
|
366
|
+
receiverPhone: string;
|
|
367
|
+
};
|
|
368
|
+
/** 商品信息 */
|
|
369
|
+
product: {
|
|
370
|
+
/** 商品ID */
|
|
371
|
+
productId: string;
|
|
372
|
+
/** 商品名称 */
|
|
373
|
+
productName: string;
|
|
374
|
+
/** 商品规格 */
|
|
375
|
+
productSpec: string;
|
|
376
|
+
/** 商品份数 */
|
|
377
|
+
quantity: number;
|
|
378
|
+
/** 商品单价 */
|
|
379
|
+
unitPrice: number;
|
|
380
|
+
/** 商品提货方式 */
|
|
381
|
+
productPick: string;
|
|
382
|
+
};
|
|
348
383
|
/** 门店信息 */
|
|
349
384
|
store: {
|
|
350
|
-
/**
|
|
385
|
+
/** 下单门店名称 */
|
|
351
386
|
storeName: string;
|
|
352
387
|
/** 门店地址 */
|
|
353
388
|
storeAddr: string;
|
|
354
389
|
/** 门店联系电话 */
|
|
355
390
|
storePhone: string;
|
|
356
391
|
};
|
|
357
|
-
/**
|
|
392
|
+
/** 退款订单记录 */
|
|
393
|
+
refund: {
|
|
394
|
+
/** 退款订单状态 */
|
|
395
|
+
status: ENUM.ReverseOrderStatus;
|
|
396
|
+
/** 退款金额 */
|
|
397
|
+
amount: number;
|
|
398
|
+
}[];
|
|
399
|
+
/** 商品核销信息 */
|
|
358
400
|
verification: {
|
|
359
|
-
/**
|
|
401
|
+
/** 核销开始时间 */
|
|
360
402
|
validTimeStart: number;
|
|
403
|
+
/** 核销结束时间 */
|
|
361
404
|
validTimeEnd: number;
|
|
362
|
-
/**
|
|
405
|
+
/** 已核销数 */
|
|
363
406
|
verifiedNum: number;
|
|
364
|
-
/**
|
|
407
|
+
/** 未核销数 */
|
|
365
408
|
unVerifiedNum: number;
|
|
366
409
|
};
|
|
367
|
-
product: {
|
|
368
|
-
productId: string;
|
|
369
|
-
productName: string;
|
|
370
|
-
productSpec: string;
|
|
371
|
-
totalQuantity: number;
|
|
372
|
-
unitPrice: number;
|
|
373
|
-
productImg: string;
|
|
374
|
-
};
|
|
375
|
-
discounts: {
|
|
376
|
-
coupon: {
|
|
377
|
-
couponCode: string;
|
|
378
|
-
couponId: string;
|
|
379
|
-
couponName: string;
|
|
380
|
-
couponAmount: number;
|
|
381
|
-
} | null;
|
|
382
|
-
points: {
|
|
383
|
-
pointsNum: number;
|
|
384
|
-
amount: number;
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
receiver: {
|
|
388
|
-
receiverName: string;
|
|
389
|
-
receiverPhone: string;
|
|
390
|
-
receiverAddress: string;
|
|
391
|
-
};
|
|
392
|
-
refunds: {
|
|
393
|
-
status: ENUM.ReverseOrderStatus;
|
|
394
|
-
amount: number;
|
|
395
|
-
reason: string;
|
|
396
|
-
applyTime: number;
|
|
397
|
-
}[];
|
|
398
|
-
gifts: {
|
|
399
|
-
validStartTime: number;
|
|
400
|
-
validEndTime: number;
|
|
401
|
-
templateName: string;
|
|
402
|
-
quantity: number;
|
|
403
|
-
}[];
|
|
404
410
|
}
|
|
405
411
|
interface IGetLastOrderAddrByProductPick {
|
|
406
412
|
/** 收货人 */
|
|
@@ -7,6 +7,7 @@ declare class OrderQueryByUserService extends BaseService {
|
|
|
7
7
|
orderList(request: PosOrderQueryService.ByUser.Request.IOrderList): Promise<PosOrderQueryService.ByUser.Response.IOrderList>;
|
|
8
8
|
countOrderByStatus(request: PosOrderQueryService.ByUser.Request.ICountOrderByStatus): Promise<PosOrderQueryService.ByUser.Response.ICountOrderByStatus>;
|
|
9
9
|
getOrderApplyRefund(request: PosOrderQueryService.ByUser.Request.IGetOrderApplyRefund): Promise<PosOrderQueryService.ByUser.Response.IGetOrderApplyRefund>;
|
|
10
|
+
orderDetail(request: PosOrderQueryService.ByUser.Request.IOrderDetail): Promise<PosOrderQueryService.ByUser.Response.IOrderDetail>;
|
|
10
11
|
}
|
|
11
12
|
export declare const queryByUserService: OrderQueryByUserService;
|
|
12
13
|
export default queryByUserService;
|
|
@@ -36,6 +36,9 @@ let OrderQueryByUserService = class OrderQueryByUserService extends BaseService_
|
|
|
36
36
|
getOrderApplyRefund(request) {
|
|
37
37
|
return (0, http_1.callApi)(this.getApiUrl(this.getOrderApplyRefund), request);
|
|
38
38
|
}
|
|
39
|
+
orderDetail(request) {
|
|
40
|
+
return (0, http_1.callApi)(this.getApiUrl(this.orderDetail), request);
|
|
41
|
+
}
|
|
39
42
|
};
|
|
40
43
|
__decorate([
|
|
41
44
|
(0, tsoa_1.OperationId)('根据商品提货方式查询用户最近订单'),
|
|
@@ -62,6 +65,11 @@ __decorate([
|
|
|
62
65
|
(0, tsoa_1.Post)('get-order-apply-refund'),
|
|
63
66
|
__param(0, (0, tsoa_1.Body)())
|
|
64
67
|
], OrderQueryByUserService.prototype, "getOrderApplyRefund", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, tsoa_1.OperationId)('查询订单详情(ByUser)'),
|
|
70
|
+
(0, tsoa_1.Post)('order-detail'),
|
|
71
|
+
__param(0, (0, tsoa_1.Body)())
|
|
72
|
+
], OrderQueryByUserService.prototype, "orderDetail", null);
|
|
65
73
|
OrderQueryByUserService = __decorate([
|
|
66
74
|
(0, tsoa_1.Route)('pos/query/user'),
|
|
67
75
|
(0, tsoa_1.Tags)('PosOrderQuery')
|
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
|
}
|