@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherUseRuleInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoucherUseRuleInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_QUANTITY_LIMIT_PER_USER |
static String |
SERIALIZED_NAME_QUANTITY_LIMIT_PER_USER_PERIOD_TYPE |
static String |
SERIALIZED_NAME_VOUCHER_MAX_USE_TIMES |
static String |
SERIALIZED_NAME_VOUCHER_USE_EXT_INFO |
static String |
SERIALIZED_NAME_VOUCHER_USE_TIME_INFO |
| 构造器和说明 |
|---|
VoucherUseRuleInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static VoucherUseRuleInfo |
fromJson(String jsonString)
Create an instance of VoucherUseRuleInfo 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.
|
Integer |
getQuantityLimitPerUser()
核销次数限制。
|
String |
getQuantityLimitPerUserPeriodType()
周期限领配置,限制每人在固定周期内领取张数(voucher_quantity_limit_per_user),默认LIFE_CYCLE
|
Integer |
getVoucherMaxUseTimes()
券最大核销次数。
|
String |
getVoucherUseExtInfo()
自定义扩展信息
|
VoucherUseTimeInfo |
getVoucherUseTimeInfo()
Get voucherUseTimeInfo
|
int |
hashCode() |
VoucherUseRuleInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
VoucherUseRuleInfo |
quantityLimitPerUser(Integer quantityLimitPerUser) |
VoucherUseRuleInfo |
quantityLimitPerUserPeriodType(String quantityLimitPerUserPeriodType) |
void |
setQuantityLimitPerUser(Integer quantityLimitPerUser) |
void |
setQuantityLimitPerUserPeriodType(String quantityLimitPerUserPeriodType) |
void |
setVoucherMaxUseTimes(Integer voucherMaxUseTimes) |
void |
setVoucherUseExtInfo(String voucherUseExtInfo) |
void |
setVoucherUseTimeInfo(VoucherUseTimeInfo voucherUseTimeInfo) |
String |
toJson()
Convert an instance of VoucherUseRuleInfo 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
|
VoucherUseRuleInfo |
voucherMaxUseTimes(Integer voucherMaxUseTimes) |
VoucherUseRuleInfo |
voucherUseExtInfo(String voucherUseExtInfo) |
VoucherUseRuleInfo |
voucherUseTimeInfo(VoucherUseTimeInfo voucherUseTimeInfo) |
public static final String SERIALIZED_NAME_QUANTITY_LIMIT_PER_USER
public static final String SERIALIZED_NAME_QUANTITY_LIMIT_PER_USER_PERIOD_TYPE
public static final String SERIALIZED_NAME_VOUCHER_MAX_USE_TIMES
public static final String SERIALIZED_NAME_VOUCHER_USE_EXT_INFO
public static final String SERIALIZED_NAME_VOUCHER_USE_TIME_INFO
public VoucherUseRuleInfo quantityLimitPerUser(Integer quantityLimitPerUser)
@Nullable public Integer getQuantityLimitPerUser()
public void setQuantityLimitPerUser(Integer quantityLimitPerUser)
public VoucherUseRuleInfo quantityLimitPerUserPeriodType(String quantityLimitPerUserPeriodType)
@Nullable public String getQuantityLimitPerUserPeriodType()
public void setQuantityLimitPerUserPeriodType(String quantityLimitPerUserPeriodType)
public VoucherUseRuleInfo voucherMaxUseTimes(Integer voucherMaxUseTimes)
@Nullable public Integer getVoucherMaxUseTimes()
public void setVoucherMaxUseTimes(Integer voucherMaxUseTimes)
public VoucherUseRuleInfo voucherUseExtInfo(String voucherUseExtInfo)
public void setVoucherUseExtInfo(String voucherUseExtInfo)
public VoucherUseRuleInfo voucherUseTimeInfo(VoucherUseTimeInfo voucherUseTimeInfo)
@Nullable public VoucherUseTimeInfo getVoucherUseTimeInfo()
public void setVoucherUseTimeInfo(VoucherUseTimeInfo voucherUseTimeInfo)
public VoucherUseRuleInfo 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 VoucherUseRuleInfopublic static VoucherUseRuleInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to VoucherUseRuleInfopublic String toJson()
Copyright © 2024. All rights reserved.