@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class SendRule extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SendRule.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ALLOW_REPEAT_SEND |
static String |
SERIALIZED_NAME_MIN_COST |
static String |
SERIALIZED_NAME_SEND_BUDGET |
static String |
SERIALIZED_NAME_SEND_NUM |
| 构造器和说明 |
|---|
SendRule() |
| 限定符和类型 | 方法和说明 |
|---|---|
SendRule |
allowRepeatSend(String allowRepeatSend) |
boolean |
equals(Object o) |
static SendRule |
fromJson(String jsonString)
Create an instance of SendRule 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 |
getAllowRepeatSend()
是否允许重复发奖: true代表允许,false代表不允许 默认不设置,表明用户领取券后如果没有核销则不允许再次领取券 如果设置为true,表明如果用户领取券后没有核销,还可以继续领取该券(只有配置publish_channels中type为URL_WITH_TOKEN外部发券时,该字段生效)
|
String |
getMinCost()
发券最低消费金额,单位元 活动类型为消费送且不是消费送礼包时设置 多营销工具之间不允许设置重复值
|
String |
getSendBudget()
券的预算数量(仅对口令送随机抽奖有效,即当活动类型为GUESS_SEND,且营销工具PromoTool的个数大于1时,此字段必填,其余情况此字段必为空)
|
String |
getSendNum()
发券数目 最少发1张券,最多发5张券
|
int |
hashCode() |
SendRule |
minCost(String minCost) |
SendRule |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
SendRule |
sendBudget(String sendBudget) |
SendRule |
sendNum(String sendNum) |
void |
setAllowRepeatSend(String allowRepeatSend) |
void |
setMinCost(String minCost) |
void |
setSendBudget(String sendBudget) |
void |
setSendNum(String sendNum) |
String |
toJson()
Convert an instance of SendRule to an JSON string
|
String |
toString() |
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_ALLOW_REPEAT_SEND
@Nullable public String getAllowRepeatSend()
public void setAllowRepeatSend(String allowRepeatSend)
@Nullable public String getMinCost()
public void setMinCost(String minCost)
@Nullable public String getSendBudget()
public void setSendBudget(String sendBudget)
public void setSendNum(String sendNum)
public SendRule 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 SendRulepublic static SendRule fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to SendRulepublic String toJson()
Copyright © 2024. All rights reserved.