public class TaxedPrice
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.List<TaxPortion> |
getTaxPortions()
The portions for individual tax rates.
|
Money |
getTotalGross()
The total gross price (total price including tax).
|
Money |
getTotalNet()
The total net price (total price excluding tax).
|
java.lang.String |
toString() |
@Nonnull public Money getTotalNet()
@Nonnull public Money getTotalGross()
@Nonnull public java.util.List<TaxPortion> getTaxPortions()
totalNet + sum(tax portions) = totalGross
.public java.lang.String toString()
toString
in class java.lang.Object