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
Modifier and TypeMethodDescriptiongetId()The ID of the CatalogItem.default StringDetermines how this catalog item should merge with other similar items when it gets added to a cart.com.broadleafcommerce.pricing.client.domain.PriceInfoSummary of thepricing informationrelated to the catalog item.System-wide unique identifier to configure specific pricing for the catalog item.getSku()This uniquely identifies this catalog item when it is sold and is used for other contexts like inventory and pricing.
-
Method Details
-
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 thepricing informationrelated to the catalog item.- Returns:
- Summary of the
pricing informationrelated 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
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 inDefaultMergingType. Note: if a value is not provided, then the global default value will used viaCartOperationServiceProperties.getMergingType().- Returns:
- the merging type to use for this CatalogItem
-