Interface PromotableFulfillmentGroupAdjustment
- All Superinterfaces:
PromotionRounding,Serializable
- All Known Implementing Classes:
PromotableFulfillmentGroupAdjustmentImpl
This class holds adjustment records during the discount calculation
processing. This and other disposable objects avoid churn on the database while the
offer engine determines the best offer(s) for the order being priced.
- Author:
- bpolster
-
Method Summary
Modifier and TypeMethodDescriptionvoidfinalizeAdjustment(boolean useSaleAdjustments) Updates the adjustmentValue to the sales or retail value based on the passed in paramorg.broadleafcommerce.common.money.MoneyReturns the value of this adjustmentReturns the associated promotableCandidateOrderOfferReturns the associated promotableFulfillmentGrouporg.broadleafcommerce.common.money.MoneyReturns the value of this adjustmentorg.broadleafcommerce.common.money.MoneyReturns the value of this adjustmentbooleanbooleanReturns true if this adjustment represents a combinable offer.booleanReturns true if this adjustment represents a totalitarian offer.Methods inherited from interface org.broadleafcommerce.core.offer.service.discount.domain.PromotionRounding
getRoundingMode, getRoundingScale
-
Method Details
-
getPromotableFulfillmentGroup
PromotableFulfillmentGroup getPromotableFulfillmentGroup()Returns the associated promotableFulfillmentGroup- Returns:
-
getPromotableCandidateFulfillmentGroupOffer
PromotableCandidateFulfillmentGroupOffer getPromotableCandidateFulfillmentGroupOffer()Returns the associated promotableCandidateOrderOffer- Returns:
-
getSaleAdjustmentValue
org.broadleafcommerce.common.money.Money getSaleAdjustmentValue()Returns the value of this adjustment- Returns:
-
getRetailAdjustmentValue
org.broadleafcommerce.common.money.Money getRetailAdjustmentValue()Returns the value of this adjustment- Returns:
-
getAdjustmentValue
org.broadleafcommerce.common.money.Money getAdjustmentValue()Returns the value of this adjustment- Returns:
-
isCombinable
boolean isCombinable()Returns true if this adjustment represents a combinable offer. -
isTotalitarian
boolean isTotalitarian()Returns true if this adjustment represents a totalitarian offer. -
finalizeAdjustment
void finalizeAdjustment(boolean useSaleAdjustments) Updates the adjustmentValue to the sales or retail value based on the passed in param -
isAppliedToSalePrice
boolean isAppliedToSalePrice()
-