Class SwicoBillInformation.PaymentCondition

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

public static class SwicoBillInformation.PaymentCondition extends Object
Payment condition detail: a tuple of discount and validity in days.
  • Constructor Details

    • PaymentCondition

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

      public PaymentCondition(BigDecimal discount, int days)
      Creates a new instance with the specified values.
      Parameters:
      discount - the discount (in percent)
      days - the number of days
  • Method Details

    • getDiscount

      public BigDecimal getDiscount()
      Gets the discount.
      Returns:
      the discount (in percent)
    • setDiscount

      public void setDiscount(BigDecimal discount)
      Sets the discount.
      Parameters:
      discount - the discount (in percent)
    • getDays

      public int getDays()
      Gts the number of days the discount is valid.
      Returns:
      the number of days
    • setDays

      public void setDays(int days)
      Sets the number of days the discount is valid.
      Parameters:
      days - the number of days
    • 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