Interface DeliveryCostsStrategy
-
- All Known Subinterfaces:
MultiAddressDeliveryCostsStrategy
- All Known Implementing Classes:
DefaultDeliveryCostsStrategy,DefaultMultiAddressDeliveryCostsStrategy
public interface DeliveryCostsStrategyInterface for strategy to calculate the delivery costs of a existingAbstractOrder.Will be used by
AbstractOrder.findDeliveryCosts().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PriceValuefindDeliveryCosts(SessionContext ctx, AbstractOrder order)Called duringAbstractOrder.calculate(),AbstractOrder.calculate(java.util.Date),AbstractOrder.recalculate()andAbstractOrder.recalculate(java.util.Date)to fetch and set the delivery cost for the assigned order.
-
-
-
Method Detail
-
findDeliveryCosts
PriceValue findDeliveryCosts(SessionContext ctx, AbstractOrder order)
Called duringAbstractOrder.calculate(),AbstractOrder.calculate(java.util.Date),AbstractOrder.recalculate()andAbstractOrder.recalculate(java.util.Date)to fetch and set the delivery cost for the assigned order.- Returns:
- the delivery costs of this abstract order
-
-