Package net.codecrete.qrbill.generator
Class SwicoBillInformation.PaymentCondition
- java.lang.Object
-
- net.codecrete.qrbill.generator.SwicoBillInformation.PaymentCondition
-
- Enclosing class:
- SwicoBillInformation
public static class SwicoBillInformation.PaymentCondition extends java.lang.ObjectPayment condition detail: a tuple of discount and validity in days.
-
-
Constructor Summary
Constructors Constructor Description PaymentCondition()Creates a new instance withnullvalues.PaymentCondition(java.math.BigDecimal discount, int days)Creates a new instance with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetDays()Gts the number of days the discount is valid.java.math.BigDecimalgetDiscount()Gets the discount.inthashCode()voidsetDays(int days)Sets the number of days the discount is valid.voidsetDiscount(java.math.BigDecimal discount)Sets the discount.java.lang.StringtoString()
-
-
-
Constructor Detail
-
PaymentCondition
public PaymentCondition()
Creates a new instance withnullvalues.
-
PaymentCondition
public PaymentCondition(java.math.BigDecimal discount, int days)Creates a new instance with the specified values.- Parameters:
discount- the discount (in percent)days- the number of days
-
-
Method Detail
-
getDiscount
public java.math.BigDecimal getDiscount()
Gets the discount.- Returns:
- the discount (in percent)
-
setDiscount
public void setDiscount(java.math.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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-