Package de.hybris.platform.product
Interface PriceService
- All Known Implementing Classes:
DefaultPriceService,NetPriceService
public interface PriceService
Service for the product prices of a product.
- Spring Bean ID:
- priceService
-
Method Summary
Modifier and TypeMethodDescriptiondefault ProductPriceInformationsgetAllPriceInformation(PriceCriteria priceCriteria) ReturnsProductPriceInformationsproduct price containing all applicable prices, discounts and taxes for the given criteria (product and net/gross state)default List<PriceInformation>getPriceInformations(PriceCriteria priceCriteria) Calculates all applicable prices for given criteria.Returns all availablePriceInformationfor the givenProductModeland the current session user.
-
Method Details
-
getPriceInformationsForProduct
Returns all availablePriceInformationfor the givenProductModeland 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
Calculates all applicable prices for given criteria.- Parameters:
priceCriteria-PriceCriteria- Returns:
- the list of
PriceInformation
-
getAllPriceInformation
ReturnsProductPriceInformationsproduct 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 aProductPriceInformationsobject.- Parameters:
priceCriteria-PriceCriteria- Returns:
ProductPriceInformationsthat contains prices,discount, taxes for given priceCriteria
-