@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class GoodsInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GoodsInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_GOODS_CATEGORY |
static String |
SERIALIZED_NAME_GOODS_ID |
static String |
SERIALIZED_NAME_GOODS_NAME |
static String |
SERIALIZED_NAME_PRICE |
static String |
SERIALIZED_NAME_QUANTITY |
| 构造器和说明 |
|---|
GoodsInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
static GoodsInfo |
fromJson(String jsonString)
Create an instance of GoodsInfo 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 |
getGoodsCategory()
商品类目
|
String |
getGoodsId()
商户自定义商品外部编号
|
String |
getGoodsName()
商户自定义商品名称
|
String |
getPrice()
商品单价,单位元,精确到小数点后两位,取值范围[0.01,100000000]
|
String |
getQuantity()
商品数量,支持小数,但是小数位不能超过两位
|
GoodsInfo |
goodsCategory(String goodsCategory) |
GoodsInfo |
goodsId(String goodsId) |
GoodsInfo |
goodsName(String goodsName) |
int |
hashCode() |
GoodsInfo |
price(String price) |
GoodsInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
GoodsInfo |
quantity(String quantity) |
void |
setGoodsCategory(String goodsCategory) |
void |
setGoodsId(String goodsId) |
void |
setGoodsName(String goodsName) |
void |
setPrice(String price) |
void |
setQuantity(String quantity) |
String |
toJson()
Convert an instance of GoodsInfo 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_GOODS_CATEGORY
public void setGoodsCategory(String goodsCategory)
public void setGoodsId(String goodsId)
public void setGoodsName(String goodsName)
public void setPrice(String price)
public void setQuantity(String quantity)
public GoodsInfo 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 GoodsInfopublic static GoodsInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to GoodsInfopublic String toJson()
Copyright © 2024. All rights reserved.