Class OrderOfferAdjustment

java.lang.Object
com.broadleafcommerce.promotion.offer.web.context.info.OrderOfferAdjustment
All Implemented Interfaces:
Serializable

public class OrderOfferAdjustment extends Object implements Serializable
DTO containing price adjustment information for an EnhancedOrder caused by a CandidateOrderOffer targeting it.
Author:
Nathan Moore (nathanmoore).
See Also:
  • Field Details

  • Constructor Details

    • OrderOfferAdjustment

      public OrderOfferAdjustment()
  • Method Details

    • getOffer

      public Offer getOffer()
    • isCombinable

      public boolean isCombinable()
    • isTotalitarian

      public boolean isTotalitarian()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCandidateOrderOffer

      public CandidateOrderOffer getCandidateOrderOffer()
    • getOrder

      public EnhancedOrder getOrder()
    • getAmount

      public javax.money.MonetaryAmount getAmount()
    • isRoundOfferValues

      public boolean isRoundOfferValues()
    • getRoundingMode

      public RoundingMode getRoundingMode()
    • isFutureCredit

      public boolean isFutureCredit()
    • setCandidateOrderOffer

      public void setCandidateOrderOffer(CandidateOrderOffer candidateOrderOffer)
    • setOrder

      public void setOrder(EnhancedOrder order)
    • setAmount

      public void setAmount(javax.money.MonetaryAmount amount)
    • setOffer

      public void setOffer(Offer offer)
    • setRoundOfferValues

      public void setRoundOfferValues(boolean roundOfferValues)
    • setRoundingMode

      public void setRoundingMode(RoundingMode roundingMode)
    • setFutureCredit

      public void setFutureCredit(boolean isFutureCredit)
    • 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