@be-link/ecommerce-trade-service-node-sdk 0.1.38 → 0.1.40

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')
@@ -4,6 +4,7 @@ declare class OrderQueryByInternalService extends BaseService implements PosOrde
4
4
  protected prefixUrl: string;
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
+ getPaidUserIdsByLiveRoomId(request: PosOrderQueryService.ByInternal.Request.IGetPaidUserIdsByLiveRoomId): Promise<PosOrderQueryService.ByInternal.Response.IGetPaidUserIdsByLiveRoomId>;
7
8
  }
8
9
  export declare const orderQueryByInternalService: OrderQueryByInternalService;
9
10
  export default orderQueryByInternalService;
@@ -27,6 +27,9 @@ let OrderQueryByInternalService = class OrderQueryByInternalService extends Base
27
27
  getOrderListForClientBackend(request) {
28
28
  return (0, http_1.callApi)(this.getApiUrl(this.getOrderListForClientBackend), request);
29
29
  }
30
+ getPaidUserIdsByLiveRoomId(request) {
31
+ return (0, http_1.callApi)(this.getApiUrl(this.getPaidUserIdsByLiveRoomId), request);
32
+ }
30
33
  };
31
34
  __decorate([
32
35
  (0, tsoa_1.OperationId)('根据订单ID查询订单数据接口(直播服务)'),
@@ -38,6 +41,11 @@ __decorate([
38
41
  (0, tsoa_1.Post)('get-order-list-for-client-backend'),
39
42
  __param(0, (0, tsoa_1.Body)())
40
43
  ], OrderQueryByInternalService.prototype, "getOrderListForClientBackend", null);
44
+ __decorate([
45
+ (0, tsoa_1.OperationId)('根据直播间ID查询下单用户ID列表'),
46
+ (0, tsoa_1.Post)('get-paid-user-ids-by-live-room-id'),
47
+ __param(0, (0, tsoa_1.Body)())
48
+ ], OrderQueryByInternalService.prototype, "getPaidUserIdsByLiveRoomId", null);
41
49
  OrderQueryByInternalService = __decorate([
42
50
  (0, tsoa_1.Route)('pos/query/internal'),
43
51
  (0, tsoa_1.Tags)('PosOrderQuery')
@@ -62,16 +62,26 @@ export declare namespace PosOrderQueryService {
62
62
  /** 订单ID列表(最少1个,最多100个) */
63
63
  orderIds: string[];
64
64
  }
65
+ interface IGetPaidUserIdsByLiveRoomId {
66
+ /** 直播间ID */
67
+ liveRoomId: string;
68
+ }
65
69
  }
66
70
  namespace Response {
67
71
  type IGetOrderByIdForClientBackend = Dto.ITradeOrderForClientBackend;
68
72
  type IGetOrderListForClientBackend = Dto.ITradeOrderForClientBackend[];
73
+ interface IGetPaidUserIdsByLiveRoomId {
74
+ /** 用户ID列表 */
75
+ userIds: string[];
76
+ }
69
77
  }
70
78
  interface QueryController {
71
79
  /** 根据订单ID查询订单数据接口(直播服务) */
72
80
  getOrderByIdForClientBackend(request: Request.IGetOrderByIdForClientBackend, req: any): Promise<Response.IGetOrderByIdForClientBackend>;
73
81
  /** 根据订单ID列表查询订单数据接口(直播服务) */
74
82
  getOrderListForClientBackend(request: Request.IGetOrderListForClientBackend, req: any): Promise<Response.IGetOrderListForClientBackend>;
83
+ /** 根据直播间ID查询下单用户ID列表 */
84
+ getPaidUserIdsByLiveRoomId(request: Request.IGetPaidUserIdsByLiveRoomId, req: any): Promise<Response.IGetPaidUserIdsByLiveRoomId>;
75
85
  }
76
86
  }
77
87
  namespace ByWeb {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",