API Docs for:
Show:

eb_billingShippingAddress Class

Define eb_billingShippingAddress class.

Item Index

Methods

eb_billingShippingAddress.createAddressRecord

(
  • personId
  • data
)
Object

POST service call method.

Parameters:

  • personId Number

    personId

  • data Object

    Address related information[ State, City, Country ...]

Returns:

Object:

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 Number

    personID

  • addressName String

    Address name to delete particular address

eb_billingShippingAddress.deleteProfileAddressRecord

(
  • personId
  • addressName
)

Delete Profile Address Service call

Parameters:

  • personId Number

    personID

  • addressName String

    Address name to delete particular address

eb_billingShippingAddress.domElement

(
  • domElement
)

Page DOM element.

Parameters:

  • domElement Object

    current DOM element.

eb_billingShippingAddress.getAllShipmentTypes

() Object

Gets all web-enabled shipment types.

Returns:

Object:

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:

Object:

Return Array of All Countries

eb_billingShippingAddress.getPersonsAddresses

(
  • personId
)
Object

Public method to get Persons Addresses data list from the server

Parameters:

  • personId Number

    personId to get person addresses

Returns:

Object:

Addresses of person

eb_billingShippingAddress.getProfileAddresses

(
  • personId
)
Object

Public method to get Profile Addresses data list from the server

Parameters:

  • personId Number

    personId to get profile addresses

Returns:

Object:

Addresses of person

eb_billingShippingAddress.getProvinceData

(
  • country
)
Object

Get State/Province list from the server through the get service call.

Parameters:

  • country String

    All the state in specified country

Returns:

Object:

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 Object

    Contains necessary data which is required for Billing and Shipping Address functionality.

    • ServicePath String

      Service URL.

    • SitePath String

      Site URL.

    • data Object

      Contains data returned from service which is used to construct BillingShippingAddress model.

    • domElement Object

      DOM element.

    • templatePath String

      HTML path.

eb_billingShippingAddress.render

(
  • options
)
String

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 Object

    Object with data required for getting HTML template through Ajax call.

    • SitePath String

      Site path.

    • templatePath String

      HTML file path.

    • domElement Object

      DOM element.

Returns:

String:

jQuery promise object which when resolved returns HTML template.

eb_billingShippingAddress.shoppingCart

(
  • shoppingCart
)

Shopping cart object

Parameters:

  • shoppingCart Object

    shopping cart object.

eb_billingShippingAddress.updatePersonAddressRecord

(
  • personId
  • data
  • addressName
)
Object

PATCH service call method.

Parameters:

  • personId Number

    personId

  • data Object

    Address related information[ State, City, Country ...]

  • addressName String

    Updated information of person Address

Returns:

Object:

Return Updated Address

eb_billingShippingAddress.updateProfileAddressRecord

(
  • personId
  • data
  • addressName
)
Object

PATCH service call method.

Parameters:

  • personId Number

    personId

  • data Object

    Address related information[ State, City, Country ...]

  • addressName String

    Updated information of profile address

Returns:

Object:

Return Updated Address

eb_billingShippingAddress.userContext

(
  • userContext
)

User context object

Parameters:

  • userContext Object

    userContext 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.