Package software.xdev.brevo.model
Class MainProductPayload
java.lang.Object
software.xdev.brevo.model.MainProductPayload
MainProductPayload
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategoryItem(String categoryItem) booleanList of categories the product belongs togetPrice()Price of the productUnique identifier for the productQuantity of the productIdentifier for the product variantinthashCode()price(BigDecimal price) quantity(BigDecimal quantity) voidsetCategory(List<String> category) voidsetPrice(BigDecimal price) voidsetProductId(String productId) voidsetQuantity(BigDecimal quantity) voidsetVariantId(String variantId) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_CATEGORY
- See Also:
-
JSON_PROPERTY_PRICE
- See Also:
-
JSON_PROPERTY_PRODUCT_ID
- See Also:
-
JSON_PROPERTY_QUANTITY
- See Also:
-
JSON_PROPERTY_VARIANT_ID
- See Also:
-
-
Constructor Details
-
MainProductPayload
public MainProductPayload()
-
-
Method Details
-
category
-
addCategoryItem
-
getCategory
List of categories the product belongs to- Returns:
- category
-
setCategory
-
price
-
getPrice
Price of the product- Returns:
- price
-
setPrice
-
productId
-
getProductId
Unique identifier for the product- Returns:
- productId
-
setProductId
-
quantity
-
getQuantity
Quantity of the product- Returns:
- quantity
-
setQuantity
-
variantId
-
getVariantId
Identifier for the product variant- Returns:
- variantId
-
setVariantId
-
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
-