@be-link/ecommerce-trade-service-node-sdk 0.1.46 → 0.1.47

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
@@ -76,8 +76,7 @@ exports.ReverseRefundTypeMap = {
76
76
  [enums_1.ENUM.ReverseRefundType.RETURN_AND_REFUND]: '退货退款',
77
77
  };
78
78
  exports.ReverseRefundWayMap = {
79
- [enums_1.ENUM.ReverseRefundWay.USER_MANUAL]: '主动退款',
80
- [enums_1.ENUM.ReverseRefundWay.REVIEW]: '审核退款',
79
+ [enums_1.ENUM.ReverseRefundWay.USER_MANUAL]: '商家审核退款',
81
80
  [enums_1.ENUM.ReverseRefundWay.FAST]: '极速退款',
82
81
  [enums_1.ENUM.ReverseRefundWay.MERCHANT_MANUAL]: '商家主动退款',
83
82
  };
package/enums.d.ts CHANGED
@@ -136,13 +136,11 @@ export declare namespace ENUM {
136
136
  }
137
137
  /** 退款方式 */
138
138
  enum ReverseRefundWay {
139
- /** 主动退款 */
139
+ /** 用户主动退款,需要审核 */
140
140
  USER_MANUAL = "USER_MANUAL",
141
- /** 审核退款 */
142
- REVIEW = "REVIEW",
143
141
  /** 极速退款 */
144
142
  FAST = "FAST",
145
- /** 商家手动退款 */
143
+ /** 商家主动退款 */
146
144
  MERCHANT_MANUAL = "MERCHANT_MANUAL"
147
145
  }
148
146
  /** 支付渠道 */
package/enums.js CHANGED
@@ -152,13 +152,11 @@ var ENUM;
152
152
  /** 退款方式 */
153
153
  let ReverseRefundWay;
154
154
  (function (ReverseRefundWay) {
155
- /** 主动退款 */
155
+ /** 用户主动退款,需要审核 */
156
156
  ReverseRefundWay["USER_MANUAL"] = "USER_MANUAL";
157
- /** 审核退款 */
158
- ReverseRefundWay["REVIEW"] = "REVIEW";
159
157
  /** 极速退款 */
160
158
  ReverseRefundWay["FAST"] = "FAST";
161
- /** 商家手动退款 */
159
+ /** 商家主动退款 */
162
160
  ReverseRefundWay["MERCHANT_MANUAL"] = "MERCHANT_MANUAL";
163
161
  })(ReverseRefundWay = ENUM.ReverseRefundWay || (ENUM.ReverseRefundWay = {}));
164
162
  /** 支付渠道 */
@@ -416,8 +414,7 @@ var ENUM_CN;
416
414
  };
417
415
  /** 退款方式中文映射 */
418
416
  ENUM_CN.ReverseRefundWay = {
419
- [ENUM.ReverseRefundWay.USER_MANUAL]: '主动退款',
420
- [ENUM.ReverseRefundWay.REVIEW]: '审核退款',
417
+ [ENUM.ReverseRefundWay.USER_MANUAL]: '商家主动退款',
421
418
  [ENUM.ReverseRefundWay.FAST]: '极速退款',
422
419
  [ENUM.ReverseRefundWay.MERCHANT_MANUAL]: '商家主动退款',
423
420
  };
@@ -245,44 +245,8 @@ export declare namespace RosOrderQueryService {
245
245
  /** 门店名称 */
246
246
  storeName: string;
247
247
  };
248
- /** 退款资源信息 */
249
- resource?: {
250
- /** 资源ID */
251
- id: string;
252
- /** 资源类型 */
253
- resourceType: ENUM.ReverseResourceType;
254
- /** 资源业务ID */
255
- bizId: string;
256
- /** 资源扩展信息 */
257
- bizExtraInfo: {
258
- /** 订单ID */
259
- orderId: string;
260
- /** 逆向单ID */
261
- reverseOrderId: string;
262
- /** 用户ID */
263
- userId: string;
264
- /** 商品ID */
265
- productId: string;
266
- /** SKU ID */
267
- skuId: string;
268
- /** 退款金额(资金类型时) */
269
- amount?: number;
270
- /** 退款积分数量(积分类型时) */
271
- pointNum?: number;
272
- /** 退款券列表(优惠券类型时) */
273
- couponInfos?: {
274
- id: string;
275
- name: string;
276
- code: string;
277
- }[];
278
- };
279
- /** 资源退还额度 */
280
- bizValue: number;
281
- /** 是否退还 */
282
- isRefunded: boolean;
283
- /** 退还资源时间 */
284
- refundedAt: number;
285
- };
248
+ /** 退款资源信息列表 */
249
+ resource?: DTO.ITradeReverseOrderResource[];
286
250
  }
287
251
  interface IList {
288
252
  /** 列表数据 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-trade-service-node-sdk",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
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
@@ -156,13 +156,36 @@ export interface ITradeReverseOrder {
156
156
  updatedAt: number;
157
157
  orderItemIds: string[];
158
158
  }
159
+ /** 资源扩展信息类型 */
160
+ export interface IBizExtraInfo {
161
+ /** 订单ID */
162
+ orderId: string;
163
+ /** 逆向单ID */
164
+ reverseOrderId: string;
165
+ /** 用户ID */
166
+ userId: string;
167
+ /** 商品ID */
168
+ productId: string;
169
+ /** SKU ID */
170
+ skuId: string;
171
+ /** 退款金额(资金类型时) */
172
+ amount?: number;
173
+ /** 退款积分数量(积分类型时) */
174
+ pointNum?: number;
175
+ /** 退款券列表(优惠券类型时) */
176
+ couponInfos?: {
177
+ id: string;
178
+ name: string;
179
+ code: string;
180
+ }[];
181
+ }
159
182
  export interface ITradeReverseOrderResource {
160
183
  id: string;
161
184
  orderId: string;
162
185
  reverseOrderId: string;
163
186
  resourceType: ENUM.ReverseResourceType;
164
187
  bizId: string;
165
- bizExtraInfo: any;
188
+ bizExtraInfo: IBizExtraInfo;
166
189
  bizValue: number;
167
190
  isRefunded: boolean;
168
191
  refundedAt: number;