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.customer;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jcore.model.contact.Contact;
24 * A customer interface
26 * @author Roland Haeder<roland@mxchange.org>
28 public interface Customer extends Serializable {
31 * Copies all attributes from other customer object to this
33 * @param customer Source instance
35 public void copyAll (final Customer customer);
38 * Getter for contact instance
40 * @return Contact id number
42 public Contact getContact ();
45 * Setter for contact instance
47 * @param contact Contact instance
49 public void setContact (final Contact contact);
52 * Getter for confirmation key
54 * @return Confirmation key
56 public String getCustomerConfirmKey ();
59 * Setter for confirmation key
61 * @param customerConfirmKey Confirmation key
63 public void setCustomerConfirmKey (final String customerConfirmKey);
66 * Getter for "created" timestamp
68 * @return "created" timestamp
70 public Calendar getCustomerCreated ();
73 * Setter for "created" timestamp
75 * @param customerCreated "created" timestamp
77 public void setCustomerCreated (final Calendar customerCreated);
80 * Getter for customer id number
82 * @return Customer id number
84 public Long getCustomerId ();
87 * Settte for customer id number
89 * @param customerId Customer id number
91 public void setCustomerId (final Long customerId);
94 * Getter for "locked" timestamp
96 * @return "locked" timestamp
98 public Calendar getCustomerLocked ();
101 * Getter for "locked" timestamp
103 * @param customerLocked "locked" timestamp
105 public void setCustomerLocked (final Calendar customerLocked);
108 * Getter for customer number
110 * @return Customer number
112 public String getCustomerNumber ();
115 * Setter for customer number
117 * @param customerNumber Customer number
119 public void setCustomerNumber (final String customerNumber);
122 * Getter for password hash
124 * @return Password hash
126 public String getCustomerPasswordHash ();
129 * Setter for password hash
131 * @param customerPasswordHash Password hash
133 public void setCustomerPasswordHash (final String customerPasswordHash);
136 * Getter for account status
138 * @return Account status
140 public String getCustomerStatus ();
143 * Setter for account status
145 * @param customerStatus Account status
147 public void setCustomerStatus (final String customerStatus);