-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathOrder.java
More file actions
49 lines (38 loc) · 1003 Bytes
/
Order.java
File metadata and controls
49 lines (38 loc) · 1003 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
package com.ironhack.data;
import java.util.List;
public class Order {
private String orderId;
private String customer;
private List<OrderItem> items;
private double total;
public Order(String orderId, String customer, List<OrderItem> items, double total) {
this.orderId = orderId;
this.customer = customer;
this.items = items;
this.total = total;
}
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getCustomer() {
return customer;
}
public void setCustomer(String customer) {
this.customer = customer;
}
public List<OrderItem> getItems() {
return items;
}
public void setItems(List<OrderItem> items) {
this.items = items;
}
public double getTotal() {
return total;
}
public void setTotal(double total) {
this.total = total;
}
}