2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jshopcore.model.order;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import java.util.List;
22 import org.mxchange.jshopcore.model.basket.AddableBasketItem;
23 import org.mxchange.jshopcore.model.customer.Customer;
26 * An interface for customer orders
28 * @author Roland Haeder
30 public interface Orderable extends Serializable {
33 * Getter for access key
37 public String getAccessKey ();
40 * Setter for access key
42 * @param accessKey Access key
44 public void setAccessKey (final String accessKey);
47 * Getter for created timestamp
49 * @return Created timestamp
51 public Calendar getOrderCreated ();
54 * Setter for created timestamp
56 * @param created Created timestamp
58 public void setOrderCreated (final Calendar created);
61 * Getter for customer instance
63 * @return Customer instance
65 public Customer getCustomer ();
68 * Setter for customer instance
70 * @param customer Customer instance
72 public void setCustomer (final Customer customer);
79 public Long getOrderId ();
86 public void setOrderId (final Long id);
89 * Getter for list of ordered basket items
91 * @return List of items
93 public List<AddableBasketItem> getOrderedItems ();
96 * Setter for list of ordered basket items
98 * @param itemList List of items
100 public void setOrderedItems (final List<AddableBasketItem> itemList);