@be-link/ecommerce-trade-service-node-sdk 0.1.25 → 0.1.27

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/consts.js CHANGED
@@ -79,6 +79,7 @@ exports.ReverseRefundWayMap = {
79
79
  [enums_1.ENUM.ReverseRefundWay.USER_MANUAL]: '主动退款',
80
80
  [enums_1.ENUM.ReverseRefundWay.REVIEW]: '审核退款',
81
81
  [enums_1.ENUM.ReverseRefundWay.FAST]: '极速退款',
82
+ [enums_1.ENUM.ReverseRefundWay.MERCHANT_MANUAL]: '商家主动退款',
82
83
  };
83
84
  exports.PayChannelMap = {
84
85
  [enums_1.ENUM.PayChannel.WX_PAY]: '微信支付',
package/enums.d.ts CHANGED
@@ -141,7 +141,9 @@ export declare namespace ENUM {
141
141
  /** 审核退款 */
142
142
  REVIEW = "REVIEW",
143
143
  /** 极速退款 */
144
- FAST = "FAST"
144
+ FAST = "FAST",
145
+ /** 商家手动退款 */
146
+ MERCHANT_MANUAL = "MERCHANT_MANUAL"
145
147
  }
146
148
  /** 支付渠道 */
147
149
  enum PayChannel {
@@ -214,6 +216,19 @@ export declare namespace ENUM {
214
216
  /** 自主核销 */
215
217
  USER = "USER"
216
218
  }
219
+ /** 退款处理类型枚举 */
220
+ enum ReverseRefundHandlerEnum {
221
+ /** 极速退款 */
222
+ FAST = "FAST",
223
+ /** 普通退款 */
224
+ NORMAL = "NORMAL",
225
+ /** 积分商城退款 */
226
+ POINTS = "POINTS",
227
+ /** 核销券退款 */
228
+ COUPON = "COUPON",
229
+ /** 商家手动退款 */
230
+ MERCHANT_MANUAL = "MERCHANT_MANUAL"
231
+ }
217
232
  }
218
233
  /** RabbitMQ 交换机路由枚举 */
219
234
  export declare namespace EXCHANGE_ENUM {
package/enums.js CHANGED
@@ -158,6 +158,8 @@ var ENUM;
158
158
  ReverseRefundWay["REVIEW"] = "REVIEW";
159
159
  /** 极速退款 */
160
160
  ReverseRefundWay["FAST"] = "FAST";
161
+ /** 商家手动退款 */
162
+ ReverseRefundWay["MERCHANT_MANUAL"] = "MERCHANT_MANUAL";
161
163
  })(ReverseRefundWay = ENUM.ReverseRefundWay || (ENUM.ReverseRefundWay = {}));
162
164
  /** 支付渠道 */
163
165
  let PayChannel;
@@ -238,6 +240,20 @@ var ENUM;
238
240
  /** 自主核销 */
239
241
  VerificationType["USER"] = "USER";
240
242
  })(VerificationType = ENUM.VerificationType || (ENUM.VerificationType = {}));
243
+ /** 退款处理类型枚举 */
244
+ let ReverseRefundHandlerEnum;
245
+ (function (ReverseRefundHandlerEnum) {
246
+ /** 极速退款 */
247
+ ReverseRefundHandlerEnum["FAST"] = "FAST";
248
+ /** 普通退款 */
249
+ ReverseRefundHandlerEnum["NORMAL"] = "NORMAL";
250
+ /** 积分商城退款 */
251
+ ReverseRefundHandlerEnum["POINTS"] = "POINTS";
252
+ /** 核销券退款 */
253
+ ReverseRefundHandlerEnum["COUPON"] = "COUPON";
254
+ /** 商家手动退款 */
255
+ ReverseRefundHandlerEnum["MERCHANT_MANUAL"] = "MERCHANT_MANUAL";
256
+ })(ReverseRefundHandlerEnum = ENUM.ReverseRefundHandlerEnum || (ENUM.ReverseRefundHandlerEnum = {}));
241
257
  })(ENUM || (exports.ENUM = ENUM = {}));
242
258
  /** RabbitMQ 交换机路由枚举 */
243
259
  var EXCHANGE_ENUM;
@@ -18,8 +18,10 @@ export declare namespace PosOrderQueryService {
18
18
  liveStreamRoomId: string;
19
19
  storeId: string;
20
20
  userId: string;
21
- /** 来源:0-直播、1-回放 */
22
- source: number;
21
+ /** 订单来源 */
22
+ source: ENUM.OrderSource;
23
+ /** 状态:0-直播、1-回放 */
24
+ status: number;
23
25
  /** UNKNOWN/APP/H5/MINI */
24
26
  platform: ENUM.OrderPlatform;
25
27
  /** UNKNOWN/IOS/ANDROID/HARMONY/PC */
@@ -453,6 +455,8 @@ export declare namespace PosOrderQueryService {
453
455
  source: ENUM.OrderSource;
454
456
  /** 订单类型 */
455
457
  orderType: ENUM.OrderType;
458
+ /** 积分数 */
459
+ pointNum: number;
456
460
  }
457
461
  interface IOrderList {
458
462
  /** 订单列表 */
@@ -493,6 +497,12 @@ export declare namespace PosOrderQueryService {
493
497
  detailAddress?: string;
494
498
  /** 申请退款状态 */
495
499
  applyRefund: ENUM.ApplyRefundStatus;
500
+ /** 订单来源 */
501
+ source: ENUM.OrderSource;
502
+ /** 积分数 */
503
+ pointNum: number;
504
+ /** 兑换券数量(积分商城订单) */
505
+ exchangeCouponNum?: number;
496
506
  };
497
507
  /** 商品信息 */
498
508
  product: {
@@ -179,6 +179,8 @@ export declare namespace RosOrderQueryService {
179
179
  arrivalTime?: number;
180
180
  /** 操作人昵称 */
181
181
  operatorNickname?: string;
182
+ /** 上传的图片/视频附件 */
183
+ attachments?: string[];
182
184
  };
183
185
  /** 正向订单信息 */
184
186
  positiveOrder: {
@@ -336,6 +338,10 @@ export declare namespace RosOrderQueryService {
336
338
  createdAt: number;
337
339
  /** 上传的附件 */
338
340
  attachments: string[];
341
+ /** 退款积分数 */
342
+ pointNum: number;
343
+ /** 拒绝原因(状态为拒绝时返回) */
344
+ rejectReason?: string;
339
345
  };
340
346
  /** 商品信息 */
341
347
  product: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "EcommerceTradeService Node.js SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",