public class FavorCreateParams extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
belongMerchant
批次归属商户号,必填
|
private String |
comment
批次备注,[1,20],选填
|
private CouponCodeMode |
couponCodeMode
商家券code模式枚举
|
private CouponUseRule |
couponUseRule
核销规则
|
private CustomEntrance |
customEntrance
自定义入口
|
private DisplayPatternInfo |
displayPatternInfo
样式信息
|
private String |
goodsName
适用商品范围,必填
|
private FavorNotifyConfig |
notifyConfig
事件通知配置
|
private String |
outRequestNo
商户请求单号
|
private String |
stockName
商家券批次名称,[1,21],必填
|
private StockSendRule |
stockSendRule
券发放规则
|
private StockType |
stockType
批次类型
|
private Boolean |
subsidy
是否允许营销补贴
|
| Constructor and Description |
|---|
FavorCreateParams(String stockName,
String belongMerchant,
String goodsName,
StockType stockType,
CouponUseRule couponUseRule,
CouponCodeMode couponCodeMode,
StockSendRule stockSendRule,
String outRequestNo)
Instantiates a new Favor create params.
|
| Modifier and Type | Method and Description |
|---|---|
FavorCreateParams |
comment(String comment)
Comment busi favor create params.
|
FavorCreateParams |
customEntrance(CustomEntrance customEntrance)
Custom entrance busi favor create params.
|
static FavorCreateParams |
discount(String stockName,
String belongMerchant,
String goodsName,
BusiFavorUseMethod useMethod,
CouponAvailableTime availableTime,
DiscountCoupon discountCoupon,
CouponCodeMode couponCodeMode,
StockSendRule stockSendRule,
String outRequestNo)
折扣券
|
FavorCreateParams |
displayPatternInfo(DisplayPatternInfo displayPatternInfo)
Display pattern info busi favor create params.
|
static FavorCreateParams |
exchange(String stockName,
String belongMerchant,
String goodsName,
BusiFavorUseMethod useMethod,
CouponAvailableTime availableTime,
ExchangeCoupon exchangeCoupon,
CouponCodeMode couponCodeMode,
StockSendRule stockSendRule,
String outRequestNo)
换购券
|
FavorCreateParams |
miniProgramsAppid(String miniProgramsAppid)
Mini programs appid favor create params.
|
FavorCreateParams |
miniProgramsPath(String miniProgramsPath)
Mini programs path coupon use rule.
|
static FavorCreateParams |
normal(String stockName,
String belongMerchant,
String goodsName,
BusiFavorUseMethod useMethod,
CouponAvailableTime availableTime,
FixedNormalCoupon fixedNormalCoupon,
CouponCodeMode couponCodeMode,
StockSendRule stockSendRule,
String outRequestNo)
满减券
|
FavorCreateParams |
notifyConfig(FavorNotifyConfig notifyConfig)
Notify config busi favor create params.
|
FavorCreateParams |
subsidy(Boolean subsidy)
Subsidy busi favor create params.
|
private final String stockName
private final String belongMerchant
private final String goodsName
用来描述批次在哪些商品可用,会显示在微信卡包中。字数上限为15个,一个中文汉字/英文字母/数字均占用一个字数。
private String comment
private final StockType stockType
private final CouponUseRule couponUseRule
private CustomEntrance customEntrance
private final CouponCodeMode couponCodeMode
private DisplayPatternInfo displayPatternInfo
private final StockSendRule stockSendRule
private final String outRequestNo
商户创建批次凭据号(格式:商户id+日期+流水号),商户侧需保持唯一性。
private FavorNotifyConfig notifyConfig
private Boolean subsidy
FavorCreateParams(String stockName, String belongMerchant, String goodsName, StockType stockType, CouponUseRule couponUseRule, CouponCodeMode couponCodeMode, StockSendRule stockSendRule, String outRequestNo)
stockName - the stock namebelongMerchant - the belong merchantgoodsName - the goods namestockType - the stock typecouponUseRule - the coupon use rulecouponCodeMode - the coupon code modestockSendRule - the stock send ruleoutRequestNo - the out request nopublic static FavorCreateParams normal(String stockName, String belongMerchant, String goodsName, BusiFavorUseMethod useMethod, CouponAvailableTime availableTime, FixedNormalCoupon fixedNormalCoupon, CouponCodeMode couponCodeMode, StockSendRule stockSendRule, String outRequestNo)
stockName - the stock namebelongMerchant - the belong merchantgoodsName - the goods nameuseMethod - the use methodavailableTime - the available timefixedNormalCoupon - the fixed normal couponcouponCodeMode - the coupon code modestockSendRule - the stock send ruleoutRequestNo - the out request nopublic static FavorCreateParams discount(String stockName, String belongMerchant, String goodsName, BusiFavorUseMethod useMethod, CouponAvailableTime availableTime, DiscountCoupon discountCoupon, CouponCodeMode couponCodeMode, StockSendRule stockSendRule, String outRequestNo)
stockName - the stock namebelongMerchant - the belong merchantgoodsName - the goods nameuseMethod - the use methodavailableTime - the available timediscountCoupon - the discount couponcouponCodeMode - the coupon code modestockSendRule - the stock send ruleoutRequestNo - the out request nopublic static FavorCreateParams exchange(String stockName, String belongMerchant, String goodsName, BusiFavorUseMethod useMethod, CouponAvailableTime availableTime, ExchangeCoupon exchangeCoupon, CouponCodeMode couponCodeMode, StockSendRule stockSendRule, String outRequestNo)
stockName - the stock namebelongMerchant - the belong merchantgoodsName - the goods nameuseMethod - the use methodavailableTime - the available timeexchangeCoupon - the exchange couponcouponCodeMode - the coupon code modestockSendRule - the stock send ruleoutRequestNo - the out request nopublic FavorCreateParams comment(String comment)
comment - the commentpublic FavorCreateParams customEntrance(CustomEntrance customEntrance)
customEntrance - the custom entrancepublic FavorCreateParams displayPatternInfo(DisplayPatternInfo displayPatternInfo)
displayPatternInfo - the display pattern infopublic FavorCreateParams notifyConfig(FavorNotifyConfig notifyConfig)
notifyConfig - the notify configpublic FavorCreateParams subsidy(Boolean subsidy)
subsidy - the subsidypublic FavorCreateParams miniProgramsAppid(String miniProgramsAppid)
miniProgramsAppid - the mini programs appidpublic FavorCreateParams miniProgramsPath(String miniProgramsPath)
miniProgramsPath - the mini programs pathCopyright © 2023. All rights reserved.