Class DefaultSapOaaCartAdjustmentStrategy
java.lang.Object
com.sap.retail.oaa.commerce.services.order.impl.DefaultSapOaaCartAdjustmentStrategy
- All Implemented Interfaces:
SapOaaCartAdjustmentStrategy
public class DefaultSapOaaCartAdjustmentStrategy
extends Object
implements SapOaaCartAdjustmentStrategy
Default implementation of the Cart Adjustment Strategy for OAA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetermineAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, long cartItemQty, PointOfServiceModel pointOfServiceModel) Get allowed cart adjustment for product considering aggregated stock availabilityde.hybris.platform.commerceservices.stock.CommerceStockServicevoidsetOaaStockService(de.hybris.platform.commerceservices.stock.CommerceStockService oaaStockService)
-
Constructor Details
-
DefaultSapOaaCartAdjustmentStrategy
public DefaultSapOaaCartAdjustmentStrategy()
-
-
Method Details
-
getOaaStockService
public de.hybris.platform.commerceservices.stock.CommerceStockService getOaaStockService() -
setOaaStockService
public void setOaaStockService(de.hybris.platform.commerceservices.stock.CommerceStockService oaaStockService) -
determineAllowedCartAdjustmentForProduct
public Long determineAllowedCartAdjustmentForProduct(@Nonnull CartModel cartModel, ProductModel productModel, long quantityToAdd, long cartItemQty, PointOfServiceModel pointOfServiceModel) Description copied from interface:SapOaaCartAdjustmentStrategyGet allowed cart adjustment for product considering aggregated stock availability- Specified by:
determineAllowedCartAdjustmentForProductin interfaceSapOaaCartAdjustmentStrategy- Returns:
- new total quantity after stock limit
-