java.lang.Object
com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment
com.broadleafcommerce.promotion.offer.client.web.context.discounts.ItemAdjustment
All Implemented Interfaces:
Serializable

public class ItemAdjustment extends Adjustment implements Serializable
An adjustment for a line item of the order.
Author:
Chad Harchar (charchar)
See Also:
  • Constructor Details

    • ItemAdjustment

      public ItemAdjustment()
  • Method Details

    • isCurrencyConverted

      public boolean isCurrencyConverted()
      Whether the adjustment amount was converted from another currency.
      Since:
      2.0.4
    • isAppliedToSalePrice

      public boolean isAppliedToSalePrice()
      Whether this adjustment is applied to the sale price of the item.
    • getConvertedCurrencyDetail

      public ConvertedCurrencyDetail getConvertedCurrencyDetail()
      Represents the details of the exchange rate used to convert a MonetaryAmount from one currency to another. This is used to describe the amount of the adjustment if it was converted from a base currency. This is done when the target item was in a different currency from the offer and was also converted, that is, the item's original currency was the same as that which the offer targets but its price was converted to another currency.
      Since:
      2.0.4
    • setAppliedToSalePrice

      public void setAppliedToSalePrice(boolean appliedToSalePrice)
      Whether this adjustment is applied to the sale price of the item.
    • setConvertedCurrencyDetail

      public void setConvertedCurrencyDetail(ConvertedCurrencyDetail convertedCurrencyDetail)
      Represents the details of the exchange rate used to convert a MonetaryAmount from one currency to another. This is used to describe the amount of the adjustment if it was converted from a base currency. This is done when the target item was in a different currency from the offer and was also converted, that is, the item's original currency was the same as that which the offer targets but its price was converted to another currency.
      Since:
      2.0.4
    • equals

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

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class Adjustment
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Adjustment