@be-link/ecommerce-trade-service-node-sdk 0.1.123 → 0.1.124
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.
|
@@ -5,6 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
8
11
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
13
|
};
|
|
@@ -52,7 +55,8 @@ __decorate([
|
|
|
52
55
|
], OrderCoreByJobService.prototype, "autoCancelStuckPayingOrders", null);
|
|
53
56
|
__decorate([
|
|
54
57
|
(0, tsoa_1.OperationId)('刷新订单首次发货时间和商品分佣比例'),
|
|
55
|
-
(0, tsoa_1.Post)('refresh-order-delivery-time-and-commission-rate')
|
|
58
|
+
(0, tsoa_1.Post)('refresh-order-delivery-time-and-commission-rate'),
|
|
59
|
+
__param(0, (0, tsoa_1.Body)())
|
|
56
60
|
], OrderCoreByJobService.prototype, "refreshOrderDeliveryTimeAndCommissionRate", null);
|
|
57
61
|
OrderCoreByJobService = __decorate([
|
|
58
62
|
(0, tsoa_1.Route)('pos/core/job'),
|
|
@@ -3,6 +3,8 @@ import BaseService from '../../BaseService';
|
|
|
3
3
|
declare class OrderQueryByCrmService extends BaseService {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
5
|
getUserTotalActualAmount(request: PosOrderQueryService.ByCrm.Request.IGetUserTotalActualAmount): Promise<PosOrderQueryService.ByCrm.Response.IGetUserTotalActualAmount>;
|
|
6
|
+
getUserOrderSummary(request: PosOrderQueryService.ByCrm.Request.IGetUserOrderSummary): Promise<PosOrderQueryService.ByCrm.Response.IGetUserOrderSummary>;
|
|
7
|
+
queryUserOrderList(request: PosOrderQueryService.ByCrm.Request.IQueryUserOrderList): Promise<PosOrderQueryService.ByCrm.Response.IQueryUserOrderList>;
|
|
6
8
|
}
|
|
7
9
|
export declare const orderQueryByCrmService: OrderQueryByCrmService;
|
|
8
10
|
export default orderQueryByCrmService;
|
|
@@ -24,12 +24,28 @@ let OrderQueryByCrmService = class OrderQueryByCrmService extends BaseService_1.
|
|
|
24
24
|
getUserTotalActualAmount(request) {
|
|
25
25
|
return (0, http_1.callApi)(this.getApiUrl(this.getUserTotalActualAmount), request);
|
|
26
26
|
}
|
|
27
|
+
getUserOrderSummary(request) {
|
|
28
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getUserOrderSummary), request);
|
|
29
|
+
}
|
|
30
|
+
queryUserOrderList(request) {
|
|
31
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryUserOrderList), request);
|
|
32
|
+
}
|
|
27
33
|
};
|
|
28
34
|
__decorate([
|
|
29
35
|
(0, tsoa_1.OperationId)('获取用户累计支付金额'),
|
|
30
36
|
(0, tsoa_1.Post)('get-user-total-actual-amount'),
|
|
31
37
|
__param(0, (0, tsoa_1.Body)())
|
|
32
38
|
], OrderQueryByCrmService.prototype, "getUserTotalActualAmount", null);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, tsoa_1.OperationId)('查询用户订单统计信息'),
|
|
41
|
+
(0, tsoa_1.Post)('get-user-order-summary'),
|
|
42
|
+
__param(0, (0, tsoa_1.Body)())
|
|
43
|
+
], OrderQueryByCrmService.prototype, "getUserOrderSummary", null);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, tsoa_1.OperationId)('查询用户订单列表'),
|
|
46
|
+
(0, tsoa_1.Post)('query-user-order-list'),
|
|
47
|
+
__param(0, (0, tsoa_1.Body)())
|
|
48
|
+
], OrderQueryByCrmService.prototype, "queryUserOrderList", null);
|
|
33
49
|
OrderQueryByCrmService = __decorate([
|
|
34
50
|
(0, tsoa_1.Route)('pos/query/crm'),
|
|
35
51
|
(0, tsoa_1.Tags)('PosOrderQuery')
|
|
@@ -260,16 +260,96 @@ export declare namespace PosOrderQueryService {
|
|
|
260
260
|
/** 用户ID */
|
|
261
261
|
userId: string;
|
|
262
262
|
}
|
|
263
|
+
interface IGetUserOrderSummary {
|
|
264
|
+
/** 用户ID */
|
|
265
|
+
userId: string;
|
|
266
|
+
}
|
|
267
|
+
interface IQueryUserOrderList {
|
|
268
|
+
/** 用户ID */
|
|
269
|
+
userId: string;
|
|
270
|
+
/** 当前页(默认0) */
|
|
271
|
+
pageIndex?: number;
|
|
272
|
+
/** 页大小(默认30) */
|
|
273
|
+
pageSize?: number;
|
|
274
|
+
}
|
|
263
275
|
}
|
|
264
276
|
namespace Response {
|
|
265
277
|
interface IGetUserTotalActualAmount {
|
|
266
278
|
/** 用户累计支付金额(单位:分) */
|
|
267
279
|
totalAmount: number;
|
|
268
280
|
}
|
|
281
|
+
interface IGetUserOrderSummary {
|
|
282
|
+
/** 总订单数 */
|
|
283
|
+
totalOrder: number;
|
|
284
|
+
/** 总GMV(单位:分) */
|
|
285
|
+
totalGmv: number;
|
|
286
|
+
/** 总待核销订单数 */
|
|
287
|
+
totalPendingVerificationOrder: number;
|
|
288
|
+
}
|
|
289
|
+
interface IVerifiedProductDetail {
|
|
290
|
+
/** 核销时间 */
|
|
291
|
+
verifiedTime: string;
|
|
292
|
+
/** 核销门店 */
|
|
293
|
+
storeName: string;
|
|
294
|
+
/** 核销数量 */
|
|
295
|
+
quantity: number;
|
|
296
|
+
}
|
|
297
|
+
interface IOrderDetail {
|
|
298
|
+
/** 订单详情ID */
|
|
299
|
+
orderDetailId: string;
|
|
300
|
+
/** 商品图片 */
|
|
301
|
+
imgUrl: string;
|
|
302
|
+
/** 商品名称 */
|
|
303
|
+
productName: string;
|
|
304
|
+
/** 商品规格 */
|
|
305
|
+
productSpec: string;
|
|
306
|
+
/** 商品份数 */
|
|
307
|
+
productQuantity: number;
|
|
308
|
+
/** 商品单价(单位:分) */
|
|
309
|
+
productPrice: number;
|
|
310
|
+
/** 剩余可核销商品份数 */
|
|
311
|
+
remainingVerifiableQuantity?: number;
|
|
312
|
+
/** 已核销商品详情 */
|
|
313
|
+
verifiedProductDetails?: IVerifiedProductDetail[];
|
|
314
|
+
}
|
|
315
|
+
interface IOrderItem {
|
|
316
|
+
/** 订单ID */
|
|
317
|
+
orderId: string;
|
|
318
|
+
/** 订单状态 */
|
|
319
|
+
orderStatus: string;
|
|
320
|
+
/** 收货人 */
|
|
321
|
+
receiverName: string;
|
|
322
|
+
/** 收货人手机号 */
|
|
323
|
+
receiverPhone: string;
|
|
324
|
+
/** 下单时间 */
|
|
325
|
+
orderTime: number;
|
|
326
|
+
/** 总商品份数 */
|
|
327
|
+
totalProductQuantity: number;
|
|
328
|
+
/** 订单总实付金额(单位:分) */
|
|
329
|
+
totalAmount: number;
|
|
330
|
+
/** 是否可核销订单 */
|
|
331
|
+
isVerifiable: boolean;
|
|
332
|
+
/** 订单商品详情 */
|
|
333
|
+
orderDetail?: IOrderDetail;
|
|
334
|
+
}
|
|
335
|
+
interface IQueryUserOrderList {
|
|
336
|
+
/** 订单列表 */
|
|
337
|
+
orders: IOrderItem[];
|
|
338
|
+
/** 总数量 */
|
|
339
|
+
total: number;
|
|
340
|
+
/** 当前页 */
|
|
341
|
+
pageIndex: number;
|
|
342
|
+
/** 页大小 */
|
|
343
|
+
pageSize: number;
|
|
344
|
+
}
|
|
269
345
|
}
|
|
270
346
|
interface QueryController {
|
|
271
347
|
/** 获取用户累计支付金额 */
|
|
272
348
|
getUserTotalActualAmount(request: Request.IGetUserTotalActualAmount, req: any): Promise<Response.IGetUserTotalActualAmount>;
|
|
349
|
+
/** 查询用户订单统计信息 */
|
|
350
|
+
summaryUserOrder(request: Request.IGetUserOrderSummary, req: any): Promise<Response.IGetUserOrderSummary>;
|
|
351
|
+
/** 查询用户订单列表 */
|
|
352
|
+
queryUserOrderList(request: Request.IQueryUserOrderList, req: any): Promise<Response.IQueryUserOrderList>;
|
|
273
353
|
}
|
|
274
354
|
}
|
|
275
355
|
namespace ByWeb {
|