Interface SalesOrderSimulationService

  • All Known Implementing Classes:
    DefaultSalesOrderSimulationService

    public interface SalesOrderSimulationService
    Service to fetch the price, stock and also to verify the credit limit
    • 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 ProductModel
        baseStore - 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 ProductModel
        warehouses - 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 Model
        CartData - The Cart Data
      • checkCreditLimitExceeded

        java.lang.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