Package net.codecrete.qrbill.generator
Class SwicoBillInformation.PaymentCondition
java.lang.Object
net.codecrete.qrbill.generator.SwicoBillInformation.PaymentCondition
- Enclosing class:
SwicoBillInformation
Payment condition detail: a tuple of discount and validity in days.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance withnullvalues.PaymentCondition(BigDecimal discount, int days) Creates a new instance with the specified values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetDays()Gts the number of days the discount is valid.Gets the discount.inthashCode()voidsetDays(int days) Sets the number of days the discount is valid.voidsetDiscount(BigDecimal discount) Sets the discount.toString()
-
Constructor Details
-
PaymentCondition
public PaymentCondition()Creates a new instance withnullvalues. -
PaymentCondition
Creates a new instance with the specified values.- Parameters:
discount- the discount (in percent)days- the number of days
-
-
Method Details
-
getDiscount
Gets the discount.- Returns:
- the discount (in percent)
-
setDiscount
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
-
hashCode
public int hashCode() -
toString
-