com.konakart.json.app
Class J_CustomerRegistration

java.lang.Object
  extended by com.konakart.json.app.J_CustomerRegistration
All Implemented Interfaces:
java.io.Serializable

public class J_CustomerRegistration
extends java.lang.Object
implements java.io.Serializable

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.

See Also:
Serialized Form

Constructor Summary
J_CustomerRegistration()
           
 
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 getLocale()
          Locale of the customer
 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 getStreetAddress1()
           
 java.lang.String getSuburb()
           
 java.lang.String getTelephoneNumber()
           
 java.lang.String getTelephoneNumber1()
           
 int getZoneId()
          When set to a positive number, this zone id is used.
 boolean isEnabled()
           
 boolean isInvisible()
           
 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 setEnabled(boolean _enabled)
           
 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 setInvisible(boolean _invisible)
           
 void setLastName(java.lang.String _lastName)
           
 void setLocale(java.lang.String _locale)
          Locale of the customer
 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 setStreetAddress1(java.lang.String _streetAddress1)
           
 void setSuburb(java.lang.String _suburb)
           
 void setTelephoneNumber(java.lang.String _telephoneNumber)
           
 void setTelephoneNumber1(java.lang.String _telephoneNumber1)
           
 void setZoneId(int _zoneId)
          When set to a positive number, this zone id is used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_CustomerRegistration

public J_CustomerRegistration()
Method Detail

getCity

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

setCity

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

getCompany

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

setCompany

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

getCountryId

public int getCountryId()
Returns:
Returns the countryId.

setCountryId

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

getEmailAddr

public 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

public 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

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

setFaxNumber

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

getFirstName

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

setFirstName

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

getGender

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

Returns:
Returns the gender.

setGender

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

Parameters:
_gender - The gender to set.

getLastName

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

setLastName

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

getNewsletter

public 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

public 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

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

setPassword

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

getPostcode

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

setPostcode

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

getProductNotifications

public 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

public 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

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

setState

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

getStreetAddress

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

setStreetAddress

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

getStreetAddress1

public java.lang.String getStreetAddress1()
Returns:
the streetAddress1

setStreetAddress1

public void setStreetAddress1(java.lang.String _streetAddress1)
Parameters:
_streetAddress1 - the streetAddress1 to set

getSuburb

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

setSuburb

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

getTelephoneNumber

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

setTelephoneNumber

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

getTelephoneNumber1

public java.lang.String getTelephoneNumber1()
Returns:
the telephoneNumber1

setTelephoneNumber1

public void setTelephoneNumber1(java.lang.String _telephoneNumber1)
Parameters:
_telephoneNumber1 - the telephoneNumber1 to set

getBirthDate

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

setBirthDate

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

getAddressCustom1

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

setAddressCustom1

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

getAddressCustom2

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

setAddressCustom2

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

getAddressCustom3

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

setAddressCustom3

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

getAddressCustom4

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

setAddressCustom4

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

getAddressCustom5

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

setAddressCustom5

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

getCustomerCustom1

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

setCustomerCustom1

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

getCustomerCustom2

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

setCustomerCustom2

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

getCustomerCustom3

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

setCustomerCustom3

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

getCustomerCustom4

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

setCustomerCustom4

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

getCustomerCustom5

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

setCustomerCustom5

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

getGroupId

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

Returns:
Returns the groupId.

setGroupId

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

Parameters:
_groupId - The groupId to set.

getLocale

public java.lang.String getLocale()
Locale of the customer

Returns:
the locale

setLocale

public void setLocale(java.lang.String _locale)
Locale of the customer

Parameters:
_locale - the locale to set

getZoneId

public int getZoneId()
When set to a positive number, this zone id is used. Otherwise the engine searches for the zone to use based on the address.

Returns:
the zoneId

setZoneId

public void setZoneId(int _zoneId)
When set to a positive number, this zone id is used. Otherwise the engine searches for the zone to use based on the address.

Parameters:
_zoneId - the zoneId to set

isInvisible

public boolean isInvisible()
Returns:
the invisible

setInvisible

public void setInvisible(boolean _invisible)
Parameters:
_invisible - the invisible to set

isEnabled

public boolean isEnabled()
Returns:
the enabled

setEnabled

public void setEnabled(boolean _enabled)
Parameters:
_enabled - the enabled to set


Copyright © 2011 DS Data Systems UK Ltd.