Class CandidateFulfillmentGroup

java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.CandidateFulfillmentGroup
All Implemented Interfaces:
Serializable

public class CandidateFulfillmentGroup extends Object implements 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 Details

    • CandidateFulfillmentGroup

      public CandidateFulfillmentGroup()
  • Method Details

    • calculatePriceWithoutAdjustments

      public javax.money.MonetaryAmount calculatePriceWithoutAdjustments()
      Calculate and return the price for this EnhancedFulfillmentGroup 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

      public EnhancedFulfillmentGroup getFulfillmentGroup()
      The EnhancedFulfillmentGroup that is decorated for consideration as part of a CandidateFulfillmentGroupOffer.
    • getCandidateQualifiersMap

      public Map<ItemCriteriaRule,Collection<EnhancedFulfillmentLineItem>> getCandidateQualifiersMap()
      Map of ItemCriteriaRule from an offer's item qualifier criteria to a Collection of EnhancedFulfillmentLineItem that meet that criteria for this fulfillmentGroup.
      Returns:
      Map of ItemCriteriaRule from an offer's item qualifier criteria to a Collection of EnhancedFulfillmentLineItem that meet that criteria for this fulfillmentGroup.
    • getDiscountedAmount

      public javax.money.MonetaryAmount getDiscountedAmount()
      The amount off this fulfillment group would get if the candidate 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 the candidate offer was applied.
      Returns:
      The adjusted discounted price for this candidate fulfillment group if the candidate offer was applied.
    • setFulfillmentGroup

      public void setFulfillmentGroup(EnhancedFulfillmentGroup fulfillmentGroup)
      The EnhancedFulfillmentGroup that is decorated for consideration as part of a CandidateFulfillmentGroupOffer.
    • setCandidateQualifiersMap

      public void setCandidateQualifiersMap(Map<ItemCriteriaRule,Collection<EnhancedFulfillmentLineItem>> candidateQualifiersMap)
      Map of ItemCriteriaRule from an offer's item qualifier criteria to a Collection of EnhancedFulfillmentLineItem that meet that criteria for this fulfillmentGroup.
      Parameters:
      candidateQualifiersMap - Map of ItemCriteriaRule from an offer's item qualifier criteria to a Collection of EnhancedFulfillmentLineItem that meet that criteria for this fulfillmentGroup.
    • setDiscountedAmount

      public void setDiscountedAmount(javax.money.MonetaryAmount discountedAmount)
      The amount off this fulfillment group would get if the candidate offer was applied.
      Parameters:
      discountedAmount - The amount off this fulfillment group would get if the candidate offer was applied.
    • setDiscountedTotal

      public void setDiscountedTotal(javax.money.MonetaryAmount discountedTotal)
      The adjusted discounted price for this candidate fulfillment group if the candidate offer was applied.
      Parameters:
      discountedTotal - The adjusted discounted price for this candidate fulfillment group if the candidate offer was applied.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object