public class DefaultCommerceAvailabilityCalculationStrategy extends java.lang.Object implements CommerceAvailabilityCalculationStrategy
| Constructor and Description |
|---|
DefaultCommerceAvailabilityCalculationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
calculateAvailability(java.util.Collection<StockLevelModel> stockLevels) |
protected long |
getAvailableToSellQuantity(StockLevelModel stockLevel)
Get the Available To Sell quantity for a StockLevel.
|
public DefaultCommerceAvailabilityCalculationStrategy()
public java.lang.Long calculateAvailability(java.util.Collection<StockLevelModel> stockLevels)
calculateAvailability in interface CommerceAvailabilityCalculationStrategyprotected long getAvailableToSellQuantity(StockLevelModel stockLevel)
stockLevel - the stock level.Copyright © 2018 SAP SE. All Rights Reserved.