public class OrderCharge extends AbstractCharge implements Taxable
AbstractCharge.ChargeType| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
getTotal(Order context)
Calculates the total for this charge within the given order context.
|
java.lang.String |
toString() |
getAmount, getChargeType, isDisabled, setChargeType, setDisabledpublic OrderCharge(AbstractAmount amount, AbstractCharge.ChargeType chargeType)
public OrderCharge(AbstractAmount amount)
public Money getTotal(Order context)
Order.getTotalCharges().public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.