eb_billingShippingAddress Class
Define eb_billingShippingAddress class.
Item Index
Methods
- eb_billingShippingAddress.createAddressRecord
- eb_billingShippingAddress.deletePersonAddressRecord
- eb_billingShippingAddress.deleteProfileAddressRecord
- eb_billingShippingAddress.domElement
- eb_billingShippingAddress.getAllShipmentTypes
- eb_billingShippingAddress.getCountriesData
- eb_billingShippingAddress.getPersonsAddresses
- eb_billingShippingAddress.getProfileAddresses
- eb_billingShippingAddress.getProvinceData
- eb_billingShippingAddress.model
- eb_billingShippingAddress.render
- eb_billingShippingAddress.shoppingCart
- eb_billingShippingAddress.updatePersonAddressRecord
- eb_billingShippingAddress.updateProfileAddressRecord
- eb_billingShippingAddress.userContext
Properties
- eb_billingShippingAddress.defaultErrorMessage
- eb_billingShippingAddress.deletePersonAddressService
- eb_billingShippingAddress.deleteProfileAddressService
- eb_billingShippingAddress.errorResponses
- eb_billingShippingAddress.getAllShipmentTypesURL
- eb_billingShippingAddress.getCountriesService
- eb_billingShippingAddress.getPersonAddressService
- eb_billingShippingAddress.getProfileAddressService
- eb_billingShippingAddress.getProvinceService
- eb_billingShippingAddress.newAddressService
- eb_billingShippingAddress.orderReviewUrl
- eb_billingShippingAddress.personId
- eb_billingShippingAddress.selectedAddress
- eb_billingShippingAddress.ServicePath
- eb_billingShippingAddress.shippingAddress
- eb_billingShippingAddress.SitePath
- eb_billingShippingAddress.skipPageRedirection
- eb_billingShippingAddress.TemplatePath
- eb_billingShippingAddress.updatePersonsAddressService
- eb_billingShippingAddress.updateProfileAddressService
Methods
eb_billingShippingAddress.createAddressRecord
-
personId
-
data
POST service call method.
Parameters:
-
personId
NumberpersonId
-
data
ObjectAddress related information[ State, City, Country ...]
Returns:
New address promise object with City, Id, Country, State, line1, line2, name, postal code, StateProvience fields.
eb_billingShippingAddress.deletePersonAddressRecord
-
personId
-
addressName
Delete Person Address Service call
Parameters:
-
personId
NumberpersonID
-
addressName
StringAddress name to delete particular address
eb_billingShippingAddress.deleteProfileAddressRecord
-
personId
-
addressName
Delete Profile Address Service call
Parameters:
-
personId
NumberpersonID
-
addressName
StringAddress name to delete particular address
eb_billingShippingAddress.domElement
-
domElement
Page DOM element.
Parameters:
-
domElement
Objectcurrent DOM element.
eb_billingShippingAddress.getAllShipmentTypes
()
Object
Gets all web-enabled shipment types.
Returns:
jQuery promise object which when resolved returns shipment type list.
eb_billingShippingAddress.getCountriesData
()
Object
Public method to get countries data list from the server.
Returns:
Return Array of All Countries
eb_billingShippingAddress.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_billingShippingAddress.getProfileAddresses
-
personId
Public method to get Profile Addresses data list from the server
Parameters:
-
personId
NumberpersonId to get profile addresses
Returns:
Addresses of person
eb_billingShippingAddress.getProvinceData
-
country
Get State/Province list from the server through the get service call.
Parameters:
-
country
StringAll the state in specified country
Returns:
Return Array of state
eb_billingShippingAddress.model
-
options
BillingShippingAddress Model for binding data. The model contains observable properties to hold corresponding data returned from services. Also, model contains computed properties and methods to support Billing and Shipping Address functionality.
Parameters:
-
options
ObjectContains necessary data which is required for Billing and Shipping Address functionality.
-
ServicePath
StringService URL.
-
SitePath
StringSite URL.
-
data
ObjectContains data returned from service which is used to construct BillingShippingAddress model.
-
domElement
ObjectDOM element.
-
templatePath
StringHTML path.
-
eb_billingShippingAddress.render
-
options
Rendering public method to load HTML template. Based on page level configuration it will select the template and load in DOM. Template path and DOM element are required parameters. GET the template by Ajax call using template path and then assign it to DOM element.
Parameters:
-
options
ObjectObject with data required for getting HTML template through Ajax call.
-
SitePath
StringSite path.
-
templatePath
StringHTML file path.
-
domElement
ObjectDOM element.
-
Returns:
jQuery promise object which when resolved returns HTML template.
eb_billingShippingAddress.shoppingCart
-
shoppingCart
Shopping cart object
Parameters:
-
shoppingCart
Objectshopping cart object.
eb_billingShippingAddress.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_billingShippingAddress.updateProfileAddressRecord
-
personId
-
data
-
addressName
PATCH service call method.
Parameters:
-
personId
NumberpersonId
-
data
ObjectAddress related information[ State, City, Country ...]
-
addressName
StringUpdated information of profile address
Returns:
Return Updated Address
eb_billingShippingAddress.userContext
-
userContext
User context object
Parameters:
-
userContext
ObjectuserContext object.
Properties
eb_billingShippingAddress.defaultErrorMessage
String
Default error message.
eb_billingShippingAddress.deletePersonAddressService
String
Delete person address
eb_billingShippingAddress.deleteProfileAddressService
String
Delete profile address
eb_billingShippingAddress.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_billingShippingAddress.getAllShipmentTypesURL
String
Get All Shipment types service URL.
eb_billingShippingAddress.getCountriesService
String
GET service to get all countries records.
eb_billingShippingAddress.getPersonAddressService
String
GET person address service.
eb_billingShippingAddress.getProfileAddressService
String
GET profile address service.
eb_billingShippingAddress.getProvinceService
String
GET service to get all State/Province record.
eb_billingShippingAddress.newAddressService
String
GET new address service.
eb_billingShippingAddress.orderReviewUrl
String
Redirect to review order Page.
eb_billingShippingAddress.personId
String
person id
eb_billingShippingAddress.selectedAddress
String
Redirect to billing or shipping address
eb_billingShippingAddress.ServicePath
String
The path to the eBusiness SOA layer.
eb_billingShippingAddress.shippingAddress
String
Shipping Address
eb_billingShippingAddress.SitePath
String
Control level setting: Site path.
eb_billingShippingAddress.skipPageRedirection
Bool
skipPageRedirection
eb_billingShippingAddress.TemplatePath
String
Control level setting Template path.
eb_billingShippingAddress.updatePersonsAddressService
String
Update person address service.
eb_billingShippingAddress.updateProfileAddressService
String
Update profile address service.