public interface CustomerRegistrationIf
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.
Modifier and Type | Method and Description |
---|---|
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 |
getCustomerCustom6() |
java.lang.String |
getCustomerCustom7() |
java.lang.String |
getCustomerCustom8() |
java.lang.String |
getEmailAddr()
This is the username to log into KonaKart.
|
java.lang.String |
getExtReference1()
General purpose external customer reference identifier
|
java.lang.String |
getExtReference2()
General purpose external customer reference identifier
|
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 |
getNaturalPerson()
Customer's naturalPerson
|
java.lang.String |
getNewsletter()
The newsletter to set.
|
java.lang.String |
getPassword() |
java.lang.String |
getPostcode() |
java.lang.String |
getPrivacy() |
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 |
getTaxEntity() |
java.lang.String |
getTaxExemption() |
java.lang.String |
getTaxIdentifier()
Customer's tax identifier
|
java.lang.String |
getTaxIdentifier2()
Customer's tax identifier2
|
java.lang.String |
getTelephoneNumber() |
java.lang.String |
getTelephoneNumber1() |
java.lang.String |
getTerms() |
java.lang.String |
getTitle() |
java.lang.String |
getUsername() |
int |
getZoneId()
When set to a positive number, this zone id is used.
|
boolean |
isAllowMultipleRegistrations()
Normally if a registered customer exists, we don't allow that customer to checkout without
logging in.
|
boolean |
isEmailVerified() |
boolean |
isEnabled() |
boolean |
isInvisible() |
boolean |
isNoAddress()
Set to true if you want to register the customer but don't have the customer's address
|
boolean |
isNoBirthDate()
Set to true if you want to register the customer but don't have the customer's birth date
|
boolean |
isNoGender()
Set to true if you want to register the customer but don't have the customer's gender
|
boolean |
isNoName()
Set to true if you want to register the customer but don't have the customer's name
|
boolean |
isNoPassword()
Set to true if you want to register the customer but don't have the customer's password
|
boolean |
isNoTelephone()
Set to true if you want to register the customer but don't have the customer's telephone
number
|
boolean |
isTelephone1Unique()
When set to true, the registration will throw an exception if a customer already exists with
the same telephone1 number
|
boolean |
isTelephoneUnique()
When set to true, the registration will throw an exception if a customer already exists with
the same telephone number
|
boolean |
isUsernameUnique()
When set to true, the registration will throw an exception if a customer already exists with
the same username
|
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 |
setAllowMultipleRegistrations(boolean allowMultipleRegistrations)
Normally if a registered customer exists, we don't allow that customer to checkout without
logging in.
|
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 |
setCustomerCustom6(java.lang.String customerCustom6) |
void |
setCustomerCustom7(java.lang.String customerCustom7) |
void |
setCustomerCustom8(java.lang.String customerCustom8) |
void |
setEmailAddr(java.lang.String emailAddr)
This is the username to log into KonaKart.
|
void |
setEmailVerified(boolean emailVerified) |
void |
setEnabled(boolean enabled) |
void |
setExtReference1(java.lang.String extReference1)
General purpose external customer reference identifier
|
void |
setExtReference2(java.lang.String extReference2)
General purpose external customer reference identifier
|
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 |
setNaturalPerson(java.lang.String naturalPerson)
Customer's naturalPerson
|
void |
setNewsletter(java.lang.String newsletter)
The newsletter to set.
|
void |
setNoAddress(boolean noAddress)
Set to true if you want to register the customer but don't have the customer's address
|
void |
setNoBirthDate(boolean noBirthDate)
Set to true if you want to register the customer but don't have the customer's birth date
|
void |
setNoGender(boolean noGender)
Set to true if you want to register the customer but don't have the customer's gender
|
void |
setNoName(boolean noName)
Set to true if you want to register the customer but don't have the customer's name
|
void |
setNoPassword(boolean noPassword)
Set to true if you want to register the customer but don't have the customer's password
|
void |
setNoTelephone(boolean noTelephone)
Set to true if you want to register the customer but don't have the customer's telephone
number
|
void |
setPassword(java.lang.String password) |
void |
setPostcode(java.lang.String postcode) |
void |
setPrivacy(java.lang.String privacy) |
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 |
setTaxEntity(java.lang.String taxEntity) |
void |
setTaxExemption(java.lang.String taxExemption) |
void |
setTaxIdentifier(java.lang.String taxIdentifier)
Customer's tax identifier
|
void |
setTaxIdentifier2(java.lang.String taxIdentifier2)
Customer's tax identifier2
|
void |
setTelephone1Unique(boolean telephone1Unique)
When set to true, the registration will throw an exception if a customer already exists with
the same telephone1 number
|
void |
setTelephoneNumber(java.lang.String telephoneNumber) |
void |
setTelephoneNumber1(java.lang.String telephoneNumber1) |
void |
setTelephoneUnique(boolean telephoneUnique)
When set to true, the registration will throw an exception if a customer already exists with
the same telephone number
|
void |
setTerms(java.lang.String terms) |
void |
setTitle(java.lang.String title) |
void |
setUsername(java.lang.String username) |
void |
setUsernameUnique(boolean usernameUnique)
When set to true, the registration will throw an exception if a customer already exists with
the same username
|
void |
setZoneId(int zoneId)
When set to a positive number, this zone id is used.
|
java.lang.String getCity()
void setCity(java.lang.String city)
city
- The city to set.java.lang.String getCompany()
void setCompany(java.lang.String company)
company
- The company to set.int getCountryId()
void setCountryId(int countryId)
countryId
- The countryId to set.java.lang.String getEmailAddr()
void setEmailAddr(java.lang.String emailAddr)
emailAddr
- The emailAddr to set.java.lang.String getFaxNumber()
void setFaxNumber(java.lang.String faxNumber)
faxNumber
- The faxNumber to set.java.lang.String getFirstName()
void setFirstName(java.lang.String firstName)
firstName
- The firstName to set.java.lang.String getGender()
void setGender(java.lang.String gender)
gender
- The gender to set.java.lang.String getLastName()
void setLastName(java.lang.String lastName)
lastName
- The lastName to set.java.lang.String getNewsletter()
void setNewsletter(java.lang.String newsletter)
newsletter
- the newsletterjava.lang.String getPassword()
void setPassword(java.lang.String password)
password
- The password to set.java.lang.String getPostcode()
void setPostcode(java.lang.String postcode)
postcode
- The postcode to set.int getProductNotifications()
void setProductNotifications(int productNotifications)
productNotifications
- The productNotifications to set.java.lang.String getState()
void setState(java.lang.String state)
state
- The state to set.java.lang.String getStreetAddress()
void setStreetAddress(java.lang.String streetAddress)
streetAddress
- The streetAddress to set.java.lang.String getStreetAddress1()
void setStreetAddress1(java.lang.String streetAddress1)
streetAddress1
- the streetAddress1 to setjava.lang.String getSuburb()
void setSuburb(java.lang.String suburb)
suburb
- The suburb to set.java.lang.String getTelephoneNumber()
void setTelephoneNumber(java.lang.String telephoneNumber)
telephoneNumber
- The telephoneNumber to set.java.lang.String getTelephoneNumber1()
void setTelephoneNumber1(java.lang.String telephoneNumber1)
telephoneNumber1
- the telephoneNumber1 to setjava.util.Calendar getBirthDate()
void setBirthDate(java.util.Calendar birthDate)
birthDate
- The birthDate to set.java.lang.String getAddressCustom1()
void setAddressCustom1(java.lang.String addressCustom1)
addressCustom1
- The addressCustom1 to set.java.lang.String getAddressCustom2()
void setAddressCustom2(java.lang.String addressCustom2)
addressCustom2
- The addressCustom2 to set.java.lang.String getAddressCustom3()
void setAddressCustom3(java.lang.String addressCustom3)
addressCustom3
- The addressCustom3 to set.java.lang.String getAddressCustom4()
void setAddressCustom4(java.lang.String addressCustom4)
addressCustom4
- The addressCustom4 to set.java.lang.String getAddressCustom5()
void setAddressCustom5(java.lang.String addressCustom5)
addressCustom5
- The addressCustom5 to set.java.lang.String getCustomerCustom1()
void setCustomerCustom1(java.lang.String customerCustom1)
customerCustom1
- The customerCustom1 to set.java.lang.String getCustomerCustom2()
void setCustomerCustom2(java.lang.String customerCustom2)
customerCustom2
- The customerCustom2 to set.java.lang.String getCustomerCustom3()
void setCustomerCustom3(java.lang.String customerCustom3)
customerCustom3
- The customerCustom3 to set.java.lang.String getCustomerCustom4()
void setCustomerCustom4(java.lang.String customerCustom4)
customerCustom4
- The customerCustom4 to set.java.lang.String getCustomerCustom5()
void setCustomerCustom5(java.lang.String customerCustom5)
customerCustom5
- The customerCustom5 to set.int getGroupId()
void setGroupId(int groupId)
groupId
- The groupId to set.java.lang.String getLocale()
void setLocale(java.lang.String locale)
locale
- the locale to setint getZoneId()
void setZoneId(int zoneId)
zoneId
- the zoneId to setboolean isInvisible()
void setInvisible(boolean invisible)
invisible
- the invisible to setboolean isEnabled()
void setEnabled(boolean enabled)
enabled
- the enabled to setjava.lang.String getTaxIdentifier()
void setTaxIdentifier(java.lang.String taxIdentifier)
taxIdentifier
- the taxIdentifier to setjava.lang.String getExtReference1()
void setExtReference1(java.lang.String extReference1)
extReference1
- the extReference1 to setjava.lang.String getExtReference2()
void setExtReference2(java.lang.String extReference2)
extReference2
- the extReference2 to setjava.lang.String getTaxExemption()
void setTaxExemption(java.lang.String taxExemption)
taxExemption
- the taxExemption to setjava.lang.String getTaxEntity()
void setTaxEntity(java.lang.String taxEntity)
taxEntity
- the taxEntity to setboolean isEmailVerified()
void setEmailVerified(boolean emailVerified)
emailVerified
- the emailVerified to setboolean isNoAddress()
void setNoAddress(boolean noAddress)
noAddress
- the noAddress to setboolean isNoGender()
void setNoGender(boolean noGender)
noGender
- the noGender to setboolean isNoName()
void setNoName(boolean noName)
noName
- the noName to setboolean isNoBirthDate()
void setNoBirthDate(boolean noBirthDate)
noBirthDate
- the noBirthDate to setboolean isNoTelephone()
void setNoTelephone(boolean noTelephone)
noTelephone
- the noTelephone to setboolean isNoPassword()
void setNoPassword(boolean noPassword)
noPassword
- the noPassword to setboolean isAllowMultipleRegistrations()
allowMultipleRegistrations
is set to true when calling
forceRegisterCustomer()
, then we do allow a registered customer to checkout
without logging in by registering the same eMail address also as a temporary customer. Note
that since a temporary customer is created for the checkout, the order is not added to the
account of the existing registered customer with the same email address.void setAllowMultipleRegistrations(boolean allowMultipleRegistrations)
allowMultipleRegistrations
is set to true when calling
forceRegisterCustomer()
, then we do allow a registered customer to checkout
without logging in by registering the same eMail address also as a temporary customer. Note
that since a temporary customer is created for the checkout, the order is not added to the
account of the existing registered customer with the same email address.allowMultipleRegistrations
- the allowMultipleRegistrations to setboolean isTelephoneUnique()
void setTelephoneUnique(boolean telephoneUnique)
telephoneUnique
- the telephoneUnique to setboolean isTelephone1Unique()
void setTelephone1Unique(boolean telephone1Unique)
telephone1Unique
- the telephone1Unique to setjava.lang.String getUsername()
void setUsername(java.lang.String username)
username
- the username to setboolean isUsernameUnique()
void setUsernameUnique(boolean usernameUnique)
usernameUnique
- the usernameUnique to setjava.lang.String getTaxIdentifier2()
void setTaxIdentifier2(java.lang.String taxIdentifier2)
taxIdentifier2
- the taxIdentifier2 to setjava.lang.String getNaturalPerson()
void setNaturalPerson(java.lang.String naturalPerson)
naturalPerson
- the naturalPerson to setjava.lang.String getTitle()
void setTitle(java.lang.String title)
title
- the title to setjava.lang.String getPrivacy()
void setPrivacy(java.lang.String privacy)
privacy
- the privacy to setjava.lang.String getTerms()
void setTerms(java.lang.String terms)
terms
- the terms to setjava.lang.String getCustomerCustom6()
void setCustomerCustom6(java.lang.String customerCustom6)
customerCustom6
- The customerCustom6 to set.java.lang.String getCustomerCustom7()
void setCustomerCustom7(java.lang.String customerCustom7)
customerCustom7
- The customerCustom7 to set.java.lang.String getCustomerCustom8()
void setCustomerCustom8(java.lang.String customerCustom8)
customerCustom8
- The customerCustom8 to set.Copyright © 2018 DS Data Systems UK Ltd.