Interface PromotableOrderAdjustment
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
PromotableOrderAdjustmentImpl
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of this adjustmentgetOffer()Returns the associated promotableCandidateOrderOfferReturns the associated promotableOrderbooleanReturns true if this adjustment represents a combinable offer.booleanFuture credit means that the associated adjustment will be discounted at a later time to the customer via a credit.booleanReturns true if this adjustment represents a totalitarian offer.voidsetFutureCredit(boolean futureCredit) Future credit means that the associated adjustment will be discounted at a later time to the customer via a credit.
-
Method Details
-
getPromotableOrder
PromotableOrder getPromotableOrder()Returns the associated promotableOrder- Returns:
-
getOffer
Offer getOffer()Returns the associated promotableCandidateOrderOffer- Returns:
-
getAdjustmentValue
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. -
isFutureCredit
boolean isFutureCredit()Future credit means that the associated adjustment will be discounted at a later time to the customer via a credit. It is up to the implementor to decide how to achieve this. This field is used to determine if the adjustment originated from an offer marked as FUTURE_CREDIT.See
Offer.getAdjustmentType()for more info- Returns:
-
setFutureCredit
void setFutureCredit(boolean futureCredit) Future credit means that the associated adjustment will be discounted at a later time to the customer via a credit. It is up to the implementor to decide how to achieve this. This field is used to determine if the adjustment originated from an offer marked as FUTURE_CREDIT.See
Offer.getAdjustmentType()for more info- Parameters:
futureCredit-
-