From 22bdc4550d1090980fdefcb85a9cb279b7fc2e44 Mon Sep 17 00:00:00 2001 From: "felord.cn" Date: Sun, 17 Jan 2021 20:29:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=A3=E9=87=91=E5=88=B8=E7=94=9F?= =?UTF-8?q?=E6=88=90api=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 代金券核销规则优化 BREAKING CHANGE: 代金券核销规则-支付方式由Sring修改为枚举 --- .../wechat/v3/model/CouponUseRule.java | 51 ++++++++++++++++++- 1 file changed, 49 insertions(+), 2 deletions(-) diff --git a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/CouponUseRule.java b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/CouponUseRule.java index bc7fba6..b9566b4 100644 --- a/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/CouponUseRule.java +++ b/payment-spring-boot-autoconfigure/src/main/java/cn/felord/payment/wechat/v3/model/CouponUseRule.java @@ -22,7 +22,7 @@ import lombok.Data; import java.util.List; /** - * 核销规则. + * 代金券核销规则. * * @author felord.cn * @since 1.0.0.RELEASE @@ -74,8 +74,9 @@ public class CouponUseRule { *
  • FACE:人脸支付
  • *
  • OTHER:其他支付
  • * + * 不填则默认“不限” */ - private String tradeType; + private CouponTradeType tradeType; /** @@ -100,4 +101,50 @@ public class CouponUseRule { */ private List bin; } + + /** + * 代金券核销规则-支付方式. + * + * @author felord.cn + * @since 1.0.4.RELEASE + */ + public enum CouponTradeType { + /** + * 小程序支付 + * + * @since 1.0.4.RELEASE + */ + MICROAPP, + /** + * APP支付 + * + * @since 1.0.4.RELEASE + */ + APPPAY, + /** + * 免密支付 + * + * @since 1.0.4.RELEASE + */ + PPAY, + /** + * 刷卡支付 + * + * @since 1.0.4.RELEASE + */ + CARD, + /** + * 人脸支付 + * + * @since 1.0.4.RELEASE + */ + FACE, + /** + * 其他支付 + * + * @since 1.0.4.RELEASE + */ + OTHER, + } + }