@be-link/ecommerce-promotion-service-node-sdk 0.1.53 → 0.1.54

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.
@@ -1,3 +1,4 @@
1
+ import { ENUM } from '../../enum';
1
2
  export declare namespace Service {
2
3
  namespace Entity {
3
4
  /** 已发放券信息 */
@@ -21,16 +22,16 @@ export declare namespace Service {
21
22
  membershipType: string;
22
23
  /** 权益类型 */
23
24
  benefitType: string;
24
- /** 发放状态:PENDING / SUCCESS / FAILED */
25
- status: string;
25
+ /** 发放状态 */
26
+ status: ENUM.MEMBER_ENUM.BENEFIT_RECORD_STATUS;
26
27
  /** 已发放券ID */
27
28
  issuedCouponId: string;
28
29
  /** 已发放券信息 */
29
30
  issuedCouponInfo: IssuedCouponInfo | null;
30
31
  /** 已发放积分数 */
31
32
  issuedPoints: number;
32
- /** 回收状态:NOT_NEEDED / PENDING / RECOVERED / PARTIALLY_RECOVERED / SKIPPED */
33
- recoveryStatus: string;
33
+ /** 回收状态 */
34
+ recoveryStatus: ENUM.MEMBER_ENUM.RECOVERY_STATUS;
34
35
  /** 已回收积分数 */
35
36
  recoveredPoints: number;
36
37
  /** 逆向单号(退款单号) */
@@ -44,6 +45,41 @@ export declare namespace Service {
44
45
  /** 删除时间(时间戳,毫秒,0 表示未删除) */
45
46
  deletedAt: number;
46
47
  }
48
+ /** 平铺的会员权益流水记录(按订单查询) */
49
+ interface BenefitRecordFlat {
50
+ /** 记录ID */
51
+ id: string;
52
+ /** 用户ID */
53
+ userId: string;
54
+ /** 会员订单号 */
55
+ orderNo: string;
56
+ /** 会员类型 */
57
+ membershipType: string;
58
+ /** 权益类型 */
59
+ benefitType: string;
60
+ /** 发放状态 */
61
+ benefitStatus: ENUM.MEMBER_ENUM.BENEFIT_RECORD_STATUS;
62
+ /** 回收状态 */
63
+ recoveryStatus: ENUM.MEMBER_ENUM.RECOVERY_STATUS;
64
+ /** 已发放积分数 */
65
+ issuedPoints: number;
66
+ /** 已回收积分数 */
67
+ recoveredPoints: number;
68
+ /** 已发放券模板ID */
69
+ issuedCouponId: string;
70
+ /** 已发放券码 */
71
+ issuedCouponCode: string;
72
+ /** 实时券状态(来自 userCouponService) */
73
+ couponStatus: ENUM.COUPON_ENUM.COUPON_STATUS | '';
74
+ /** 逆向单号(退款单号) */
75
+ reverseOrderId: string;
76
+ /** 失败原因 */
77
+ failReason: string;
78
+ /** 创建时间(时间戳,毫秒) */
79
+ createdAt: number;
80
+ /** 更新时间(时间戳,毫秒) */
81
+ updatedAt: number;
82
+ }
47
83
  /** 用户与福利官关系 */
48
84
  interface BenefitOfficerRelation {
49
85
  /** 关系ID */
@@ -113,24 +149,10 @@ export declare namespace Service {
113
149
  /** 逆向单号(退款单号) */
114
150
  reverseOrderId: string;
115
151
  }
116
- /** 查询权益记录列表 */
152
+ /** 按订单号查询权益记录 */
117
153
  interface listBenefitRecords {
118
- /** 用户ID(筛选) */
119
- userId?: string;
120
- /** 订单号(筛选) */
121
- orderNo?: string;
122
- /** 业务幂等键(筛选) */
123
- bizKey?: string;
124
- /** 权益类型(筛选) */
125
- benefitType?: string;
126
- /** 发放状态(筛选) */
127
- status?: string;
128
- /** 回收状态(筛选) */
129
- recoveryStatus?: string;
130
- /** 分页页码(从 0 开始) */
131
- pageIndex?: number;
132
- /** 分页大小 */
133
- pageSize?: number;
154
+ /** 会员订单号 */
155
+ orderNo: string;
134
156
  }
135
157
  /** 查询用户所属福利官 */
136
158
  interface listBenefitOfficers {
@@ -141,17 +163,8 @@ export declare namespace Service {
141
163
  namespace Response {
142
164
  type triggerMemberOrderPaid = void;
143
165
  type recoverMemberOrderRefund = Entity.RecoverMemberOrderRefundResult;
144
- /** 权益记录列表结果 */
145
- interface listBenefitRecords {
146
- /** 记录列表 */
147
- list: Entity.MemberBenefitRecordDTO[];
148
- /** 总数 */
149
- total: number;
150
- /** 分页页码(从 0 开始) */
151
- pageIndex: number;
152
- /** 分页大小 */
153
- pageSize: number;
154
- }
166
+ /** 按订单号查询权益记录(平铺) */
167
+ type listBenefitRecords = Entity.BenefitRecordFlat | null;
155
168
  type listBenefitOfficers = Entity.BenefitOfficerRelation[];
156
169
  }
157
170
  interface MemberController {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.53",
3
+ "version": "0.1.54",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",