You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
733 B
39 lines
733 B
package hs.fulda.de.ci.exam.project;
|
|
|
|
public abstract class Payment {
|
|
int id;
|
|
String amount;
|
|
PaymentStatus status;
|
|
|
|
public Payment(int id, String amount, PaymentStatus status) {
|
|
this.id = id;
|
|
this.amount = amount;
|
|
this.status = status;
|
|
}
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getAmount() {
|
|
return amount;
|
|
}
|
|
|
|
public void setAmount(String amount) {
|
|
this.amount = amount;
|
|
}
|
|
|
|
public PaymentStatus isStatus() {
|
|
return status;
|
|
}
|
|
|
|
public void setStatus(PaymentStatus status) {
|
|
this.status = status;
|
|
}
|
|
|
|
public abstract boolean isValid();
|
|
}
|