Class OrderCharge

java.lang.Object
de.hybris.order.calculation.domain.AbstractCharge
de.hybris.order.calculation.domain.OrderCharge
All Implemented Interfaces:
Taxable

public class OrderCharge extends AbstractCharge implements Taxable
Specifies order level charges.
  • Constructor Details

    • OrderCharge

      public OrderCharge(AbstractAmount amount, AbstractCharge.ChargeType chargeType)
      Creates a new order level charge with a specific amount and optional charge type.
    • OrderCharge

      public OrderCharge(AbstractAmount amount)
      Creates a new order level charge with a specific amount.
  • Method Details

    • getTotal

      public Money getTotal(Order context)
      Calculates the total for this charge within the given order context. Actually this is just delegating to Order.getTotalCharges().
      Specified by:
      getTotal in interface Taxable
      Parameters:
      context - the order within the tax is being calculated
    • toString

      public String toString()
      Overrides:
      toString in class Object