Class AbstractCharge
java.lang.Object
de.hybris.order.calculation.domain.AbstractCharge
- Direct Known Subclasses:
LineItemCharge,OrderCharge
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCharge(AbstractAmount amount) Default constructor requiring a spcific amount. -
Method Summary
Modifier and TypeMethodDescriptionReturns the kind of this additional charge.booleanvoidsetChargeType(AbstractCharge.ChargeType chargeType) Sets the kind of this additional charge.voidsetDisabled(boolean disabled) Marks this charge as disabled, which means that it will be ignored during calculation.
-
Constructor Details
-
AbstractCharge
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
- Returns:
- the amount (in
PercentageorMoneyof this additional charge.
-
setChargeType
Sets the kind of this additional charge. Can be null. -
getChargeType
Returns the kind of this additional charge.- Returns:
- null if nothing is set.
-