Class PromotableCandidateOrderOfferImpl
java.lang.Object
org.broadleafcommerce.core.offer.service.discount.domain.PromotableCandidateOrderOfferImpl
- All Implemented Interfaces:
Serializable,PromotableCandidateOrderOffer
public class PromotableCandidateOrderOfferImpl
extends Object
implements PromotableCandidateOrderOffer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMap<OfferItemCriteria,List<PromotableOrderItem>> protected Offerprotected Moneyprotected PromotableOrder -
Constructor Summary
ConstructorsConstructorDescriptionPromotableCandidateOrderOfferImpl(PromotableOrder promotableOrder, Offer offer) PromotableCandidateOrderOfferImpl(PromotableOrder promotableOrder, Offer offer, Money potentialSavings) Instead of calculating the potential savings, you can specify an override of this value. -
Method Summary
-
Field Details
-
candidateQualifiersMap
-
offer
-
promotableOrder
-
potentialSavings
-
-
Constructor Details
-
PromotableCandidateOrderOfferImpl
-
PromotableCandidateOrderOfferImpl
public PromotableCandidateOrderOfferImpl(PromotableOrder promotableOrder, Offer offer, Money potentialSavings) Instead of calculating the potential savings, you can specify an override of this value. This is currently coded only to work if the promotableOrder's isIncludeOrderAndItemAdjustments flag is true.- Parameters:
promotableOrder-offer-potentialSavings-
-
-
Method Details
-
getCandidateQualifiersMap
- Specified by:
getCandidateQualifiersMapin interfacePromotableCandidateOrderOffer
-
calculatePotentialSavings
protected void calculatePotentialSavings() -
getOffer
- Specified by:
getOfferin interfacePromotableCandidateOrderOffer
-
getPromotableOrder
- Specified by:
getPromotableOrderin interfacePromotableCandidateOrderOffer
-
getCurrency
-
getPotentialSavings
- Specified by:
getPotentialSavingsin interfacePromotableCandidateOrderOffer
-
isCombinable
public boolean isCombinable()- Specified by:
isCombinablein interfacePromotableCandidateOrderOffer
-
isTotalitarian
public boolean isTotalitarian()- Specified by:
isTotalitarianin interfacePromotableCandidateOrderOffer
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacePromotableCandidateOrderOffer
-