eb_CompanyInformation Class
Company Information class.
Item Index
Methods
- eb_CompanyInformation.domElement
- eb_CompanyInformation.getCompanyAddresses
- eb_CompanyInformation.getCompanyBillingAddress
- eb_CompanyInformation.getCompanyInformation
- eb_CompanyInformation.getCompanyMainFax
- eb_CompanyInformation.getCompanyMainPhone
- eb_CompanyInformation.getCompanyPhoneNumberData
- eb_CompanyInformation.getCountriesData
- eb_CompanyInformation.getProfileAddresses
- eb_CompanyInformation.getProfilePhoneNumberData
- eb_CompanyInformation.getProvinceData
- eb_CompanyInformation.model
- eb_CompanyInformation.render
- eb_CompanyInformation.updateCompanyAddressRecord
- eb_CompanyInformation.updateCompanyData
- eb_CompanyInformation.updateCompanyPhoneNumbersData
- eb_CompanyInformation.updateProfileAddressRecord
- eb_CompanyInformation.updateProfilePhoneNumbersData
- eb_CompanyInformation.validateAddressData
- eb_CompanyInformation.validateAddressData
Methods
eb_CompanyInformation.domElement
-
domElement
Page DOM element.
Parameters:
-
domElementObjectcurrent DOM element.
eb_CompanyInformation.getCompanyAddresses
-
companyId
Public method to get Company Addresses data list from the server
Parameters:
-
companyIdNumbercompanyId to get company addresses
Returns:
Addresses of company
eb_CompanyInformation.getCompanyBillingAddress
()
Object
Public method to get company billing address from the server. The service will return company billing address.
Returns:
jQuery promise object which when resolved returns billing address.
eb_CompanyInformation.getCompanyInformation
()
Object
Public method to get company information from the server. The service will return company information.
Returns:
jQuery promise object which when resolved returns company information.
eb_CompanyInformation.getCompanyMainFax
()
Object
Public method to get company main fax from the server. The service will return company main fax.
Returns:
jQuery promise object which when resolved returns main fax.
eb_CompanyInformation.getCompanyMainPhone
()
Object
Public method to get company main phone from the server. The service will return company main phone.
Returns:
jQuery promise object which when resolved returns main phone.
eb_CompanyInformation.getCompanyPhoneNumberData
()
Object
Public method to get company 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_CompanyInformation.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_CompanyInformation.getProfileAddresses
-
companyId
Public method to get Profile Addresses data list for company from the server.
Parameters:
-
companyIdStringcompany Id.
Returns:
jQuery promise object which when resolved returns profile address data.
eb_CompanyInformation.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_CompanyInformation.getProvinceData
-
country
Public method to get province data list from the server.
Parameters:
-
countryStringCountry Id.
Returns:
jQuery promise object which when resolved returns province list.
eb_CompanyInformation.model
-
options -
userContext
Company Information model responsible for company information operations.
Parameters:
-
optionsAnyObject of company information data.
-
ServicePathStringService URL.
-
SitePathStringSite URL.
-
templatePathStringHTML path.
-
domElementObjectCompany information DOM element.
-
-
userContextObjecteb_UserContext.model instance.
eb_CompanyInformation.render
-
options
The service will return company information HTML.
Parameters:
-
optionsAnyArray of required data.
-
templatePathStringCompany Information template URL.
-
Returns:
Company Information HTML template.
eb_CompanyInformation.updateCompanyAddressRecord
-
companyId -
data -
addressName
PATCH service call method.
Parameters:
-
companyIdNumbercompanyId
-
dataObjectAddress related information[ State, City, Country ...]
-
addressNameStringUpdated information of company Address
Returns:
Return Updated Address
eb_CompanyInformation.updateCompanyData
-
data
Update company information method.
Parameters:
-
dataObjectData to be updated.
Returns:
jQuery promise object which when resolved returns updated company data.
eb_CompanyInformation.updateCompanyPhoneNumbersData
()
Object
Update company phone number information
Returns:
jQuery promise object
eb_CompanyInformation.updateProfileAddressRecord
-
data -
addressName
PATCH service call method.
Parameters:
-
dataObjectData to be updated.
-
addressNameStringAddress name.
Returns:
jQuery promise object which when resolved returns updated profile address data.
eb_CompanyInformation.updateProfilePhoneNumbersData
()
Object
Update profile phone number information of company
Returns:
jQuery promise object
eb_CompanyInformation.validateAddressData
-
country
Public method to validate data from the server.
Parameters:
-
countryStringCountry Id.
Returns:
jQuery promise object.
eb_CompanyInformation.validateAddressData
-
data
Public method to validate data from the server.
Parameters:
-
dataStringAddress data.
Returns:
jQuery promise object which when resolved returns validation results.xxxxxxzzzxxxxzxxstdfgdds
Properties
eb_CompanyInformation.defaultErrorMessage
String
Default error message.
eb_CompanyInformation.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_CompanyInformation.ServicePath
String
SOA path.
eb_CompanyInformation.ServicePath
String
SOA serviceUrls. All company information Service URLs.
eb_CompanyInformation.SitePath
String
Site path. It would be set from configuration file.
eb_CompanyInformation.TemplatePath
String
Company Information template path.
