-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPayment.java
More file actions
80 lines (62 loc) · 1.49 KB
/
Payment.java
File metadata and controls
80 lines (62 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package shopping;
import java.util.Date;
public abstract class Payment {
protected String id;
protected Date paid;
protected float total;
protected String details;
protected Order order;
protected Account account;
protected int object_id;
public Payment(int object_id, String id, Date paid, float total, String details) {
this.id = id;
this.paid = paid;
this.total = total;
this.details = details;
this.object_id = object_id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Date getPaid() {
return paid;
}
public void setPaid(Date paid) {
this.paid = paid;
}
public float getTotal() {
return total;
}
public void setTotal(float total) {
this.total = total;
}
public String getDetails() {
return details;
}
public void setDetails(String details) {
this.details = details;
}
public Order getOrder() {
return order;
}
public void setOrder(Order order) {
this.order = order;
}
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
public int getObjectId() {
return object_id;
}
public void setObjectId(int object_id) {
this.object_id = object_id;
}
@Override
public abstract String toString();
}