com.konakart.appif
Interface CustomerRegistrationIf


public interface CustomerRegistrationIf

Contains information required to register a customer.

Note the behaviour of the State field. If the country has states defined in the database, then during registration, a check is made that the state in this object actually exists in the database. If it doesn't exist, an exception is thrown. This gives you the opportunity to present a list of valid states to the customer to choose from. When a valid state is detected, the state id is saved in the database rather than the name of the state. If the country doesn't have states defined in the database, no check is made, and the name of the state entered is saved rather than the state id, which in this case doesn't exist.


Method Summary
 java.lang.String getAddressCustom1()
           
 java.lang.String getAddressCustom2()
           
 java.lang.String getAddressCustom3()
           
 java.lang.String getAddressCustom4()
           
 java.lang.String getAddressCustom5()
           
 java.util.Calendar getBirthDate()
           
 java.lang.String getCity()
           
 java.lang.String getCompany()
           
 int getCountryId()
           
 java.lang.String getCustomerCustom1()
           
 java.lang.String getCustomerCustom2()
           
 java.lang.String getCustomerCustom3()
           
 java.lang.String getCustomerCustom4()
           
 java.lang.String getCustomerCustom5()
           
 java.lang.String getEmailAddr()
          This is the user name to log into KonaKart.
 java.lang.String getFaxNumber()
           
 java.lang.String getFirstName()
           
 java.lang.String getGender()
          Normally set to "m" or "f".
 int getGroupId()
          If negative, the customer belongs to no groups.
 java.lang.String getLastName()
           
 java.lang.String getNewsletter()
          The newsletter to set.
 java.lang.String getPassword()
           
 java.lang.String getPostcode()
           
 int getProductNotifications()
          Should be set to 1 to be notified for all product updates, or 0 to not be notified.
 java.lang.String getState()
           
 java.lang.String getStreetAddress()
           
 java.lang.String getSuburb()
           
 java.lang.String getTelephoneNumber()
           
 void setAddressCustom1(java.lang.String addressCustom1)
           
 void setAddressCustom2(java.lang.String addressCustom2)
           
 void setAddressCustom3(java.lang.String addressCustom3)
           
 void setAddressCustom4(java.lang.String addressCustom4)
           
 void setAddressCustom5(java.lang.String addressCustom5)
           
 void setBirthDate(java.util.Calendar birthDate)
           
 void setCity(java.lang.String city)
           
 void setCompany(java.lang.String company)
           
 void setCountryId(int countryId)
           
 void setCustomerCustom1(java.lang.String customerCustom1)
           
 void setCustomerCustom2(java.lang.String customerCustom2)
           
 void setCustomerCustom3(java.lang.String customerCustom3)
           
 void setCustomerCustom4(java.lang.String customerCustom4)
           
 void setCustomerCustom5(java.lang.String customerCustom5)
           
 void setEmailAddr(java.lang.String emailAddr)
          This is the user name to log into KonaKart.
 void setFaxNumber(java.lang.String faxNumber)
           
 void setFirstName(java.lang.String firstName)
           
 void setGender(java.lang.String gender)
          Normally set to "m" or "f".
 void setGroupId(int groupId)
          If negative, the customer belongs to no groups.
 void setLastName(java.lang.String lastName)
           
 void setNewsletter(java.lang.String newsletter)
          The newsletter to set.
 void setPassword(java.lang.String password)
           
 void setPostcode(java.lang.String postcode)
           
 void setProductNotifications(int productNotifications)
          Should be set to 1 to be notified for all product updates, or 0 to not be notified.
 void setState(java.lang.String state)
           
 void setStreetAddress(java.lang.String streetAddress)
           
 void setSuburb(java.lang.String suburb)
           
 void setTelephoneNumber(java.lang.String telephoneNumber)
           
 

Method Detail

getCity

java.lang.String getCity()
Returns:
Returns the city.

setCity

void setCity(java.lang.String city)
Parameters:
city - The city to set.

getCompany

java.lang.String getCompany()
Returns:
Returns the company.

setCompany

void setCompany(java.lang.String company)
Parameters:
company - The company to set.

getCountryId

int getCountryId()
Returns:
Returns the countryId.

setCountryId

void setCountryId(int countryId)
Parameters:
countryId - The countryId to set.

getEmailAddr

java.lang.String getEmailAddr()
This is the user name to log into KonaKart. It must be unique, otherwise an exception is thrown during the registration process.

Returns:
Returns the emailAddr.

setEmailAddr

void setEmailAddr(java.lang.String emailAddr)
This is the user name to log into KonaKart. It must be unique, otherwise an exception is thrown during the registration process.

Parameters:
emailAddr - The emailAddr to set.

getFaxNumber

java.lang.String getFaxNumber()
Returns:
Returns the faxNumber.

setFaxNumber

void setFaxNumber(java.lang.String faxNumber)
Parameters:
faxNumber - The faxNumber to set.

getFirstName

java.lang.String getFirstName()
Returns:
Returns the firstName.

setFirstName

void setFirstName(java.lang.String firstName)
Parameters:
firstName - The firstName to set.

getGender

java.lang.String getGender()
Normally set to "m" or "f".

Returns:
Returns the gender.

setGender

void setGender(java.lang.String gender)
Normally set to "m" or "f".

