Interface SapS4SalesOrderSimulationService
- All Known Implementing Classes:
DefaultSapS4SalesOrderSimulationService
public interface SapS4SalesOrderSimulationService
Service to fetch the price, stock and also to verify the credit limit
-
Method Summary
Modifier and TypeMethodDescriptioncheckCreditLimitExceeded(ItemModel cartModel, UserModel user) Gets the credit limit status for the Cart for the user.List<de.hybris.platform.jalo.order.price.PriceInformation>getPriceDetailsForProduct(ProductModel productModel) Get all price information for given product.getPriceDetailsForProducts(List<ProductModel> productModels) Get the price level information for products.getStockAvailability(ProductModel productModel, BaseStoreModel baseStore) Get the stock level information for the product.voidsetCartDetails(AbstractOrderModel cartModel) Sets the live stock, price, discounts, delivery & total in cartModel and CartData.
-
Method Details
-
getPriceDetailsForProduct
List<de.hybris.platform.jalo.order.price.PriceInformation> getPriceDetailsForProduct(ProductModel productModel) throws OutboundServiceException Get all price information for given product.- Parameters:
productModel- the product model- Returns:
- map containing stock information as well as price information.
- Throws:
OutboundServiceException
-
getStockAvailability
SapS4OMProductAvailability getStockAvailability(ProductModel productModel, BaseStoreModel baseStore) throws OutboundServiceException Get the stock level information for the product.- Parameters:
productModel- the ProductModelbaseStore- BaseStoreModel- Returns:
- containing SapS4OMProductAvailability information for the corresponding plants.
- Throws:
OutboundServiceException
-
getPriceDetailsForProducts
Map<String,List<de.hybris.platform.jalo.order.price.PriceInformation>> getPriceDetailsForProducts(List<ProductModel> productModels) throws OutboundServiceException Get the price level information for products.- Parameters:
productModels- list of products- Returns:
- List containing priceInformation .
- Throws:
OutboundServiceException
-
checkCreditLimitExceeded
Boolean checkCreditLimitExceeded(ItemModel cartModel, UserModel user) throws OutboundServiceException Gets the credit limit status for the Cart for the user.- Parameters:
cartModel- The cart Modeluser- The User Model- Returns:
- boolean value for credit limit
- Throws:
OutboundServiceException
-
setCartDetails
Sets the live stock, price, discounts, delivery & total in cartModel and CartData.- Parameters:
cartModel- The cart ModelCartData- The Cart Data- Throws:
OutboundServiceException
-