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 java.io.Serializable;
20 import org.mxchange.jcore.model.contact.gender.Gender;
21 import org.mxchange.jshopcore.model.customer.Customer;
24 * An interface for customer beans
26 * @author Roland Haeder<roland@mxchange.org>
28 public interface CustomerWebController extends Serializable {
31 * Creates an instance from all properties
33 * @return A Customer instance
35 public Customer createInstance ();
38 * Gender of the contact
42 public Gender getGender ();
45 * Gender of the contact
47 * @param gender the gender to set
49 public void setGender (final Gender gender);
54 * @return the companyName
56 public String getCompanyName ();
61 * @param companyName the companyName to set
63 public void setCompanyName (final String companyName);
68 * @return the first name
70 public String getFirstName ();
75 * @param firstName the first name to set
77 public void setFirstName (final String firstName);
82 * @return the familyName
84 public String getFamilyName ();
89 * @param familyName the familyName to set
91 public void setFamilyName (final String familyName);
98 public String getStreet ();
103 * @param street the street to set
105 public void setStreet (final String street);
110 * @return the houseNumber
112 public Long getHouseNumber ();
117 * @param houseNumber the houseNumber to set
119 public void setHouseNumber (final Long houseNumber);
124 * @return the zipCode
126 public Long getZipCode ();
131 * @param zipCode the zipCode to set
133 public void setZipCode (final Long zipCode);
140 public String getCity ();
145 * @param city the city to set
147 public void setCity (final String city);
152 * @return the countryCode
154 public String getCountryCode ();
159 * @param countryCode the countryCode to set
161 public void setCountryCode (final String countryCode);
166 * @return the emailAddress
168 public String getEmailAddress ();
173 * @param emailAddress the emailAddress to set
175 public void setEmailAddress (final String emailAddress);
180 * @return the phoneNumber
182 public String getPhoneNumber ();
187 * @param phoneNumber the phoneNumber to set
189 public void setPhoneNumber (final String phoneNumber);
194 * @return the faxNumber
196 public String getFaxNumber ();
201 * @param faxNumber the faxNumber to set
203 public void setFaxNumber (final String faxNumber);
208 * @return the cellphoneNumber
210 public String getCellphoneNumber ();
215 * @param cellphoneNumber the cellphoneNumber to set
217 public void setCellphoneNumber (final String cellphoneNumber);
220 * Checks whether all required personal data is set
222 * @return Whether the required personal data is set
224 public boolean isRequiredPersonalDataSet ();