@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") public class SkuModifyInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SkuModifyInfo.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 |
static String |
SERIALIZED_NAME_SKU_ID |
| 构造器和说明 |
|---|
SkuModifyInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
SkuModifyInfo |
addMaterialListItem(MaterialModifyInfo materialListItem) |
SkuModifyInfo |
addPropertyListItem(ItemSkuPropertyInfo propertyListItem) |
boolean |
equals(Object o) |
static SkuModifyInfo |
fromJson(String jsonString)
Create an instance of SkuModifyInfo 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<MaterialModifyInfo> |
getMaterialList()
SKU素材列表(会和SKU已存在素材做差异化比较后做增删改操作)
|
Integer |
getOriginalPrice()
标价,单位分
|
Integer |
getPrice()
售价,单位分
|
List<ItemSkuPropertyInfo> |
getPropertyList()
SKU属性列表(覆盖SKU已存在属性)
|
String |
getSkuId()
SKU ID(传空表示新增对应SKU)
|
int |
hashCode() |
SkuModifyInfo |
inventory(Integer inventory) |
SkuModifyInfo |
materialList(List<MaterialModifyInfo> materialList) |
SkuModifyInfo |
originalPrice(Integer originalPrice) |
SkuModifyInfo |
price(Integer price) |
SkuModifyInfo |
propertyList(List<ItemSkuPropertyInfo> propertyList) |
SkuModifyInfo |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setInventory(Integer inventory) |
void |
setMaterialList(List<MaterialModifyInfo> materialList) |
void |
setOriginalPrice(Integer originalPrice) |
void |
setPrice(Integer price) |
void |
setPropertyList(List<ItemSkuPropertyInfo> propertyList) |
void |
setSkuId(String skuId) |
SkuModifyInfo |
skuId(String skuId) |
String |
toJson()
Convert an instance of SkuModifyInfo 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 SkuModifyInfo inventory(Integer inventory)
public void setInventory(Integer inventory)
public SkuModifyInfo materialList(List<MaterialModifyInfo> materialList)
public SkuModifyInfo addMaterialListItem(MaterialModifyInfo materialListItem)
@Nullable public List<MaterialModifyInfo> getMaterialList()
public void setMaterialList(List<MaterialModifyInfo> materialList)
public SkuModifyInfo originalPrice(Integer originalPrice)
public void setOriginalPrice(Integer originalPrice)
public SkuModifyInfo price(Integer price)
public void setPrice(Integer price)
public SkuModifyInfo propertyList(List<ItemSkuPropertyInfo> propertyList)
public SkuModifyInfo addPropertyListItem(ItemSkuPropertyInfo propertyListItem)
@Nullable public List<ItemSkuPropertyInfo> getPropertyList()
public void setPropertyList(List<ItemSkuPropertyInfo> propertyList)
public SkuModifyInfo skuId(String skuId)
public void setSkuId(String skuId)
public SkuModifyInfo 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 SkuModifyInfopublic static SkuModifyInfo fromJson(String jsonString) throws IOException
jsonString - JSON stringIOException - if the JSON string is invalid with respect to SkuModifyInfopublic String toJson()
Copyright © 2024. All rights reserved.