Interface SalesOrderSimulationService

All Known Implementing Classes:
DefaultSalesOrderSimulationService

public interface SalesOrderSimulationService
Service to fetch the price, stock and also to verify the credit limit
  • 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

      SapProductAvailability getStockAvailability(ProductModel productModel, BaseStoreModel baseStore)
      Get the stock level information for the product.
      Parameters:
      productModel - the ProductModel
      baseStore - 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 ProductModel
      warehouses - 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

      void setCartDetails(AbstractOrderModel cartModel)
      Sets the live stock, price, discounts, delivery & total in cartModel and CartData.
      Parameters:
      cartModel - The cart Model
      CartData - The Cart Data
    • checkCreditLimitExceeded

      Boolean checkCreditLimitExceeded(ItemModel cartModel, UserModel user)
      Gets the credit limit status for the Cart for the user.
      Parameters:
      cartModel - The cart Model
      user - The User Model
      Returns:
      boolean