@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class ConstraintInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ConstraintInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CASH_POOL_ID |
static String |
SERIALIZED_NAME_CROWD_GROUP_ID |
static String |
SERIALIZED_NAME_CROWD_RESTRICTION |
static String |
SERIALIZED_NAME_CROWD_RESTRICTION_VALUE |
static String |
SERIALIZED_NAME_ITEM_IDS |
static String |
SERIALIZED_NAME_MIN_COST |
static String |
SERIALIZED_NAME_SUBSIDY_PERCENT |
static String |
SERIALIZED_NAME_SUIT_SHOPS |
static String |
SERIALIZED_NAME_USER_WIN_COUNT |
static String |
SERIALIZED_NAME_USER_WIN_FREQUENCY |
| 构造器和说明 |
|---|
ConstraintInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
ConstraintInfo |
addItemIdsItem(String itemIdsItem) |
ConstraintInfo |
addSuitShopsItem(String suitShopsItem) |
ConstraintInfo |
cashPoolId(String cashPoolId) |
ConstraintInfo |
crowdGroupId(String crowdGroupId) |
ConstraintInfo |
crowdRestriction(String crowdRestriction) |
ConstraintInfo |
crowdRestrictionValue(String crowdRestrictionValue) |
boolean |
equals(Object o) |
static ConstraintInfo |
fromJson(String jsonString)
Create an instance of ConstraintInfo given an JSON string
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getCashPoolId()
资金池ID (数据来源:需要ISV自己去口碑销售中台创建资金池,拿到对应的资金池ID,此参数仅适用ISV接入口福业务场景时使用,其他场景不需要传递此参数)
|
String |
getCrowdGroupId()
人群规则组ID 仅直发奖类型活动设置有效,通过调用营销活动人群组规则创建接口参数返回
|
String |
getCrowdRestriction()
针对指定人群的约束条件
|
String |
getCrowdRestrictionValue()
根据crowd_restriction的值不同,设置相应的值,如果crowd_restriction是“MEMBER_CARD”,crowd_restriction_value就是关联会员卡模版ID集合,用逗号拼接
|
List<String> |
getItemIds()
单品码列表 仅在创建消费单品送活动时设置,最多设置500个单品码,由商户根据自己的商品管理自定义,一般为国标码
|
String |
getMinCost()
最低消费金额,单位元 仅在创建消费送礼包活动时设置
|
String |
getSubsidyPercent()
补贴百分比,95表示 95%,支持两位小数 (参数说明:补贴比例95%,表示ISV出资95%,商户出资5%,此参数仅适用ISV接入口福业务场景时使用,其他场景不需要传递此参数)
|
List<String> |
getSuitShops()
活动适用的门店列表 仅品牌商发起的招商活动可为空 最多支持10w家门店
|
String |
getUserWinCount()
活动期间用户能够参与的次数限制 如果不设置则不限制参与次数
|
String |
getUserWinFrequency()
活动期间用户能够参与的频率限制 如果不设置则不限制参与频率 每日中奖1次: D||1 每周中奖2次: W||2 每月中奖3次: M||3
|
int |
hashCode() |
ConstraintInfo |
itemIds(List<String> itemIds) |
ConstraintInfo |
minCost(String minCost) |
ConstraintInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setCashPoolId(String cashPoolId) |
void |
setCrowdGroupId(String crowdGroupId) |
void |
setCrowdRestriction(String crowdRestriction) |
void |
setCrowdRestrictionValue(String crowdRestrictionValue) |
void |
setItemIds(List<String> itemIds) |
void |
setMinCost(String minCost) |
void |
setSubsidyPercent(String subsidyPercent) |
void |
setSuitShops(List<String> suitShops) |
void |
setUserWinCount(String userWinCount) |
void |
setUserWinFrequency(String userWinFrequency) |
ConstraintInfo |
subsidyPercent(String subsidyPercent) |
ConstraintInfo |
suitShops(List<String> suitShops) |
String |
toJson()
Convert an instance of ConstraintInfo to an JSON string
|
String |
toString() |
ConstraintInfo |
userWinCount(String userWinCount) |
ConstraintInfo |
userWinFrequency(String userWinFrequency) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_CROWD_GROUP_ID
public static final String SERIALIZED_NAME_CROWD_RESTRICTION
public static final String SERIALIZED_NAME_CROWD_RESTRICTION_VALUE
public static final String SERIALIZED_NAME_SUBSIDY_PERCENT
public static final String SERIALIZED_NAME_USER_WIN_COUNT
public static final String SERIALIZED_NAME_USER_WIN_FREQUENCY
public ConstraintInfo cashPoolId(String cashPoolId)
@Nullable public String getCashPoolId()
public void setCashPoolId(String cashPoolId)
public ConstraintInfo crowdGroupId(String crowdGroupId)
@Nullable public String getCrowdGroupId()
public void setCrowdGroupId(String crowdGroupId)
public ConstraintInfo crowdRestriction(String crowdRestriction)
public void setCrowdRestriction(String crowdRestriction)
public ConstraintInfo crowdRestrictionValue(String crowdRestrictionValue)
@Nullable public String getCrowdRestrictionValue()
public void setCrowdRestrictionValue(String crowdRestrictionValue)
public ConstraintInfo itemIds(List<String> itemIds)
public ConstraintInfo addItemIdsItem(String itemIdsItem)
@Nullable public List<String> getItemIds()
public ConstraintInfo minCost(String minCost)
public void setMinCost(String minCost)
public ConstraintInfo subsidyPercent(String subsidyPercent)
@Nullable public String getSubsidyPercent()
public void setSubsidyPercent(String subsidyPercent)
public ConstraintInfo suitShops(List<String> suitShops)
public ConstraintInfo addSuitShopsItem(String suitShopsItem)
@Nullable public List<String> getSuitShops()
public ConstraintInfo userWinCount(String userWinCount)
@Nullable public String getUserWinCount()
public void setUserWinCount(String userWinCount)
public ConstraintInfo userWinFrequency(String userWinFrequency)
@Nullable public String getUserWinFrequency()
public void setUserWinFrequency(String userWinFrequency)
public ConstraintInfo putAdditionalProperty(String key, Object value)
key - name of the propertyvalue - value of the propertypublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - name of the propertypublic static void validateJsonObject(com.google.gson.JsonObject jsonObj)
throws IOException
jsonObj - JSON ObjectIOException - if the JSON Object is invalid with respect to ConstraintInfopublic static ConstraintInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to ConstraintInfopublic String toJson()
Copyright © 2024. All rights reserved.