Class SwicoBillInformation.RateDetail

java.lang.Object
net.codecrete.qrbill.generator.SwicoBillInformation.RateDetail
Enclosing class:
SwicoBillInformation

public static class SwicoBillInformation.RateDetail extends Object
VAT rate detail: a tuple of VAT rate and amount.
  • Constructor Details

    • RateDetail

      public RateDetail()
      Creates a new instance with null values.
    • RateDetail

      public RateDetail(BigDecimal rate, BigDecimal amount)
      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

      public BigDecimal getRate()
      Gets the VAT rate.
      Returns:
      the VAT rate (in percent)
    • setRate

      public void setRate(BigDecimal rate)
      Sets the VAT rate.
      Parameters:
      rate - the VAT rate (in percent)
    • getAmount

      public BigDecimal getAmount()
      Gets the amount.
      Returns:
      the amount (in bill currency)
    • setAmount

      public void setAmount(BigDecimal amount)
      Sets the amount.
      Parameters:
      amount - the amount (in bill currency)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object