java.lang.Object com.mypos.myposcheckout.ipc.Customer



public class Customer
extends java.lang.Object
Customer details class. Collect and validate client details.

 

Constructor Summary

Constructors
Constructor and Description
Customer() 

 

Method Summary

All MethodsInstance MethodsConcrete Methods
Modifier and Type Method and Description
java.lang.String getAddress() 
java.lang.String getCity() 
java.lang.String getCountry() 
java.lang.String getEmail() 
java.lang.String getFirstName() 
java.lang.String getLastName() 
java.lang.String getPhone() 
java.lang.String getZip() 
void setAddress(java.lang.String address) 
void setCity(java.lang.String city) 
void setCountry(java.lang.String country) 
void setEmail(java.lang.String email) 
void setFirstName(java.lang.String firstName) 
void setLastName(java.lang.String lastName) 
void setPhone(java.lang.String phone) 
void setZip(java.lang.String zip) 
boolean validate()
Validate the customer details.

 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Customer

public Customer()

Method Detail

getFirstName

public java.lang.String getFirstName()

setFirstName

public void setFirstName(java.lang.String firstName)

getLastName

public java.lang.String getLastName()

setLastName

public void setLastName(java.lang.String lastName)

getEmail

public java.lang.String getEmail()

setEmail

public void setEmail(java.lang.String email)

getPhone

public java.lang.String getPhone()

setPhone

public void setPhone(java.lang.String phone)

getCountry

public java.lang.String getCountry()

setCountry

public void setCountry(java.lang.String country)

getCity

public java.lang.String getCity()

setCity

public void setCity(java.lang.String city)

getZip

public java.lang.String getZip()

setZip

public void setZip(java.lang.String zip)

getAddress

public java.lang.String getAddress()

setAddress

public void setAddress(java.lang.String address)

validate

public boolean validate()
                 throws IPCException
Validate the customer details.
Returns:
true if the details are valid
Throws:
IPCException - if the details are missing or invalid