mirror of
https://github.com/dromara/payment-spring-boot.git
synced 2026-03-13 21:33:41 +08:00
feat: 代金券生成api接口优化
- 代金券核销规则优化 BREAKING CHANGE: 代金券核销规则-支付方式由Sring修改为枚举
This commit is contained in:
@@ -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,
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user