java.lang.Object
de.hybris.order.calculation.domain.Tax

public class Tax extends Object
Represents the tax, which applies generally to line items or additional charges.
  • Constructor Details

    • Tax

      public Tax(AbstractAmount amount)
      Creates a new tax with a given amount.
  • Method Details

    • getAmount

      public AbstractAmount getAmount()
      Returns the amount of this tax. May be either Percentage or Money in some rare occasions.
    • addTarget

      public void addTarget(Taxable target)
      Adds a new target to this tax.
    • addTargets

      public void addTargets(List<? extends Taxable> targets)
      Adds multiple targets to this tax.
    • addTargets

      public void addTargets(Taxable... targets)
      Adds multiple targets to this tax.
    • getTargets

      public Collection<Taxable> getTargets()
      Returns all targets of this tax.
    • removeTarget

      public void removeTarget(Taxable target)
      Removes a single target from this tax.
    • clearTargets

      public void clearTargets()
    • toString

      public String toString()
      Overrides:
      toString in class Object