Class DefaultRuleEngineCalculationService
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.calculation.impl.DefaultRuleEngineCalculationService
-
- All Implemented Interfaces:
RuleEngineCalculationService
public class DefaultRuleEngineCalculationService extends java.lang.Object implements RuleEngineCalculationService
The DefaultRuleEngineCalculationService uses the order calculation facilities to calculate the order and cart.
-
-
Constructor Summary
Constructors Constructor Description DefaultRuleEngineCalculationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<DiscountRAO>
addFixedPriceEntriesDiscount(CartRAO cartRao, java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap, java.util.Set<OrderEntryRAO> selectedOrderEntryRaos, java.math.BigDecimal fixedPrice)
Creates order entry level discounts for the cartcartRao
, with thefixedPrice
given as parameter and for the products from entries inselectedOrderEntryRaos
and related quantities given inselectedOrderEntryMap
.DiscountRAO
addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao, java.math.BigDecimal fixedPrice)
Creates a new order entry level discount such that the order entry's price will be equal to the givenfixedPrice
multiplied by quantity.FreeProductRAO
addFreeProductsToCart(CartRAO cartRao, ProductModel product, int quantity)
Adds free product items to the cart.DiscountRAO
addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao, boolean absolute, java.math.BigDecimal amount)
creates a DiscountRAO for the given OrderEntryRAO based on the input.protected DiscountRAO
addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao, boolean absolute, java.math.BigDecimal amount, int consumedQty)
java.util.List<DiscountRAO>
addOrderEntryLevelDiscount(java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap, java.util.Set<OrderEntryRAO> selectedOrderEntryRaos, boolean absolute, java.math.BigDecimal amount)
Creates order entry level discounts for the cartcartRao
, adds it to the cartRao and updates the cartRao totals.DiscountRAO
addOrderLevelDiscount(CartRAO cartRao, boolean absolute, java.math.BigDecimal amount)
creates a DiscountRAO for the given CartRAO based on the input.java.math.BigDecimal
calculateSubTotals(CartRAO cartRao, java.util.Collection<ProductRAO> excludedProducts)
Runs cart calculation for cart not including the excluded products.void
calculateTotals(AbstractOrderRAO cartRao)
performs a (re)calculation on the given abstractOrderRao and updates these properties:AbstractOrderRAO.getTotal()
AbstractOrderRAO.getSubTotal()
AbstractOrderRAO.getDeliveryCost()
AbstractOrderRAO.getPaymentCost()
ShipmentRAO
changeDeliveryMode(CartRAO cartRao, DeliveryModeRAO mode)
Changes the current delivery mode to the given values, adds it to the cartRao and updates the carRao totals.protected java.math.BigDecimal
convertPercentageDiscountToAbsoluteDiscount(java.math.BigDecimal percentageAmount, int quantityToConsume, NumberedLineItem orderLineItem)
protected java.math.BigDecimal
convertPercentageDiscountToAbsoluteDiscount(java.math.BigDecimal percentageAmount, Order cart)
protected DiscountRAO
createAbsoluteDiscountRAO(LineItem lineItem, java.math.BigDecimal amount, int applicableUnits)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, usecreateAbsoluteDiscountRAO(LineItem, BigDecimal, int, boolean)
insteadprotected DiscountRAO
createAbsoluteDiscountRAO(LineItem lineItem, java.math.BigDecimal amount, int applicableUnits, boolean perUnit)
protected DiscountRAO
createDiscountRAO(AbstractDiscount discount)
Creates a new DiscountRAO based on the given AbstractDiscount.protected LineItemDiscount
createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount)
Creates an LineItemDiscount based on the given values and adds it to the givenlineItem
.protected LineItemDiscount
createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount, boolean perUnit)
Creates an LineItemDiscount based on the given values and adds it to the givenlineItem
.protected LineItemDiscount
createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount, boolean perUnit, int applicableUnits)
protected OrderDiscount
createOrderDiscount(Order cart, boolean absolute, java.math.BigDecimal amount)
Creates an OrderDiscount based on the given values and adds it to the givencart
.protected ShipmentRAO
createShipmentRAO(DeliveryModeRAO mode)
Creates a new ShipmentRAO based on the given Delivery Mode.protected OrderCharge
createShippingCharge(Order cart, boolean absolute, java.math.BigDecimal value)
creates anOrderCharge
ofAbstractCharge.ChargeType.SHIPPING
for the given values and adds it to the given cart.protected void
ensureOrderEntryRAOEntryNumbers(AbstractOrderRAO abstractOrderRao)
for the givenAbstractOrderRAO
this method ensures that each of theAbstractOrderRAO.getEntries()
has a entry number set.protected NumberedLineItem
findLineItem(Order cart, OrderEntryRAO entryRao)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905 .protected OrderEntryRAO
findOrderEntryRAO(AbstractOrderRAO order, NumberedLineItem lineItem)
returns the corresponding OrderEntryRAO for the givenlineItem
.protected Converter<AbstractOrderRAO,Order>
getAbstractOrderRaoToOrderConverter()
java.math.BigDecimal
getAdjustedUnitPrice(int quantity, OrderEntryRAO orderEntryRao)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905 .protected int
getConsumedQuantityForAllDiscounts(java.util.Set<AbstractRuleActionRAO> actions)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905int
getConsumedQuantityForOrderEntry(OrderEntryRAO orderEntryRao)
Deprecated, for removal: This API element is subject to removal in a future version.since 19.05 .protected int
getConsumedQuantityForOrderEntry(OrderEntryRAO orderEntryRao, java.util.Set<AbstractRuleActionRAO> actions)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905protected RAOConsumptionSupport
getConsumptionSupport()
protected CurrencyUtils
getCurrencyUtils()
java.math.BigDecimal
getCurrentPrice(java.util.Set<OrderEntryRAO> orderEntryForDiscounts, java.util.Map<java.lang.Integer,java.lang.Integer> discountedOrderEntryMap)
Calculates current price of the set of Order Entries using only specified quantity of units for every Order Entry.protected NumberedLineItemLookupStrategy
getLineItemLookupStrategy()
protected MinimumAmountValidationStrategy
getMinimumAmountValidationStrategy()
protected OrderUtils
getOrderUtils()
protected PriceAdjustmentStrategy<OrderEntryRAO>
getPriceAdjustmentStrategy()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905int
getProductAvailableQuantityInOrderEntry(OrderEntryRAO orderEntryRAO)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905 .protected Converter<ProductModel,ProductRAO>
getProductConverter()
protected RaoUtils
getRaoUtils()
protected boolean
isConsumptionEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, please useRAOConsumptionSupport.isConsumptionEnabled()
insteadprotected void
recalculateTotals(AbstractOrderRAO cartRao, Order cart)
Uses the givencart
to recalculate the totals of the givencartRao
.protected void
removeShippingCharges(Order cart)
Returns all Shipping charges from the Order.void
setAbstractOrderRaoToOrderConverter(Converter<AbstractOrderRAO,Order> abstractOrderRaoToOrderConverter)
void
setConsumptionEnabled(boolean consumptionEnabled)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905void
setConsumptionSupport(RAOConsumptionSupport consumptionSupport)
void
setCurrencyUtils(CurrencyUtils currencyUtils)
void
setLineItemLookupStrategy(NumberedLineItemLookupStrategy lineItemLookupStrategy)
void
setMinimumAmountValidationStrategy(MinimumAmountValidationStrategy minimumAmountValidationStrategy)
void
setOrderUtils(OrderUtils orderUtils)
void
setPriceAdjustmentStrategy(PriceAdjustmentStrategy<OrderEntryRAO> priceAdjustmentStrategy)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905void
setProductConverter(Converter<ProductModel,ProductRAO> productConverter)
void
setRaoUtils(RaoUtils raoUtils)
protected LineItemDiscount
validateLineItemDiscount(LineItem lineItem, boolean absolute, Currency currency, LineItemDiscount discount)
-
-
-
Method Detail
-
addOrderLevelDiscount
public DiscountRAO addOrderLevelDiscount(CartRAO cartRao, boolean absolute, java.math.BigDecimal amount)
creates a DiscountRAO for the given CartRAO based on the input. Adds the discount to the cart RAO and recalculates the totals of the given CartRAO. The absolute parameter determines if the discount is an absolute one or a percentage based one. If absolute is set to false, the amount is read as an percent value, e.g. 10 for 10% (and not 0.1 for 10%)- Specified by:
addOrderLevelDiscount
in interfaceRuleEngineCalculationService
- Parameters:
cartRao
- the cartRAOabsolute
- whether the discount is absolute or a percentage discountamount
- the amount- Returns:
- the created and linked DiscountRAO
-
getCurrentPrice
public java.math.BigDecimal getCurrentPrice(java.util.Set<OrderEntryRAO> orderEntryForDiscounts, java.util.Map<java.lang.Integer,java.lang.Integer> discountedOrderEntryMap)
Description copied from interface:RuleEngineCalculationService
Calculates current price of the set of Order Entries using only specified quantity of units for every Order Entry.- Specified by:
getCurrentPrice
in interfaceRuleEngineCalculationService
- Parameters:
orderEntryForDiscounts
- set with Order Entries which price need to be calculateddiscountedOrderEntryMap
- Map having orderEntry.entryNumber as keys and Unit Quantity To Be Consumed as values- Returns:
- BigDecimal current price
-
addOrderEntryLevelDiscount
public DiscountRAO addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao, boolean absolute, java.math.BigDecimal amount)
creates a DiscountRAO for the given OrderEntryRAO based on the input. Adds the discount to the order entry RAO and recalculates the totals of the corresponding CartRAO. The absolute parameter determines if the discount is an absolute one or a percentage based one. If absolute is set to false, the amount is read as an percent value, e.g. 10 for 10% (and not 0.1 for 10%)- Specified by:
addOrderEntryLevelDiscount
in interfaceRuleEngineCalculationService
- Parameters:
orderEntryRao
- the orderEntryRaoabsolute
- whether the discount is absolute or a percentage discountamount
- the amount- Returns:
- the created and linked DiscountRAO
-
addOrderEntryLevelDiscount
protected DiscountRAO addOrderEntryLevelDiscount(OrderEntryRAO orderEntryRao, boolean absolute, java.math.BigDecimal amount, int consumedQty)
-
getConsumedQuantityForOrderEntry
@Deprecated(since="1905", forRemoval=true) public int getConsumedQuantityForOrderEntry(OrderEntryRAO orderEntryRao)
Deprecated, for removal: This API element is subject to removal in a future version.since 19.05 . Please refer toRAOConsumptionSupport.getConsumedQuantityForOrderEntry(OrderEntryRAO)
Description copied from interface:RuleEngineCalculationService
Return consumed quantity for a given order entry- Specified by:
getConsumedQuantityForOrderEntry
in interfaceRuleEngineCalculationService
- Parameters:
orderEntryRao
- Cart order entry- Returns:
- consumed quantity
-
getConsumedQuantityForAllDiscounts
@Deprecated(since="1905", forRemoval=true) protected int getConsumedQuantityForAllDiscounts(java.util.Set<AbstractRuleActionRAO> actions)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905
-
getConsumedQuantityForOrderEntry
@Deprecated(since="1905", forRemoval=true) protected int getConsumedQuantityForOrderEntry(OrderEntryRAO orderEntryRao, java.util.Set<AbstractRuleActionRAO> actions)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905
-
getProductAvailableQuantityInOrderEntry
@Deprecated(since="1905", forRemoval=true) public int getProductAvailableQuantityInOrderEntry(OrderEntryRAO orderEntryRAO)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905 . Please refer toRAOConsumptionSupport.getConsumableQuantity(OrderEntryRAO)
Description copied from interface:RuleEngineCalculationService
give the order entry and the product, return the number of available product items to consume- Specified by:
getProductAvailableQuantityInOrderEntry
in interfaceRuleEngineCalculationService
- Parameters:
orderEntryRAO
- instance ofOrderEntryRAO
- Returns:
- total number of product items to consume
-
addFixedPriceEntryDiscount
public DiscountRAO addFixedPriceEntryDiscount(OrderEntryRAO orderEntryRao, java.math.BigDecimal fixedPrice)
Description copied from interface:RuleEngineCalculationService
Creates a new order entry level discount such that the order entry's price will be equal to the givenfixedPrice
multiplied by quantity.- Specified by:
addFixedPriceEntryDiscount
in interfaceRuleEngineCalculationService
- Parameters:
orderEntryRao
- the orderEntryRao to add the discount tofixedPrice
- the target unit price- Returns:
- the created DiscountRAO
-
addFreeProductsToCart
public FreeProductRAO addFreeProductsToCart(CartRAO cartRao, ProductModel product, int quantity)
Description copied from interface:RuleEngineCalculationService
Adds free product items to the cart.- Specified by:
addFreeProductsToCart
in interfaceRuleEngineCalculationService
- Parameters:
cartRao
- cart where to add the productproduct
- a product to addquantity
- quantity of product items to add- Returns:
- FreeProductRAO the free product to be given
-
ensureOrderEntryRAOEntryNumbers
protected void ensureOrderEntryRAOEntryNumbers(AbstractOrderRAO abstractOrderRao)
for the givenAbstractOrderRAO
this method ensures that each of theAbstractOrderRAO.getEntries()
has a entry number set. Note: This method only setsOrderEntryRAO#setEntryNumber(Integer)
if it is not yet set, it does not check for duplicates or any other inconsistencies.- Parameters:
abstractOrderRao
- the AbstractOrderRAO to check
-
changeDeliveryMode
public ShipmentRAO changeDeliveryMode(CartRAO cartRao, DeliveryModeRAO mode)
Description copied from interface:RuleEngineCalculationService
Changes the current delivery mode to the given values, adds it to the cartRao and updates the carRao totals.- Specified by:
changeDeliveryMode
in interfaceRuleEngineCalculationService
- Parameters:
cartRao
- the cartRao to change the delivery mode formode
- the new delivery mode- Returns:
- the ShipmentRAO
-
calculateTotals
public void calculateTotals(AbstractOrderRAO cartRao)
Description copied from interface:RuleEngineCalculationService
performs a (re)calculation on the given abstractOrderRao and updates these properties:- Specified by:
calculateTotals
in interfaceRuleEngineCalculationService
- Parameters:
cartRao
- the abstractOrderRao to calculate
-
findLineItem
@Deprecated(since="1905", forRemoval=true) protected NumberedLineItem findLineItem(Order cart, OrderEntryRAO entryRao)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905 . Please useNumberedLineItemLookupStrategy.lookup(Order, OrderEntryRAO)
returns the corresponding NumberedLineItem for the givenentryRao
. The lookup is based on both having the sameentryNumber
.- Parameters:
cart
- the cart to look up the line item fromentryRao
- the entry rao- Returns:
- the corresponding NumberedLineItem
- Throws:
java.lang.IllegalArgumentException
- if no corresponding NumberedLineItem can be found
-
findOrderEntryRAO
protected OrderEntryRAO findOrderEntryRAO(AbstractOrderRAO order, NumberedLineItem lineItem)
returns the corresponding OrderEntryRAO for the givenlineItem
. The lookup is based on both having the sameentryNumber
.- Parameters:
order
- the order to look up the order entry rao fromlineItem
- the line item- Returns:
- the corresponding OrderEntryRAP or null if none is found
-
recalculateTotals
protected void recalculateTotals(AbstractOrderRAO cartRao, Order cart)
Uses the givencart
to recalculate the totals of the givencartRao
.- Parameters:
cartRao
- the cartRao to updatecart
- the cart to use for calculation
-
createOrderDiscount
protected OrderDiscount createOrderDiscount(Order cart, boolean absolute, java.math.BigDecimal amount)
Creates an OrderDiscount based on the given values and adds it to the givencart
.- Parameters:
cart
- the cart to add the order discount toabsolute
- whether the discount is absolute or percentage basedamount
- the amount- Returns:
- the created OrderDiscount
-
createDiscountRAO
protected DiscountRAO createDiscountRAO(AbstractDiscount discount)
Creates a new DiscountRAO based on the given AbstractDiscount.- Parameters:
discount
- the discount- Returns:
- a new DiscountRAO
-
createLineItemDiscount
protected LineItemDiscount createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount, boolean perUnit)
Creates an LineItemDiscount based on the given values and adds it to the givenlineItem
. Sets perUnit value for partial line discounts- Parameters:
lineItem
- the line item to add the order discount toabsolute
- whether the discount is absolute or percentage basedamount
- the amountperUnit
- true if the discount does not necessarily apply to whole line item- Returns:
- the created OrderDiscount
-
createLineItemDiscount
protected LineItemDiscount createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount, boolean perUnit, int applicableUnits)
-
validateLineItemDiscount
protected LineItemDiscount validateLineItemDiscount(LineItem lineItem, boolean absolute, Currency currency, LineItemDiscount discount)
-
createLineItemDiscount
protected LineItemDiscount createLineItemDiscount(LineItem lineItem, boolean absolute, java.math.BigDecimal amount)
Creates an LineItemDiscount based on the given values and adds it to the givenlineItem
.- Parameters:
lineItem
- the line item to add the order discount toabsolute
- whether the discount is absolute or percentage basedamount
- the amount- Returns:
- the created OrderDiscount
-
removeShippingCharges
protected void removeShippingCharges(Order cart)
Returns all Shipping charges from the Order.- Parameters:
cart
- instance ofOrder
-
createShippingCharge
protected OrderCharge createShippingCharge(Order cart, boolean absolute, java.math.BigDecimal value)
creates anOrderCharge
ofAbstractCharge.ChargeType.SHIPPING
for the given values and adds it to the given cart.- Parameters:
cart
- the given cart to apply the shipping charge toabsolute
- whether the shipping charge is percentage-based or absolute.value
- the value of the charge- Returns:
- the newly created OrderCharge
-
createShipmentRAO
protected ShipmentRAO createShipmentRAO(DeliveryModeRAO mode)
Creates a new ShipmentRAO based on the given Delivery Mode.
-
getProductConverter
protected Converter<ProductModel,ProductRAO> getProductConverter()
-
setProductConverter
public void setProductConverter(Converter<ProductModel,ProductRAO> productConverter)
-
getAbstractOrderRaoToOrderConverter
protected Converter<AbstractOrderRAO,Order> getAbstractOrderRaoToOrderConverter()
-
setAbstractOrderRaoToOrderConverter
public void setAbstractOrderRaoToOrderConverter(Converter<AbstractOrderRAO,Order> abstractOrderRaoToOrderConverter)
-
calculateSubTotals
public java.math.BigDecimal calculateSubTotals(CartRAO cartRao, java.util.Collection<ProductRAO> excludedProducts)
Description copied from interface:RuleEngineCalculationService
Runs cart calculation for cart not including the excluded products. CartRao argument is not modified by this process.- Specified by:
calculateSubTotals
in interfaceRuleEngineCalculationService
- Parameters:
cartRao
- Cart to be calculatedexcludedProducts
- List of products to be excluded from the cart calculation- Returns:
- BigDecimal result of the cartSubTotals (without charges like payment or delivery) minus the excluded products
-
getAdjustedUnitPrice
@Deprecated(since="1905", forRemoval=true) public java.math.BigDecimal getAdjustedUnitPrice(int quantity, OrderEntryRAO orderEntryRao)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905 . Please usePriceAdjustmentStrategy.get(Object, int)
Description copied from interface:RuleEngineCalculationService
Gets the total discount for line item and recalculates the discounted unit price.- Specified by:
getAdjustedUnitPrice
in interfaceRuleEngineCalculationService
- Parameters:
quantity
- quantity of line itemorderEntryRao
- orderEntryRao to get discounted unit price for- Returns:
- adjusted unit price
-
addFixedPriceEntriesDiscount
public java.util.List<DiscountRAO> addFixedPriceEntriesDiscount(CartRAO cartRao, java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap, java.util.Set<OrderEntryRAO> selectedOrderEntryRaos, java.math.BigDecimal fixedPrice)
Description copied from interface:RuleEngineCalculationService
Creates order entry level discounts for the cartcartRao
, with thefixedPrice
given as parameter and for the products from entries inselectedOrderEntryRaos
and related quantities given inselectedOrderEntryMap
.- Specified by:
addFixedPriceEntriesDiscount
in interfaceRuleEngineCalculationService
- Parameters:
cartRao
- Cart RAO used for totals calculationsselectedOrderEntryMap
- Map having orderEntry.entryNumber as keys and unit quantity to be consumed as valuesselectedOrderEntryRaos
- Order entries to be discountedfixedPrice
- Target price for discounted product- Returns:
- List of discounts that are generated
-
createAbsoluteDiscountRAO
@Deprecated(since="1905", forRemoval=true) protected DiscountRAO createAbsoluteDiscountRAO(LineItem lineItem, java.math.BigDecimal amount, int applicableUnits)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, usecreateAbsoluteDiscountRAO(LineItem, BigDecimal, int, boolean)
instead
-
createAbsoluteDiscountRAO
protected DiscountRAO createAbsoluteDiscountRAO(LineItem lineItem, java.math.BigDecimal amount, int applicableUnits, boolean perUnit)
-
addOrderEntryLevelDiscount
public java.util.List<DiscountRAO> addOrderEntryLevelDiscount(java.util.Map<java.lang.Integer,java.lang.Integer> selectedOrderEntryMap, java.util.Set<OrderEntryRAO> selectedOrderEntryRaos, boolean absolute, java.math.BigDecimal amount)
Description copied from interface:RuleEngineCalculationService
Creates order entry level discounts for the cartcartRao
, adds it to the cartRao and updates the cartRao totals. Discounts are applied to entries contained within the selectedOrderEntryMapselectedOrderEntryRaos
based on strategy.- Specified by:
addOrderEntryLevelDiscount
in interfaceRuleEngineCalculationService
- Parameters:
selectedOrderEntryMap
- Map having orderEntry.entryNumber as keys and unit quantity to be consumed as valuesselectedOrderEntryRaos
- Order entries to be discountedabsolute
- boolean value true is discount is absolute currency amountamount
- value of discount- Returns:
- List of discounts created as a result of this action
-
convertPercentageDiscountToAbsoluteDiscount
protected java.math.BigDecimal convertPercentageDiscountToAbsoluteDiscount(java.math.BigDecimal percentageAmount, int quantityToConsume, NumberedLineItem orderLineItem)
-
convertPercentageDiscountToAbsoluteDiscount
protected java.math.BigDecimal convertPercentageDiscountToAbsoluteDiscount(java.math.BigDecimal percentageAmount, Order cart)
-
getMinimumAmountValidationStrategy
protected MinimumAmountValidationStrategy getMinimumAmountValidationStrategy()
-
setMinimumAmountValidationStrategy
public void setMinimumAmountValidationStrategy(MinimumAmountValidationStrategy minimumAmountValidationStrategy)
-
getOrderUtils
protected OrderUtils getOrderUtils()
-
setOrderUtils
public void setOrderUtils(OrderUtils orderUtils)
-
getCurrencyUtils
protected CurrencyUtils getCurrencyUtils()
-
setCurrencyUtils
public void setCurrencyUtils(CurrencyUtils currencyUtils)
-
getRaoUtils
protected RaoUtils getRaoUtils()
-
setRaoUtils
public void setRaoUtils(RaoUtils raoUtils)
-
isConsumptionEnabled
@Deprecated(since="1905", forRemoval=true) protected boolean isConsumptionEnabled()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905, please useRAOConsumptionSupport.isConsumptionEnabled()
instead
-
setConsumptionEnabled
@Deprecated(since="1905", forRemoval=true) public void setConsumptionEnabled(boolean consumptionEnabled)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905
-
getConsumptionSupport
protected RAOConsumptionSupport getConsumptionSupport()
-
setConsumptionSupport
public void setConsumptionSupport(RAOConsumptionSupport consumptionSupport)
-
getLineItemLookupStrategy
protected NumberedLineItemLookupStrategy getLineItemLookupStrategy()
-
setLineItemLookupStrategy
public void setLineItemLookupStrategy(NumberedLineItemLookupStrategy lineItemLookupStrategy)
-
getPriceAdjustmentStrategy
@Deprecated(since="1905", forRemoval=true) protected PriceAdjustmentStrategy<OrderEntryRAO> getPriceAdjustmentStrategy()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905
-
setPriceAdjustmentStrategy
@Deprecated(since="1905", forRemoval=true) public void setPriceAdjustmentStrategy(PriceAdjustmentStrategy<OrderEntryRAO> priceAdjustmentStrategy)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905
-
-