@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class SkuCreateInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SkuCreateInfo.CustomTypeAdapterFactory |
| 限定符和类型 | 字段和说明 |
|---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_INVENTORY |
static String |
SERIALIZED_NAME_MATERIAL_LIST |
static String |
SERIALIZED_NAME_ORIGINAL_PRICE |
static String |
SERIALIZED_NAME_PRICE |
static String |
SERIALIZED_NAME_PROPERTY_LIST |
| 构造器和说明 |
|---|
SkuCreateInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
SkuCreateInfo |
addMaterialListItem(MaterialCreateInfo materialListItem) |
SkuCreateInfo |
addPropertyListItem(ItemSkuPropertyInfo propertyListItem) |
boolean |
equals(Object o) |
static SkuCreateInfo |
fromJson(String jsonString)
Create an instance of SkuCreateInfo 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.
|
Integer |
getInventory()
库存
|
List<MaterialCreateInfo> |
getMaterialList()
SKU素材列表(最多3个)
|
Integer |
getOriginalPrice()
标价,单位分
|
Integer |
getPrice()
售价,单位分
|
List<ItemSkuPropertyInfo> |
getPropertyList()
SKU属性列表
|
int |
hashCode() |
SkuCreateInfo |
inventory(Integer inventory) |
SkuCreateInfo |
materialList(List<MaterialCreateInfo> materialList) |
SkuCreateInfo |
originalPrice(Integer originalPrice) |
SkuCreateInfo |
price(Integer price) |
SkuCreateInfo |
propertyList(List<ItemSkuPropertyInfo> propertyList) |
SkuCreateInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setInventory(Integer inventory) |
void |
setMaterialList(List<MaterialCreateInfo> materialList) |
void |
setOriginalPrice(Integer originalPrice) |
void |
setPrice(Integer price) |
void |
setPropertyList(List<ItemSkuPropertyInfo> propertyList) |
String |
toJson()
Convert an instance of SkuCreateInfo 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_ORIGINAL_PRICE
public SkuCreateInfo inventory(Integer inventory)
public void setInventory(Integer inventory)
public SkuCreateInfo materialList(List<MaterialCreateInfo> materialList)
public SkuCreateInfo addMaterialListItem(MaterialCreateInfo materialListItem)
@Nullable public List<MaterialCreateInfo> getMaterialList()
public void setMaterialList(List<MaterialCreateInfo> materialList)
public SkuCreateInfo originalPrice(Integer originalPrice)
public void setOriginalPrice(Integer originalPrice)
public SkuCreateInfo price(Integer price)
public void setPrice(Integer price)
public SkuCreateInfo propertyList(List<ItemSkuPropertyInfo> propertyList)
public SkuCreateInfo addPropertyListItem(ItemSkuPropertyInfo propertyListItem)
@Nullable public List<ItemSkuPropertyInfo> getPropertyList()
public void setPropertyList(List<ItemSkuPropertyInfo> propertyList)
public SkuCreateInfo 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 SkuCreateInfopublic static SkuCreateInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to SkuCreateInfopublic String toJson()
Copyright © 2024. All rights reserved.