@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class CommonVoucherUseRule extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CommonVoucherUseRule.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 |
| 构造器和说明 |
|---|
CommonVoucherUseRule() |
| 限定符和类型 | 方法和说明 |
|---|---|
CommonVoucherUseRule |
discountVoucher(ActivityDiscountVoucher discountVoucher) |
boolean |
equals(Object o) |
CommonVoucherUseRule |
exchangeVoucher(ActivityExchangeVoucher exchangeVoucher) |
CommonVoucherUseRule |
fixVoucher(ActivityFixVoucher fixVoucher) |
static CommonVoucherUseRule |
fromJson(String jsonString)
Create an instance of CommonVoucherUseRule 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.
|
ActivityDiscountVoucher |
getDiscountVoucher()
Get discountVoucher
|
ActivityExchangeVoucher |
getExchangeVoucher()
Get exchangeVoucher
|
ActivityFixVoucher |
getFixVoucher()
Get fixVoucher
|
ActivitySpecialVoucher |
getSpecialVoucher()
Get specialVoucher
|
int |
hashCode() |
CommonVoucherUseRule |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setDiscountVoucher(ActivityDiscountVoucher discountVoucher) |
void |
setExchangeVoucher(ActivityExchangeVoucher exchangeVoucher) |
void |
setFixVoucher(ActivityFixVoucher fixVoucher) |
void |
setSpecialVoucher(ActivitySpecialVoucher specialVoucher) |
CommonVoucherUseRule |
specialVoucher(ActivitySpecialVoucher specialVoucher) |
String |
toJson()
Convert an instance of CommonVoucherUseRule 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_DISCOUNT_VOUCHER
public static final String SERIALIZED_NAME_EXCHANGE_VOUCHER
public static final String SERIALIZED_NAME_SPECIAL_VOUCHER
public CommonVoucherUseRule discountVoucher(ActivityDiscountVoucher discountVoucher)
@Nullable public ActivityDiscountVoucher getDiscountVoucher()
public void setDiscountVoucher(ActivityDiscountVoucher discountVoucher)
public CommonVoucherUseRule exchangeVoucher(ActivityExchangeVoucher exchangeVoucher)
@Nullable public ActivityExchangeVoucher getExchangeVoucher()
public void setExchangeVoucher(ActivityExchangeVoucher exchangeVoucher)
public CommonVoucherUseRule fixVoucher(ActivityFixVoucher fixVoucher)
@Nullable public ActivityFixVoucher getFixVoucher()
public void setFixVoucher(ActivityFixVoucher fixVoucher)
public CommonVoucherUseRule specialVoucher(ActivitySpecialVoucher specialVoucher)
@Nullable public ActivitySpecialVoucher getSpecialVoucher()
public void setSpecialVoucher(ActivitySpecialVoucher specialVoucher)
public CommonVoucherUseRule 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 CommonVoucherUseRulepublic static CommonVoucherUseRule fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to CommonVoucherUseRulepublic String toJson()
Copyright © 2024. All rights reserved.