public class CustomerRegistration extends java.lang.Object implements CustomerRegistrationIf
Constructor and Description |
---|
CustomerRegistration()
Constructor
|
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()
Deprecated.
|
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)
Deprecated.
|
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 tc) |
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 |
toString() |
java.lang.String |
toStringBrief() |
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public java.lang.String getCity()
getCity
in interface CustomerRegistrationIf
public void setCity(java.lang.String city)
setCity
in interface CustomerRegistrationIf
city
- The city to set.public java.lang.String getCompany()
getCompany
in interface CustomerRegistrationIf
public void setCompany(java.lang.String company)
setCompany
in interface CustomerRegistrationIf
company
- The company to set.public int getCountryId()
getCountryId
in interface CustomerRegistrationIf
public void setCountryId(int countryId)
setCountryId
in interface CustomerRegistrationIf
countryId
- The countryId to set.public java.lang.String getEmailAddr()
CustomerRegistrationIf
getEmailAddr
in interface CustomerRegistrationIf
public void setEmailAddr(java.lang.String emailAddr)
CustomerRegistrationIf
setEmailAddr
in interface CustomerRegistrationIf
emailAddr
- The emailAddr to set.public java.lang.String getFaxNumber()
getFaxNumber
in interface CustomerRegistrationIf
public void setFaxNumber(java.lang.String faxNumber)
setFaxNumber
in interface CustomerRegistrationIf
faxNumber
- The faxNumber to set.public java.lang.String getFirstName()
getFirstName
in interface CustomerRegistrationIf
public void setFirstName(java.lang.String firstName)
setFirstName
in interface CustomerRegistrationIf
firstName
- The firstName to set.public java.lang.String getGender()
getGender
in interface CustomerRegistrationIf
public void setGender(java.lang.String gender)
setGender
in interface CustomerRegistrationIf
gender
- The gender to set.public java.lang.String getLastName()
getLastName
in interface CustomerRegistrationIf
public void setLastName(java.lang.String lastName)
setLastName
in interface CustomerRegistrationIf
lastName
- The lastName to set.public java.lang.String getNewsletter()
CustomerRegistrationIf
getNewsletter
in interface CustomerRegistrationIf
public void setNewsletter(java.lang.String newsletter)
CustomerRegistrationIf
setNewsletter
in interface CustomerRegistrationIf
newsletter
- The newsletter to set.public java.lang.String getPassword()
getPassword
in interface CustomerRegistrationIf
public void setPassword(java.lang.String password)
setPassword
in interface CustomerRegistrationIf
password
- The password to set.public java.lang.String getPostcode()
getPostcode
in interface CustomerRegistrationIf
public void setPostcode(java.lang.String postcode)
setPostcode
in interface CustomerRegistrationIf
postcode
- The postcode to set.@Deprecated public int getProductNotifications()
CustomerRegistrationIf
getProductNotifications
in interface CustomerRegistrationIf
@Deprecated public void setProductNotifications(int productNotifications)
CustomerRegistrationIf
setProductNotifications
in interface CustomerRegistrationIf
productNotifications
- The productNotifications to set.public java.lang.String getState()
getState
in interface CustomerRegistrationIf
public void setState(java.lang.String state)
setState
in interface CustomerRegistrationIf
state
- The state to set.public java.lang.String getStreetAddress()
getStreetAddress
in interface CustomerRegistrationIf
public void setStreetAddress(java.lang.String streetAddress)
setStreetAddress
in interface CustomerRegistrationIf
streetAddress
- The streetAddress to set.public java.lang.String getSuburb()
getSuburb
in interface CustomerRegistrationIf
public void setSuburb(java.lang.String suburb)
setSuburb
in interface CustomerRegistrationIf
suburb
- The suburb to set.public java.lang.String getTelephoneNumber()
getTelephoneNumber
in interface CustomerRegistrationIf
public void setTelephoneNumber(java.lang.String telephoneNumber)
setTelephoneNumber
in interface CustomerRegistrationIf
telephoneNumber
- The telephoneNumber to set.public java.util.Calendar getBirthDate()
getBirthDate
in interface CustomerRegistrationIf
public void setBirthDate(java.util.Calendar birthDate)
setBirthDate
in interface CustomerRegistrationIf
birthDate
- The birthDate to set.public java.lang.String getAddressCustom1()
getAddressCustom1
in interface CustomerRegistrationIf
public void setAddressCustom1(java.lang.String addressCustom1)
setAddressCustom1
in interface CustomerRegistrationIf
addressCustom1
- The addressCustom1 to set.public java.lang.String getAddressCustom2()
getAddressCustom2
in interface CustomerRegistrationIf
public void setAddressCustom2(java.lang.String addressCustom2)
setAddressCustom2
in interface CustomerRegistrationIf
addressCustom2
- The addressCustom2 to set.public java.lang.String getAddressCustom3()
getAddressCustom3
in interface CustomerRegistrationIf
public void setAddressCustom3(java.lang.String addressCustom3)
setAddressCustom3
in interface CustomerRegistrationIf
addressCustom3
- The addressCustom3 to set.public java.lang.String getAddressCustom4()
getAddressCustom4
in interface CustomerRegistrationIf
public void setAddressCustom4(java.lang.String addressCustom4)
setAddressCustom4
in interface CustomerRegistrationIf
addressCustom4
- The addressCustom4 to set.public java.lang.String getAddressCustom5()
getAddressCustom5
in interface CustomerRegistrationIf
public void setAddressCustom5(java.lang.String addressCustom5)
setAddressCustom5
in interface CustomerRegistrationIf
addressCustom5
- The addressCustom5 to set.public java.lang.String getCustomerCustom1()
getCustomerCustom1
in interface CustomerRegistrationIf
public void setCustomerCustom1(java.lang.String customerCustom1)
setCustomerCustom1
in interface CustomerRegistrationIf
customerCustom1
- The customerCustom1 to set.public java.lang.String getCustomerCustom2()
getCustomerCustom2
in interface CustomerRegistrationIf
public void setCustomerCustom2(java.lang.String customerCustom2)
setCustomerCustom2
in interface CustomerRegistrationIf
customerCustom2
- The customerCustom2 to set.public java.lang.String getCustomerCustom3()
getCustomerCustom3
in interface CustomerRegistrationIf
public void setCustomerCustom3(java.lang.String customerCustom3)
setCustomerCustom3
in interface CustomerRegistrationIf
customerCustom3
- The customerCustom3 to set.public java.lang.String getCustomerCustom4()
getCustomerCustom4
in interface CustomerRegistrationIf
public void setCustomerCustom4(java.lang.String customerCustom4)
setCustomerCustom4
in interface CustomerRegistrationIf
customerCustom4
- The customerCustom4 to set.public java.lang.String getCustomerCustom5()
getCustomerCustom5
in interface CustomerRegistrationIf
public void setCustomerCustom5(java.lang.String customerCustom5)
setCustomerCustom5
in interface CustomerRegistrationIf
customerCustom5
- The customerCustom5 to set.public java.lang.String getCustomerCustom6()
getCustomerCustom6
in interface CustomerRegistrationIf
public void setCustomerCustom6(java.lang.String customerCustom6)
setCustomerCustom6
in interface CustomerRegistrationIf
customerCustom6
- the customerCustom6 to setpublic java.lang.String getCustomerCustom7()
getCustomerCustom7
in interface CustomerRegistrationIf
public void setCustomerCustom7(java.lang.String customerCustom7)
setCustomerCustom7
in interface CustomerRegistrationIf
customerCustom7
- the customerCustom7 to setpublic java.lang.String getCustomerCustom8()
getCustomerCustom8
in interface CustomerRegistrationIf
public void setCustomerCustom8(java.lang.String customerCustom8)
setCustomerCustom8
in interface CustomerRegistrationIf
customerCustom8
- the customerCustom8 to setpublic int getGroupId()
CustomerRegistrationIf
getGroupId
in interface CustomerRegistrationIf
public void setGroupId(int groupId)
CustomerRegistrationIf
setGroupId
in interface CustomerRegistrationIf
groupId
- The groupId to set.public java.lang.String getLocale()
getLocale
in interface CustomerRegistrationIf
public void setLocale(java.lang.String locale)
setLocale
in interface CustomerRegistrationIf
locale
- the locale to setpublic java.lang.String getTelephoneNumber1()
getTelephoneNumber1
in interface CustomerRegistrationIf
public void setTelephoneNumber1(java.lang.String telephoneNumber1)
setTelephoneNumber1
in interface CustomerRegistrationIf
telephoneNumber1
- the telephoneNumber1 to setpublic java.lang.String getStreetAddress1()
getStreetAddress1
in interface CustomerRegistrationIf
public void setStreetAddress1(java.lang.String streetAddress1)
setStreetAddress1
in interface CustomerRegistrationIf
streetAddress1
- the streetAddress1 to setpublic int getZoneId()
CustomerRegistrationIf
getZoneId
in interface CustomerRegistrationIf
public void setZoneId(int zoneId)
CustomerRegistrationIf
setZoneId
in interface CustomerRegistrationIf
zoneId
- the zoneId to setpublic boolean isInvisible()
isInvisible
in interface CustomerRegistrationIf
public void setInvisible(boolean invisible)
setInvisible
in interface CustomerRegistrationIf
invisible
- the invisible to setpublic boolean isEnabled()
isEnabled
in interface CustomerRegistrationIf
public void setEnabled(boolean enabled)
setEnabled
in interface CustomerRegistrationIf
enabled
- the enabled to setpublic java.lang.String getTaxIdentifier()
getTaxIdentifier
in interface CustomerRegistrationIf
public void setTaxIdentifier(java.lang.String taxIdentifier)
setTaxIdentifier
in interface CustomerRegistrationIf
taxIdentifier
- the taxIdentifier to setpublic java.lang.String getExtReference1()
getExtReference1
in interface CustomerRegistrationIf
public void setExtReference1(java.lang.String extReference1)
setExtReference1
in interface CustomerRegistrationIf
extReference1
- the extReference1 to setpublic java.lang.String getExtReference2()
getExtReference2
in interface CustomerRegistrationIf
public void setExtReference2(java.lang.String extReference2)
setExtReference2
in interface CustomerRegistrationIf
extReference2
- the extReference2 to setpublic java.lang.String getTaxExemption()
getTaxExemption
in interface CustomerRegistrationIf
public void setTaxExemption(java.lang.String taxExemption)
setTaxExemption
in interface CustomerRegistrationIf
taxExemption
- the taxExemption to setpublic java.lang.String getTaxEntity()
getTaxEntity
in interface CustomerRegistrationIf
public void setTaxEntity(java.lang.String taxEntity)
setTaxEntity
in interface CustomerRegistrationIf
taxEntity
- the taxEntity to setpublic boolean isEmailVerified()
isEmailVerified
in interface CustomerRegistrationIf
public void setEmailVerified(boolean emailVerified)
setEmailVerified
in interface CustomerRegistrationIf
emailVerified
- the emailVerified to setpublic boolean isNoAddress()
isNoAddress
in interface CustomerRegistrationIf
public void setNoAddress(boolean noAddress)
setNoAddress
in interface CustomerRegistrationIf
noAddress
- the noAddress to setpublic boolean isNoGender()
isNoGender
in interface CustomerRegistrationIf
public void setNoGender(boolean noGender)
setNoGender
in interface CustomerRegistrationIf
noGender
- the noGender to setpublic boolean isNoName()
isNoName
in interface CustomerRegistrationIf
public void setNoName(boolean noName)
setNoName
in interface CustomerRegistrationIf
noName
- the noName to setpublic boolean isNoBirthDate()
isNoBirthDate
in interface CustomerRegistrationIf
public void setNoBirthDate(boolean noBirthDate)
setNoBirthDate
in interface CustomerRegistrationIf
noBirthDate
- the noBirthDate to setpublic boolean isNoTelephone()
isNoTelephone
in interface CustomerRegistrationIf
public void setNoTelephone(boolean noTelephone)
setNoTelephone
in interface CustomerRegistrationIf
noTelephone
- the noTelephone to setpublic boolean isNoPassword()
isNoPassword
in interface CustomerRegistrationIf
public void setNoPassword(boolean noPassword)
setNoPassword
in interface CustomerRegistrationIf
noPassword
- the noPassword to setpublic boolean 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.isAllowMultipleRegistrations
in interface CustomerRegistrationIf
public 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.setAllowMultipleRegistrations
in interface CustomerRegistrationIf
allowMultipleRegistrations
- the allowMultipleRegistrations to setpublic boolean isTelephoneUnique()
isTelephoneUnique
in interface CustomerRegistrationIf
public void setTelephoneUnique(boolean telephoneUnique)
setTelephoneUnique
in interface CustomerRegistrationIf
telephoneUnique
- the telephoneUnique to setpublic boolean isTelephone1Unique()
isTelephone1Unique
in interface CustomerRegistrationIf
public void setTelephone1Unique(boolean telephone1Unique)
setTelephone1Unique
in interface CustomerRegistrationIf
telephone1Unique
- the telephone1Unique to setpublic java.lang.String getUsername()
getUsername
in interface CustomerRegistrationIf
public void setUsername(java.lang.String username)
setUsername
in interface CustomerRegistrationIf
username
- the username to setpublic boolean isUsernameUnique()
isUsernameUnique
in interface CustomerRegistrationIf
public void setUsernameUnique(boolean usernameUnique)
setUsernameUnique
in interface CustomerRegistrationIf
usernameUnique
- the usernameUnique to setpublic java.lang.String getTaxIdentifier2()
getTaxIdentifier2
in interface CustomerRegistrationIf
public void setTaxIdentifier2(java.lang.String taxIdentifier2)
setTaxIdentifier2
in interface CustomerRegistrationIf
taxIdentifier2
- the taxIdentifier2 to setpublic java.lang.String getNaturalPerson()
getNaturalPerson
in interface CustomerRegistrationIf
public void setNaturalPerson(java.lang.String naturalPerson)
setNaturalPerson
in interface CustomerRegistrationIf
naturalPerson
- the naturalPerson to setpublic java.lang.String getTitle()
getTitle
in interface CustomerRegistrationIf
public void setTitle(java.lang.String title)
setTitle
in interface CustomerRegistrationIf
title
- the title to setpublic java.lang.String getPrivacy()
getPrivacy
in interface CustomerRegistrationIf
public void setPrivacy(java.lang.String privacy)
setPrivacy
in interface CustomerRegistrationIf
privacy
- the privacy to setpublic java.lang.String getTerms()
getTerms
in interface CustomerRegistrationIf
public void setTerms(java.lang.String tc)
setTerms
in interface CustomerRegistrationIf
tc
- the tc to setCopyright © 2018 DS Data Systems UK Ltd.