Interface CatalogItem

  • All Known Implementing Classes:
    Product

    public interface CatalogItem
    A reference to a catalog item, typically used as a holder for information communicated from an external service.
    Author:
    Chad Harchar (charchar)
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      String getId()
      The ID of the CatalogItem.
      default String getMergingType()
      Determines how this catalog item should merge with other similar items when it gets added to a cart.
      com.broadleafcommerce.pricing.client.domain.PriceInfo getPriceInfo()
      Summary of the pricing information related to the catalog item.
      String getPricingKey()
      System-wide unique identifier to configure specific pricing for the catalog item.
      String getSku()
      This uniquely identifies this catalog item when it is sold and is used for other contexts like inventory and pricing.
    • Method Detail

      • getId

        String getId()
        The ID of the CatalogItem.
        Returns:
        The ID of the CatalogItem.
      • getSku

        String getSku()
        This uniquely identifies this catalog item when it is sold and is used for other contexts like inventory and pricing.
        Returns:
        the Stock Keeping Unit that identifies this CatalogItem when it's sold in the store
      • getPriceInfo

        com.broadleafcommerce.pricing.client.domain.PriceInfo getPriceInfo()
        Summary of the pricing information related to the catalog item.
        Returns:
        Summary of the pricing information related to the catalog item
      • getPricingKey

        String getPricingKey()
        System-wide unique identifier to configure specific pricing for the catalog item. Relevant if pricing data is managed in a separate system or data store, like the Broadleaf pricing services.
        Returns:
        a unique key to identify pricing for this catalog item
      • getMergingType

        default String getMergingType()
        Determines how this catalog item should merge with other similar items when it gets added to a cart. This will override the global setting on item merging. Out of box supported values are those in DefaultMergingType. Note: if a value is not provided, then the global default value will used via CartOperationServiceProperties.getMergingType().
        Returns:
        the merging type to use for this CatalogItem