@be-link/ecommerce-trade-service-node-sdk 0.1.96 → 0.1.98

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.
@@ -160,6 +160,8 @@ export declare namespace PosCoreService {
160
160
  coupon: Dto.ICoupon;
161
161
  userId: string;
162
162
  skuId: string;
163
+ getChannel1?: string;
164
+ getChannel2?: string;
163
165
  }
164
166
  /** 切换支付商户号请求参数 */
165
167
  interface ISwitchPaymentMerchantNo {
@@ -6,6 +6,7 @@ declare class OrderQueryByInternalService extends BaseService implements PosOrde
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
8
  getUserDiscountAmount(request: PosOrderQueryService.ByInternal.Request.IGetUserDiscountAmount): Promise<PosOrderQueryService.ByInternal.Response.IGetUserDiscountAmount>;
9
+ getVerifyCouponOrderListByCouponId(request: PosOrderQueryService.ByInternal.Request.IGetVerifyCouponOrderListByCouponId): Promise<PosOrderQueryService.ByInternal.Response.IGetVerifyCouponOrderListByCouponId>;
9
10
  }
10
11
  export declare const orderQueryByInternalService: OrderQueryByInternalService;
11
12
  export default orderQueryByInternalService;
@@ -33,6 +33,9 @@ let OrderQueryByInternalService = class OrderQueryByInternalService extends Base
33
33
  getUserDiscountAmount(request) {
34
34
  return (0, http_1.callApi)(this.getApiUrl(this.getUserDiscountAmount), request);
35
35
  }
36
+ getVerifyCouponOrderListByCouponId(request) {
37
+ return (0, http_1.callApi)(this.getApiUrl(this.getVerifyCouponOrderListByCouponId), request);
38
+ }
36
39
  };
