-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStoreCredit.java
More file actions
72 lines (58 loc) · 1.56 KB
/
StoreCredit.java
File metadata and controls
72 lines (58 loc) · 1.56 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
public class StoreCredit {
private int creditID;
private int RUID;
private String email;
private String expiryDate;
private double amount;
public StoreCredit(int creditID, int RUID, String email, double amount, String expiryDate) {
this.creditID = creditID;
this.amount = amount;
this.RUID = RUID;
this.email = email;
this.expiryDate = expiryDate;
}
public StoreCredit( int RUID, String email, double amount, String expiryDate) {
this.amount = amount;
this.RUID = RUID;
this.email = email;
this.expiryDate = expiryDate;
}
public int getCreditID() {
return creditID;
}
public void setCreditID(int creditID) {
this.creditID = creditID;
}
public int getRUID() {
return RUID;
}
public void setRUID(int RUID) {
this.RUID = RUID;
}
public double getAmount() {
return amount;
}
public void setAmount(double amount) {
this.amount = amount;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getExpiryDate() {
return expiryDate;
}
public void setExpiryDate(String expiryDate) {
this.expiryDate = expiryDate;
}
@Override
public String toString() {
return "<html>" +
"Email: " + email + "<br>" +
"Expiry Date: " + expiryDate + "<br>" +
"Amount: $" + amount +
"</html>";
}
}