Interface SalesOrderSimulationService
-
- All Known Implementing Classes:
DefaultSalesOrderSimulationService
public interface SalesOrderSimulationServiceService to fetch the price, stock and also to verify the credit limit
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.BooleancheckCreditLimitExceeded(ItemModel cartModel, UserModel user)Gets the credit limit status for the Cart for the user.java.util.List<de.hybris.platform.jalo.order.price.PriceInformation>getPriceDetailsForProduct(ProductModel productModel)Get all price information for given product.java.util.Map<java.lang.String,java.util.List<de.hybris.platform.jalo.order.price.PriceInformation>>getPriceDetailsForProducts(java.util.List<ProductModel> productModels)Get the price level information for products.SapProductAvailabilitygetStockAvailability(ProductModel productModel, BaseStoreModel baseStore)Get the stock level information for the product.java.util.Map<java.lang.String,SapProductAvailability>getStockLevels(ProductModel productModel, java.util.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 Detail
-
getPriceDetailsForProduct
java.util.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
SapProductAvailability getStockAvailability(ProductModel productModel, BaseStoreModel baseStore)
Get the stock level information for the product.- Parameters:
productModel- the ProductModelbaseStore- BaseStoreModel- Returns:
- containing SapProductAvailability information for the corresponding plants.
-
getStockLevels
java.util.Map<java.lang.String,SapProductAvailability> getStockLevels(ProductModel productModel, java.util.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
java.util.Map<java.lang.String,java.util.List<de.hybris.platform.jalo.order.price.PriceInformation>> getPriceDetailsForProducts(java.util.List<ProductModel> productModels)
Get the price level information for products.- Parameters:
productModels- list of products- Returns:
- List containing priceInformation .
-
setCartDetails
void setCartDetails(AbstractOrderModel cartModel)
Sets the live stock, price, discounts, delivery & total in cartModel and CartData.- Parameters:
cartModel- The cart ModelCartData- The Cart Data
-
-