Package software.xdev.brevo.model
Class CreateUpdateProduct
java.lang.Object
software.xdev.brevo.model.CreateUpdateProduct
CreateUpdateProduct
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategoriesItem(String categoriesItem) categories(List<String> categories) booleanCategory ID-s of the productUTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's databasegetId()Product ID for which you requested the detailsAbsolute URL to the cover image of the productproduct deleted from the shop's databaseMeta data of product such as description, vendor, producer, stock level.getName()Mandatory in case of creation**.Parent product id of the productgetPrice()Price of the productgetSku()Product identifier from the shopgetStock()Current stock value of the product from the shop's databaseFacilitate to update the existing category in the same request (updateEnabled = true)getUrl()URL to the productinthashCode()putMetaInfoItem(String key, Object metaInfoItem) voidsetCategories(List<String> categories) voidsetDeletedAt(String deletedAt) voidvoidsetImageUrl(String imageUrl) voidsetIsDeleted(Boolean isDeleted) voidsetMetaInfo(Map<String, Object> metaInfo) voidvoidsetParentId(String parentId) voidvoidvoidsetStock(BigDecimal stock) voidsetUpdateEnabled(Boolean updateEnabled) voidstock(BigDecimal stock) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.updateEnabled(Boolean updateEnabled)
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_URL
- See Also:
-
JSON_PROPERTY_IMAGE_URL
- See Also:
-
JSON_PROPERTY_SKU
- See Also:
-
JSON_PROPERTY_PRICE
- See Also:
-
JSON_PROPERTY_CATEGORIES
- See Also:
-
JSON_PROPERTY_PARENT_ID
- See Also:
-
JSON_PROPERTY_META_INFO
- See Also:
-
JSON_PROPERTY_UPDATE_ENABLED
- See Also:
-
JSON_PROPERTY_DELETED_AT
- See Also:
-
JSON_PROPERTY_IS_DELETED
- See Also:
-
JSON_PROPERTY_STOCK
- See Also:
-
-
Constructor Details
-
CreateUpdateProduct
public CreateUpdateProduct()
-
-
Method Details
-
id
-
getId
Product ID for which you requested the details- Returns:
- id
-
setId
-
name
-
getName
Mandatory in case of creation**. Name of the product for which you requested the details- Returns:
- name
-
setName
-
url
-
getUrl
URL to the product- Returns:
- url
-
setUrl
-
imageUrl
-
getImageUrl
Absolute URL to the cover image of the product- Returns:
- imageUrl
-
setImageUrl
-
sku
-
getSku
Product identifier from the shop- Returns:
- sku
-
setSku
-
price
-
getPrice
Price of the product- Returns:
- price
-
setPrice
-
categories
-
addCategoriesItem
-
getCategories
Category ID-s of the product- Returns:
- categories
-
setCategories
-
parentId
-
getParentId
Parent product id of the product- Returns:
- parentId
-
setParentId
-
metaInfo
-
putMetaInfoItem
-
getMetaInfo
Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 20.- Returns:
- metaInfo
-
setMetaInfo
-
updateEnabled
-
getUpdateEnabled
Facilitate to update the existing category in the same request (updateEnabled = true)- Returns:
- updateEnabled
-
setUpdateEnabled
-
deletedAt
-
getDeletedAt
UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database- Returns:
- deletedAt
-
setDeletedAt
-
isDeleted
-
getIsDeleted
product deleted from the shop's database- Returns:
- isDeleted
-
setIsDeleted
-
stock
-
getStock
Current stock value of the product from the shop's database- Returns:
- stock
-
setStock
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-