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 Details

    • 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