@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class DiscountInfoData extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DiscountInfoData.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_DISCOUNT_AMOUNT |
static String |
SERIALIZED_NAME_DISCOUNT_NAME |
static String |
SERIALIZED_NAME_DISCOUNT_PAGE_LINK |
static String |
SERIALIZED_NAME_DISCOUNT_QUANTITY |
static String |
SERIALIZED_NAME_EXTERNAL_DISCOUNT_ID |
| 构造器和说明 |
|---|
DiscountInfoData() |
| 限定符和类型 | 方法和说明 |
|---|---|
DiscountInfoData |
discountAmount(String discountAmount) |
DiscountInfoData |
discountName(String discountName) |
DiscountInfoData |
discountPageLink(String discountPageLink) |
DiscountInfoData |
discountQuantity(Integer discountQuantity) |
boolean |
equals(Object o) |
DiscountInfoData |
externalDiscountId(String externalDiscountId) |
static DiscountInfoData |
fromJson(String jsonString)
Create an instance of DiscountInfoData 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()
优惠金额
|
String |
getDiscountName()
优惠名称
|
String |
getDiscountPageLink()
优惠跳转链接地址
|
Integer |
getDiscountQuantity()
优惠数量
|
String |
getExternalDiscountId()
外部优惠id
|
int |
hashCode() |
DiscountInfoData |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setDiscountAmount(String discountAmount) |
void |
setDiscountName(String discountName) |
void |
setDiscountPageLink(String discountPageLink) |
void |
setDiscountQuantity(Integer discountQuantity) |
void |
setExternalDiscountId(String externalDiscountId) |
String |
toJson()
Convert an instance of DiscountInfoData 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 static final String SERIALIZED_NAME_DISCOUNT_PAGE_LINK
public static final String SERIALIZED_NAME_DISCOUNT_QUANTITY
public static final String SERIALIZED_NAME_EXTERNAL_DISCOUNT_ID
public DiscountInfoData discountAmount(String discountAmount)
public void setDiscountAmount(String discountAmount)
public DiscountInfoData discountName(String discountName)
public void setDiscountName(String discountName)
public DiscountInfoData discountPageLink(String discountPageLink)
public void setDiscountPageLink(String discountPageLink)
public DiscountInfoData discountQuantity(Integer discountQuantity)
public void setDiscountQuantity(Integer discountQuantity)
public DiscountInfoData externalDiscountId(String externalDiscountId)
public void setExternalDiscountId(String externalDiscountId)
public DiscountInfoData 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 DiscountInfoDatapublic static DiscountInfoData fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to DiscountInfoDatapublic String toJson()
Copyright © 2024. All rights reserved.