@be-link/ecommerce-trade-service-node-sdk 0.1.38 → 0.1.39
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.
|
@@ -123,6 +123,12 @@ export declare namespace PosCoreService {
|
|
|
123
123
|
userId: string;
|
|
124
124
|
orderId: string;
|
|
125
125
|
}
|
|
126
|
+
interface IUpdatePayStatus {
|
|
127
|
+
/** 订单ID */
|
|
128
|
+
orderId: string;
|
|
129
|
+
/** 支付状态(仅支持 PAYING 和 FAILED) */
|
|
130
|
+
payStatus: ENUM.OrderPayStatus.PAYING | ENUM.OrderPayStatus.FAILED;
|
|
131
|
+
}
|
|
126
132
|
}
|
|
127
133
|
namespace Response {
|
|
128
134
|
interface IOrderCreate {
|
|
@@ -160,6 +166,8 @@ export declare namespace PosCoreService {
|
|
|
160
166
|
confirmReceive(request: ByUser.Request.IConfirmReceive, req: any): Promise<ByUser.Response.IConfirmReceive>;
|
|
161
167
|
/** 支付成功回调 */
|
|
162
168
|
orderPaid(request: any, req: any): Promise<string>;
|
|
169
|
+
/** 更新订单支付状态 */
|
|
170
|
+
updatePayStatus(request: ByUser.Request.IUpdatePayStatus, req: any): Promise<void>;
|
|
163
171
|
}
|
|
164
172
|
interface CoreByWebController {
|
|
165
173
|
/** 单个订单发货 */
|
|
@@ -7,6 +7,7 @@ declare class OrderCoreByUserService extends BaseService {
|
|
|
7
7
|
cancelOrder(request: PosCoreService.ByUser.Request.ICancelOrder): Promise<void>;
|
|
8
8
|
confirmReceive(request: PosCoreService.ByUser.Request.IConfirmReceive): Promise<PosCoreService.ByUser.Response.IConfirmReceive>;
|
|
9
9
|
orderPaid(request: any): Promise<string>;
|
|
10
|
+
updatePayStatus(request: PosCoreService.ByUser.Request.IUpdatePayStatus): Promise<void>;
|
|
10
11
|
}
|
|
11
12
|
export declare const orderCoreByUserService: OrderCoreByUserService;
|
|
12
13
|
export default orderCoreByUserService;
|
|
@@ -36,6 +36,9 @@ let OrderCoreByUserService = class OrderCoreByUserService extends BaseService_1.
|
|
|
36
36
|
orderPaid(request) {
|
|
37
37
|
return (0, http_1.callApi)(this.getApiUrl(this.orderPaid), request);
|
|
38
38
|
}
|
|
39
|
+
updatePayStatus(request) {
|
|
40
|
+
return (0, http_1.callApi)(this.getApiUrl(this.updatePayStatus), request);
|
|
41
|
+
}
|
|
39
42
|
};
|
|
40
43
|
__decorate([
|
|
41
44
|
(0, tsoa_1.OperationId)('订单创建'),
|
|
@@ -62,6 +65,11 @@ __decorate([
|
|
|
62
65
|
(0, tsoa_1.Post)('order-paid'),
|
|
63
66
|
__param(0, (0, tsoa_1.Body)())
|
|
64
67
|
], OrderCoreByUserService.prototype, "orderPaid", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, tsoa_1.OperationId)('更新订单支付状态'),
|
|
70
|
+
(0, tsoa_1.Post)('update-pay-status'),
|
|
71
|
+
__param(0, (0, tsoa_1.Body)())
|
|
72
|
+
], OrderCoreByUserService.prototype, "updatePayStatus", null);
|
|
65
73
|
OrderCoreByUserService = __decorate([
|
|
66
74
|
(0, tsoa_1.Route)('pos/core/user'),
|
|
67
75
|
(0, tsoa_1.Tags)('PosOrderCore')
|