@yorkjs/hive-biz 0.2.4 → 0.2.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorkjs/hive-biz",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "util function",
5
5
  "main": "dist/hive-biz.esm.js",
6
6
  "module": "dist/hive-biz.esm.js",
@@ -33,6 +33,7 @@ export declare function formatCouponAmountSuffix(coupon: ICoupon): string;
33
33
  /**
34
34
  * 门槛展示值(不含「使用门槛:」)。
35
35
  * 由 thresholdType + thresholdValue 生成;0 为无门槛。
36
+ * 折扣券设置了优惠上限时,接在门槛后:满0.01元,封顶减10元。
36
37
  */
37
38
  export declare function formatCouponThreshold(coupon: ICoupon): string;
38
39
  /**
@@ -55,6 +55,11 @@ export interface ICoupon {
55
55
  * thresholdType 1 为金额最小单位,2 为件数;0 视为无门槛。
56
56
  */
57
57
  thresholdValue: number;
58
+ /**
59
+ * 折扣券优惠上限,对齐 discount_max_amount,金额最小单位。
60
+ * 仅折扣券且大于 0 时,拼在使用门槛后:「,封顶减XX元」。
61
+ */
62
+ discountMaxAmount?: number;
58
63
  /**
59
64
  * 生效开始类型,对齐 effective_start_type:
60
65
  * 1 立即 / 2 指定时间。发券模板 expireMode: validity 时使用。