public static final class AmountCalculator.TaxAggregator extends java.lang.Object
Helper class for aggregating tax information and calculating tax basis and tax total values.
Constructor and Description |
---|
TaxAggregator() |
Modifier and Type | Method and Description |
---|---|
void |
add(Tax tax,
java.math.BigDecimal amount) |
static java.math.BigDecimal |
calculateTaxAmount(java.math.BigDecimal percentage,
java.math.BigDecimal value) |
java.math.BigDecimal |
calculateTaxBasis() |
java.math.BigDecimal |
calculateTaxTotal() |
java.util.List<TradeTax> |
generateTradeTaxList(com.neovisionaries.i18n.CurrencyCode currencyCode,
java.util.List<TradeTax> previousList) |
java.math.BigDecimal |
getTaxBasisForTaxPercentage(java.math.BigDecimal percentage) |
java.lang.String |
toString() |
public TaxAggregator()
public static java.math.BigDecimal calculateTaxAmount(java.math.BigDecimal percentage, java.math.BigDecimal value)
public java.math.BigDecimal calculateTaxBasis()
public java.math.BigDecimal calculateTaxTotal()
public java.util.List<TradeTax> generateTradeTaxList(com.neovisionaries.i18n.CurrencyCode currencyCode, java.util.List<TradeTax> previousList)
public java.math.BigDecimal getTaxBasisForTaxPercentage(java.math.BigDecimal percentage)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014-2018 Konik.io. All Rights Reserved.