@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherUseRule extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
VoucherUseRule.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_DISCOUNT_VOUCHER |
static String |
SERIALIZED_NAME_EXCHANGE_VOUCHER |
static String |
SERIALIZED_NAME_FIX_VOUCHER |
static String |
SERIALIZED_NAME_SPECIAL_VOUCHER |
static String |
SERIALIZED_NAME_VOUCHER_AVAILABLE_SCOPE |
static String |
SERIALIZED_NAME_VOUCHER_VALID_PERIOD |
| 构造器和说明 |
|---|
VoucherUseRule() |
| 限定符和类型 | 方法和说明 |
|---|---|
VoucherUseRule |
discountVoucher(DiscountVoucher discountVoucher) |
boolean |
equals(Object o) |
VoucherUseRule |
exchangeVoucher(ExchangeVoucher exchangeVoucher) |
VoucherUseRule |
fixVoucher(FixVoucher fixVoucher) |
static VoucherUseRule |
fromJson(String jsonString)
Create an instance of VoucherUseRule 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.
|
DiscountVoucher |
getDiscountVoucher()
Get discountVoucher
|
ExchangeVoucher |
getExchangeVoucher()
Get exchangeVoucher
|
FixVoucher |
getFixVoucher()
Get fixVoucher
|
SpecialVoucher |
getSpecialVoucher()
Get specialVoucher
|
VoucherAvailableScope |
getVoucherAvailableScope()
Get voucherAvailableScope
|
VoucherValidPeriod |
getVoucherValidPeriod()
Get voucherValidPeriod
|
int |
hashCode() |
VoucherUseRule |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setDiscountVoucher(DiscountVoucher discountVoucher) |
void |
setExchangeVoucher(ExchangeVoucher exchangeVoucher) |
void |
setFixVoucher(FixVoucher fixVoucher) |
void |
setSpecialVoucher(SpecialVoucher specialVoucher) |
void |
setVoucherAvailableScope(VoucherAvailableScope voucherAvailableScope) |
void |
setVoucherValidPeriod(VoucherValidPeriod voucherValidPeriod) |
VoucherUseRule |
specialVoucher(SpecialVoucher specialVoucher) |
String |
toJson()
Convert an instance of VoucherUseRule 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
|
VoucherUseRule |
voucherAvailableScope(VoucherAvailableScope voucherAvailableScope) |
VoucherUseRule |
voucherValidPeriod(VoucherValidPeriod voucherValidPeriod) |
public static final String SERIALIZED_NAME_DISCOUNT_VOUCHER
public static final String SERIALIZED_NAME_EXCHANGE_VOUCHER
public static final String SERIALIZED_NAME_SPECIAL_VOUCHER
public static final String SERIALIZED_NAME_VOUCHER_AVAILABLE_SCOPE
public static final String SERIALIZED_NAME_VOUCHER_VALID_PERIOD
public VoucherUseRule discountVoucher(DiscountVoucher discountVoucher)
@Nullable public DiscountVoucher getDiscountVoucher()
public void setDiscountVoucher(DiscountVoucher discountVoucher)
public VoucherUseRule exchangeVoucher(ExchangeVoucher exchangeVoucher)
@Nullable public ExchangeVoucher getExchangeVoucher()
public void setExchangeVoucher(ExchangeVoucher exchangeVoucher)
public VoucherUseRule fixVoucher(FixVoucher fixVoucher)
@Nullable public FixVoucher getFixVoucher()
public void setFixVoucher(FixVoucher fixVoucher)
public VoucherUseRule specialVoucher(SpecialVoucher specialVoucher)
@Nullable public SpecialVoucher getSpecialVoucher()
public void setSpecialVoucher(SpecialVoucher specialVoucher)
public VoucherUseRule voucherAvailableScope(VoucherAvailableScope voucherAvailableScope)
@Nullable public VoucherAvailableScope getVoucherAvailableScope()
public void setVoucherAvailableScope(VoucherAvailableScope voucherAvailableScope)
public VoucherUseRule voucherValidPeriod(VoucherValidPeriod voucherValidPeriod)
@Nullable public VoucherValidPeriod getVoucherValidPeriod()
public void setVoucherValidPeriod(VoucherValidPeriod voucherValidPeriod)
public VoucherUseRule 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 VoucherUseRulepublic static VoucherUseRule fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to VoucherUseRulepublic String toJson()
Copyright © 2024. All rights reserved.