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 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: SapOaaCartAdjustmentStrategy
      Get allowed cart adjustment for product considering aggregated stock availability
      Specified by:
      determineAllowedCartAdjustmentForProduct in interface SapOaaCartAdjustmentStrategy
      Returns:
      new total quantity after stock limit