37
40
  __decorate([
38
41
  (0, tsoa_1.OperationId)('根据订单ID查询订单数据接口(直播服务)'),
@@ -54,6 +57,11 @@ __decorate([
54
57
  (0, tsoa_1.Post)('get-user-discount-amount'),
55
58
  __param(0, (0, tsoa_1.Body)())
56
59
  ], OrderQueryByInternalService.prototype, "getUserDiscountAmount", null);
60
+ __decorate([
61
+ (0, tsoa_1.OperationId)('根据券模板ID查询核销券订单列表'),
62
+ (0, tsoa_1.Post)('get-verify-coupon-order-list-by-coupon-id'),
63
+ __param(0, (0, tsoa_1.Body)())
64
+ ], OrderQueryByInternalService.prototype, "getVerifyCouponOrderListByCouponId", null);
57
65
  OrderQueryByInternalService = __decorate([
58
66
  (0, tsoa_1.Route)('pos/query/internal'),
59
67
  (0, tsoa_1.Tags)('PosOrderQuery')
@@ -74,6 +74,28 @@ export declare namespace PosOrderQueryService {
74
74
  /** 结束时间(时间戳,毫秒) */
75
75
  endTime: number;
76
76
  }
77
+ interface IGetVerifyCouponOrderListByCouponId {
78
+ /** 券模板ID */
79
+ templateId: string;
80
+ /** 状态:全部/占用/未使用/已使用/已过期/已回收(可选) */
81
+ status?: string;
82
+ /** 用户ID(模糊搜索) */
83
+ userId?: string;
84
+ /** 领取渠道一级(多选) */
85
+ channelLevel1?: string[];
86
+ /** 领取渠道二级(多选) */
87
+ channelLevel2?: string[];
88
+ /** 绑定门店ID */
89
+ storeId?: string;
90
+ /** 领取时间开始(毫秒时间戳) */
91
+ receiveTimeStart?: number;
92
+ /** 领取时间结束(毫秒时间戳) */
93
+ receiveTimeEnd?: number;
94
+ /** 页码,从0开始 */
95
+ pageIndex: number;
96
+ /** 每页数量,默认20,最大1000 */
97
+ pageSize: number;
98
+ }
77
99
  }
78
100
  namespace Response {
79
101
  type IGetOrderByIdForClientBackend = Dto.ITradeOrderForClientBackend;
@@ -86,6 +108,35 @@ export declare namespace PosOrderQueryService {
86
108
  /** 累计优惠金额(分) */
87
109
  totalDiscount: number;
88
110
  }
111
+ interface IGetVerifyCouponOrderListByCouponId {
112
+ /** 核销券订单列表 */
113
+ list: Array<{
114
+ /** 券编码 */
115
+ couponCode: string;
116
+ /** 用户Id */
117
+ userId: string;
118
+ /** 用户昵称 */
119
+ userNickname: string;
120
+ /** 当前状态 */
121
+ status: string;
122
+ /** 领取时间(毫秒时间戳) */
123
+ receiveTime: number;
124
+ /** 到期时间(毫秒时间戳) */
125
+ expireTime: number;
126
+ /** 使用时间(毫秒时间戳,未使用为0) */
127
+ useTime: number;
128
+ /** 门店ID */
129
+ storeId: string;
130
+ /** 门店名称 */
131
+ storeName: string;
132
+ /** 领取渠道一级 */
133
+ channelLevel1: string;
134
+ /** 领取渠道二级 */
135
+ channelLevel2: string;
136
+ }>;
137
+ /** 总记录数 */
138
+ total: number;
139
+ }
89
140
  }
90
141
  interface QueryController {
91
142
  /** 根据订单ID查询订单数据接口(直播服务) */
@@ -96,6 +147,8 @@ export declare namespace PosOrderQueryService {
96
147
  getPaidUserIdsByLiveRoomId(request: Request.IGetPaidUserIdsByLiveRoomId, req: any): Promise<Response.IGetPaidUserIdsByLiveRoomId>;
97
148
  /** 查询用户某段时间范围内累计优惠金额 */
98
149
  getUserDiscountAmount(request: Request.IGetUserDiscountAmount, req: any): Promise<Response.IGetUserDiscountAmount>;
150
+ /** 根据券模板ID查询核销券订单列表 */
151
+ getVerifyCouponOrderListByCouponId(request: Request.IGetVerifyCouponOrderListByCouponId, req: any): Promise<Response.IGetVerifyCouponOrderListByCouponId>;
99
152
  }
100
153
  }
101
154
  namespace ByWeb {
@@ -1036,12 +1089,10 @@ export declare namespace PosOrderQueryService {
1036
1089
  receiverPhone: string;
1037
1090
  }
1038
1091
  interface IGetOrderPayParams {
1039
- /** 子商户号 */
1040
- subMchId: string;
1041
- /** 预支付ID */
1042
- prepayId: string;
1043
- /** 微信支付请求参数 */
1044
- payment: DTO.IWePayParam;
1092
+ /** 支付参数状态 */
1093
+ status: ENUM.PaymentParamStatus;
1094
+ /** 微信支付请求参数(status=SUCCESS 时有值,其他状态为 null) */
1095
+ payment: DTO.IWePayParam | null;
1045
1096
  }
1046
1097
  interface IGetPaymentParam {
1047
1098
  /** 支付参数状态:null=未找到,PROCESSING=处理中,SUCCESS=成功,FAILED=失败 */
@@ -1166,8 +1217,6 @@ export declare namespace PosOrderQueryService {
1166
1217
  getUserPositiveAmount(request: Request.IGetUserPositiveAmount, req: any): Promise<Response.IGetUserPositiveAmount>;
1167
1218
  /** 查询交易快照(商品快照) */
1168
1219
  getTradeSnapshot(request: Request.IGetTradeSnapshot, req: any): Promise<Response.IGetTradeSnapshot>;
1169
- /** 获取支付参数(异步支付轮询接口) */
1170
- getPaymentParam(request: Request.IGetPaymentParam, req: any): Promise<Response.IGetPaymentParam>;
1171
1220
  }
1172
1221
  }
1173
1222
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.1.96",
3
+ "version": "0.1.98",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/types.d.ts CHANGED
@@ -357,6 +357,10 @@ export interface ICouponInfo {
357
357
  validStartTime?: number;
358
358
  /** 有效期结束 */
359
359
  validEndTime?: number;
360
+ /** 领取渠道一级 */
361
+ getChannel1?: string;
362
+ /** 领取渠道二级 */
363
+ getChannel2?: string;
360
364
  }
361
365
  /** 会员信息 */
362
366
  export interface IMemberInfo {
@@ -443,8 +447,10 @@ export interface IPaymentParamCache {
443
447
  status: ENUM.PaymentParamStatus;
444
448
  /** 用户ID(用于验证订单归属) */
445
449
  userId: string;
446
- /** 支付参数(JSON字符串,仅 SUCCESS 时有值) */
450
+ /** 支付参数(IPaymentParam 类型的 JSON 字符串,仅 SUCCESS 时有值) */
447
451
  paymentParam?: string;
452
+ /** 订单创建时间戳(毫秒,用于超时检查) */
453
+ createTime: string;
448
454
  /** 更新时间戳(毫秒) */
449
455
  updatedAt: string;
450
456
  }