-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPayment.java
73 lines (59 loc) · 1.62 KB
/
Payment.java
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
import java.util.Date;
/**
* @author Shaolun
*/
public abstract class Payment{
protected Integer id;
protected Integer requestInfoId;
protected Integer userId;
protected Date time;
protected Double price;
protected Double perUseFee;
public Payment(Integer requestInfoId, Integer userId, Date time, Double price, Double perUseFee) {
this.requestInfoId = requestInfoId;
this.userId = userId;
this.time = time;
this.price = price;
this.perUseFee = perUseFee;
}
public Payment(Integer id, Integer requestInfoId, Integer responderId, Date time, Double price, Double perUseFee) {
this.id = id;
this.requestInfoId = requestInfoId;
this.userId = responderId;
this.time = time;
this.price = price;
this.perUseFee = perUseFee;
}
public Integer getRequestInfoId() {
return requestInfoId;
}
public void setRequestInfoId(Integer requestInfoId) {
this.requestInfoId = requestInfoId;
}
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public Double getPerUseFee() {
return perUseFee;
}
public void setPerUseFee(Double perUseFee) {
this.perUseFee = perUseFee;
}
@Override
public abstract String toString();
}