Package com.sap.retail.sapppspricing
Interface PricingBackend
- All Known Implementing Classes:
PricingBackendPPS
public interface PricingBackend
Top level interface offering the price calculation for products / carts
-
Method Summary
Modifier and TypeMethodDescriptionfetchProductPromotions(ProductModel product, boolean isNet) Retrieves the list of promotions for a given product from the OPPS cache.List<de.hybris.platform.jalo.order.price.PriceInformation>readPriceInformationForProducts(List<ProductModel> productModels, boolean isNet) Price calculation for a list of productsvoidPrice calculation for a cart
-
Method Details
-
readPricesForCart
Price calculation for a cart- Parameters:
order-- Throws:
SapPPSPricingRuntimeException
-
readPriceInformationForProducts
List<de.hybris.platform.jalo.order.price.PriceInformation> readPriceInformationForProducts(List<ProductModel> productModels, boolean isNet) Price calculation for a list of products- Parameters:
productModels-isNet-- Returns:
- List
- Throws:
SapPPSPricingRuntimeException
-
fetchProductPromotions
Retrieves the list of promotions for a given product from the OPPS cache.- Parameters:
product- The product for which promotions are to be fetched.isNet-- Returns:
- A list of promotions associated with the product. If no promotions are found, an empty list is returned.
-