Interface CommercePriceService
- All Known Subinterfaces:
SubscriptionCommercePriceService
- All Known Implementing Classes:
DefaultCommercePriceService,DefaultSubscriptionCommercePriceService
public interface CommercePriceService
Commerce 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
Modifier and TypeMethodDescriptiongetFromPriceForProduct(ProductModel product) Retrieve the minimum price from all variantsgetWebPriceForProduct(ProductModel product) Retrieve the first price returned by ProductItem
-
Method Details
-
getFromPriceForProduct
Retrieve the minimum price from all variants- Parameters:
product- the product- Returns:
- PriceInformation
-
getWebPriceForProduct
Retrieve the first price returned by ProductItem- Parameters:
product- the product- Returns:
- PriceInformation
-