@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherSendRuleInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoucherSendRuleInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_MAX_QUANTITY_BY_DAY |
static String |
SERIALIZED_NAME_NATURAL_PERSON_LIMIT |
static String |
SERIALIZED_NAME_PHONE_NUMBER_LIMIT |
static String |
SERIALIZED_NAME_PHONE_NUMBER_NEED_INPUT_LIMIT |
static String |
SERIALIZED_NAME_PUBLISH_END_TIME |
static String |
SERIALIZED_NAME_PUBLISH_START_TIME |
static String |
SERIALIZED_NAME_QUANTITY |
static String |
SERIALIZED_NAME_QUANTITY_LIMIT_PER_USER |
static String |
SERIALIZED_NAME_QUANTITY_LIMIT_PER_USER_PERIOD_TYPE |
static String |
SERIALIZED_NAME_REAL_NAME_LIMIT |
| 构造器和说明 |
|---|
VoucherSendRuleInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static VoucherSendRuleInfo |
fromJson(String jsonString)
Create an instance of VoucherSendRuleInfo 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 |
getMaxQuantityByDay()
设置此字段,允许指定单天最大发券数量。
|
Boolean |
getNaturalPersonLimit()
是否开启自然人领取限制。
|
Boolean |
getPhoneNumberLimit()
是否开启电话号码领取限制。
|
Boolean |
getPhoneNumberNeedInputLimit()
下单时是否需要用户填写手机号码
|
String |
getPublishEndTime()
券发放结束时间。
|
String |
getPublishStartTime()
券发放开始时间。
|
Integer |
getQuantity()
发行券的数量。
|
Integer |
getQuantityLimitPerUser()
每人领取限制。
|
String |
getQuantityLimitPerUserPeriodType()
周期限领配置,限制每人在固定周期内领取张数(voucher_quantity_limit_per_user),默认LIFE_CYCLE
|
Boolean |
getRealNameLimit()
限制支付宝实名用户才能领取支付券,默认为false表示不限制 枚举值 true\\false
|
int |
hashCode() |
VoucherSendRuleInfo |
maxQuantityByDay(Integer maxQuantityByDay) |
VoucherSendRuleInfo |
naturalPersonLimit(Boolean naturalPersonLimit) |
VoucherSendRuleInfo |
phoneNumberLimit(Boolean phoneNumberLimit) |
VoucherSendRuleInfo |
phoneNumberNeedInputLimit(Boolean phoneNumberNeedInputLimit) |
VoucherSendRuleInfo |
publishEndTime(String publishEndTime) |
VoucherSendRuleInfo |
publishStartTime(String publishStartTime) |
VoucherSendRuleInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
VoucherSendRuleInfo |
quantity(Integer quantity) |
VoucherSendRuleInfo |
quantityLimitPerUser(Integer quantityLimitPerUser) |
VoucherSendRuleInfo |
quantityLimitPerUserPeriodType(String quantityLimitPerUserPeriodType) |
VoucherSendRuleInfo |
realNameLimit(Boolean realNameLimit) |
void |
setMaxQuantityByDay(Integer maxQuantityByDay) |
void |
setNaturalPersonLimit(Boolean naturalPersonLimit) |
void |
setPhoneNumberLimit(Boolean phoneNumberLimit) |
void |
setPhoneNumberNeedInputLimit(Boolean phoneNumberNeedInputLimit) |
void |
setPublishEndTime(String publishEndTime) |
void |
setPublishStartTime(String publishStartTime) |
void |
setQuantity(Integer quantity) |
void |
setQuantityLimitPerUser(Integer quantityLimitPerUser) |
void |
setQuantityLimitPerUserPeriodType(String quantityLimitPerUserPeriodType) |
void |
setRealNameLimit(Boolean realNameLimit) |
String |
toJson()
Convert an instance of VoucherSendRuleInfo 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_MAX_QUANTITY_BY_DAY
public static final String SERIALIZED_NAME_NATURAL_PERSON_LIMIT
public static final String SERIALIZED_NAME_PHONE_NUMBER_LIMIT
public static final String SERIALIZED_NAME_PHONE_NUMBER_NEED_INPUT_LIMIT
public static final String SERIALIZED_NAME_PUBLISH_END_TIME
public static final String SERIALIZED_NAME_PUBLISH_START_TIME
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_REAL_NAME_LIMIT
public VoucherSendRuleInfo maxQuantityByDay(Integer maxQuantityByDay)
@Nullable public Integer getMaxQuantityByDay()
public void setMaxQuantityByDay(Integer maxQuantityByDay)
public VoucherSendRuleInfo naturalPersonLimit(Boolean naturalPersonLimit)
@Nullable public Boolean getNaturalPersonLimit()
public void setNaturalPersonLimit(Boolean naturalPersonLimit)
public VoucherSendRuleInfo phoneNumberLimit(Boolean phoneNumberLimit)
@Nullable public Boolean getPhoneNumberLimit()
public void setPhoneNumberLimit(Boolean phoneNumberLimit)
public VoucherSendRuleInfo phoneNumberNeedInputLimit(Boolean phoneNumberNeedInputLimit)
@Nullable public Boolean getPhoneNumberNeedInputLimit()
public void setPhoneNumberNeedInputLimit(Boolean phoneNumberNeedInputLimit)
public VoucherSendRuleInfo publishEndTime(String publishEndTime)
@Nullable public String getPublishEndTime()
public void setPublishEndTime(String publishEndTime)
public VoucherSendRuleInfo publishStartTime(String publishStartTime)
@Nullable public String getPublishStartTime()
public void setPublishStartTime(String publishStartTime)
public VoucherSendRuleInfo quantity(Integer quantity)
public void setQuantity(Integer quantity)
public VoucherSendRuleInfo quantityLimitPerUser(Integer quantityLimitPerUser)
@Nullable public Integer getQuantityLimitPerUser()
public void setQuantityLimitPerUser(Integer quantityLimitPerUser)
public VoucherSendRuleInfo quantityLimitPerUserPeriodType(String quantityLimitPerUserPeriodType)
@Nullable public String getQuantityLimitPerUserPeriodType()
public void setQuantityLimitPerUserPeriodType(String quantityLimitPerUserPeriodType)
public VoucherSendRuleInfo realNameLimit(Boolean realNameLimit)
@Nullable public Boolean getRealNameLimit()
public void setRealNameLimit(Boolean realNameLimit)
public VoucherSendRuleInfo 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 VoucherSendRuleInfopublic static VoucherSendRuleInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to VoucherSendRuleInfopublic String toJson()
Copyright © 2024. All rights reserved.