@be-link/ecommerce-trade-service-node-sdk 0.1.148 → 0.1.149
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
|
+
countUserProductQuantity(request: PosOrderQueryService.ByInternal.Request.ICountUserProductQuantity): Promise<PosOrderQueryService.ByInternal.Response.ICountUserProductQuantity>;
|
|
8
9
|
getUserDiscountAmount(request: PosOrderQueryService.ByInternal.Request.IGetUserDiscountAmount): Promise<PosOrderQueryService.ByInternal.Response.IGetUserDiscountAmount>;
|
|
9
10
|
getOrderSavingAmount(request: PosOrderQueryService.ByInternal.Request.IGetOrderSavingAmount): Promise<PosOrderQueryService.ByInternal.Response.IGetOrderSavingAmount>;
|
|
10
11
|
mgetOrderProductInfo(request: PosOrderQueryService.ByInternal.Request.IMgetOrderProductInfo): Promise<PosOrderQueryService.ByInternal.Response.IMgetOrderProductInfo[]>;
|
|
@@ -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
|
+
countUserProductQuantity(request) {
|
|
34
|
+
return (0, http_1.callApi)(this.getApiUrl(this.countUserProductQuantity), request);
|
|
35
|
+
}
|
|
33
36
|
getUserDiscountAmount(request) {
|
|
34
37
|
return (0, http_1.callApi)(this.getApiUrl(this.getUserDiscountAmount), request);
|
|
35
38
|
}
|
|
@@ -58,6 +61,11 @@ __decorate([
|
|
|
58
61
|
(0, tsoa_1.Post)('get-paid-user-ids-by-live-room-id'),
|
|
59
62
|
__param(0, (0, tsoa_1.Body)())
|
|
60
63
|
], OrderQueryByInternalService.prototype, "getPaidUserIdsByLiveRoomId", null);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, tsoa_1.OperationId)('统计用户购买商品份数(内部)'),
|
|
66
|
+
(0, tsoa_1.Post)('count-user-product-quantity'),
|
|
67
|
+
__param(0, (0, tsoa_1.Body)())
|
|
68
|
+
], OrderQueryByInternalService.prototype, "countUserProductQuantity", null);
|
|
61
69
|
__decorate([
|
|
62
70
|
(0, tsoa_1.OperationId)('查询用户某段时间范围内累计优惠金额'),
|
|
63
71
|
(0, tsoa_1.Post)('get-user-discount-amount'),
|
|
@@ -66,6 +66,14 @@ export declare namespace PosOrderQueryService {
|
|
|
66
66
|
/** 直播间ID */
|
|
67
67
|
liveRoomId: string;
|
|
68
68
|
}
|
|
69
|
+
interface ICountUserProductQuantity {
|
|
70
|
+
/** 用户ID */
|
|
71
|
+
userId: string;
|
|
72
|
+
/** 商品ID列表 */
|
|
73
|
+
productIds: string[];
|
|
74
|
+
/** 订单来源列表 */
|
|
75
|
+
sourceList?: ENUM.OrderSource[];
|
|
76
|
+
}
|
|
69
77
|
interface IGetUserDiscountAmount {
|
|
70
78
|
/** 用户ID */
|
|
71
79
|
userId: string;
|
|
@@ -115,6 +123,8 @@ export declare namespace PosOrderQueryService {
|
|
|
115
123
|
/** 用户ID列表 */
|
|
116
124
|
userIds: string[];
|
|
117
125
|
}
|
|
126
|
+
/** 商品ID -> 商品份数 */
|
|
127
|
+
type ICountUserProductQuantity = Record<string, number>;
|
|
118
128
|
interface IGetUserDiscountAmount {
|
|
119
129
|
/** 累计优惠金额(分) */
|
|
120
130
|
totalDiscount: number;
|
|
@@ -205,6 +215,8 @@ export declare namespace PosOrderQueryService {
|
|
|
205
215
|
getOrderListForClientBackend(request: Request.IGetOrderListForClientBackend, req: any): Promise<Response.IGetOrderListForClientBackend>;
|
|
206
216
|
/** 根据直播间ID查询下单用户ID列表 */
|
|
207
217
|
getPaidUserIdsByLiveRoomId(request: Request.IGetPaidUserIdsByLiveRoomId, req: any): Promise<Response.IGetPaidUserIdsByLiveRoomId>;
|
|
218
|
+
/** 统计用户购买的商品份数(排除已退款份数) */
|
|
219
|
+
countUserProductQuantity(request: Request.ICountUserProductQuantity, req: any): Promise<Response.ICountUserProductQuantity>;
|
|
208
220
|
/** 查询用户某段时间范围内累计优惠金额 */
|
|
209
221
|
getUserDiscountAmount(request: Request.IGetUserDiscountAmount, req: any): Promise<Response.IGetUserDiscountAmount>;
|
|
210
222
|
/** 查询订单省钱金额 */
|