Class DefaultPriceAdjustmentStrategy
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.calculation.impl.DefaultPriceAdjustmentStrategy
-
- All Implemented Interfaces:
PriceAdjustmentStrategy<OrderEntryRAO>
public class DefaultPriceAdjustmentStrategy extends java.lang.Object implements PriceAdjustmentStrategy<OrderEntryRAO>
Default implementation ofPriceAdjustmentStrategy
forOrderEntryRAO
entities
-
-
Constructor Summary
Constructors Constructor Description DefaultPriceAdjustmentStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
get(OrderEntryRAO orderEntryRao, int quantity)
Performs calculation of the adjusted price for the provided entry with respect to quantity valueprotected Converter<AbstractOrderRAO,Order>
getAbstractOrderRaoToOrderConverter()
protected NumberedLineItemLookupStrategy
getLineItemLookupStrategy()
void
setAbstractOrderRaoToOrderConverter(Converter<AbstractOrderRAO,Order> abstractOrderRaoToOrderConverter)
void
setLineItemLookupStrategy(NumberedLineItemLookupStrategy lineItemLookupStrategy)
-
-
-
Method Detail
-
get
public java.math.BigDecimal get(OrderEntryRAO orderEntryRao, int quantity)
Description copied from interface:PriceAdjustmentStrategy
Performs calculation of the adjusted price for the provided entry with respect to quantity value- Specified by:
get
in interfacePriceAdjustmentStrategy<OrderEntryRAO>
- Parameters:
orderEntryRao
- an entry to perform price correction on, e.g.OrderEntryRAO
quantity
- quantity value to be used in price correction related calculations- Returns:
- adjusted price value
-
getAbstractOrderRaoToOrderConverter
protected Converter<AbstractOrderRAO,Order> getAbstractOrderRaoToOrderConverter()
-
setAbstractOrderRaoToOrderConverter
public void setAbstractOrderRaoToOrderConverter(Converter<AbstractOrderRAO,Order> abstractOrderRaoToOrderConverter)
-
getLineItemLookupStrategy
protected NumberedLineItemLookupStrategy getLineItemLookupStrategy()
-
setLineItemLookupStrategy
public void setLineItemLookupStrategy(NumberedLineItemLookupStrategy lineItemLookupStrategy)
-
-