@be-link/ecommerce-trade-service-node-sdk 0.1.82 → 0.1.84
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,7 @@ declare class OrderQueryByInternalService extends BaseService implements PosOrde
|
|
|
5
5
|
getOrderByIdForClientBackend(request: PosOrderQueryService.ByInternal.Request.IGetOrderByIdForClientBackend): Promise<PosOrderQueryService.ByInternal.Response.IGetOrderByIdForClientBackend>;
|
|
6
6
|
getOrderListForClientBackend(request: PosOrderQueryService.ByInternal.Request.IGetOrderListForClientBackend): Promise<PosOrderQueryService.ByInternal.Response.IGetOrderListForClientBackend>;
|
|
7
7
|
getPaidUserIdsByLiveRoomId(request: PosOrderQueryService.ByInternal.Request.IGetPaidUserIdsByLiveRoomId): Promise<PosOrderQueryService.ByInternal.Response.IGetPaidUserIdsByLiveRoomId>;
|
|
8
|
+
getUserDiscountAmount(request: PosOrderQueryService.ByInternal.Request.IGetUserDiscountAmount): Promise<PosOrderQueryService.ByInternal.Response.IGetUserDiscountAmount>;
|
|
8
9
|
}
|
|
9
10
|
export declare const orderQueryByInternalService: OrderQueryByInternalService;
|
|
10
11
|
export default orderQueryByInternalService;
|
|
@@ -30,6 +30,9 @@ let OrderQueryByInternalService = class OrderQueryByInternalService extends Base
|
|
|
30
30
|
getPaidUserIdsByLiveRoomId(request) {
|
|
31
31
|
return (0, http_1.callApi)(this.getApiUrl(this.getPaidUserIdsByLiveRoomId), request);
|
|
32
32
|
}
|
|
33
|
+
getUserDiscountAmount(request) {
|
|
34
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getUserDiscountAmount), request);
|
|
35
|
+
}
|
|
33
36
|
};
|
|
34
37
|
__decorate([
|
|
35
38
|
(0, tsoa_1.OperationId)('根据订单ID查询订单数据接口(直播服务)'),
|
|
@@ -46,6 +49,11 @@ __decorate([
|
|
|
46
49
|
(0, tsoa_1.Post)('get-paid-user-ids-by-live-room-id'),
|
|
47
50
|
__param(0, (0, tsoa_1.Body)())
|
|
48
51
|
], OrderQueryByInternalService.prototype, "getPaidUserIdsByLiveRoomId", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, tsoa_1.OperationId)('查询用户某段时间范围内累计优惠金额'),
|
|
54
|
+
(0, tsoa_1.Post)('get-user-discount-amount'),
|
|
55
|
+
__param(0, (0, tsoa_1.Body)())
|
|
56
|
+
], OrderQueryByInternalService.prototype, "getUserDiscountAmount", null);
|
|
49
57
|
OrderQueryByInternalService = __decorate([
|
|
50
58
|
(0, tsoa_1.Route)('pos/query/internal'),
|
|
51
59
|
(0, tsoa_1.Tags)('PosOrderQuery')
|
|
@@ -66,6 +66,14 @@ export declare namespace PosOrderQueryService {
|
|
|
66
66
|
/** 直播间ID */
|
|
67
67
|
liveRoomId: string;
|
|
68
68
|
}
|
|
69
|
+
interface IGetUserDiscountAmount {
|
|
70
|
+
/** 用户ID */
|
|
71
|
+
userId: string;
|
|
72
|
+
/** 开始时间(时间戳,毫秒) */
|
|
73
|
+
startTime: number;
|
|
74
|
+
/** 结束时间(时间戳,毫秒) */
|
|
75
|
+
endTime: number;
|
|
76
|
+
}
|
|
69
77
|
}
|
|
70
78
|
namespace Response {
|
|
71
79
|
type IGetOrderByIdForClientBackend = Dto.ITradeOrderForClientBackend;
|
|
@@ -74,6 +82,10 @@ export declare namespace PosOrderQueryService {
|
|
|
74
82
|
/** 用户ID列表 */
|
|
75
83
|
userIds: string[];
|
|
76
84
|
}
|
|
85
|
+
interface IGetUserDiscountAmount {
|
|
86
|
+
/** 累计优惠金额(分) */
|
|
87
|
+
totalDiscount: number;
|
|
88
|
+
}
|
|
77
89
|
}
|
|
78
90
|
interface QueryController {
|
|
79
91
|
/** 根据订单ID查询订单数据接口(直播服务) */
|
|
@@ -82,6 +94,8 @@ export declare namespace PosOrderQueryService {
|
|
|
82
94
|
getOrderListForClientBackend(request: Request.IGetOrderListForClientBackend, req: any): Promise<Response.IGetOrderListForClientBackend>;
|
|
83
95
|
/** 根据直播间ID查询下单用户ID列表 */
|
|
84
96
|
getPaidUserIdsByLiveRoomId(request: Request.IGetPaidUserIdsByLiveRoomId, req: any): Promise<Response.IGetPaidUserIdsByLiveRoomId>;
|
|
97
|
+
/** 查询用户某段时间范围内累计优惠金额 */
|
|
98
|
+
getUserDiscountAmount(request: Request.IGetUserDiscountAmount, req: any): Promise<Response.IGetUserDiscountAmount>;
|
|
85
99
|
}
|
|
86
100
|
}
|
|
87
101
|
namespace ByWeb {
|
|
@@ -279,10 +279,10 @@ export declare namespace RosOrderQueryService {
|
|
|
279
279
|
}
|
|
280
280
|
interface QueryByWebController {
|
|
281
281
|
orderList(request: RosOrderQueryService.Request.IOrderList): Promise<DTO.ReverseQueryResult[]>;
|
|
282
|
-
list(request: RosOrderQueryService.Request.IList): Promise<RosOrderQueryService.Response.IList>;
|
|
283
|
-
orderExport(request: RosOrderQueryService.Request.IExportOrderData): Promise<RosOrderQueryService.Response.IExportOrderData>;
|
|
282
|
+
list(request: RosOrderQueryService.Request.IList, req: any): Promise<RosOrderQueryService.Response.IList>;
|
|
283
|
+
orderExport(request: RosOrderQueryService.Request.IExportOrderData, req: any): Promise<RosOrderQueryService.Response.IExportOrderData>;
|
|
284
284
|
/** 按订单IDs导出订单数据 */
|
|
285
|
-
orderExportByIds(request: RosOrderQueryService.Request.IExportOrderDataByIds): Promise<RosOrderQueryService.Response.IExportOrderDataByIds>;
|
|
285
|
+
orderExportByIds(request: RosOrderQueryService.Request.IExportOrderDataByIds, req: any): Promise<RosOrderQueryService.Response.IExportOrderDataByIds>;
|
|
286
286
|
/** 商家主动发起退款详情展示 */
|
|
287
287
|
getApplyRefundInfo(request: RosOrderQueryService.Request.IGetApplyRefundInfo): Promise<RosOrderQueryService.Response.IGetApplyRefundInfo>;
|
|
288
288
|
/** 统计待商家审核的订单数量 */
|
package/package.json
CHANGED