Interface SalesOrderSimulationService
- All Known Implementing Classes:
DefaultSalesOrderSimulationService
public interface SalesOrderSimulationService
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.getStockLevels(ProductModel productModel, Collection<WarehouseModel> warehouses) Get the stock level information in different warehouses 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) Get all price information for given product.- Parameters:
productModel- the product model- Returns:
- map containing stock information as well as price information.
-
getStockAvailability
Get the stock level information for the product.- Parameters:
productModel- the ProductModelbaseStore- BaseStoreModel- Returns:
- containing SapProductAvailability information for the corresponding plants.
-
getStockLevels
Map<String,SapProductAvailability> getStockLevels(ProductModel productModel, Collection<WarehouseModel> warehouses) Get the stock level information in different warehouses for the product.- Parameters:
productModel- the ProductModelwarehouses- Collection of WarehouseModel- Returns:
- containing SapProductAvailability information for the corresponding plants.
-
getPriceDetailsForProducts
Map<String,List<de.hybris.platform.jalo.order.price.PriceInformation>> getPriceDetailsForProducts(List<ProductModel> productModels) Get the price level information for products.- Parameters:
productModels- list of products- Returns:
- List containing priceInformation .
-
setCartDetails
Sets the live stock, price, discounts, delivery & total in cartModel and CartData.- Parameters:
cartModel- The cart ModelCartData- The Cart Data
-
checkCreditLimitExceeded
Gets the credit limit status for the Cart for the user.- Parameters:
cartModel- The cart Modeluser- The User Model- Returns:
- boolean
-