@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class DiscountDetail extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DiscountDetail.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_DISCOUNT_AMOUNT |
static String |
SERIALIZED_NAME_DISCOUNT_DESC |
static String |
SERIALIZED_NAME_DISCOUNT_TYPE |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_IS_HIT |
static String |
SERIALIZED_NAME_IS_PURCHASED |
static String |
SERIALIZED_NAME_NAME |
| 构造器和说明 |
|---|
DiscountDetail() |
| 限定符和类型 | 方法和说明 |
|---|---|
DiscountDetail |
addDiscountDescItem(String discountDescItem) |
DiscountDetail |
discountAmount(String discountAmount) |
DiscountDetail |
discountDesc(List<String> discountDesc) |
DiscountDetail |
discountType(String discountType) |
boolean |
equals(Object o) |
static DiscountDetail |
fromJson(String jsonString)
Create an instance of DiscountDetail 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 |
getDiscountAmount()
优惠金额
|
List<String> |
getDiscountDesc()
优惠描述,比如至多优惠XX元,满XX减XX
|
String |
getDiscountType()
优惠类型,商家优惠(M_DISCOUNT),平台优惠(RT_DISCOUNT)
|
String |
getId()
优惠ID或活动ID
|
String |
getIsHit()
优惠是否命中, true代表命中了优惠;false代表未命中优惠
|
String |
getIsPurchased()
是否是购买券, true代表是购买的券,false调表不是购买的券
|
String |
getName()
优惠名称
|
int |
hashCode() |
DiscountDetail |
id(String id) |
DiscountDetail |
isHit(String isHit) |
DiscountDetail |
isPurchased(String isPurchased) |
DiscountDetail |
name(String name) |
DiscountDetail |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setDiscountAmount(String discountAmount) |
void |
setDiscountDesc(List<String> discountDesc) |
void |
setDiscountType(String discountType) |
void |
setId(String id) |
void |
setIsHit(String isHit) |
void |
setIsPurchased(String isPurchased) |
void |
setName(String name) |
String |
toJson()
Convert an instance of DiscountDetail 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_AMOUNT
public DiscountDetail discountAmount(String discountAmount)
public void setDiscountAmount(String discountAmount)
public DiscountDetail discountDesc(List<String> discountDesc)
public DiscountDetail addDiscountDescItem(String discountDescItem)
@Nullable public List<String> getDiscountDesc()
public DiscountDetail discountType(String discountType)
@Nullable public String getDiscountType()
public void setDiscountType(String discountType)
public DiscountDetail id(String id)
public void setId(String id)
public DiscountDetail isHit(String isHit)
public void setIsHit(String isHit)
public DiscountDetail isPurchased(String isPurchased)
@Nullable public String getIsPurchased()
public void setIsPurchased(String isPurchased)
public DiscountDetail name(String name)
public void setName(String name)
public DiscountDetail 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 DiscountDetailpublic static DiscountDetail fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to DiscountDetailpublic String toJson()
Copyright © 2024. All rights reserved.