Class CandidateFulfillmentGroup
java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.CandidateFulfillmentGroup
- All Implemented Interfaces:
Serializable
Represents a candidate fulfillment group for which an
Offer
has been applied. Used as a
list of items in CandidateFulfillmentGroupOffer
to represent applying the corresponding
offer to all of an order's fulfillment groups
.- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.money.MonetaryAmount
Calculate and return the price for thisEnhancedFulfillmentGroup
without any adjustments added.protected boolean
boolean
Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedFulfillmentLineItem
that meet that criteria for thisfulfillmentGroup
.javax.money.MonetaryAmount
The amount off this fulfillment group would get if thecandidate offer
was applied.javax.money.MonetaryAmount
The adjusted discounted price for this candidate fulfillment group if thecandidate offer
was applied.TheEnhancedFulfillmentGroup
that is decorated for consideration as part of aCandidateFulfillmentGroupOffer
.int
hashCode()
void
Between permutation runs, we need to reset the state of intermediate valuesvoid
setCandidateQualifiersMap
(Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>> candidateQualifiersMap) Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedFulfillmentLineItem
that meet that criteria for thisfulfillmentGroup
.void
setDiscountedAmount
(javax.money.MonetaryAmount discountedAmount) The amount off this fulfillment group would get if thecandidate offer
was applied.void
setDiscountedTotal
(javax.money.MonetaryAmount discountedTotal) The adjusted discounted price for this candidate fulfillment group if thecandidate offer
was applied.void
setFulfillmentGroup
(EnhancedFulfillmentGroup fulfillmentGroup) TheEnhancedFulfillmentGroup
that is decorated for consideration as part of aCandidateFulfillmentGroupOffer
.toString()
-
Constructor Details
-
CandidateFulfillmentGroup
public CandidateFulfillmentGroup()
-
-
Method Details
-
calculatePriceWithoutAdjustments
public javax.money.MonetaryAmount calculatePriceWithoutAdjustments()Calculate and return the price for thisEnhancedFulfillmentGroup
without any adjustments added.- Returns:
- Calculate and return the price for this
EnhancedFulfillmentGroup
without any adjustments added.
-
resetState
public void resetState()Between permutation runs, we need to reset the state of intermediate values -
getFulfillmentGroup
TheEnhancedFulfillmentGroup
that is decorated for consideration as part of aCandidateFulfillmentGroupOffer
. -
getCandidateQualifiersMap
Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedFulfillmentLineItem
that meet that criteria for thisfulfillmentGroup
.- Returns:
- Map of
ItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedFulfillmentLineItem
that meet that criteria for thisfulfillmentGroup
.
-
getDiscountedAmount
public javax.money.MonetaryAmount getDiscountedAmount()The amount off this fulfillment group would get if thecandidate offer
was applied.- Returns:
- The amount off this fulfillment group would get if the
candidate offer
was applied.
-
getDiscountedTotal
public javax.money.MonetaryAmount getDiscountedTotal()The adjusted discounted price for this candidate fulfillment group if thecandidate offer
was applied.- Returns:
- The adjusted discounted price for this candidate fulfillment group if the
candidate offer
was applied.
-
setFulfillmentGroup
TheEnhancedFulfillmentGroup
that is decorated for consideration as part of aCandidateFulfillmentGroupOffer
. -
setCandidateQualifiersMap
public void setCandidateQualifiersMap(Map<ItemCriteriaRule, Collection<EnhancedFulfillmentLineItem>> candidateQualifiersMap) Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedFulfillmentLineItem
that meet that criteria for thisfulfillmentGroup
.- Parameters:
candidateQualifiersMap
- Map ofItemCriteriaRule
from anoffer's item qualifier criteria
to aCollection
ofEnhancedFulfillmentLineItem
that meet that criteria for thisfulfillmentGroup
.
-
setDiscountedAmount
public void setDiscountedAmount(javax.money.MonetaryAmount discountedAmount) The amount off this fulfillment group would get if thecandidate offer
was applied.- Parameters:
discountedAmount
- The amount off this fulfillment group would get if thecandidate offer
was applied.
-
setDiscountedTotal
public void setDiscountedTotal(javax.money.MonetaryAmount discountedTotal) The adjusted discounted price for this candidate fulfillment group if thecandidate offer
was applied.- Parameters:
discountedTotal
- The adjusted discounted price for this candidate fulfillment group if thecandidate offer
was applied.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-