@be-link/ecommerce-promotion-service-node-sdk 0.1.21 → 0.1.23

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.
@@ -7,6 +7,7 @@ declare class AwardService extends BaseService implements Service.PrizeDistribut
7
7
  liveRoomIssueCoupon(request: Service.Request.liveRoomIssueCoupon): Promise<Service.Response.distributePrize>;
8
8
  queryLiveRoomDistributionStats(request: Service.Request.queryLiveRoomDistributionStats): Promise<Service.Response.queryLiveRoomDistributionStatsResponse>;
9
9
  adminSingleIssueCoupon(request: Service.Request.adminSingleIssueCoupon): Promise<Service.Response.distributePrize>;
10
+ batchIssueCoupon(request: Service.Request.batchIssueCoupon): Promise<Service.Response.distributePrize>;
10
11
  }
11
12
  export declare const awardService: AwardService;
12
13
  export default awardService;
@@ -36,6 +36,9 @@ let AwardService = class AwardService extends BaseService_1.default {
36
36
  adminSingleIssueCoupon(request) {
37
37
  return (0, http_1.callApi)(this.getApiUrl(this.adminSingleIssueCoupon), request);
38
38
  }
39
+ batchIssueCoupon(request) {
40
+ return (0, http_1.callApi)(this.getApiUrl(this.batchIssueCoupon), request);
41
+ }
39
42
  };
40
43
  __decorate([
41
44
  (0, tsoa_1.OperationId)('发放奖励'),
@@ -62,6 +65,11 @@ __decorate([
62
65
  (0, tsoa_1.Post)('admin-single-issue-coupon'),
63
66
  __param(0, (0, tsoa_1.Body)())
64
67
  ], AwardService.prototype, "adminSingleIssueCoupon", null);
68
+ __decorate([
69
+ (0, tsoa_1.OperationId)('批量发放券'),
70
+ (0, tsoa_1.Post)('batch-issue-coupon'),
71
+ __param(0, (0, tsoa_1.Body)())
72
+ ], AwardService.prototype, "batchIssueCoupon", null);
65
73
  AwardService = __decorate([
66
74
  (0, tsoa_1.Route)('award'),
67
75
  (0, tsoa_1.Tags)('Award')
@@ -127,6 +127,30 @@ export declare namespace Service {
127
127
  /** 数量 */
128
128
  quantity?: number;
129
129
  }
130
+ /** 批量发放券请求项 */
131
+ interface batchIssueCouponItem {
132
+ /** 业务编号 */
133
+ bizNo: string;
134
+ /** 直播间ID */
135
+ liveRoomId: string;
136
+ /** 用户ID */
137
+ userId: string;
138
+ /** 优惠券ID */
139
+ couponId: string;
140
+ /** 数量 */
141
+ quantity: number;
142
+ /** 业务ID */
143
+ bizId: string;
144
+ /** 操作人ID */
145
+ operatorId: string;
146
+ }
147
+ /** 批量发放券 */
148
+ interface batchIssueCoupon {
149
+ /** 批量发放券请求列表 */
150
+ requests: batchIssueCouponItem[];
151
+ /** 发放渠道 */
152
+ getChannel: ENUM.AWARD_ENUM.DISTRIBUTION_CHANNEL;
153
+ }
130
154
  }
131
155
  namespace Response {
132
156
  /** 发放奖励响应 */
@@ -162,5 +186,7 @@ export declare namespace Service {
162
186
  queryLiveRoomDistributionStats(request: Service.Request.queryLiveRoomDistributionStats, req: any): Promise<Service.Response.queryLiveRoomDistributionStatsResponse>;
163
187
  /** 后台单个发券 */
164
188
  adminSingleIssueCoupon(request: Service.Request.adminSingleIssueCoupon, req: any): Promise<Service.Response.distributePrize>;
189
+ /** 批量发放券 */
190
+ batchIssueCoupon(request: Service.Request.batchIssueCoupon, req: any): Promise<Service.Response.distributePrize>;
165
191
  }
166
192
  }
@@ -154,7 +154,11 @@ export declare namespace Service {
154
154
  /** 券优惠金额(分) */
155
155
  couponDiscountAmount: number;
156
156
  /** 会员优惠金额(分) */
157
- memberDiscountAmount: number;
157
+ memberDiscount: {
158
+ totalAmount: number;
159
+ itemAmount: number;
160
+ quantity: number;
161
+ };
158
162
  /** 优惠后金额(分) */
159
163
  discountedAmount: number;
160
164
  /** 积分最高抵扣金额(分) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",