@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class UseRule extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
UseRule.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_EXT_INFO |
static String |
SERIALIZED_NAME_FORBIDDEN_TIME |
static String |
SERIALIZED_NAME_LIMIT_RULE |
static String |
SERIALIZED_NAME_MIN_CONSUME |
static String |
SERIALIZED_NAME_PAY_REDIRECT_URL |
static String |
SERIALIZED_NAME_SUIT_SHOPS |
static String |
SERIALIZED_NAME_USE_TIME |
| 构造器和说明 |
|---|
UseRule() |
| 限定符和类型 | 方法和说明 |
|---|---|
UseRule |
addSuitShopsItem(String suitShopsItem) |
UseRule |
addUseTimeItem(UseTime useTimeItem) |
boolean |
equals(Object o) |
UseRule |
extInfo(String extInfo) |
UseRule |
forbiddenTime(ForbbidenTime forbiddenTime) |
static UseRule |
fromJson(String jsonString)
Create an instance of UseRule 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 |
getExtInfo()
扩展属性,无需设置
|
ForbbidenTime |
getForbiddenTime()
Get forbiddenTime
|
String |
getLimitRule()
优惠券的使用支付渠道限制规 则, 不受支付渠道限制 :USE_NO_LIMIT; 仅限口碑储值卡支付时可用 :USE_ON_CURRENT_PAY_C HANNEL; 口碑储值卡支付时不可用 :NOT_ALLOWED_USE; 【备注】支付渠道限制不允许修改
|
String |
getMinConsume()
券核销的最低消费门槛,单位元
|
String |
getPayRedirectUrl()
券买单跳转链接
|
List<String> |
getSuitShops()
券适用门店列表 仅品牌商发起的招商活动可为空 直发奖类型活动必须与活动适用门店一致 最多支持10w家门店
|
List<UseTime> |
getUseTime()
券可用时间段
|
int |
hashCode() |
UseRule |
limitRule(String limitRule) |
UseRule |
minConsume(String minConsume) |
UseRule |
payRedirectUrl(String payRedirectUrl) |
UseRule |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setExtInfo(String extInfo) |
void |
setForbiddenTime(ForbbidenTime forbiddenTime) |
void |
setLimitRule(String limitRule) |
void |
setMinConsume(String minConsume) |
void |
setPayRedirectUrl(String payRedirectUrl) |
void |
setSuitShops(List<String> suitShops) |
void |
setUseTime(List<UseTime> useTime) |
UseRule |
suitShops(List<String> suitShops) |
String |
toJson()
Convert an instance of UseRule to an JSON string
|
String |
toString() |
UseRule |
useTime(List<UseTime> useTime) |
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_FORBIDDEN_TIME
public static final String SERIALIZED_NAME_PAY_REDIRECT_URL
public void setExtInfo(String extInfo)
public UseRule forbiddenTime(ForbbidenTime forbiddenTime)
@Nullable public ForbbidenTime getForbiddenTime()
public void setForbiddenTime(ForbbidenTime forbiddenTime)
@Nullable public String getLimitRule()
public void setLimitRule(String limitRule)
public void setMinConsume(String minConsume)
public void setPayRedirectUrl(String payRedirectUrl)
@Nullable public List<String> getSuitShops()
public UseRule 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 UseRulepublic static UseRule fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to UseRulepublic String toJson()
Copyright © 2024. All rights reserved.