public class Customer extends Session
Modifier and Type | Field and Description |
---|---|
static java.lang.String | B2B_CUSTOMER
A constant used to indicate B2B type of Customer.
|
static java.lang.String | B2C_CUSTOMER
A constant used to indicate B2C type of Customer.
|
static java.lang.String | CUSTOMER_ACCOUNT_DISABLED
A constant used to indicate the customer account is disabled.
|
static java.lang.String | CUSTOMER_ACCOUNT_ENABLED
A constant used to indicate the customer account is enabled.
|
static java.lang.String | DEFAULT_CUSTOMER_ID
A constant representing the value of the default customer id.
|
static java.lang.String | PROP_ADDRESSES
A constant for the addresses property name.
|
static java.lang.String | PROP_AGE
A constant for the age property name.
|
static java.lang.String | PROP_ANNUAL_INCOME
A constant for the annual income property name.
|
static java.lang.String | PROP_ANONYMOUS
A constant for the anonymous property name.
|
static java.lang.String | PROP_ASSIGNED_REPRESENTATIVES
A constant for the assigned representatives property name.
|
static java.lang.String | PROP_ASSIGNED_TEAMS
A constant for the assigned teams property name.
|
static java.lang.String | PROP_AUTHORIZATION_CODE
A constant for the authorization code property name.
|
static java.lang.String | PROP_BEST_CALL_TIME
A constant for the best time to call primary or secondary telephone property name.
|
static java.lang.String | PROP_BUSINESS_TITLE
A constant for the business title property name.
|
static java.lang.String | PROP_CHALLENGE_ANSWER
A constant for the challenge answer property name.
|
static java.lang.String | PROP_CHALLENGE_QUESTION
A constant for the challenge question property name.
|
static java.lang.String | PROP_CHILDREN_SIZE
A constant for the children size property name.
|
static java.lang.String | PROP_CLOSING
Constant for the Closing property name.
|
static java.lang.String | PROP_COMMENTS
A constant for the cached customer comments.
|
static java.lang.String | PROP_CONTACT_HISTORY_DISPLAY_SETTING
A constant for the cached Contact History Display Setting.
|
static java.lang.String | PROP_CURRENCY_OF_ANNUAL_INCOME
A constant for the currency of annual income property name.
|
static java.lang.String | PROP_EMAIL_ADDRESS_1
A constant for the primary email address property name.
|
static java.lang.String | PROP_EMAIL_ADDRESS_2
A constant for the secondary email address property name.
|
static java.lang.String | PROP_EMPLOYER
A constant for the employer property name.
|
static java.lang.String | PROP_EMPLOYER_DEPARTMENT
A constant for the employer department property name.
|
static java.lang.String | PROP_FAMILY_NAME
A constant for the family name property name.
|
static java.lang.String | PROP_FAX_1
A constant for the primary fax number property name.
|
static java.lang.String | PROP_FAX_2
A constant for the secondary fax number property name.
|
static java.lang.String | PROP_GENDER
A constant for the gender property name.
|
static java.lang.String | PROP_GIVEN_NAME
A constant for the given name property name.
|
static java.lang.String | PROP_GUEST_CUSTOMER
A constant for the guest customer property name.
|
static java.lang.String | PROP_HOUSEHOLD_SIZE
A constant for the household size property name.
|
static java.lang.String | PROP_MARITAL_STATUS
A constant for the marital status property name.
|
static java.lang.String | PROP_MEMBER_ID
A constant for the member Id property name.
|
static java.lang.String | PROP_MIDDLE_NAME
A constant for the middle name property name.
|
static java.lang.String | PROP_NEW_ANONYMOUS
A constant for the new anonymous property name.
|
static java.lang.String | PROP_OPEN_RMAS
A constant for the open returns property name.
|
static java.lang.String | PROP_OPEN_SALES_CONTAINERS
A constant for the open sales containers property name.
|
static java.lang.String | PROP_ORGANIZATION
A constant for the organization property name.
|
static java.lang.String | PROP_PASSWORD
A constant for the password property name.
|
static java.lang.String | PROP_PREFERRED_CURRENCY
A constant for the preferred currency property name.
|
static java.lang.String | PROP_PREFERRED_GIVEN_NAME
A constant for the preferred given name property name.
|
static java.lang.String | PROP_PREFERRED_LANGUAGE
A constant for the preferred language property name.
|
static java.lang.String | PROP_PRIMARY_ADDRESS
A constant for the primary address property name.
|
static java.lang.String | PROP_PUBLISH_TELEPHONE_1
A constant for the primary published telephone number property name.
|
static java.lang.String | PROP_PUBLISH_TELEPHONE_2
A constant for the secondary published telephone number property name.
|
static java.lang.String | PROP_RETURNING_CUSTOMER
A constant for the returning customer property name.
|
static java.lang.String | PROP_SALUTATION
A constant for the salutation property name.
|
static java.lang.String | PROP_SHOPPING_AT_STORE
A constant for the shopping at store property name.
|
static java.lang.String | PROP_STATUS
A constant for the status property name.
|
static java.lang.String | PROP_STORE_ID
A constant for the store ID property name.
|
static java.lang.String | PROP_SUFFIX
A constant for the suffix property name.
|
static java.lang.String | PROP_SYSTEM_ID
A constant for the system ID property name.
|
static java.lang.String | PROP_TELEPHONE_NUM_1
A constant for the primary telephone number property name.
|
static java.lang.String | PROP_TELEPHONE_NUM_2
A constant for the secondary telephone number property name.
|
static java.lang.String | PROP_TELEPHONE_TYPE_1
A constant for the type of the primary telephone property name.
|
static java.lang.String | PROP_TELEPHONE_TYPE_2
A constant for the type of the secondary telephone property name.
|
static java.lang.String | PROP_TYPE
A constant for the type property name.
|
static java.lang.String | PROP_UNIQUE_ID
A constant for the unique ID property name.
|
static java.lang.String | PROP_URI
A constant for the URI property name.
|
static java.lang.String | PROP_USER_NAME
A constant for the user name property name.
|
static java.lang.String | PROP_VERIFY_PASSWORD
A constant for the verify password property name.
|
Constructor and Description |
---|
Customer()
Default constructor for the Customer.
|
Customer(Store store)
Constructs an object of Customer associated with a store.
|
Modifier and Type | Method and Description |
---|---|
void | addAddress(Address address)
This method is a convenience method for updating the PROP_ADDRESSES property.
|
void | addAssignedRepresentative(AssignedRepresentative assignedRepresentative)
This method is a convenience method for updating the PROP_ASSIGNED_REPRESENTATIVES property.
|
void | addAssignedTeam(AssignedTeam assignedTeam)
This method is a convenience method for updating the PROP_ASSIGNED_TEAMS property.
|
void | addOpenRMA(Return rma)
This method is a convenience method for updating the PROP_OPEN_RMAS property.
|
void | addOpenSalesContainer(SalesContainer sale)
This method is a convenience method for updating the PROP_OPEN_SALES_CONTAINERS property.
|
void | closeOpenRMA(Return openRMA)
This method is a convenience method for updating the PROP_OPEN_RMAS property.
|
void | closeOpenSalesContainer(SalesContainer openSalesContainer)
This method is a convenience method for updating the PROP_OPEN_SALES_CONTAINERS property.
|
void | closeOpenSalesContainers()
This method is a convenience method for updating the PROP_OPEN_SALES_CONTAINERS property.
|
void | closeRMAs()
This method is a convenience method for updating the PROP_OPEN_RMAS property.
|
java.util.Vector | getAddresses()
This method is a convenience method for retrieving the current setting of the PROP_ADDRESSES property.
|
ModelObjectList | getAddressesModelObjectList()
This method is a convenience method for retrieving the current setting of the PROP_ADDRESSES property.
|
Address | getAddressForAddressId(java.lang.String addressId)
This method is a convenience method for retrieving the current setting of the PROP_ADDRESSES property.
|
Address | getAddressForNickname(java.lang.String nickname)
This method is a convenience method for retrieving the current setting of the PROP_ADDRESSES property.
|
java.lang.String[] | getAddressNicknames(java.lang.String type)
This method is a convenience method for retrieving the current setting of the PROP_ADDRESSES property.
|
java.lang.String | getAge()
This method is a convenience method for retrieving the current setting of the PROP_AGE property.
|
java.lang.String | getAnnualIncome()
This method is a convenience method for retrieving the current setting of the PROP_ANNUAL_INCOME property.
|
java.util.Vector | getAssignedRepresentatives()
This method is a convenience method for retrieving the current setting of the AssignedRepresentative property.
|
ModelObjectList | getAssignedRepresentativesModelObjectList()
This method is a convenience method for retrieving the current setting of the AssignedRepresentative property.
|
java.util.Vector | getAssignedTeams()
This method is a convenience method for retrieving the current setting of the PROP_ASSIGNED_TEAMS property.
|
ModelObjectList | getAssignedTeamsModelObjectList()
This method is a convenience method for retrieving the current setting of the PROP_ASSIGNED_TEAMS property.
|
java.lang.String | getAuthorizationCode()
This method is a convenience method for retrieving the current setting of the PROP_AUTHORIZATION_CODE property.
|
java.lang.String | getBestCallTime()
This method is a convenience method for retrieving the current setting of the PROP_BEST_CALL_TIME property.
|
java.util.Vector | getBillingAddresses()
This method is a convenience method for retrieving the current setting of the PROP_ADDRESSES property.
|
java.lang.String | getBusinessTitle()
This method is a convenience method for retrieving the current setting of the PROP_BUSINESS_TITLE property.
|
java.lang.String | getChallengeAnswer()
This method is a convenience method for retrieving the current setting of the PROP_CHALLENGE_ANSWER property.
|
java.lang.String | getChallengeQuestion()
This method is a convenience method for retrieving the current setting of the PROP_CHALLENGE_QUESTION property.
|
java.lang.String | getChildrenSize()
This method is a convenience method for retrieving the current setting of the PROP_CHILDREN_SIZE property.
|
boolean | getClosing()
This method is a convenience method for retrieving the current setting of the "Closing" property.
|
ModelObjectList | getComments()
This method is a convenience method for retrieving the cached customer comments from the PROP_COMMENTS property.
|
com.ibm.commerce.telesales.model.ContactHistoryDisplaySetting | getContactHistoryDisplaySetting()
This method is a convenience method for retrieving the cached display setting of contact history view the PROP_CONTACT_HISTORY_DISPLAY_SETTING property.
|
java.lang.String | getCurrencyOfAnnualIncome()
This method is a convenience method for retrieving the current setting of the PROP_CURRENCY_OF_ANNUAL_INCOME property.
|
java.lang.String | getCustomerProperty(java.lang.String name)
Convenience method to get a property by name.
|
java.lang.String | getEmailAddress1()
This method is a convenience method for retrieving the current setting of the PROP_EMAIL_ADDRESS_1 property.
|
java.lang.String | getEmailAddress2()
This method is a convenience method for retrieving the current setting of the PROP_EMAIL_ADDRESS_2 property.
|
java.lang.String | getEmployer()
This method is a convenience method for retrieving the current setting of the PROP_EMPLOYER property.
|
java.lang.String | getEmployerDepartment()
This method is a convenience method for retrieving the current setting of the PROP_EMPLOYER_DEPARTMENT property.
|
java.lang.String | getFamilyName()
This method is a convenience method for retrieving the current setting of the PROP_FAMILY_NAME property.
|
java.lang.String | getFax1()
This method is a convenience method for retrieving the current setting of the PROP_FAX_1 property.
|
java.lang.String | getFax2()
This method is a convenience method for retrieving the current setting of the PROP_FAX_2 property.
|
java.lang.String | getFormattedName()
This method builds the customer's formatted name by adding PROP_SALUTATION with PROP_GIVEN_NAME with PROP_FAMILY_NAME.
|
java.lang.String | getGender()
This method is a convenience method for retrieving the current setting of the PROP_GENDER property.
|
java.lang.String | getGivenName()
This method is a convenience method for retrieving the current setting of the PROP_GIVEN_NAME property.
|
java.lang.String | getHouseholdSize()
This method is a convenience method for retrieving the current setting of the PROP_HOUSEHOLD_SIZE property.
|
java.lang.String | getMaritalStatus()
This method is a convenience method for retrieving the current setting of the PROP_MARITAL_STATUS property.
|
java.lang.String | getMemberId()
This method is a convenience method for retrieving the current setting of the PROP_MEMBER_ID property.
|
java.lang.String | getMiddleName()
This method is a convenience method for retrieving the current setting of the PROP_MIDDLE_NAME property.
|
Return[] | getOpenRMAs()
This method is a convenience method for retrieving the current setting of the PROP_OPEN_RMAS property.
|
ModelObjectList | getOpenRMAsModelObjectList()
This method is a convenience method for retrieving the current setting of the PROP_OPEN_RMAS property.
|
SalesContainer[] | getOpenSalesContainers()
This method is a convenience method for retrieving the current setting of the PROP_OPEN_SALES_CONTAINERS property.
|
ModelObjectList | getOpenSalesContainersModelObjectList()
This method is a convenience method for retrieving the current setting of the PROP_OPEN_SALES_CONTAINERS property.
|
Organization | getOrganization()
This method is a convenience method for retrieving the current setting of the PROP_ORGANIZATION property.
|
java.lang.String | getPassword()
This method is a convenience method for retrieving the current setting of the PROP_PASSWORD property.
|
java.lang.String | getPreferredCurrency()
This method is a convenience method for retrieving the current setting of the PROP_PREFERRED_CURRENCY property.
|
java.lang.String | getPreferredGivenName()
This method is a convenience method for retrieving the current setting of the PROP_PREFERRED_GIVEN_NAME property.
|
java.lang.String | getPreferredLanguage()
This method is a convenience method for retrieving the current setting of the PROP_PREFERRED_LANGUAGE property.
|
Address | getPrimaryAddress()
This method is a convenience method for retrieving the first address of the PROP_ADDRESSES property.
|
java.lang.String | getPublishTelephone1()
This method is a convenience method for retrieving the current setting of the PROP_PUBLISH_TELEPHONE_1 property.
|
java.lang.String | getPublishTelephone2()
This method is a convenience method for retrieving the current setting of the PROP_PUBLISH_TELEPHONE_2 property.
|
java.lang.String | getReturningCustomer()
This method is a convenience method for retrieving the current setting of the PROP_RETURNING_CUSTOMER property.
|
java.lang.String | getSalutation()
This method is a convenience method for retrieving the current setting of the PROP_SALUTATION property.
|
java.util.Vector | getShippingAddresses()
This method is a convenience method for retrieving the current setting of the PROP_ADDRESSES property.
|
Store | getShoppingAtStore()
This method is a convenience method for retrieving the current setting of the PROP_SHOPPING_AT_STORE property.
|
java.lang.String | getStatus()
This method is a convenience method for retrieving the current setting of the PROP_STATUS property.
|
java.lang.String | getStoreId()
This method is a convenience method for retrieving the current setting of the PROP_STORE_ID property.
|
java.lang.String | getSuffix()
This method is a convenience method for retrieving the current setting of the PROP_SUFFIX property.
|
java.lang.String | getSystemId()
This method is a convenience method for retrieving the current setting of the PROP_SYSTEM_ID property.
|
java.lang.String | getTelephoneNum1()
This method is a convenience method for retrieving the current setting of the PROP_TELEPHONE_NUM_1 property.
|
java.lang.String | getTelephoneNum2()
This method is a convenience method for retrieving the current setting of the PROP_TELEPHONE_NUM_2 property.
|
java.lang.String | getTelephoneType1()
This method is a convenience method for retrieving the current setting of the PROP_TELEPHONE_TYPE_1 property.
|
java.lang.String | getTelephoneType2()
This method is a convenience method for retrieving the current setting of the PROP_TELEPHONE_TYPE_2 property.
|
java.lang.String | getType()
This method is a convenience method for retrieving the current setting of the PROP_TYPE property.
|
java.lang.String | getUri()
This method is a convenience method for retrieving the current setting of the PROP_URI property.
|
java.lang.String | getUsername()
This method is a convenience method for retrieving the current setting of the PROP_USER_NAME property.
|
java.lang.String | getVerifyPassword()
This method is a convenience method for retrieving the current setting of the PROP_VERIFY_PASSWORD property.
|
boolean | hasValidEmailAddress1()
This method validates the current value of the Email Address 1.
|
boolean | hasValidEmailAddress2()
This method validates the current value of the Email Address 2.
|
boolean | isAnonymousCustomer()
This method is a convenience method for retrieving the current setting of the PROP_ANONYMOUS property.
|
boolean | isGuestCustomer()
Check whether a customer is a guest customer.
|
boolean | isNewAnonymousCustomer()
This method is a convenience method for retrieving the current setting of the PROP_NEW_ANONYMOUS property.
|
boolean | isRMAOpen(Return rma)
This is a convenience method to check wether a Return has already been opened.
|
boolean | isSalesContainerOpen(SalesContainer sale)
This is a convenience method to check wether a SalesContainer has already been opened.
|
void | removeAddressForAddressId(java.lang.String addressId)
This method is a convenience method for updating the PROP_ADDRESSES property.
|
void | setAddress(Address address, int index)
This method is a convenience method for updating the PROP_ADDRESSES property.
|
void | setAddresses(Address[] addresses)
This method is a convenience method for setting the PROP_ADDRESSES property.
|
void | setAge(java.lang.String age)
This method is a convenience method for setting the PROP_AGE property.
|
void | setAnnualIncome(java.lang.String annualIncome)
This method is a convenience method for setting the PROP_ANNUAL_INCOME property.
|
void | setAnonymousCustomer(boolean anonymous)
This method is a convenience method for setting the PROP_ANONYMOUS property.
|
void | setAssignedRepresentatives(java.util.ArrayList assignedRepresentatives)
This method is a convenience method for setting the AssignedRepresentative property.
|
void | setAssignedTeams(java.util.ArrayList assignedTeams)
This method is a convenience method for setting the PROP_ASSIGNED_TEAMS property.
|
void | setAuthorizationCode(java.lang.String authorizationCode)
This method is a convenience method for setting the PROP_AUTHORIZATION_CODE property.
|
void | setBestCallTime(java.lang.String bestCallTime)
This method is a convenience method for setting the PROP_BEST_CALL_TIME property.
|
void | setBusinessTitle(java.lang.String businessTitle)
This method is a convenience method for setting the PROP_BUSINESS_TITLE property.
|
void | setChallengeAnswer(java.lang.String challengeAnswer)
This method is a convenience method for setting the PROP_CHALLENGE_ANSWER property.
|
void | setChallengeQuestion(java.lang.String challengeQuestion)
This method is a convenience method for setting the PROP_CHALLENGE_QUESTION property.
|
void | setChildrenSize(java.lang.String childrenSize)
This method is a convenience method for setting the PROP_CHILDREN_SIZE property.
|
void | setClosing(boolean closing)
This method is a convenience method for setting the "Closing" property.
|
void | setComments(ModelObjectList comments)
This method is a convenience method for setting the PROP_COMMENTS property.
|
void | setContactHistoryDisplaySetting(com.ibm.commerce.telesales.model.ContactHistoryDisplaySetting setting)
This method is a convenience method for setting the PROP_CONTACT_HISTORY_DISPLAY_SETTING property.
|
void | setCurrencyOfAnnualIncome(java.lang.String currencyOfAnnualIncome)
This method is a convenience method for setting the PROP_CURRENCY_OF_ANNUAL_INCOME property.
|
void | setCustomerProperty(java.lang.String name, java.lang.Object object)
Convenience method for setting customer property.
|
void | setEmailAddress1(java.lang.String emailAddress1)
This method is a convenience method for setting the PROP_EMAIL_ADDRESS_1 property.
|
void | setEmailAddress2(java.lang.String emailAddress2)
This method is a convenience method for setting the PROP_EMAIL_ADDRESS_2 property.
|
void | setEmployer(java.lang.String employer)
This method is a convenience method for setting the PROP_EMPLOYER property.
|
void | setEmployerDepartment(java.lang.String department)
This method is a convenience method for setting the PROP_EMPLOYER_DEPARTMENT property.
|
void | setFamilyName(java.lang.String familyName)
This method is a convenience method for setting the PROP_FAMILY_NAME property.
|
void | setFax1(java.lang.String fax1)
This method is a convenience method for setting the PROP_FAX_1 property.
|
void | setFax2(java.lang.String fax2)
This method is a convenience method for setting the PROP_FAX_2 property.
|
void | setGender(java.lang.String gender)
This method is a convenience method for setting the PROP_GENDER property.
|
void | setGivenName(java.lang.String givenName)
This method is a convenience method for setting the PROP_GIVEN_NAME property.
|
void | setGuestCustomer(boolean isGuest)
Set whether the customer is a guest customer.
|
void | setHouseholdSize(java.lang.String householdSize)
This method is a convenience method for setting the PROP_HOUSEHOLD_SIZE property.
|
void | setMaritalStatus(java.lang.String maritalStatus)
This method is a convenience method for setting the PROP_MARITAL_STATUS property.
|
void | setMemberId(java.lang.String id)
This method is a convenience method for setting the PROP_MEMBER_ID property.
|
void | setMiddleName(java.lang.String middleName)
This method is a convenience method for setting the PROP_MIDDLE_NAME property.
|
void | setNewAnonymousCustomer(boolean anonymous)
This method is a convenience method for setting the PROP_NEW_ANONYMOUS property.
|
void | setOpenSalesContainers(SalesContainer[] sales)
This method is a convenience method for setting the PROP_OPEN_SALES_CONTAINERS property.
|
void | setOrganization(Organization organization)
This method is a convenience method for setting the PROP_ORGANIZATION property.
|
void | setPassword(java.lang.String password)
This method is a convenience method for setting the PROP_PASSWORD property.
|
void | setPreferredCurrency(java.lang.String preferredCurrency)
This method is a convenience method for setting the PROP_PREFERRED_CURRENCY property.
|
void | setPreferredGivenName(java.lang.String preferredGivenName)
This method is a convenience method for setting the PROP_PREFERRED_GIVEN_NAME property.
|
void | setPreferredLanguage(java.lang.String preferredLanguage)
This method is a convenience method for setting the PROP_PREFERRED_LANGUAGE property.
|
void | setPrimaryAddress(Address address)
This method is a convenience method for updating the PROP_ADDRESSES property.
|
void | setPublishTelephone1(java.lang.String publishTelephone1)
This method is a convenience method for setting the PROP_PUBLISH_TELEPHONE_1 property.
|
void | setPublishTelephone2(java.lang.String publishTelephone2)
This method is a convenience method for setting the "publishTelephone2" property.
|
void | setReturningCustomer(java.lang.String returningCustomer)
This method is a convenience method for setting the PROP_RETURNING_CUSTOMER property.
|
void | setSalutation(java.lang.String salutation)
This method is a convenience method for setting the PROP_SALUTATION property.
|
void | setShoppingAtStore(Store store)
This method is a convenience method for setting the PROP_SHOPPING_AT_STORE property.
|
void | setStatus(java.lang.String status)
This method is a convenience method for setting the PROP_STATUS property.
|
void | setStoreId(java.lang.String storeId)
This method is a convenience method for setting the PROP_STORE_ID property.
|
void | setSuffix(java.lang.String suffix)
This method is a convenience method for setting the PROP_SUFFIX property.
|
void | setSystemId(java.lang.String systemId)
This method is a convenience method for setting the PROP_SYSTEM_ID property.
|
void | setTelephoneNum1(java.lang.String telephoneNum1)
This method is a convenience method for setting the PROP_TELEPHONE_NUM_1 property.
|
void | setTelephoneNum2(java.lang.String telephoneNum2)
This method is a convenience method for setting the PROP_TELEPHONE_NUM_2 property.
|
void | setTelephoneType1(java.lang.String telephoneType1)
This method is a convenience method for setting the PROP_TELEPHONE_TYPE_1 property.
|
void | setTelephoneType2(java.lang.String telephoneType2)
This method is a convenience method for setting the PROP_TELEPHONE_TYPE_2 property.
|
void | setType(java.lang.String type)
This method is a convenience method for setting the PROP_TYPE property.
|
void | setUri(java.lang.String uri)
This method is a convenience method for setting the PROP_URI property.
|
void | setUsername(java.lang.String username)
This method is a convenience method for setting the PROP_USER_NAME property.
|
void | setVerifyPassword(java.lang.String verifyPassword)
This method is a convenience method for setting the PROP_VERIFY_PASSWORD property.
|
java.lang.String | toString()
This method returns a string representation of this customer.
|
public static final java.lang.String B2B_CUSTOMER
public static final java.lang.String B2C_CUSTOMER
public static final java.lang.String CUSTOMER_ACCOUNT_ENABLED
public static final java.lang.String CUSTOMER_ACCOUNT_DISABLED
public static final java.lang.String DEFAULT_CUSTOMER_ID
public static final java.lang.String PROP_COMMENTS
The value is "comments".
The data stored under the PROP_COMMENTS property is an ModelObjectList that contains a list of CustomerComment objects.
public static final java.lang.String PROP_CONTACT_HISTORY_DISPLAY_SETTING
The value is "contactHistoryDisplaySetting".
The data stored under the PROP_CONTACT_HISTORY_DISPLAY_SETTING property is the display setting of contact history view.
public static final java.lang.String PROP_OPEN_SALES_CONTAINERS
The value is "openSalesContainers".
The data stored under the PROP_OPEN_SALES_CONTAINERS property is a ModelObjectList that contains a list of SalesContainer objects.
public static final java.lang.String PROP_OPEN_RMAS
The value is "openRMAs".
The data stored under the PROP_OPEN_RMAS property is a ModelObjectList that contains a list of Return objects.
public static final java.lang.String PROP_TYPE
The value is "type".
The data stored under the PROP_TYPE property is a String that indicates the type of the customer. The following are valid values:
public static final java.lang.String PROP_SHOPPING_AT_STORE
The value is "shoppingAtStore".
The data stored under the PROP_SHOPPING_AT_STORE property is a Store object that represents the store that the customer is shopping at.
public static final java.lang.String PROP_ORGANIZATION
The value is "organization".
The data stored under the PROP_ORGANIZATION property is an Organization object that represents the customer's organization.
public static final java.lang.String PROP_MEMBER_ID
The value is "memberId".
The data stored under the PROP_MEMBER_ID property is a String that represents the customer's member Id.
public static final java.lang.String PROP_URI
The value is "uri".
The data stored under the PROP_URI property is a String that represents the customer's URI.
public static final java.lang.String PROP_PREFERRED_CURRENCY
The value is "preferredCurrency".
The data stored under the PROP_PREFERRED_CURRENCY property is a String that represents the customer's preferred currency.
public static final java.lang.String PROP_PREFERRED_LANGUAGE
The value is "preferredLanguage".
The data stored under the PROP_PREFERRED_LANGUAGE property is a String that represents the customer's preferred language.
public static final java.lang.String PROP_BEST_CALL_TIME
The value is "bestCallTime".
The data stored under the PROP_BEST_CALL_TIME property is a String that represents the best time to call the customer's primary or secondary telephone.
public static final java.lang.String PROP_PUBLISH_TELEPHONE_1
The value is "publishTelephone1".
The data stored under the PROP_PUBLISH_TELEPHONE_1 property is a String that indicates whether the customer's primary telephone number can be published.
public static final java.lang.String PROP_PUBLISH_TELEPHONE_2
The value is "publishTelephone2".
The data stored under the PROP_PUBLISH_TELEPHONE_2 property is a String that indicates whether the customer's secondary telephone number can be published.
public static final java.lang.String PROP_TELEPHONE_TYPE_1
The value is "telephoneType1".
The data stored under the PROP_TELEPHONE_TYPE_1 property is a String that represents the customer's primary telephone type.
public static final java.lang.String PROP_TELEPHONE_TYPE_2
The value is "telephoneType2".
The data stored under the PROP_TELEPHONE_TYPE_2 property is a String that represents the customer's secondary telephone type.
public static final java.lang.String PROP_EMPLOYER
The value is "employer".
The data stored under the PROP_EMPLOYER property is a String that represents the customer's employer.
public static final java.lang.String PROP_EMPLOYER_DEPARTMENT
The value is "employerDepartment".
The data stored under the PROP_EMPLOYER_DEPARTMENT property is a String that represents the customer employer's department.
public static final java.lang.String PROP_BUSINESS_TITLE
The value is "businessTitle".
The data stored under the PROP_BUSINESS_TITLE property is a String that represents the customer's business title.
public static final java.lang.String PROP_AGE
The value is "age".
The data stored under the PROP_AGE property is a String that represents the customer's age.
public static final java.lang.String PROP_ANNUAL_INCOME
The value is "annualIncome".
The data stored under the PROP_ANNUAL_INCOME property is a String that represents the customer's annual income.
public static final java.lang.String PROP_CHILDREN_SIZE
The value is "childrenSize".
The data stored under the PROP_CHILDREN_SIZE property is a String that represents the customer's number of children.
public static final java.lang.String PROP_TELEPHONE_NUM_1
The value is "telephoneNum1".
The data stored under the PROP_TELEPHONE_NUM_1 property is a String that represents the customer's primary telephone number.
public static final java.lang.String PROP_TELEPHONE_NUM_2
The value is "telephoneNum2".
The data stored under the PROP_TELEPHONE_NUM_2 property is a String that represents the customer's secondary telephone number.
public static final java.lang.String PROP_FAX_1
The value is "fax1".
The data stored under the PROP_FAX_1 property is a String that represents the customer's primary fax number.
public static final java.lang.String PROP_FAX_2
The value is "fax2".
The data stored under the PROP_FAX_2 property is a String that represents the customer's secondary fax number.
public static final java.lang.String PROP_EMAIL_ADDRESS_1
The value is "emailAddress1".
The data stored under the PROP_EMAIL_ADDRESS_1 property is a String that represents the customer's primary email address.
public static final java.lang.String PROP_EMAIL_ADDRESS_2
The value is "emailAddress2".
The data stored under the PROP_EMAIL_ADDRESS_2 property is a String that represents the customer's secondary email address.
public static final java.lang.String PROP_SALUTATION
The value is "salutation".
The data stored under the PROP_SALUTATION property is a String that represents the customer's salutation.
public static final java.lang.String PROP_GIVEN_NAME
The value is "givenName".
The data stored under the PROP_GIVEN_NAME property is a String that represents the customer's given name.
public static final java.lang.String PROP_PREFERRED_GIVEN_NAME
The value is "preferredGivenName".
The data stored under the PROP_PREFERRED_GIVEN_NAME property is a String that represents the customer's preferred given name.
public static final java.lang.String PROP_MIDDLE_NAME
The value is "middleName".
The data stored under the PROP_MIDDLE_NAME property is a String that represents the customer's middle name.
public static final java.lang.String PROP_FAMILY_NAME
The value is "familyName".
The data stored under the PROP_FAMILY_NAME property is a String that represents the customer's family name.
public static final java.lang.String PROP_SUFFIX
The value is "suffix".
The data stored under the PROP_SUFFIX property is a String that represents the customer's suffix.
public static final java.lang.String PROP_USER_NAME
The value is "username".
The data stored under the PROP_USER_NAME property is a String that represents the customer's user name.
public static final java.lang.String PROP_CHALLENGE_QUESTION
The value is "challengeQuestion".
The data stored under the PROP_CHALLENGE_QUESTION property is a String that represents the challenge question.
public static final java.lang.String PROP_CHALLENGE_ANSWER
The value is "challengeAnswer".
The data stored under the PROP_CHALLENGE_ANSWER property is a String that represents the challenge answer.
public static final java.lang.String PROP_ADDRESSES
The value is "addresses".
The data stored under the PROP_ADDRESSES property is a String that represents the customer's addresses.
public static final java.lang.String PROP_PASSWORD
The value is "password".
The data stored under the PROP_PASSWORD property is a String that represents the customer's password.
public static final java.lang.String PROP_VERIFY_PASSWORD
The value is "verifyPassword".
The data stored under the PROP_VERIFY_PASSWORD property is a String that represents the customer's verification password.
public static final java.lang.String PROP_SYSTEM_ID
The value is "systemId".
The data stored under the PROP_SYSTEM_ID property is a String that represents the customer's system ID.
public static final java.lang.String PROP_STATUS
The value is "status".
The data stored under the PROP_STATUS property is a String that represents the customer's status.
public static final java.lang.String PROP_AUTHORIZATION_CODE
The value is "authorizationCode".
The data stored under the PROP_AUTHORIZATION_CODE property is a String that represents the customer's authorization code.
public static final java.lang.String PROP_GENDER
The value is "gender".
The data stored under the PROP_GENDER property is a String that represents the customer's gender.
public static final java.lang.String PROP_MARITAL_STATUS
The value is "maritalStatus".
The data stored under the PROP_MARITAL_STATUS property is a String that represents the customer's marital status.
public static final java.lang.String PROP_HOUSEHOLD_SIZE
The value is "householdSize".
The data stored under the PROP_HOUSEHOLD_SIZE property is a String that represents the customer's household size.
public static final java.lang.String PROP_CURRENCY_OF_ANNUAL_INCOME
The value is "currencyOfAnnualIncome".
The data stored under the PROP_CURRENCY_OF_ANNUAL_INCOME property is a String that represents the currency of the customer's annual income.
public static final java.lang.String PROP_ASSIGNED_REPRESENTATIVES
The value is "assignedRepresentatives".
The data stored under the PROP_ASSIGNED_REPRESENTATIVES property is a String that represents the customer's assigned representatives.
public static final java.lang.String PROP_ASSIGNED_TEAMS
The value is "assignedTeams".
The data stored under the PROP_ASSIGNED_TEAMS property is a String that represents the customer's assigned teams.
public static final java.lang.String PROP_RETURNING_CUSTOMER
The value is "returningCustomer".
The data stored under the PROP_RETURNING_CUSTOMER property is a String that indicates that the customer is a returning customer.
public static final java.lang.String PROP_ANONYMOUS
The value is "anonymous".
The data stored under the PROP_ANONYMOUS property is a Boolean that indicates that the customer is an anonymous customer.
public static final java.lang.String PROP_NEW_ANONYMOUS
The value is "newAnonymous".
The data stored under the PROP_NEW_ANONYMOUS property is a Boolean that indicates that the customer is a new anonymous customer.
public static final java.lang.String PROP_UNIQUE_ID
The value is "uniqueId".
The data stored under the PROP_UNIQUE_ID property is a generated integer that is unique to this object. This property is considered a significant property until a valid PROP_MEMBER_ID property is set.
public static final java.lang.String PROP_PRIMARY_ADDRESS
The value is "primaryAddress".
The data stored under the PROP_PRIMARY_ADDRESS property is the primary address of the customer.
public static final java.lang.String PROP_GUEST_CUSTOMER
The value is "guestCustomer".
The data stored under the PROP_GUEST_CUSTOMER indicates if this customer is a guest customer. By default a customer is NOT a guest customer.
public static final java.lang.String PROP_STORE_ID
The value is "storeId".
The data stored under the PROP_STORE_ID property is a String that contains the primary ID of the customer's store.
public static final java.lang.String PROP_CLOSING
The value is "Closing".
The data stored under the "Closing" property is a Boolean that indicates that the customer is being closed.
public Customer()
public Customer(Store store)
public java.lang.String toString()
public void addOpenSalesContainer(SalesContainer sale)
public boolean isSalesContainerOpen(SalesContainer sale)
public void addOpenRMA(Return rma)
public boolean isRMAOpen(Return rma)
public void closeOpenRMA(Return openRMA)
public void closeRMAs()
public void addAddress(Address address)
public void closeOpenSalesContainer(SalesContainer openSalesContainer)
public void closeOpenSalesContainers()
public Store getShoppingAtStore()
public SalesContainer[] getOpenSalesContainers()
public ModelObjectList getOpenSalesContainersModelObjectList()
public Return[] getOpenRMAs()
public ModelObjectList getOpenRMAsModelObjectList()
public java.lang.String getMemberId()
public Address getPrimaryAddress()
public java.util.Vector getAddresses()
public ModelObjectList getAddressesModelObjectList()
public java.util.Vector getShippingAddresses()
public java.util.Vector getBillingAddresses()
public Address getAddressForNickname(java.lang.String nickname)
public java.lang.String[] getAddressNicknames(java.lang.String type)
public Address getAddressForAddressId(java.lang.String addressId)
public java.lang.String getAuthorizationCode()
public ModelObjectList getComments()
public com.ibm.commerce.telesales.model.ContactHistoryDisplaySetting getContactHistoryDisplaySetting()
public java.lang.String getChallengeAnswer()
public java.lang.String getChallengeQuestion()
public java.lang.String getPassword()
public java.lang.String getStatus()
public java.lang.String getSystemId()
public java.lang.String getUsername()
public java.lang.String getVerifyPassword()
public java.lang.String getFormattedName()
public java.lang.String getGivenName()
public java.lang.String getMiddleName()
public java.lang.String getPreferredGivenName()
public java.lang.String getSalutation()
public java.lang.String getSuffix()
public java.lang.String getFamilyName()
public java.lang.String getEmailAddress1()
public java.lang.String getEmailAddress2()
public boolean hasValidEmailAddress1()
public boolean hasValidEmailAddress2()
public java.lang.String getBusinessTitle()
public java.lang.String getEmployer()
public java.lang.String getEmployerDepartment()
public java.lang.String getFax1()
public java.lang.String getFax2()
public java.lang.String getTelephoneNum1()
public java.lang.String getTelephoneNum2()
public java.lang.String getUri()
public java.lang.String getPreferredCurrency()
public java.lang.String getPreferredLanguage()
public java.lang.String getBestCallTime()
public java.lang.String getPublishTelephone1()
public java.lang.String getPublishTelephone2()
public java.lang.String getTelephoneType1()
public java.lang.String getTelephoneType2()
public boolean isAnonymousCustomer()
public boolean isNewAnonymousCustomer()
public void removeAddressForAddressId(java.lang.String addressId)
public void setShoppingAtStore(Store store)
public void setOpenSalesContainers(SalesContainer[] sales)
public void setBestCallTime(java.lang.String bestCallTime)
public void setPublishTelephone1(java.lang.String publishTelephone1)
public void setPublishTelephone2(java.lang.String publishTelephone2)
public void setTelephoneType1(java.lang.String telephoneType1)
public void setTelephoneType2(java.lang.String telephoneType2)
public void setPrimaryAddress(Address address)
public void setAddress(Address address, int index)
public void setAddresses(Address[] addresses)
public void setAuthorizationCode(java.lang.String authorizationCode)
public void setChallengeAnswer(java.lang.String challengeAnswer)
public void setChallengeQuestion(java.lang.String challengeQuestion)
public void setMemberId(java.lang.String id)
If customer id is not null, and not equal to DEFAULT_CUSTOMER_ID, the PROP_ANONYMOUS and PROP_NEW_ANONYMOUS are set to false and PROP_UNIQUE_ID is removed as a significant property.
public void setPassword(java.lang.String password)
public void setStatus(java.lang.String status)
public void setSystemId(java.lang.String systemId)
public void setUsername(java.lang.String username)
public void setVerifyPassword(java.lang.String verifyPassword)
public void setFamilyName(java.lang.String familyName)
public void setGivenName(java.lang.String givenName)
public void setMiddleName(java.lang.String middleName)
public void setPreferredGivenName(java.lang.String preferredGivenName)
public void setSalutation(java.lang.String salutation)
public void setSuffix(java.lang.String suffix)
public void setEmailAddress1(java.lang.String emailAddress1)
public void setEmailAddress2(java.lang.String emailAddress2)
public void setFax1(java.lang.String fax1)
public void setFax2(java.lang.String fax2)
public void setTelephoneNum1(java.lang.String telephoneNum1)
public void setTelephoneNum2(java.lang.String telephoneNum2)
public void setUri(java.lang.String uri)
public void setPreferredCurrency(java.lang.String preferredCurrency)
public void setPreferredLanguage(java.lang.String preferredLanguage)
public void setBusinessTitle(java.lang.String businessTitle)
public void setEmployer(java.lang.String employer)
public void setEmployerDepartment(java.lang.String department)
public java.lang.String getAge()
public java.lang.String getAnnualIncome()
public java.lang.String getChildrenSize()
public java.lang.String getGender()
public java.lang.String getHouseholdSize()
public java.lang.String getMaritalStatus()
public java.lang.String getReturningCustomer()
public void setAge(java.lang.String age)
public void setAnnualIncome(java.lang.String annualIncome)
public void setChildrenSize(java.lang.String childrenSize)
public void setGender(java.lang.String gender)
public void setHouseholdSize(java.lang.String householdSize)
public void setMaritalStatus(java.lang.String maritalStatus)
public void setReturningCustomer(java.lang.String returningCustomer)
public java.lang.String getCurrencyOfAnnualIncome()
public void setCurrencyOfAnnualIncome(java.lang.String currencyOfAnnualIncome)
public void setAnonymousCustomer(boolean anonymous)
public void setNewAnonymousCustomer(boolean anonymous)
public void setComments(ModelObjectList comments)
public void setContactHistoryDisplaySetting(com.ibm.commerce.telesales.model.ContactHistoryDisplaySetting setting)
public java.lang.String getType()
public void setType(java.lang.String type)
public Organization getOrganization()
public void setOrganization(Organization organization)
public void addAssignedTeam(AssignedTeam assignedTeam)
public java.util.Vector getAssignedTeams()
public ModelObjectList getAssignedTeamsModelObjectList()
public void setAssignedTeams(java.util.ArrayList assignedTeams)
public void addAssignedRepresentative(AssignedRepresentative assignedRepresentative)
public java.util.Vector getAssignedRepresentatives()
public ModelObjectList getAssignedRepresentativesModelObjectList()
public void setAssignedRepresentatives(java.util.ArrayList assignedRepresentatives)
public java.lang.String getCustomerProperty(java.lang.String name)
public void setCustomerProperty(java.lang.String name, java.lang.Object object)
public boolean isGuestCustomer()
This method is a convenience method for retrieving the current value of the PROP_GUEST_CUSTOMER property.
public void setGuestCustomer(boolean isGuest)
This method is a convenience method for setting the current value of the PROP_GUEST_CUSTOMER property.
public java.lang.String getStoreId()
public void setStoreId(java.lang.String storeId)
public boolean getClosing()
public void setClosing(boolean closing)