|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
org.broadleafcommerce.core.offer.service.discount.domain.PromotableFulfillmentGroupAdjustmentImpl
public class PromotableFulfillmentGroupAdjustmentImpl
| Field Summary | |
|---|---|
protected Money |
adjustmentValue
|
protected boolean |
appliedToSalePrice
|
protected PromotableCandidateFulfillmentGroupOffer |
promotableCandidateFulfillmentGroupOffer
|
protected PromotableFulfillmentGroup |
promotableFulfillmentGroup
|
protected Money |
retailAdjustmentValue
|
protected Money |
saleAdjustmentValue
|
| Fields inherited from class org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding |
|---|
roundingMode, roundingScale, roundOfferValues |
| Constructor Summary | |
|---|---|
PromotableFulfillmentGroupAdjustmentImpl(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer,
PromotableFulfillmentGroup fulfillmentGroup)
|
|
| Method Summary | |
|---|---|
protected Money |
computeAdjustmentValue(Money currentPriceDetailValue)
|
protected void |
computeAdjustmentValues()
|
void |
finalizeAdjustment(boolean useSalePrice)
Updates the adjustmentValue to the sales or retail value based on the passed in param |
Money |
getAdjustmentValue()
Returns the value of this adjustment |
BroadleafCurrency |
getCurrency()
|
Offer |
getOffer()
|
PromotableCandidateFulfillmentGroupOffer |
getPromotableCandidateFulfillmentGroupOffer()
Returns the associated promotableCandidateOrderOffer |
PromotableFulfillmentGroup |
getPromotableFulfillmentGroup()
Returns the associated promotableFulfillmentGroup |
Money |
getRetailAdjustmentValue()
Returns the value of this adjustment |
Money |
getSaleAdjustmentValue()
Returns the value of this adjustment |
boolean |
isAppliedToSalePrice()
|
boolean |
isCombinable()
Returns true if this adjustment represents a combinable offer. |
boolean |
isTotalitarian()
Returns true if this adjustment represents a totalitarian offer. |
| Methods inherited from class org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding |
|---|
getRoundingMode, getRoundingScale, isRoundOfferValues, setRoundingMode, setRoundingScale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer
protected PromotableFulfillmentGroup promotableFulfillmentGroup
protected Money saleAdjustmentValue
protected Money retailAdjustmentValue
protected Money adjustmentValue
protected boolean appliedToSalePrice
| Constructor Detail |
|---|
public PromotableFulfillmentGroupAdjustmentImpl(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer,
PromotableFulfillmentGroup fulfillmentGroup)
| Method Detail |
|---|
public Offer getOffer()
getOffer in interface OfferHolderprotected void computeAdjustmentValues()
protected Money computeAdjustmentValue(Money currentPriceDetailValue)
public PromotableFulfillmentGroup getPromotableFulfillmentGroup()
PromotableFulfillmentGroupAdjustment
getPromotableFulfillmentGroup in interface PromotableFulfillmentGroupAdjustmentpublic PromotableCandidateFulfillmentGroupOffer getPromotableCandidateFulfillmentGroupOffer()
PromotableFulfillmentGroupAdjustment
getPromotableCandidateFulfillmentGroupOffer in interface PromotableFulfillmentGroupAdjustmentpublic Money getAdjustmentValue()
PromotableFulfillmentGroupAdjustment
getAdjustmentValue in interface PromotableFulfillmentGroupAdjustmentpublic BroadleafCurrency getCurrency()
getCurrency in interface OfferHolderpublic boolean isCombinable()
PromotableFulfillmentGroupAdjustment
isCombinable in interface PromotableFulfillmentGroupAdjustmentpublic boolean isTotalitarian()
PromotableFulfillmentGroupAdjustment
isTotalitarian in interface PromotableFulfillmentGroupAdjustmentpublic Money getSaleAdjustmentValue()
PromotableFulfillmentGroupAdjustment
getSaleAdjustmentValue in interface PromotableFulfillmentGroupAdjustmentpublic Money getRetailAdjustmentValue()
PromotableFulfillmentGroupAdjustment
getRetailAdjustmentValue in interface PromotableFulfillmentGroupAdjustmentpublic boolean isAppliedToSalePrice()
isAppliedToSalePrice in interface PromotableFulfillmentGroupAdjustmentpublic void finalizeAdjustment(boolean useSalePrice)
PromotableFulfillmentGroupAdjustment
finalizeAdjustment in interface PromotableFulfillmentGroupAdjustment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||