Class Tax
java.lang.Object
de.hybris.order.calculation.domain.Tax
Represents the tax, which applies generally to line items or additional charges.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new target to this tax.voidaddTargets(Taxable... targets) Adds multiple targets to this tax.voidaddTargets(List<? extends Taxable> targets) Adds multiple targets to this tax.voidReturns the amount of this tax.Returns all targets of this tax.voidremoveTarget(Taxable target) Removes a single target from this tax.toString()
-
Constructor Details
-
Tax
Creates a new tax with a given amount.
-
-
Method Details
-
getAmount
Returns the amount of this tax. May be eitherPercentageorMoneyin some rare occasions. -
addTarget
Adds a new target to this tax. -
addTargets
Adds multiple targets to this tax. -
addTargets
Adds multiple targets to this tax. -
getTargets
Returns all targets of this tax. -
removeTarget
Removes a single target from this tax. -
clearTargets
public void clearTargets() -
toString
-