package catering.order; 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'"; } public OrderType getOrderType() { return orderType; } public void setOrderType(OrderType orderType) { this.orderType = orderType; } public LocalDateTime getStart() { return start; } public void setStart(LocalDateTime start) { this.start = start; } public LocalDateTime getFinish() { return finish; } public void setFinish(LocalDateTime finish) { this.finish = finish; } public String getFormatterPattern() { return formatterPattern; } }