@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class GoodsDetail extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GoodsDetail.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ALIPAY_GOODS_ID |
static String |
SERIALIZED_NAME_BODY |
static String |
SERIALIZED_NAME_CATEGORIES_TREE |
static String |
SERIALIZED_NAME_GOODS_CATEGORY |
static String |
SERIALIZED_NAME_GOODS_ID |
static String |
SERIALIZED_NAME_GOODS_NAME |
static String |
SERIALIZED_NAME_OUT_ITEM_ID |
static String |
SERIALIZED_NAME_OUT_SKU_ID |
static String |
SERIALIZED_NAME_PRICE |
static String |
SERIALIZED_NAME_QUANTITY |
static String |
SERIALIZED_NAME_SHOW_URL |
| 构造器和说明 |
|---|
GoodsDetail() |
| 限定符和类型 | 方法和说明 |
|---|---|
GoodsDetail |
alipayGoodsId(String alipayGoodsId) |
GoodsDetail |
body(String body) |
GoodsDetail |
categoriesTree(String categoriesTree) |
boolean |
equals(Object o) |
static GoodsDetail |
fromJson(String jsonString)
Create an instance of GoodsDetail 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 |
getAlipayGoodsId()
支付宝定义的统一商品编号
|
String |
getBody()
商品描述信息
|
String |
getCategoriesTree()
商品类目树,从商品类目根节点到叶子节点的类目id组成,类目id值使用|分割
|
String |
getGoodsCategory()
商品类目
|
String |
getGoodsId()
商品的编号,该参数传入支付券上绑定商品goods_id, 倘若无支付券需要消费,该字段传入商品最小粒度的商品ID(如:若商品有sku粒度,则传商户sku粒度的ID)
|
String |
getGoodsName()
商品名称
|
String |
getOutItemId()
商家侧小程序商品ID,指商家提报给小程序商品库的商品。
|
String |
getOutSkuId()
商家侧小程序商品ID,指商家提报给小程序商品库的商品。
|
String |
getPrice()
商品单价,单位为元
|
Integer |
getQuantity()
商品数量
|
String |
getShowUrl()
商品的展示地址
|
GoodsDetail |
goodsCategory(String goodsCategory) |
GoodsDetail |
goodsId(String goodsId) |
GoodsDetail |
goodsName(String goodsName) |
int |
hashCode() |
GoodsDetail |
outItemId(String outItemId) |
GoodsDetail |
outSkuId(String outSkuId) |
GoodsDetail |
price(String price) |
GoodsDetail |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
GoodsDetail |
quantity(Integer quantity) |
void |
setAlipayGoodsId(String alipayGoodsId) |
void |
setBody(String body) |
void |
setCategoriesTree(String categoriesTree) |
void |
setGoodsCategory(String goodsCategory) |
void |
setGoodsId(String goodsId) |
void |
setGoodsName(String goodsName) |
void |
setOutItemId(String outItemId) |
void |
setOutSkuId(String outSkuId) |
void |
setPrice(String price) |
void |
setQuantity(Integer quantity) |
void |
setShowUrl(String showUrl) |
GoodsDetail |
showUrl(String showUrl) |
String |
toJson()
Convert an instance of GoodsDetail 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_ALIPAY_GOODS_ID
public static final String SERIALIZED_NAME_CATEGORIES_TREE
public static final String SERIALIZED_NAME_GOODS_CATEGORY
public GoodsDetail alipayGoodsId(String alipayGoodsId)
public void setAlipayGoodsId(String alipayGoodsId)
public GoodsDetail body(String body)
public void setBody(String body)
public GoodsDetail categoriesTree(String categoriesTree)
@Nullable public String getCategoriesTree()
public void setCategoriesTree(String categoriesTree)
public GoodsDetail goodsCategory(String goodsCategory)
public void setGoodsCategory(String goodsCategory)
public GoodsDetail goodsId(String goodsId)
@Nullable public String getGoodsId()
public void setGoodsId(String goodsId)
public GoodsDetail goodsName(String goodsName)
public void setGoodsName(String goodsName)
public GoodsDetail outItemId(String outItemId)
@Nullable public String getOutItemId()
public void setOutItemId(String outItemId)
public GoodsDetail outSkuId(String outSkuId)
@Nullable public String getOutSkuId()
public void setOutSkuId(String outSkuId)
public GoodsDetail price(String price)
public void setPrice(String price)
public GoodsDetail quantity(Integer quantity)
public void setQuantity(Integer quantity)
public GoodsDetail showUrl(String showUrl)
public void setShowUrl(String showUrl)
public GoodsDetail 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 GoodsDetailpublic static GoodsDetail fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to GoodsDetailpublic String toJson()
Copyright © 2024. All rights reserved.