public class CommerceConfigAddToCartStrategy extends ProductConfigAddToCartStrategy
APPEND_AS_LASTDEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity| Constructor and Description |
|---|
CommerceConfigAddToCartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
getAllowedCartAdjustmentForProduct(CartModel cartModel,
ProductModel productModel,
long quantityToAdd,
PointOfServiceModel pointOfServiceModel)
Work out the allowed quantity adjustment for a product in the cart given a requested quantity change.
|
protected boolean |
isSyncOrdermgmtEnabled() |
doAddToCart, getAbstractOrderEntryLinkStrategy, getCpqConfigurableChecker, setAbstractOrderEntryLinkStrategy, setCpqConfigurableChecker, validateAddToCartaddCartEntry, addToCart, addToCart, createAddToCartResp, createEmptyCartEntry, getEntryMergeStrategy, getStatusCodeAllowedQuantityChange, getStatusCodeForNotAllowedQuantityChange, getUnit, isProductForCode, mergeEntry, setEntryMergeStrategyafterAddToCart, beforeAddToCart, getCommerceAddToCartMethodHooks, getConfigurationService, setCommerceAddToCartMethodHooks, setConfigurationServicecheckCartLevel, getAvailableStockLevel, getBaseStoreService, getCartEntryDao, getCartService, getCommerceCartCalculationStrategy, getCommerceStockService, getEntryForNumber, getEntryForProductAndPointOfService, getEntryOrderChecker, getForceInStockMaxQuantity, getModelService, getProductService, isMaxOrderQuantitySet, isOrderEntryUpdatable, isStockLevelSufficient, normalizeEntryNumbers, setBaseStoreService, setCartEntryDao, setCartService, setCommerceCartCalculationStrategy, setCommerceStockService, setEntryOrderChecker, setForceInStockMaxQuantity, setModelService, setProductServiceprotected long getAllowedCartAdjustmentForProduct(CartModel cartModel, ProductModel productModel, long quantityToAdd, PointOfServiceModel pointOfServiceModel)
AbstractCommerceCartStrategygetAllowedCartAdjustmentForProduct in class AbstractCommerceCartStrategycartModel - the cartproductModel - the product in the cartquantityToAdd - the amount to increase the quantity of the product in the cart, may be negative if the request is to
reduce the quantitypointOfServiceModel - the PointOfService to check stock at, can be nullprotected boolean isSyncOrdermgmtEnabled()
Copyright © 2018 SAP SE. All Rights Reserved.