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
    • Field Summary

      • Fields inherited from interface com.adobe.cq.wcm.core.components.models.Component

        PN_ID
    • Method Detail

      • getSKU

        default String getSKU()
        Returns the product SKU of this ProductListItem.
        Returns:
        the product SKU of this list item or null
      • getSlug

        default String getSlug()
        Returns the product slug of this ProductListItem.
        Returns:
        the product slug of this list item or null
      • getImageURL

        @Nullable
        default String getImageURL()
        Returns the product image URL of this ProductListItem.
        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 this ProductListItem.
        Returns:
        the price of this list item or null
      • getCurrency

        @Deprecated
        @Nullable
        String getCurrency()
        Deprecated.
        Please use getPriceRange() instead.
        Returns the price currency of this ProductListItem.
        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 this ProductListItem.
        Returns:
        the formatted price of this list item or null
      • getPriceRange

        Price getPriceRange()
        Returns the price range of this ProductListItem.
        Returns:
        Price range instance.