|
||||||||||
| 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.PromotableOrderAdjustmentImpl
public class PromotableOrderAdjustmentImpl
| Field Summary | |
|---|---|
protected Money |
adjustmentValue
|
protected Offer |
offer
|
protected PromotableCandidateOrderOffer |
promotableCandidateOrderOffer
|
protected PromotableOrder |
promotableOrder
|
protected RoundingMode |
roundingMode
|
protected int |
roundingScale
|
protected boolean |
roundOfferValues
|
| Constructor Summary | |
|---|---|
PromotableOrderAdjustmentImpl(PromotableCandidateOrderOffer promotableCandidateOrderOffer,
PromotableOrder promotableOrder)
|
|
PromotableOrderAdjustmentImpl(PromotableCandidateOrderOffer promotableCandidateOrderOffer,
PromotableOrder promotableOrder,
Money adjustmentValue)
|
|
| Method Summary | |
|---|---|
protected void |
computeAdjustmentValue()
|
Money |
getAdjustmentValue()
Returns the value of this adjustment |
Offer |
getOffer()
Returns the associated promotableCandidateOrderOffer |
PromotableOrder |
getPromotableOrder()
Returns the associated promotableOrder |
RoundingMode |
getRoundingMode()
|
int |
getRoundingScale()
|
boolean |
isCombinable()
Returns true if this adjustment represents a combinable offer. |
boolean |
isRoundOfferValues()
It is sometimes problematic to offer percentage-off offers with regards to rounding. |
boolean |
isTotalitarian()
Returns true if this adjustment represents a totalitarian offer. |
void |
setRoundingMode(RoundingMode roundingMode)
|
void |
setRoundingScale(int roundingScale)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PromotableCandidateOrderOffer promotableCandidateOrderOffer
protected PromotableOrder promotableOrder
protected Money adjustmentValue
protected Offer offer
protected boolean roundOfferValues
protected int roundingScale
protected RoundingMode roundingMode
| Constructor Detail |
|---|
public PromotableOrderAdjustmentImpl(PromotableCandidateOrderOffer promotableCandidateOrderOffer,
PromotableOrder promotableOrder)
public PromotableOrderAdjustmentImpl(PromotableCandidateOrderOffer promotableCandidateOrderOffer,
PromotableOrder promotableOrder,
Money adjustmentValue)
| Method Detail |
|---|
public PromotableOrder getPromotableOrder()
PromotableOrderAdjustment
getPromotableOrder in interface PromotableOrderAdjustmentpublic Offer getOffer()
PromotableOrderAdjustment
getOffer in interface PromotableOrderAdjustmentprotected void computeAdjustmentValue()
public Money getAdjustmentValue()
PromotableOrderAdjustment
getAdjustmentValue in interface PromotableOrderAdjustmentpublic boolean isRoundOfferValues()
public void setRoundingScale(int roundingScale)
roundingScale - isRoundOfferValues()public int getRoundingScale()
public void setRoundingMode(RoundingMode roundingMode)
roundingMode - isRoundOfferValues()public RoundingMode getRoundingMode()
public boolean isCombinable()
PromotableOrderAdjustment
isCombinable in interface PromotableOrderAdjustmentpublic boolean isTotalitarian()
PromotableOrderAdjustment
isTotalitarian in interface PromotableOrderAdjustment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||