Package net.codecrete.qrbill.generator
Class SwicoBillInformation.RateDetail
java.lang.Object
net.codecrete.qrbill.generator.SwicoBillInformation.RateDetail
- Enclosing class:
SwicoBillInformation
VAT rate detail: a tuple of VAT rate and amount.
-
Constructor Summary
ConstructorDescriptionCreates a new instance withnull
values.RateDetail
(BigDecimal rate, BigDecimal amount) Creates a new instance with the specified values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the amount.getRate()
Gets the VAT rate.int
hashCode()
void
setAmount
(BigDecimal amount) Sets the amount.void
setRate
(BigDecimal rate) Sets the VAT rate.toString()
-
Constructor Details
-
RateDetail
public RateDetail()Creates a new instance withnull
values. -
RateDetail
Creates a new instance with the specified values.- Parameters:
rate
- the VAT rate (in percent)amount
- the amount (in the bill currency)
-
-
Method Details
-
getRate
Gets the VAT rate.- Returns:
- the VAT rate (in percent)
-
setRate
Sets the VAT rate.- Parameters:
rate
- the VAT rate (in percent)
-
getAmount
Gets the amount.- Returns:
- the amount (in bill currency)
-
setAmount
Sets the amount.- Parameters:
amount
- the amount (in bill currency)
-
equals
-
hashCode
public int hashCode() -
toString
-