Parameters:
gender - The gender to set.

getLastName

java.lang.String getLastName()
Returns:
Returns the lastName.

setLastName

void setLastName(java.lang.String lastName)
Parameters:
lastName - The lastName to set.

getNewsletter

java.lang.String getNewsletter()
The newsletter to set. Must be set to "1" to receive the newsletter or "0" to not receive the newsletter.

Returns:
Returns the newsletter.

setNewsletter

void setNewsletter(java.lang.String newsletter)
The newsletter to set. Must be set to "1" to receive the newsletter or "0" to not receive the newsletter.

Parameters:
newsletter -

getPassword

java.lang.String getPassword()
Returns:
Returns the password.

setPassword

void setPassword(java.lang.String password)
Parameters:
password - The password to set.

getPostcode

java.lang.String getPostcode()
Returns:
Returns the postcode.

setPostcode

void setPostcode(java.lang.String postcode)
Parameters:
postcode - The postcode to set.

getProductNotifications

int getProductNotifications()
Should be set to 1 to be notified for all product updates, or 0 to not be notified.

Returns:
Returns the productNotifications.

setProductNotifications

void setProductNotifications(int productNotifications)
Should be set to 1 to be notified for all product updates, or 0 to not be notified.

Parameters:
productNotifications - The productNotifications to set.

getState

java.lang.String getState()
Returns:
Returns the state.

setState

void setState(java.lang.String state)
Parameters:
state - The state to set.

getStreetAddress

java.lang.String getStreetAddress()
Returns:
Returns the streetAddress.

setStreetAddress

void setStreetAddress(java.lang.String streetAddress)
Parameters:
streetAddress - The streetAddress to set.

getSuburb

java.lang.String getSuburb()
Returns:
Returns the suburb.

setSuburb

void setSuburb(java.lang.String suburb)
Parameters:
suburb - The suburb to set.

getTelephoneNumber

java.lang.String getTelephoneNumber()
Returns:
Returns the telephoneNumber.

setTelephoneNumber

void setTelephoneNumber(java.lang.String telephoneNumber)
Parameters:
telephoneNumber - The telephoneNumber to set.

getBirthDate

java.util.Calendar getBirthDate()
Returns:
Returns the birthDate.

setBirthDate

void setBirthDate(java.util.Calendar birthDate)
Parameters:
birthDate - The birthDate to set.

getAddressCustom1

java.lang.String getAddressCustom1()
Returns:
Returns the addressCustom1.

setAddressCustom1

void setAddressCustom1(java.lang.String addressCustom1)
Parameters:
addressCustom1 - The addressCustom1 to set.

getAddressCustom2

java.lang.String getAddressCustom2()
Returns:
Returns the addressCustom2.

setAddressCustom2

void setAddressCustom2(java.lang.String addressCustom2)
Parameters:
addressCustom2 - The addressCustom2 to set.

getAddressCustom3

java.lang.String getAddressCustom3()
Returns:
Returns the addressCustom3.

setAddressCustom3

void setAddressCustom3(java.lang.String addressCustom3)
Parameters:
addressCustom3 - The addressCustom3 to set.

getAddressCustom4

java.lang.String getAddressCustom4()
Returns:
Returns the addressCustom4.

setAddressCustom4

void setAddressCustom4(java.lang.String addressCustom4)
Parameters:
addressCustom4 - The addressCustom4 to set.

getAddressCustom5

java.lang.String getAddressCustom5()
Returns:
Returns the addressCustom5.

setAddressCustom5

void setAddressCustom5(java.lang.String addressCustom5)
Parameters:
addressCustom5 - The addressCustom5 to set.

getCustomerCustom1

java.lang.String getCustomerCustom1()
Returns:
Returns the customerCustom1.

setCustomerCustom1

void setCustomerCustom1(java.lang.String customerCustom1)
Parameters:
customerCustom1 - The customerCustom1 to set.

getCustomerCustom2

java.lang.String getCustomerCustom2()
Returns:
Returns the customerCustom2.

setCustomerCustom2

void setCustomerCustom2(java.lang.String customerCustom2)
Parameters:
customerCustom2 - The customerCustom2 to set.

getCustomerCustom3

java.lang.String getCustomerCustom3()
Returns:
Returns the customerCustom3.

setCustomerCustom3

void setCustomerCustom3(java.lang.String customerCustom3)
Parameters:
customerCustom3 - The customerCustom3 to set.

getCustomerCustom4

java.lang.String getCustomerCustom4()
Returns:
Returns the customerCustom4.

setCustomerCustom4

void setCustomerCustom4(java.lang.String customerCustom4)
Parameters:
customerCustom4 - The customerCustom4 to set.

getCustomerCustom5

java.lang.String getCustomerCustom5()
Returns:
Returns the customerCustom5.

setCustomerCustom5

void setCustomerCustom5(java.lang.String customerCustom5)
Parameters:
customerCustom5 - The customerCustom5 to set.

getGroupId

int getGroupId()
If negative, the customer belongs to no groups.

Returns:
Returns the groupId.

setGroupId

void setGroupId(int groupId)
If negative, the customer belongs to no groups.

Parameters:
groupId - The groupId to set.


Copyright © 2006 DS Data Systems UK Ltd.