@be-link/ecommerce-promotion-service-node-sdk 0.0.23 → 0.0.24

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.
@@ -8,6 +8,7 @@ declare class PointsMallService extends BaseService implements Service.PointsMal
8
8
  queryProducts(request: Service.Request.queryProducts): Promise<Service.Response.queryProducts>;
9
9
  getProductDetail(request: Service.Request.getProductDetail): Promise<Service.Response.getProductDetail>;
10
10
  queryEnabledAndOnlineProducts(request: Service.Request.queryEnabledAndOnlineProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
11
+ getAvailableCouponCountForProduct(request: Service.Request.getAvailableCouponCountForProduct): Promise<Service.Response.getAvailableCouponCountForProduct>;
11
12
  }
12
13
  export declare const pointsMallService: PointsMallService;
13
14
  export default pointsMallService;
@@ -39,6 +39,9 @@ let PointsMallService = class PointsMallService extends BaseService_1.default {
39
39
  queryEnabledAndOnlineProducts(request) {
40
40
  return (0, http_1.callApi)(this.getApiUrl(this.queryEnabledAndOnlineProducts), request);
41
41
  }
42
+ getAvailableCouponCountForProduct(request) {
43
+ return (0, http_1.callApi)(this.getApiUrl(this.getAvailableCouponCountForProduct), request);
44
+ }
42
45
  };
43
46
  __decorate([
44
47
  (0, tsoa_1.OperationId)('批量创建积分商城商品'),
@@ -70,6 +73,11 @@ __decorate([
70
73
  (0, tsoa_1.Post)('query-enabled-and-online-products'),
71
74
  __param(0, (0, tsoa_1.Body)())
72
75
  ], PointsMallService.prototype, "queryEnabledAndOnlineProducts", null);
76
+ __decorate([
77
+ (0, tsoa_1.OperationId)('查询指定商品用户可用优惠券的数量'),
78
+ (0, tsoa_1.Post)('get-available-coupon-count-for-product'),
79
+ __param(0, (0, tsoa_1.Body)())
80
+ ], PointsMallService.prototype, "getAvailableCouponCountForProduct", null);
73
81
  PointsMallService = __decorate([
74
82
  (0, tsoa_1.Route)('points-mall'),
75
83
  (0, tsoa_1.Tags)('PointsMall')
@@ -102,6 +102,13 @@ export declare namespace Service {
102
102
  /** 每页数量 */
103
103
  pageSize?: number;
104
104
  }
105
+ /** 查询指定商品用户可用优惠券的数量 */
106
+ export interface getAvailableCouponCountForProduct {
107
+ /** 用户ID */
108
+ userId: string;
109
+ /** 商品ID */
110
+ productId: string;
111
+ }
105
112
  /** 根据商品ID查询商品详情 */
106
113
  export interface getProductDetail {
107
114
  /** 商品ID */
@@ -151,6 +158,11 @@ export declare namespace Service {
151
158
  /** 每页数量 */
152
159
  pageSize: number;
153
160
  }
161
+ /** 查询指定商品用户可用优惠券的数量响应 */
162
+ interface getAvailableCouponCountForProduct {
163
+ /** 可用优惠券数量 */
164
+ count: number;
165
+ }
154
166
  }
155
167
  interface PointsMallController {
156
168
  /** 批量创建积分商城商品 */
@@ -165,5 +177,7 @@ export declare namespace Service {
165
177
  getProductDetail(request: Service.Request.getProductDetail): Promise<Service.Response.getProductDetail>;
166
178
  /** 查询开启且上架的积分商城列表 */
167
179
  queryEnabledAndOnlineProducts(request: Service.Request.queryEnabledAndOnlineProducts): Promise<Service.Response.queryEnabledAndOnlineProducts>;
180
+ /** 查询指定商品用户可用优惠券的数量 */
181
+ getAvailableCouponCountForProduct(request: Service.Request.getAvailableCouponCountForProduct): Promise<Service.Response.getAvailableCouponCountForProduct>;
168
182
  }
169
183
  }
@@ -77,8 +77,6 @@ export declare namespace Service {
77
77
  quantity: number;
78
78
  /** SKU ID */
79
79
  skuId: string;
80
- /** 订单来源 */
81
- source: ENUM.PRICING_CALCULATION_ENUM.ORDER_SOURCE;
82
80
  }
83
81
  /** 用户手动选择优惠后算价 */
84
82
  interface calculateWithSelectedDiscounts {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-promotion-service-node-sdk",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "EcommercePromotionService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",