public class UseCondition extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
acceptCategory
指定可用的商品类目,仅用于代金券类型 ,填入后将在券面拼写适用于xxx
|
private Boolean |
canUseWithOtherDiscount
不可以与其他类型共享门槛 ,
填写false时系统将在使用须知里 拼写“不可与其他优惠共享”,
填写true时系统将在使用须知里 拼写“可与其他优惠共享”, 默认为true
|
private Integer |
leastCost
满减门槛字段,可用于兑换券和代金券 ,填入后将在全面拼写消费满xx元可用。
|
private String |
objectUseFor
购买xx可用类型门槛,仅用于兑换 ,填入后自动拼写购买xxx可用
|
private String |
rejectCategory
指定不可用的商品类目,仅用于代金券类型 ,填入后将在券面拼写不适用于xxxx
|
| Constructor and Description |
|---|
UseCondition()
Instantiates a new Use condition.
|
UseCondition(String acceptCategory,
String rejectCategory,
Integer leastCost,
String objectUseFor,
Boolean canUseWithOtherDiscount)
Instantiates a new Use condition.
|
| Modifier and Type | Method and Description |
|---|---|
UseCondition |
acceptCategory(String acceptCategory)
Accept category use condition.
|
UseCondition |
canUseWithOtherDiscount(Boolean canUseWithOtherDiscount)
Can use with other discount use condition.
|
UseCondition |
leastCost(Integer leastCost)
Least cost use condition.
|
UseCondition |
objectUseFor(String objectUseFor)
Object use for use condition.
|
UseCondition |
rejectCategory(String rejectCategory)
Reject category use condition.
|
private String acceptCategory
private String rejectCategory
private Integer leastCost
private String objectUseFor
private Boolean canUseWithOtherDiscount
public UseCondition()
UseCondition(String acceptCategory, String rejectCategory, Integer leastCost, String objectUseFor, Boolean canUseWithOtherDiscount)
acceptCategory - the accept categoryrejectCategory - the reject categoryleastCost - the least costobjectUseFor - the object use forcanUseWithOtherDiscount - the can use with other discountpublic UseCondition acceptCategory(String acceptCategory)
acceptCategory - the accept categorypublic UseCondition rejectCategory(String rejectCategory)
rejectCategory - the reject categorypublic UseCondition leastCost(Integer leastCost)
leastCost - the least costpublic UseCondition objectUseFor(String objectUseFor)
objectUseFor - the object use forpublic UseCondition canUseWithOtherDiscount(Boolean canUseWithOtherDiscount)
canUseWithOtherDiscount - the can use with other discountCopyright © 2023. All rights reserved.