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 org.broadleafcommerce.common.money.Moneyprotected booleanprotected PromotableCandidateFulfillmentGroupOfferprotected PromotableFulfillmentGroupprotected org.broadleafcommerce.common.money.Moneyprotected org.broadleafcommerce.common.money.MoneyFields inherited from class org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
roundingMode, roundingScale -
Constructor Summary
ConstructorsConstructorDescriptionPromotableFulfillmentGroupAdjustmentImpl(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer, PromotableFulfillmentGroup fulfillmentGroup, org.broadleafcommerce.common.money.Money retailAdjustmentValue, org.broadleafcommerce.common.money.Money saleAdjustmentValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.broadleafcommerce.common.money.MoneycomputeAdjustmentValue(org.broadleafcommerce.common.money.Money currentPriceDetailValue) voidfinalizeAdjustment(boolean useSalePrice) Updates the adjustmentValue to the sales or retail value based on the passed in paramorg.broadleafcommerce.common.money.MoneyReturns the value of this adjustmentorg.broadleafcommerce.common.currency.domain.BroadleafCurrencygetOffer()Returns 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 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
protected org.broadleafcommerce.common.money.Money saleAdjustmentValue -
retailAdjustmentValue
protected org.broadleafcommerce.common.money.Money retailAdjustmentValue -
adjustmentValue
protected org.broadleafcommerce.common.money.Money adjustmentValue -
appliedToSalePrice
protected boolean appliedToSalePrice
-
-
Constructor Details
-
PromotableFulfillmentGroupAdjustmentImpl
public PromotableFulfillmentGroupAdjustmentImpl(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer, PromotableFulfillmentGroup fulfillmentGroup, org.broadleafcommerce.common.money.Money retailAdjustmentValue, org.broadleafcommerce.common.money.Money saleAdjustmentValue)
-
-
Method Details
-
getOffer
- Specified by:
getOfferin interfaceOfferHolder
-
computeAdjustmentValue
protected org.broadleafcommerce.common.money.Money computeAdjustmentValue(org.broadleafcommerce.common.money.Money currentPriceDetailValue) -
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
public org.broadleafcommerce.common.money.Money getAdjustmentValue()Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns the value of this adjustment- Specified by:
getAdjustmentValuein interfacePromotableFulfillmentGroupAdjustment- Returns:
-
getCurrency
public org.broadleafcommerce.common.currency.domain.BroadleafCurrency 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
public org.broadleafcommerce.common.money.Money getSaleAdjustmentValue()Description copied from interface:PromotableFulfillmentGroupAdjustmentReturns the value of this adjustment- Specified by:
getSaleAdjustmentValuein interfacePromotableFulfillmentGroupAdjustment- Returns:
-
getRetailAdjustmentValue
public org.broadleafcommerce.common.money.Money 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
-