eb_profile Class
User Profile class.
Item Index
Methods
- eb_profile.domElement
- eb_profile.getCountriesData
- eb_profile.getPersonData
- eb_profile.getPersonPhoneNumberData
- eb_profile.getPersonsAddresses
- eb_profile.getProfileAddresses
- eb_profile.getProfilePhoneNumberData
- eb_profile.getProvinceData
- eb_profile.getSearchData
- eb_profile.makePreferredMailingaddress
- eb_profile.model
- eb_profile.render
- eb_profile.updatePersonAddressRecord
- eb_profile.updatePersonData
- eb_profile.updatePersonPhoneNumbersData
- eb_profile.updateProfileAddressRecord
- eb_profile.updateProfilePhoneNumbersData
- eb_profile.validateAddressData
Methods
eb_profile.domElement
-
domElement
Page DOM element.
Parameters:
-
domElement
Objectcurrent DOM element.
eb_profile.getCountriesData
()
Object
Public method to get countries data list from the server. The service will return list of all countries.
Returns:
jQuery promise object which when resolved returns countries list.
eb_profile.getPersonData
-
personID
Get person data from the server through the get service call.
Parameters:
-
personID
StringPerson Id.
Returns:
jQuery promise object which when resolved returns person data.
eb_profile.getPersonPhoneNumberData
()
Object
Public method to get person phone data list from the server. The service will return list of all phones.
Returns:
jQuery promise object which when resolved returns phones list.
eb_profile.getPersonsAddresses
-
personId
Public method to get Persons Addresses data list from the server
Parameters:
-
personId
NumberpersonId to get person addresses
Returns:
Addresses of person
eb_profile.getProfileAddresses
-
personId
Public method to get Profile Addresses data list from the server.
Parameters:
-
personId
StringPerson Id.
Returns:
jQuery promise object which when resolved returns profile address data.
eb_profile.getProfilePhoneNumberData
()
Object
Public method to get profile phone data list from the server. The service will return list of all phones.
Returns:
jQuery promise object which when resolved returns phones list.
eb_profile.getProvinceData
-
country
Public method to get province data list from the server.
Parameters:
-
country
StringCountry Id.
Returns:
jQuery promise object which when resolved returns province list.
eb_profile.getSearchData
()
Object
Get Service call for search data
Returns:
jQuery promise object which when resolved returns search data.
eb_profile.makePreferredMailingaddress
-
personId
-
data
-
addressName
PATCH service call method.
Parameters:
-
personId
NumberpersonId
-
data
ObjectAddress related information[ State, City, Country ...]
-
addressName
StringUpdated information of person Address
Returns:
Return Updated Address
eb_profile.model
-
options
-
domElement
-
userContext
Person profile model.
Parameters:
-
options
AnyObject of profile data.
-
domElement
StringDOM element.
-
userContext
Stringeb_UserContext.model instance.
eb_profile.render
-
options
Rendering public method to load HTML template. Based on page level configuration it will select the template and load in DOM.
Parameters:
-
options
AnyArray of required data.
-
templatePath
StringProfile template URL.
-
Returns:
Profile HTML template.
eb_profile.updatePersonAddressRecord
-
personId
-
data
-
addressName
PATCH service call method.
Parameters:
-
personId
NumberpersonId
-
data
ObjectAddress related information[ State, City, Country ...]
-
addressName
StringUpdated information of person Address
Returns:
Return Updated Address
eb_profile.updatePersonData
-
data
Update person profile information method.
Parameters:
-
data
ObjectData to be updated.
Returns:
jQuery promise object which when resolved returns updated person data.
eb_profile.updatePersonPhoneNumbersData
()
Object
Update person phone number information
Returns:
jQuery promise object which when resolved returns search data.
eb_profile.updateProfileAddressRecord
-
data
-
addressName
PATCH service call method.
Parameters:
-
data
ObjectData to be updated.
-
addressName
StringAddress name.
Returns:
jQuery promise object which when resolved returns updated profile address data.
eb_profile.updateProfilePhoneNumbersData
()
Object
Update profile phone number information
Returns:
jQuery promise object which when resolved returns search data.
eb_profile.validateAddressData
-
country
Public method to validate data from the server.
Parameters:
-
country
StringCountry Id.
Returns:
jQuery promise object which when resolved returns province list.
Properties
eb_profile.defaultErrorMessage
String
Default error message.
eb_profile.errorResponses
Object
Globally defined error codes object for the control. Every error code should have boolean 'useServerMessage' attribute, which when true suggests we are showing service error message on the UI. If the 'useServerMessage' is defined as false, then provide another attribute 'frontEndMessage' with the error string which will be shown on UI. If 'useServerMessage' is false and 'frontEndMessage' is not defined, default error message will be shown. If service error response contains error code not defined in this object then default error message will be shown.
eb_profile.getSearchDetails
String
GET service to get the company list
eb_profile.proceedToOrderHistory
String
OrderHistory Page URL.
eb_profile.ServicePath
String
SOA path. It would be set from configuration file.
eb_profile.ServicePath
String
SOA serviceUrls. All profile Service URLs.
eb_profile.SitePath
String
Site path. It would be set from configuration file.
eb_profile.TemplatePath
String
Profile template path.