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 org.broadleafcommerce.common.money.Moneyprotected PromotableOrder -
Constructor Summary
ConstructorsConstructorDescriptionPromotableCandidateOrderOfferImpl(PromotableOrder promotableOrder, Offer offer) PromotableCandidateOrderOfferImpl(PromotableOrder promotableOrder, Offer offer, org.broadleafcommerce.common.money.Money potentialSavings) Instead of calculating the potential savings, you can specify an override of this value. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidorg.broadleafcommerce.common.currency.domain.BroadleafCurrencygetOffer()org.broadleafcommerce.common.money.Moneyintbooleanboolean
-
Field Details
-
candidateQualifiersMap
-
offer
-
promotableOrder
-
potentialSavings
protected org.broadleafcommerce.common.money.Money potentialSavings
-
-
Constructor Details
-
PromotableCandidateOrderOfferImpl
-
PromotableCandidateOrderOfferImpl
public PromotableCandidateOrderOfferImpl(PromotableOrder promotableOrder, Offer offer, org.broadleafcommerce.common.money.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
public org.broadleafcommerce.common.currency.domain.BroadleafCurrency getCurrency() -
getPotentialSavings
public org.broadleafcommerce.common.money.Money 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
-