2023-11-07 20:53:31 +01:00
|
|
|
package catering.order;
|
|
|
|
|
2023-11-19 13:00:21 +01:00
|
|
|
import org.salespointframework.order.Cart;
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
|
|
|
|
|
public class CustomCart extends Cart {
|
|
|
|
private OrderType orderType;
|
|
|
|
private LocalDateTime start;
|
|
|
|
private LocalDateTime finish;
|
|
|
|
private final String formatterPattern;
|
|
|
|
|
|
|
|
// Constructor
|
|
|
|
public CustomCart(OrderType orderType, LocalDateTime start, LocalDateTime finish) {
|
|
|
|
super();
|
|
|
|
this.orderType = orderType;
|
|
|
|
this.start = start;
|
|
|
|
this.finish = finish;
|
|
|
|
this.formatterPattern = "dd.MM.yyy, HH:mm 'Uhr'";
|
2023-11-07 20:53:31 +01:00
|
|
|
}
|
|
|
|
|
2023-11-19 13:00:21 +01:00
|
|
|
public OrderType getOrderType() {
|
2023-11-07 20:53:31 +01:00
|
|
|
return orderType;
|
|
|
|
}
|
|
|
|
|
2023-11-19 13:00:21 +01:00
|
|
|
public void setOrderType(OrderType orderType) {
|
|
|
|
this.orderType = orderType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public LocalDateTime getStart() {
|
|
|
|
return start;
|
2023-11-07 20:53:31 +01:00
|
|
|
}
|
|
|
|
|
2023-11-19 13:00:21 +01:00
|
|
|
public void setStart(LocalDateTime start) {
|
|
|
|
this.start = start;
|
2023-11-07 20:53:31 +01:00
|
|
|
}
|
|
|
|
|
2023-11-19 13:00:21 +01:00
|
|
|
public LocalDateTime getFinish() {
|
|
|
|
return finish;
|
2023-11-07 20:53:31 +01:00
|
|
|
}
|
|
|
|
|
2023-11-19 13:00:21 +01:00
|
|
|
public void setFinish(LocalDateTime finish) {
|
|
|
|
this.finish = finish;
|
2023-11-07 20:53:31 +01:00
|
|
|
}
|
2023-11-07 22:23:48 +01:00
|
|
|
|
2023-11-19 13:00:21 +01:00
|
|
|
public String getFormatterPattern() {
|
|
|
|
return formatterPattern;
|
2023-11-07 22:23:48 +01:00
|
|
|
}
|
2023-11-07 20:53:31 +01:00
|
|
|
}
|