Interface ProductListItem
-
- All Superinterfaces:
com.adobe.cq.wcm.core.components.models.Component
,com.adobe.cq.export.json.ComponentExporter
,com.adobe.cq.wcm.core.components.models.ListItem
- All Known Implementing Classes:
ProductListItemImpl
@ConsumerType public interface ProductListItem extends com.adobe.cq.wcm.core.components.models.ListItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description CommerceIdentifier
getCommerceIdentifier()
Returns the identifier of this product.String
getCurrency()
Deprecated.Please use getPriceRange() instead.default String
getFormattedPrice()
Deprecated.Please use getPriceRange() instead.default String
getImageURL()
Returns the product image URL of thisProductListItem
.default Double
getPrice()
Deprecated.Please use getPriceRange() instead.Price
getPriceRange()
Returns the price range of thisProductListItem
.default String
getSKU()
Returns the product SKU of thisProductListItem
.default String
getSlug()
Returns the product slug of thisProductListItem
.
-
-
-
Method Detail
-
getSKU
default String getSKU()
Returns the product SKU of thisProductListItem
.- Returns:
- the product SKU of this list item or
null
-
getSlug
default String getSlug()
Returns the product slug of thisProductListItem
.- Returns:
- the product slug of this list item or
null
-
getImageURL
@Nullable default String getImageURL()
Returns the product image URL of thisProductListItem
.- Returns:
- the product image URL of this list item or
null
-
getCommerceIdentifier
CommerceIdentifier getCommerceIdentifier()
Returns the identifier of this product.- Returns:
- a
CommerceIdentifier
object representing the identifier of this product.
-
getPrice
@Deprecated @Nullable default Double getPrice()
Deprecated.Please use getPriceRange() instead.Returns the price of thisProductListItem
.- Returns:
- the price of this list item or
null
-
getCurrency
@Deprecated @Nullable String getCurrency()
Deprecated.Please use getPriceRange() instead.Returns the price currency of thisProductListItem
.- Returns:
- the currency of this list item or
null
-
getFormattedPrice
@Deprecated @Nullable default String getFormattedPrice()
Deprecated.Please use getPriceRange() instead.Returns the formatted price of thisProductListItem
.- Returns:
- the formatted price of this list item or
null
-
getPriceRange
Price getPriceRange()
Returns the price range of thisProductListItem
.- Returns:
- Price range instance.
-
-