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
ConstructorDescriptionCreates a new instance withnull
values.PaymentCondition
(BigDecimal discount, int days) Creates a new instance with the specified values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getDays()
Gts the number of days the discount is valid.Gets the discount.int
hashCode()
void
setDays
(int days) Sets the number of days the discount is valid.void
setDiscount
(BigDecimal discount) Sets the discount.toString()
-
Constructor Details
-
PaymentCondition
public PaymentCondition()Creates a new instance withnull
values. -
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
-