Interface CommercePriceService
-
- All Known Subinterfaces:
SubscriptionCommercePriceService
- All Known Implementing Classes:
DefaultCommercePriceService,DefaultSubscriptionCommercePriceService
public interface CommercePriceServiceCommerce service that exposes b2c focused methods for getting the price of the product. This would typically replace direct use of the default PriceService implementation in a b2c project.- Spring Bean ID:
- commercePriceService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PriceInformationgetFromPriceForProduct(ProductModel product)Retrieve the minimum price from all variantsPriceInformationgetWebPriceForProduct(ProductModel product)Retrieve the first price returned by ProductItem
-
-
-
Method Detail
-
getFromPriceForProduct
PriceInformation getFromPriceForProduct(ProductModel product)
Retrieve the minimum price from all variants- Parameters:
product- the product- Returns:
- PriceInformation
-
getWebPriceForProduct
PriceInformation getWebPriceForProduct(ProductModel product)
Retrieve the first price returned by ProductItem- Parameters:
product- the product- Returns:
- PriceInformation
-
-