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.pizzaapplication.beans.customer;
19 import org.mxchange.jcore.client.Client;
20 import org.mxchange.jcore.contact.gender.Gender;
21 import org.mxchange.jshop.beans.FrameworkBean;
24 * An interface for customer beans
26 * @author Roland Haeder
28 public interface CustomerBean extends FrameworkBean {
30 * Some "getter" for translated gender of the contact
32 * @return Translated / human-readable gender
34 public String getTranslatedGender ();
37 * Gender of the contact
41 public Gender getGender ();
44 * Gender of the contact
46 * @param gender the gender to set
48 public void setGender (final Gender gender);
53 * @return the first name
55 public String getFirstName ();
60 * @param firstName the first name to set
62 public void setFirstName (final String firstName);
67 * @return the familyName
69 public String getFamilyName ();
74 * @param familyName the familyName to set
76 public void setFamilyName (final String familyName);
81 * @return the companyName
83 public String getCompanyName ();
88 * @param companyName the companyName to set
90 public void setCompanyName (final String companyName);
97 public String getStreet ();
102 * @param street the street to set
104 public void setStreet (final String street);
109 * @return the houseNumber
111 public Long getHouseNumber ();
116 * @param houseNumber the houseNumber to set
118 public void setHouseNumber (final Long houseNumber);
123 * @return the zipCode
125 public Long getZipCode ();
130 * @param zipCode the zipCode to set
132 public void setZipCode (final Long zipCode);
139 public String getCity ();
144 * @param city the city to set
146 public void setCity (final String city);
151 * @return the countryCode
153 public String getCountryCode ();
158 * @param countryCode the countryCode to set
160 public void setCountryCode (final String countryCode);
165 * @return the emailAddress
167 public String getEmailAddress ();
172 * @param emailAddress the emailAddress to set
174 public void setEmailAddress (final String emailAddress);
179 * @return the phoneNumber
181 public String getPhoneNumber ();
186 * @param phoneNumber the phoneNumber to set
188 public void setPhoneNumber (final String phoneNumber);
193 * @return the faxNumber
195 public String getFaxNumber ();
200 * @param faxNumber the faxNumber to set
202 public void setFaxNumber (final String faxNumber);
207 * @return the cellphoneNumber
209 public String getCellphoneNumber ();
214 * @param cellphoneNumber the cellphoneNumber to set
216 public void setCellphoneNumber (final String cellphoneNumber);
221 * @return the birthday
223 public String getBirthday ();
228 * @param birthday the birthday to set
230 public void setBirthday (final String birthday);
235 * @return the comment
237 public String getComment ();
242 * @param comment the comment to set
244 public void setComment (final String comment);
247 * Checks whether the contact is user's own data
251 public boolean isOwnContact ();
254 * Shows the contact to the user
256 * @param client Client instance to call back
258 public void show (final Client client);