feat: 代金券生成api接口优化

- 代金券核销规则优化

BREAKING CHANGE: 代金券核销规则-支付方式由Sring修改为枚举
This commit is contained in:
felord.cn
2021-01-17 20:29:45 +08:00
parent c96e014273
commit 22bdc4550d

View File

@@ -22,7 +22,7 @@ import lombok.Data;
import java.util.List; import java.util.List;
/** /**
* 核销规则. * 代金券核销规则.
* *
* @author felord.cn * @author felord.cn
* @since 1.0.0.RELEASE * @since 1.0.0.RELEASE
@@ -74,8 +74,9 @@ public class CouponUseRule {
* <li>FACE人脸支付</li> * <li>FACE人脸支付</li>
* <li>OTHER其他支付</li> * <li>OTHER其他支付</li>
* </ul> * </ul>
* 不填则默认“不限”
*/ */
private String tradeType; private CouponTradeType tradeType;
/** /**
@@ -100,4 +101,50 @@ public class CouponUseRule {
*/ */
private List<String> bin; private List<String> 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,
}
} }