public class StockSendRule extends Object
| Modifier and Type | Field and Description |
|---|---|
private Integer |
maxCoupons
批次最大发放个数
|
private Integer |
maxCouponsByDay
单天发放上限个数
|
private Integer |
maxCouponsPerUser
用户最大可领个数
|
private Boolean |
naturalPersonLimit
是否开启自然人限制
|
private Boolean |
preventApiAbuse
可疑账号拦截
|
private Boolean |
shareable
是否允许分享链接
|
private Boolean |
transferable
是否允许转赠
|
| Constructor and Description |
|---|
StockSendRule() |
StockSendRule(Integer maxCoupons,
Integer maxCouponsPerUser,
Integer maxCouponsByDay,
Boolean naturalPersonLimit,
Boolean preventApiAbuse,
Boolean transferable,
Boolean shareable)
Instantiates a new Stock send rule.
|
| Modifier and Type | Method and Description |
|---|---|
StockSendRule |
maxCoupons(Integer maxCoupons)
Max coupons stock send rule.
|
StockSendRule |
maxCouponsByDay(Integer maxCouponsByDay)
Max coupons by day stock send rule.
|
StockSendRule |
maxCouponsPerUser(Integer maxCouponsPerUser)
Max coupons per user stock send rule.
|
StockSendRule |
naturalPersonLimit(Boolean naturalPersonLimit)
Natural person limit stock send rule.
|
StockSendRule |
preventApiAbuse(Boolean preventApiAbuse)
Prevent api abuse stock send rule.
|
StockSendRule |
shareable(Boolean shareable)
Shareable stock send rule.
|
StockSendRule |
transferable(Boolean transferable)
Transferable stock send rule.
|
private Integer maxCoupons
特殊规则:取值范围 1 ≤ maxCoupons ≤ 1000000000
private Integer maxCouponsPerUser
每个用户最多100张券 。
private Integer maxCouponsByDay
StockType.DISCOUNT或者StockType.DISCOUNT时可传入此字段控制单天发放上限
特殊规则:取值范围 1 ≤ maxCouponsByDay ≤ 1000000000
private Boolean naturalPersonLimit
private Boolean preventApiAbuse
private Boolean transferable
private Boolean shareable
StockSendRule(Integer maxCoupons, Integer maxCouponsPerUser, Integer maxCouponsByDay, Boolean naturalPersonLimit, Boolean preventApiAbuse, Boolean transferable, Boolean shareable)
maxCoupons - the max couponsmaxCouponsPerUser - the max coupons per usermaxCouponsByDay - the max coupons by daynaturalPersonLimit - the natural person limitpreventApiAbuse - the prevent api abusetransferable - the transferableshareable - the shareablepublic StockSendRule()
public StockSendRule maxCoupons(Integer maxCoupons)
maxCoupons - the max couponspublic StockSendRule maxCouponsPerUser(Integer maxCouponsPerUser)
maxCouponsPerUser - the max coupons per userpublic StockSendRule maxCouponsByDay(Integer maxCouponsByDay)
maxCouponsByDay - the max coupons by daypublic StockSendRule naturalPersonLimit(Boolean naturalPersonLimit)
naturalPersonLimit - the natural person limitpublic StockSendRule preventApiAbuse(Boolean preventApiAbuse)
preventApiAbuse - the prevent api abusepublic StockSendRule transferable(Boolean transferable)
transferable - the transferablepublic StockSendRule shareable(Boolean shareable)
shareable - the shareableCopyright © 2023. All rights reserved.