@be-link/ecommerce-trade-service-node-sdk 0.1.78 → 0.1.80
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/ros/orderCore/jobService.d.ts +2 -0
- package/modules/ros/orderCore/jobService.js +16 -0
- package/modules/ros/orderCore/types.d.ts +16 -0
- package/modules/statistics/service.d.ts +3 -3
- package/modules/statistics/service.js +12 -6
- package/modules/statistics/types.d.ts +3 -3
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ declare class RosOrderCoreByJobService extends BaseService implements RosOrderCo
|
|
|
4
4
|
protected prefixUrl: string;
|
|
5
5
|
autoApprove(request: RosOrderCoreService.ByJob.Request.IAutoApprove): Promise<void>;
|
|
6
6
|
compensateRefund(request: RosOrderCoreService.ByJob.Request.ICompensateRefund): Promise<void>;
|
|
7
|
+
batchCreateReverseOrder(request: RosOrderCoreService.ByJob.Request.IBatchCreateReverseOrder): Promise<void>;
|
|
8
|
+
batchCreateReverseOrderForVerifyCoupon(request: RosOrderCoreService.ByJob.Request.IBatchCreateReverseOrderForVerifyCoupon): Promise<void>;
|
|
7
9
|
}
|
|
8
10
|
export declare const orderCoreByJobService: RosOrderCoreByJobService;
|
|
9
11
|
export default orderCoreByJobService;
|
|
@@ -27,6 +27,12 @@ let RosOrderCoreByJobService = class RosOrderCoreByJobService extends BaseServic
|
|
|
27
27
|
compensateRefund(request) {
|
|
28
28
|
return (0, http_1.callApi)(this.getApiUrl(this.compensateRefund), request);
|
|
29
29
|
}
|
|
30
|
+
batchCreateReverseOrder(request) {
|
|
31
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchCreateReverseOrder), request);
|
|
32
|
+
}
|
|
33
|
+
batchCreateReverseOrderForVerifyCoupon(request) {
|
|
34
|
+
return (0, http_1.callApi)(this.getApiUrl(this.batchCreateReverseOrderForVerifyCoupon), request);
|
|
35
|
+
}
|
|
30
36
|
};
|
|
31
37
|
__decorate([
|
|
32
38
|
(0, tsoa_1.OperationId)('自动审核'),
|
|
@@ -38,6 +44,16 @@ __decorate([
|
|
|
38
44
|
(0, tsoa_1.Post)('compensate-refund'),
|
|
39
45
|
__param(0, (0, tsoa_1.Body)())
|
|
40
46
|
], RosOrderCoreByJobService.prototype, "compensateRefund", null);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, tsoa_1.OperationId)('批量创建逆向订单'),
|
|
49
|
+
(0, tsoa_1.Post)('batch-create-reverse-order'),
|
|
50
|
+
__param(0, (0, tsoa_1.Body)())
|
|
51
|
+
], RosOrderCoreByJobService.prototype, "batchCreateReverseOrder", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, tsoa_1.OperationId)('批量创建核销券订单逆向订单'),
|
|
54
|
+
(0, tsoa_1.Post)('batch-create-reverse-order-for-verify-coupon'),
|
|
55
|
+
__param(0, (0, tsoa_1.Body)())
|
|
56
|
+
], RosOrderCoreByJobService.prototype, "batchCreateReverseOrderForVerifyCoupon", null);
|
|
41
57
|
RosOrderCoreByJobService = __decorate([
|
|
42
58
|
(0, tsoa_1.Route)('ros/core/job'),
|
|
43
59
|
(0, tsoa_1.Tags)('RosOrderCore')
|
|
@@ -75,6 +75,20 @@ export declare namespace RosOrderCoreService {
|
|
|
75
75
|
}
|
|
76
76
|
interface ICompensateRefund {
|
|
77
77
|
}
|
|
78
|
+
interface IBatchCreateReverseOrder {
|
|
79
|
+
/** 订单ID列表(可选) */
|
|
80
|
+
orderIds?: string[];
|
|
81
|
+
/** 商品ID列表(可选) */
|
|
82
|
+
productIds?: string[];
|
|
83
|
+
/** 退款类型(必填) */
|
|
84
|
+
refundType: ENUM.ReverseRefundType;
|
|
85
|
+
/** 退款金额(仅退款时必填) */
|
|
86
|
+
amount?: number;
|
|
87
|
+
}
|
|
88
|
+
interface IBatchCreateReverseOrderForVerifyCoupon {
|
|
89
|
+
/** 券模板ID */
|
|
90
|
+
couponId: string;
|
|
91
|
+
}
|
|
78
92
|
}
|
|
79
93
|
namespace Response { }
|
|
80
94
|
}
|
|
@@ -106,6 +120,8 @@ export declare namespace RosOrderCoreService {
|
|
|
106
120
|
interface CoreByJobController {
|
|
107
121
|
autoApprove(request: ByJob.Request.IAutoApprove, req: any): Promise<void>;
|
|
108
122
|
compensateRefund(request: ByJob.Request.ICompensateRefund, req: any): Promise<void>;
|
|
123
|
+
batchCreateReverseOrder(request: ByJob.Request.IBatchCreateReverseOrder, req: any): Promise<void>;
|
|
124
|
+
batchCreateReverseOrderForVerifyCoupon(request: ByJob.Request.IBatchCreateReverseOrderForVerifyCoupon, req: any): Promise<void>;
|
|
109
125
|
}
|
|
110
126
|
interface CoreByInternalController {
|
|
111
127
|
/** 创建核销订单的逆向订单 */
|
|
@@ -2,9 +2,9 @@ import { StatisticsService } from './types';
|
|
|
2
2
|
import BaseService from '../BaseService';
|
|
3
3
|
declare class StatisticsServiceImpl extends BaseService implements StatisticsService.ByPos.QueryController, StatisticsService.ByRos.QueryController, StatisticsService.ByUs.QueryController {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
|
-
forwardStatistics(request: StatisticsService.ByPos.Request.IForwardStatistics
|
|
6
|
-
reverseStatistics(request: StatisticsService.ByRos.Request.IReverseStatistics
|
|
7
|
-
orderUserStatistics(request: StatisticsService.ByUs.Request.IOrderUserStatistics
|
|
5
|
+
forwardStatistics(request: StatisticsService.ByPos.Request.IForwardStatistics): Promise<StatisticsService.ByPos.Response.IForwardStatistics>;
|
|
6
|
+
reverseStatistics(request: StatisticsService.ByRos.Request.IReverseStatistics): Promise<StatisticsService.ByRos.Response.IReverseStatistics>;
|
|
7
|
+
orderUserStatistics(request: StatisticsService.ByUs.Request.IOrderUserStatistics): Promise<StatisticsService.ByUs.Response.IOrderUserStatistics>;
|
|
8
8
|
}
|
|
9
9
|
export declare const statisticsService: StatisticsServiceImpl;
|
|
10
10
|
export default statisticsService;
|
|
@@ -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
|
};
|
|
@@ -18,27 +21,30 @@ let StatisticsServiceImpl = class StatisticsServiceImpl extends BaseService_1.de
|
|
|
18
21
|
super(...arguments);
|
|
19
22
|
this.prefixUrl = '/statistics';
|
|
20
23
|
}
|
|
21
|
-
forwardStatistics(request
|
|
24
|
+
forwardStatistics(request) {
|
|
22
25
|
return (0, http_1.callApi)(this.getApiUrl(this.forwardStatistics), request);
|
|
23
26
|
}
|
|
24
|
-
reverseStatistics(request
|
|
27
|
+
reverseStatistics(request) {
|
|
25
28
|
return (0, http_1.callApi)(this.getApiUrl(this.reverseStatistics), request);
|
|
26
29
|
}
|
|
27
|
-
orderUserStatistics(request
|
|
30
|
+
orderUserStatistics(request) {
|
|
28
31
|
return (0, http_1.callApi)(this.getApiUrl(this.orderUserStatistics), request);
|
|
29
32
|
}
|
|
30
33
|
};
|
|
31
34
|
__decorate([
|
|
32
35
|
(0, tsoa_1.OperationId)('正向统计接口'),
|
|
33
|
-
(0, tsoa_1.Post)('forward-statistics')
|
|
36
|
+
(0, tsoa_1.Post)('forward-statistics'),
|
|
37
|
+
__param(0, (0, tsoa_1.Body)())
|
|
34
38
|
], StatisticsServiceImpl.prototype, "forwardStatistics", null);
|
|
35
39
|
__decorate([
|
|
36
40
|
(0, tsoa_1.OperationId)('逆向统计接口'),
|
|
37
|
-
(0, tsoa_1.Post)('reverse-statistics')
|
|
41
|
+
(0, tsoa_1.Post)('reverse-statistics'),
|
|
42
|
+
__param(0, (0, tsoa_1.Body)())
|
|
38
43
|
], StatisticsServiceImpl.prototype, "reverseStatistics", null);
|
|
39
44
|
__decorate([
|
|
40
45
|
(0, tsoa_1.OperationId)('下单人统计接口'),
|
|
41
|
-
(0, tsoa_1.Post)('order-user-statistics')
|
|
46
|
+
(0, tsoa_1.Post)('order-user-statistics'),
|
|
47
|
+
__param(0, (0, tsoa_1.Body)())
|
|
42
48
|
], StatisticsServiceImpl.prototype, "orderUserStatistics", null);
|
|
43
49
|
StatisticsServiceImpl = __decorate([
|
|
44
50
|
(0, tsoa_1.Route)('statistics'),
|
|
@@ -60,7 +60,7 @@ export declare namespace StatisticsService {
|
|
|
60
60
|
}
|
|
61
61
|
interface QueryController {
|
|
62
62
|
/** 正向统计接口 */
|
|
63
|
-
forwardStatistics(request: Request.IForwardStatistics, req
|
|
63
|
+
forwardStatistics(request: Request.IForwardStatistics, req?: any): Promise<Response.IForwardStatistics>;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
namespace ByRos {
|
|
@@ -92,7 +92,7 @@ export declare namespace StatisticsService {
|
|
|
92
92
|
}
|
|
93
93
|
interface QueryController {
|
|
94
94
|
/** 逆向统计接口 */
|
|
95
|
-
reverseStatistics(request: Request.IReverseStatistics, req
|
|
95
|
+
reverseStatistics(request: Request.IReverseStatistics, req?: any): Promise<Response.IReverseStatistics>;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
namespace ByUs {
|
|
@@ -122,7 +122,7 @@ export declare namespace StatisticsService {
|
|
|
122
122
|
}
|
|
123
123
|
interface QueryController {
|
|
124
124
|
/** 下单人统计接口 */
|
|
125
|
-
orderUserStatistics(request: Request.IOrderUserStatistics, req
|
|
125
|
+
orderUserStatistics(request: Request.IOrderUserStatistics, req?: any): Promise<Response.IOrderUserStatistics>;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}
|