@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherValidPeriod extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoucherValidPeriod.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_TYPE |
static String |
SERIALIZED_NAME_VALID_BEGIN_TIME |
static String |
SERIALIZED_NAME_VALID_DAYS_AFTER_RECEIVE |
static String |
SERIALIZED_NAME_VALID_END_TIME |
static String |
SERIALIZED_NAME_WAIT_DAYS_AFTER_RECEIVE |
| 构造器和说明 |
|---|
VoucherValidPeriod() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static VoucherValidPeriod |
fromJson(String jsonString)
Create an instance of VoucherValidPeriod 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 |
getType()
券有效期类型
|
String |
getValidBeginTime()
券可使用的开始时间。
|
Integer |
getValidDaysAfterReceive()
券生效后N天内可以使用。
|
String |
getValidEndTime()
券可使用的结束时间。
|
Integer |
getWaitDaysAfterReceive()
用户领券后需要等待N天,券才可以生效。
|
int |
hashCode() |
VoucherValidPeriod |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setType(String type) |
void |
setValidBeginTime(String validBeginTime) |
void |
setValidDaysAfterReceive(Integer validDaysAfterReceive) |
void |
setValidEndTime(String validEndTime) |
void |
setWaitDaysAfterReceive(Integer waitDaysAfterReceive) |
String |
toJson()
Convert an instance of VoucherValidPeriod to an JSON string
|
String |
toString() |
VoucherValidPeriod |
type(String type) |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
VoucherValidPeriod |
validBeginTime(String validBeginTime) |
VoucherValidPeriod |
validDaysAfterReceive(Integer validDaysAfterReceive) |
VoucherValidPeriod |
validEndTime(String validEndTime) |
VoucherValidPeriod |
waitDaysAfterReceive(Integer waitDaysAfterReceive) |
public static final String SERIALIZED_NAME_VALID_BEGIN_TIME
public static final String SERIALIZED_NAME_VALID_DAYS_AFTER_RECEIVE
public static final String SERIALIZED_NAME_VALID_END_TIME
public static final String SERIALIZED_NAME_WAIT_DAYS_AFTER_RECEIVE
public VoucherValidPeriod type(String type)
public void setType(String type)
public VoucherValidPeriod validBeginTime(String validBeginTime)
@Nullable public String getValidBeginTime()
public void setValidBeginTime(String validBeginTime)
public VoucherValidPeriod validDaysAfterReceive(Integer validDaysAfterReceive)
@Nullable public Integer getValidDaysAfterReceive()
public void setValidDaysAfterReceive(Integer validDaysAfterReceive)
public VoucherValidPeriod validEndTime(String validEndTime)
@Nullable public String getValidEndTime()
public void setValidEndTime(String validEndTime)
public VoucherValidPeriod waitDaysAfterReceive(Integer waitDaysAfterReceive)
@Nullable public Integer getWaitDaysAfterReceive()
public void setWaitDaysAfterReceive(Integer waitDaysAfterReceive)
public VoucherValidPeriod 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 VoucherValidPeriodpublic static VoucherValidPeriod fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to VoucherValidPeriodpublic String toJson()
Copyright © 2024. All rights reserved.