@be-link/ecommerce-trade-service-node-sdk 0.1.140 → 0.1.142
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.
- package/modules/pos/orderCore/jobService.d.ts +1 -0
- package/modules/pos/orderCore/jobService.js +8 -0
- package/modules/pos/orderCore/types.d.ts +7 -0
- package/modules/pos/orderQuery/types.d.ts +10 -0
- package/modules/pos/orderQuery/userService.d.ts +1 -0
- package/modules/pos/orderQuery/userService.js +8 -0
- package/modules/statistics/types.d.ts +2 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ declare class OrderCoreByJobService extends BaseService {
|
|
|
6
6
|
autoCancelTimeoutOrders(): Promise<void>;
|
|
7
7
|
autoUpdateExpiredVerificationStatus(): Promise<void>;
|
|
8
8
|
autoCancelStuckPayingOrders(): Promise<void>;
|
|
9
|
+
compensatePaidCallbackFailedOrders(request: PosCoreService.ByJob.Request.ICompensatePaidCallbackFailedOrders): Promise<void>;
|
|
9
10
|
refreshOrderDeliveryTimeAndCommissionRate(request: PosCoreService.ByJob.Request.IRefreshOrderDeliveryTimeAndCommissionRate): Promise<void>;
|
|
10
11
|
}
|
|
11
12
|
export declare const orderCoreByJobService: OrderCoreByJobService;
|
|
@@ -33,6 +33,9 @@ let OrderCoreByJobService = class OrderCoreByJobService extends BaseService_1.de
|
|
|
33
33
|
autoCancelStuckPayingOrders() {
|
|
34
34
|
return (0, http_1.callApi)(this.getApiUrl(this.autoCancelStuckPayingOrders), {});
|
|
35
35
|
}
|
|
36
|
+
compensatePaidCallbackFailedOrders(request) {
|
|
37
|
+
return (0, http_1.callApi)(this.getApiUrl(this.compensatePaidCallbackFailedOrders), request);
|
|
38
|
+
}
|
|
36
39
|
refreshOrderDeliveryTimeAndCommissionRate(request) {
|
|
37
40
|
return (0, http_1.callApi)(this.getApiUrl(this.refreshOrderDeliveryTimeAndCommissionRate), request);
|
|
38
41
|
}
|
|
@@ -53,6 +56,11 @@ __decorate([
|
|
|
53
56
|
(0, tsoa_1.OperationId)('定时取消支付状态卡在支付中的订单'),
|
|
54
57
|
(0, tsoa_1.Post)('auto-cancel-stuck-paying-orders')
|
|
55
58
|
], OrderCoreByJobService.prototype, "autoCancelStuckPayingOrders", null);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, tsoa_1.OperationId)('补偿支付回调失败订单'),
|
|
61
|
+
(0, tsoa_1.Post)('compensate-paid-callback-failed-orders'),
|
|
62
|
+
__param(0, (0, tsoa_1.Body)())
|
|
63
|
+
], OrderCoreByJobService.prototype, "compensatePaidCallbackFailedOrders", null);
|
|
56
64
|
__decorate([
|
|
57
65
|
(0, tsoa_1.OperationId)('刷新订单首次发货时间和商品分佣比例'),
|
|
58
66
|
(0, tsoa_1.Post)('refresh-order-delivery-time-and-commission-rate'),
|
|
@@ -289,6 +289,11 @@ export declare namespace PosCoreService {
|
|
|
289
289
|
}
|
|
290
290
|
namespace ByJob {
|
|
291
291
|
namespace Request {
|
|
292
|
+
/** 补偿支付回调失败订单请求 */
|
|
293
|
+
interface ICompensatePaidCallbackFailedOrders {
|
|
294
|
+
/** 订单ID列表 */
|
|
295
|
+
orderIds: string[];
|
|
296
|
+
}
|
|
292
297
|
/** 刷新订单首次发货时间和商品分佣比例请求 */
|
|
293
298
|
interface IRefreshOrderDeliveryTimeAndCommissionRate {
|
|
294
299
|
/** 订单创建开始时间(毫秒时间戳) */
|
|
@@ -307,6 +312,8 @@ export declare namespace PosCoreService {
|
|
|
307
312
|
autoUpdateExpiredVerificationStatus(request: any, req: any): Promise<void>;
|
|
308
313
|
/** 定时取消支付状态卡在"支付中"的订单 */
|
|
309
314
|
autoCancelStuckPayingOrders(request: any, req: any): Promise<void>;
|
|
315
|
+
/** 补偿支付回调失败订单 */
|
|
316
|
+
compensatePaidCallbackFailedOrders(request: ByJob.Request.ICompensatePaidCallbackFailedOrders, req: any): Promise<void>;
|
|
310
317
|
/** 刷新订单首次发货时间和商品分佣比例 */
|
|
311
318
|
refreshOrderDeliveryTimeAndCommissionRate(request: ByJob.Request.IRefreshOrderDeliveryTimeAndCommissionRate, req: any): Promise<void>;
|
|
312
319
|
}
|
|
@@ -1193,6 +1193,12 @@ export declare namespace PosOrderQueryService {
|
|
|
1193
1193
|
/** 订单状态(可选,不传则统计所有状态) */
|
|
1194
1194
|
status?: ENUM.OrderStatus;
|
|
1195
1195
|
}
|
|
1196
|
+
interface ICountUserProductQuantity {
|
|
1197
|
+
/** 用户ID */
|
|
1198
|
+
userId: string;
|
|
1199
|
+
/** 商品ID列表 */
|
|
1200
|
+
productIds: string[];
|
|
1201
|
+
}
|
|
1196
1202
|
interface IGetOrderApplyRefund {
|
|
1197
1203
|
userId: string;
|
|
1198
1204
|
orderId: string;
|
|
@@ -1298,6 +1304,8 @@ export declare namespace PosOrderQueryService {
|
|
|
1298
1304
|
total: number;
|
|
1299
1305
|
}
|
|
1300
1306
|
type ICountOrderByStatus = ICountOrderByStatusItem[];
|
|
1307
|
+
/** 商品ID -> 商品份数 */
|
|
1308
|
+
type ICountUserProductQuantity = Record<string, number>;
|
|
1301
1309
|
interface IGetOrderApplyRefund {
|
|
1302
1310
|
applyRefund: ENUM.ApplyRefundStatus;
|
|
1303
1311
|
}
|
|
@@ -1610,6 +1618,8 @@ export declare namespace PosOrderQueryService {
|
|
|
1610
1618
|
orderList(request: Request.IOrderList, req: any): Promise<Response.IOrderList>;
|
|
1611
1619
|
/** 根据订单状态统计订单总数 */
|
|
1612
1620
|
countOrderByStatus(request: Request.ICountOrderByStatus, req: any): Promise<Response.ICountOrderByStatus>;
|
|
1621
|
+
/** 统计用户购买的商品份数(排除已退款份数) */
|
|
1622
|
+
countUserProductQuantity(request: Request.ICountUserProductQuantity, req: any): Promise<Response.ICountUserProductQuantity>;
|
|
1613
1623
|
getOrderApplyRefund(request: Request.IGetOrderApplyRefund, req: any): Promise<Response.IGetOrderApplyRefund>;
|
|
1614
1624
|
orderDetail(request: Request.IOrderDetail, req: any): Promise<Response.IOrderDetail>;
|
|
1615
1625
|
/** 根据订单ID查询支付参数 */
|
|
@@ -6,6 +6,7 @@ declare class OrderQueryByUserService extends BaseService {
|
|
|
6
6
|
getOrderPayStatus(request: PosOrderQueryService.ByUser.Request.IGetOrderPayStatus): Promise<PosOrderQueryService.ByUser.Response.IGetOrderPayStatus>;
|
|
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
|
+
countUserProductQuantity(request: PosOrderQueryService.ByUser.Request.ICountUserProductQuantity): Promise<PosOrderQueryService.ByUser.Response.ICountUserProductQuantity>;
|
|
9
10
|
getOrderApplyRefund(request: PosOrderQueryService.ByUser.Request.IGetOrderApplyRefund): Promise<PosOrderQueryService.ByUser.Response.IGetOrderApplyRefund>;
|
|
10
11
|
orderDetail(request: PosOrderQueryService.ByUser.Request.IOrderDetail): Promise<PosOrderQueryService.ByUser.Response.IOrderDetail>;
|
|
11
12
|
getOrderPayParams(request: PosOrderQueryService.ByUser.Request.IGetOrderPayParams): Promise<PosOrderQueryService.ByUser.Response.IGetOrderPayParams>;
|
|
@@ -33,6 +33,9 @@ let OrderQueryByUserService = class OrderQueryByUserService extends BaseService_
|
|
|
33
33
|
countOrderByStatus(request) {
|
|
34
34
|
return (0, http_1.callApi)(this.getApiUrl(this.countOrderByStatus), request);
|
|
35
35
|
}
|
|
36
|
+
countUserProductQuantity(request) {
|
|
37
|
+
return (0, http_1.callApi)(this.getApiUrl(this.countUserProductQuantity), request);
|
|
38
|
+
}
|
|
36
39
|
getOrderApplyRefund(request) {
|
|
37
40
|
return (0, http_1.callApi)(this.getApiUrl(this.getOrderApplyRefund), request);
|
|
38
41
|
}
|
|
@@ -69,6 +72,11 @@ __decorate([
|
|
|
69
72
|
(0, tsoa_1.Post)('count-order-by-status'),
|
|
70
73
|
__param(0, (0, tsoa_1.Body)())
|
|
71
74
|
], OrderQueryByUserService.prototype, "countOrderByStatus", null);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, tsoa_1.OperationId)('统计用户购买商品份数'),
|
|
77
|
+
(0, tsoa_1.Post)('count-user-product-quantity'),
|
|
78
|
+
__param(0, (0, tsoa_1.Body)())
|
|
79
|
+
], OrderQueryByUserService.prototype, "countUserProductQuantity", null);
|
|
72
80
|
__decorate([
|
|
73
81
|
(0, tsoa_1.OperationId)('查询订单申请退款方式'),
|
|
74
82
|
(0, tsoa_1.Post)('get-order-apply-refund'),
|