Class PromotableFulfillmentGroupAdjustmentImpl
java.lang.Object
org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
org.broadleafcommerce.core.offer.service.discount.domain.PromotableFulfillmentGroupAdjustmentImpl
- All Implemented Interfaces:
Serializable,OfferHolder,PromotableFulfillmentGroupAdjustment,PromotionRounding
public class PromotableFulfillmentGroupAdjustmentImpl
extends AbstractPromotionRounding
implements PromotableFulfillmentGroupAdjustment, OfferHolder
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Moneyprotected booleanprotected PromotableCandidateFulfillmentGroupOfferprotected PromotableFulfillmentGroupprotected Moneyprotected MoneyFields inherited from class org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
roundingMode, roundingScale -
Constructor Summary
ConstructorsConstructorDescriptionPromotableFulfillmentGroupAdjustmentImpl(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer, PromotableFulfillmentGroup fulfillmentGroup, Money retailAdjustmentValue, Money saleAdjustmentValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected MoneycomputeAdjustmentValue(Money currentPriceDetailValue) voidfinalizeAdjustment(boolean useSalePrice) Updates the adjustmentValue to the sales or retail value based on the passed in paramReturns the value of this adjustmentgetOffer()Returns the associated promotableCandidateOrderOfferReturns the associated promotableFulfillmentGroupReturns the value of this adjustmentReturns 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 class org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
getRoundingMode, getRoundingScale, setRoundingMode, setRoundingScaleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.core.offer.service.discount.domain.PromotionRounding
getRoundingMode, getRoundingScale
-
Field Details
-
promotableCandidateFulfillmentGroupOffer
-
promotableFulfillmentGroup
-
saleAdjustmentValue
-
retailAdjustmentValue
-
adjustmentValue
-
appliedToSalePrice
protected boolean appliedToSalePrice
-
-
Constructor Details
-
PromotableFulfillmentGroupAdjustmentImpl
public PromotableFulfillmentGroupAdjustmentImpl(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer, PromotableFulfillmentGroup fulfillmentGroup, Money retailAdjustmentValue, Money saleAdjustmentValue)
-
-
Method Details
-
getOffer
- Specified by:
getOfferin interfaceOfferHolder
-
computeAdjustmentValue
-
getPromotableFulfillmentGroup
Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns the associated promotableFulfillmentGroup- Specified by:
getPromotableFulfillmentGroupin interfacePromotableFulfillmentGroupAdjustment- Returns:
-
getPromotableCandidateFulfillmentGroupOffer
Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns the associated promotableCandidateOrderOffer- Specified by:
getPromotableCandidateFulfillmentGroupOfferin interfacePromotableFulfillmentGroupAdjustment- Returns:
-
getAdjustmentValue
Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns the value of this adjustment- Specified by:
getAdjustmentValuein interfacePromotableFulfillmentGroupAdjustment- Returns:
-
getCurrency
- Specified by:
getCurrencyin interfaceOfferHolder
-
isCombinable
public boolean isCombinable()Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns true if this adjustment represents a combinable offer.- Specified by:
isCombinablein interfacePromotableFulfillmentGroupAdjustment
-
isTotalitarian
public boolean isTotalitarian()Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns true if this adjustment represents a totalitarian offer.- Specified by:
isTotalitarianin interfacePromotableFulfillmentGroupAdjustment
-
getSaleAdjustmentValue
Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns the value of this adjustment- Specified by:
getSaleAdjustmentValuein interfacePromotableFulfillmentGroupAdjustment- Returns:
-
getRetailAdjustmentValue
Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns the value of this adjustment- Specified by:
getRetailAdjustmentValuein interfacePromotableFulfillmentGroupAdjustment- Returns:
-
isAppliedToSalePrice
public boolean isAppliedToSalePrice()- Specified by:
isAppliedToSalePricein interfacePromotableFulfillmentGroupAdjustment
-
finalizeAdjustment
public void finalizeAdjustment(boolean useSalePrice) Description copied from interface:PromotableFulfillmentGroupAdjustmentUpdates the adjustmentValue to the sales or retail value based on the passed in param- Specified by:
finalizeAdjustmentin interfacePromotableFulfillmentGroupAdjustment
-