Class AbstractCharge

java.lang.Object
de.hybris.order.calculation.domain.AbstractCharge
Direct Known Subclasses:
LineItemCharge, OrderCharge

public abstract class AbstractCharge extends Object
Base class for charges which applies to LineItems or to the Order.
  • Constructor Details

    • AbstractCharge

      protected AbstractCharge(AbstractAmount amount)
      Default constructor requiring a spcific amount.
  • Method Details

    • isDisabled

      public boolean isDisabled()
      Returns:
      true if this charge will be ignored for calculation.
    • setDisabled

      public void setDisabled(boolean disabled)
      Marks this charge as disabled, which means that it will be ignored during calculation.
    • getAmount

      public AbstractAmount getAmount()
      Returns:
      the amount (in Percentage or Money of this additional charge.
    • setChargeType

      public void setChargeType(AbstractCharge.ChargeType chargeType)
      Sets the kind of this additional charge. Can be null.
    • getChargeType

      public AbstractCharge.ChargeType getChargeType()
      Returns the kind of this additional charge.
      Returns:
      null if nothing is set.