public class GoodsDetail extends Object
| 构造器和说明 |
|---|
GoodsDetail() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getAlipayGoodsId()
Gets alipay goods id.
|
String |
getBody()
Gets body.
|
String |
getGoodsCategory()
Gets goods category.
|
String |
getGoodsId()
Gets goods id.
|
String |
getGoodsName()
Gets goods name.
|
String |
getPrice()
Gets price.
|
int |
getQuantity()
Gets quantity.
|
static GoodsDetail |
newInstance(String goodsId,
String goodsName,
long price,
int quantity)
New instance goods detail.
|
GoodsDetail |
setAlipayGoodsId(String alipayGoodsId)
Sets alipay goods id.
|
GoodsDetail |
setBody(String body)
Sets body.
|
GoodsDetail |
setGoodsCategory(String goodsCategory)
Sets goods category.
|
GoodsDetail |
setGoodsId(String goodsId)
Sets goods id.
|
GoodsDetail |
setGoodsName(String goodsName)
Sets goods name.
|
GoodsDetail |
setPrice(long price)
Sets price.
|
GoodsDetail |
setQuantity(int quantity)
Sets quantity.
|
String |
toString() |
public static GoodsDetail newInstance(String goodsId, String goodsName, long price, int quantity)
goodsId - the goods idgoodsName - the goods nameprice - the pricequantity - the quantitypublic String getGoodsId()
public GoodsDetail setGoodsId(String goodsId)
goodsId - the goods idpublic String getAlipayGoodsId()
public GoodsDetail setAlipayGoodsId(String alipayGoodsId)
alipayGoodsId - the alipay goods idpublic String getGoodsName()
public GoodsDetail setGoodsName(String goodsName)
goodsName - the goods namepublic int getQuantity()
public GoodsDetail setQuantity(int quantity)
quantity - the quantitypublic String getPrice()
public GoodsDetail setPrice(long price)
price - the pricepublic String getGoodsCategory()
public GoodsDetail setGoodsCategory(String goodsCategory)
goodsCategory - the goods categorypublic String getBody()
public GoodsDetail setBody(String body)
body - the bodyCopyright © 2018. All rights reserved.