-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPayment.java
More file actions
51 lines (43 loc) · 968 Bytes
/
Payment.java
File metadata and controls
51 lines (43 loc) · 968 Bytes
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
package Amazon;
public class Payment {
private String type;
private float amount;
private USER user;
private String id;
public Payment(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public USER getUser() {
return user;
}
public void setUser(USER user) {
this.user = user;
}
public Payment() {
}
public Payment(String type, float amount) {
this.type = type;
this.amount = amount;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public float getAmount() {
return amount;
}
public void setAmount(float amount) {
this.amount = amount;
}
public boolean buy (Order order){
return true;
}
}