DCMyAccount

DCMyAccount

c-dc-my-account is the component for rendering user account.

Constructor

new DCMyAccount()

Source:
Example
Sample Usage -

Include the component in your template by adding c-dc-my-account custom tag

<c-dc-my-account></c-dc-my-account>


 KEY INFO -

 events fired : none

 events registered : "vlocity-dc-update-asset-list-to-os"

 Dependency - c-dc-my-account is an independent component and has no dependency on parent component.
 User needs to be logged in to access c-dc-my-account.


               | Parent Component | Expected Children Components |
               |------------------|------------------------------|
               | none             | c-dc-assets-lists            |


Sample with slots -

<c-dc-my-account>
   <span slot="{slot_name}">
     Custom HTML elements goes here
   </span>
</c-dc-my-account>

List of available slots -

| Slot names                  | Dynamic     | Description                   | Impact                                 |
|-----------------------------|-------------|------------------------------------------------------------------------|
| dc-loading-message          | -           | Slot for loading message      | Allows adding of loading message       |
| dc-assets-list              | -           | Wrapper for assets list       | Replaces assets list                   |

Extends

  • LitElement

Methods

(static) getAccountSDKInstance()

Method to get account SDK instance.
Source:

(async, static) getAssets()

Method to get assets for logged in user
Source:

(static) getAssetsGetInput()

This function is used to get getAssets input object
Source:

(static) getAssetsHandleFailure(error)

This function is used to handle getAssets failure
Parameters:
Name Type Description
error object Error Object from SDK call.
Source:

(static) getAssetsPostHook(response)

A custom function to be used by customers for customisation, any custom action after getAssets call is successfull can be written here
Parameters:
Name Type Description
response object SDK Response object.
Source:

(static) getAssetsPreHook(input)

A custom function to be used by customers for customisation, any custom action prior to getAssets call can be written here
Parameters:
Name Type Description
input object Current Input Object.
Source:

(static) getAssetsPreSDKCalls()

This function is used to execute any action before getAssets SDK call is made.
Source:

(static) getAssetsProcessResponse(assets)

This function is used to process getAssets response
Parameters:
Name Type Description
assets object Assets list from SDK call.
Source:

(static) getAssetsSDKCall(input)

This function is used to make SDK call for getAssets
Parameters:
Name Type Description
input object Current Input Object.
Source:

(static) getSDKInstance()

Method to get digital commerce SDK instance.
Source:

(static) getTranslationLabels(input)

This function is used to make SDK call for getAssets
Parameters:
Name Type Description
input object Current Input Object.
Source:

(static) updateAssetListToOS()

Method to update assetToBasket details to OmniScript. Callback method for vlocity-dc-update-asset-list-to-os event
Source: