]> git.mxchange.org Git - jcustomer-core.git/blob - src/org/mxchange/jshopcore/model/order/Orderable.java
4517cda88fec67a451085c1f356fe93ae106835e
[jcustomer-core.git] / src / org / mxchange / jshopcore / model / order / Orderable.java
1 /*
2  * Copyright (C) 2015 Roland Haeder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.jshopcore.model.order;
18
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;
24
25 /**
26  * An interface for customer orders
27  * <p>
28  * @author Roland Haeder
29  */
30 public interface Orderable extends Serializable {
31
32         /**
33          * Getter for access key
34          * <p>
35          * @return Access key
36          */
37         public String getAccessKey ();
38
39         /**
40          * Setter for access key
41          * <p>
42          * @param accessKey Access key
43          */
44         public void setAccessKey (final String accessKey);
45
46         /**
47          * Getter for created timestamp
48          * <p>
49          * @return Created timestamp
50          */
51         public Calendar getOrderCreated ();
52
53         /**
54          * Setter for created timestamp
55          * <p>
56          * @param created Created timestamp
57          */
58         public void setOrderCreated (final Calendar created);
59
60         /**
61          * Getter for customer instance
62          * <p>
63          * @return Customer instance
64          */
65         public Customer getCustomer ();
66
67         /**
68          * Setter for customer instance
69          * <p>
70          * @param customer Customer instance
71          */
72         public void setCustomer (final Customer customer);
73
74         /**
75          * Getter for order id
76          * <p>
77          * @return Order id
78          */
79         public Long getOrderId ();
80
81         /**
82          * Setter for order id
83          * <p>
84          * @param id Order id
85          */
86         public void setOrderId (final Long id);
87
88         /**
89          * Getter for list of ordered basket items
90          * <p>
91          * @return List of items
92          */
93         public List<AddableBasketItem> getOrderedItems ();
94
95         /**
96          * Setter for list of ordered basket items
97          * <p>
98          * @param orderedItems List of ordered items
99          */
100         public void setOrderedItems (final List<AddableBasketItem> orderedItems);
101 }