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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.order.calculation.domain.AbstractCharge
AbstractCharge.ChargeType
-
-
Constructor Summary
Constructors Constructor Description OrderCharge(AbstractAmount amount)
Creates a new order level charge with a specific amount.OrderCharge(AbstractAmount amount, AbstractCharge.ChargeType chargeType)
Creates a new order level charge with a specific amount and optional charge type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Money
getTotal(Order context)
Calculates the total for this charge within the given order context.java.lang.String
toString()
-
Methods inherited from class de.hybris.order.calculation.domain.AbstractCharge
getAmount, getChargeType, isDisabled, setChargeType, setDisabled
-
-
-
-
Constructor Detail
-
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 Detail
-
getTotal
public Money getTotal(Order context)
Calculates the total for this charge within the given order context. Actually this is just delegating toOrder.getTotalCharges()
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-