Class DefaultSapS4SalesOrderSimulationService
java.lang.Object
de.hybris.platform.sap.saps4omservices.services.impl.DefaultSapS4SalesOrderSimulationService
- All Implemented Interfaces:
SapS4SalesOrderSimulationService
public class DefaultSapS4SalesOrderSimulationService
extends Object
implements SapS4SalesOrderSimulationService
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.protected SapS4OMOutboundServicegetStockAvailability(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.voidsetSapS4OMOutboundService(SapS4OMOutboundService sapS4OMOutboundService) voidsetSapS4OMRequestPayloadCreator(SapS4OMRequestPayloadCreator sapS4OMRequestPayloadCreator) voidsetSapS4OMResponseProcessor(SapS4OMResponseProcessor sapS4OMResponseProcessor)
-
Field Details
-
STOCK_AVAILABILITY_MAP
- See Also:
-
-
Constructor Details
-
DefaultSapS4SalesOrderSimulationService
public DefaultSapS4SalesOrderSimulationService()
-
-
Method Details
-
getPriceDetailsForProduct
public List<de.hybris.platform.jalo.order.price.PriceInformation> getPriceDetailsForProduct(ProductModel productModel) throws OutboundServiceException Description copied from interface:SapS4SalesOrderSimulationServiceGet all price information for given product.- Specified by:
getPriceDetailsForProductin interfaceSapS4SalesOrderSimulationService- Parameters:
productModel- the product model- Returns:
- map containing stock information as well as price information.
- Throws:
OutboundServiceException
-
getPriceDetailsForProducts
public Map<String,List<de.hybris.platform.jalo.order.price.PriceInformation>> getPriceDetailsForProducts(List<ProductModel> productModels) throws OutboundServiceException Description copied from interface:SapS4SalesOrderSimulationServiceGet the price level information for products.- Specified by:
getPriceDetailsForProductsin interfaceSapS4SalesOrderSimulationService- Parameters:
productModels- list of products- Returns:
- List containing priceInformation .
- Throws:
OutboundServiceException
-
setCartDetails
Description copied from interface:SapS4SalesOrderSimulationServiceSets the live stock, price, discounts, delivery & total in cartModel and CartData.- Specified by:
setCartDetailsin interfaceSapS4SalesOrderSimulationService- Parameters:
cartModel- The cart Model- Throws:
OutboundServiceException
-
checkCreditLimitExceeded
public Boolean checkCreditLimitExceeded(ItemModel cartModel, UserModel user) throws OutboundServiceException Description copied from interface:SapS4SalesOrderSimulationServiceGets the credit limit status for the Cart for the user.- Specified by:
checkCreditLimitExceededin interfaceSapS4SalesOrderSimulationService- Parameters:
cartModel- The cart Modeluser- The User Model- Returns:
- boolean value for credit limit
- Throws:
OutboundServiceException
-
getStockAvailability
public SapS4OMProductAvailability getStockAvailability(ProductModel productModel, BaseStoreModel baseStore) throws OutboundServiceException Description copied from interface:SapS4SalesOrderSimulationServiceGet the stock level information for the product.- Specified by:
getStockAvailabilityin interfaceSapS4SalesOrderSimulationService- Parameters:
productModel- the ProductModelbaseStore- BaseStoreModel- Returns:
- containing SapS4OMProductAvailability information for the corresponding plants.
- Throws:
OutboundServiceException
-
getSapS4OMOutboundService
-
setSapS4OMOutboundService
-
getSapS4OMResponseProcessor
-
setSapS4OMResponseProcessor
-
getSapS4OMRequestPayloadCreator
-
setSapS4OMRequestPayloadCreator
public void setSapS4OMRequestPayloadCreator(SapS4OMRequestPayloadCreator sapS4OMRequestPayloadCreator)
-