Package de.hybris.platform.product
Interface PriceService
-
- All Known Subinterfaces:
SapPricingCatalogService
- All Known Implementing Classes:
DefaultPriceService
,DefaultSapPricingCatalogService
,NetPriceService
public interface PriceService
Service for the product prices of a product.- Spring Bean ID:
- priceService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ProductPriceInformations
getAllPriceInformation(PriceCriteria priceCriteria)
ReturnsProductPriceInformations
product price containing all applicable prices, discounts and taxes for the given criteria (product and net/gross state)default java.util.List<PriceInformation>
getPriceInformations(PriceCriteria priceCriteria)
Calculates all applicable prices for given criteria.java.util.List<PriceInformation>
getPriceInformationsForProduct(ProductModel model)
Returns all availablePriceInformation
for the givenProductModel
and the current session user.
-
-
-
Method Detail
-
getPriceInformationsForProduct
java.util.List<PriceInformation> getPriceInformationsForProduct(ProductModel model)
Returns all availablePriceInformation
for the givenProductModel
and the current session user.- Parameters:
model
- the product- Returns:
- an empty list if no price information exists for the product and current session user.
-
getPriceInformations
default java.util.List<PriceInformation> getPriceInformations(PriceCriteria priceCriteria)
Calculates all applicable prices for given criteria.- Parameters:
priceCriteria
-PriceCriteria
- Returns:
- the list of
PriceInformation
-
getAllPriceInformation
default ProductPriceInformations getAllPriceInformation(PriceCriteria priceCriteria)
ReturnsProductPriceInformations
product price containing all applicable prices, discounts and taxes for the given criteria (product and net/gross state)This default implementation just calls
FindPriceStrategy.getPriceInformation(BaseCriteria)
,FindTaxValuesStrategy.getTaxInformation(BaseCriteria)
andFindDiscountValuesStrategy.getDiscountInformation(BaseCriteria)
and wraps the results inside aProductPriceInformations
object.- Parameters:
priceCriteria
-PriceCriteria
- Returns:
ProductPriceInformations
that contains prices,discount, taxes for given priceCriteria
-
-