dcBaseMixin

dcBaseMixin

new dcBaseMixin(Base)

Parameters:
Name Type Description
Base class A class that will be passed in and inherited by dcBaseMixin DCBaseComponent methods
1.Method to get digital commerce SDK instance. - getDigitalCommerceSDKInstance()
2.Method to update custom url - updateSDKApiUrl(string)
3.Method to load css into custom LWC component - loadUtilsCss(component, cssPath)
4.Method to update OmniScript data JSON - updateOmniDataJson(obj)
5.Method to determine whether component loaded into omniscript or not - isOSDesignerLoaded()

Extends

  • OmniscriptBaseMixin

Members

(static) isOSDesignerLoaded

Method to check whether component loaded in the Omniscript or not

(static) updateAuthToken

Method to update third party AWS url auth token

(static) updateCheckoutNodeServerUrl

Method to update checkout SDK node server url

(static) updateSDKApiUrl

Method to update third party AWS url

Methods

(static) getDigitalCommerceSDKInstance(namespace)

Parameters:
Name Type Default Description
namespace string vlocity_cmt Provide the namespace to get the Digital Commerce SDK

(static) getTranslatedLabels(language, labels)

This function retrieves translated labels for given language
Parameters:
Name Type Description
language String optional parameter - language
labels Array.<String> array of labels

(static) getTranslationSDKInstance(namespace)

Parameters:
Name Type Default Description
namespace string vlocity_cmt Provide the namespace to get the translation SDK

(static) gotoOSNextStep(stepName)

Function to auto-advance the omniscript step
Parameters:
Name Type Description
stepName string optional

(static) invokeRestAPI(sdk, input, timeoutInMillis)

This function to check whether given object has empty values or not
Parameters:
Name Type Description
sdk Object
input Object {path:'',httpMethod:'',payload:{}}
timeoutInMillis number

(static) loadNewCustomLabels(labels)

This function adds more labels to the existing labels array
Parameters:
Name Type Description
labels Array.<String> array of labels

(static) loadUtilsCss(component, static-resources)

Load utility stylesheet into the page (if not yet loaded).
Parameters:
Name Type Description
component LightningElement
static-resources Object reference url

(static) salesforceCustomDomainUrl(url)

Method to update custom custom salesforce domain url
Parameters:
Name Type Description
url String user custom domain url

(static) updateOmniDataJson(obj)

This function updates OmniScript data JSON
Parameters:
Name Type Description
obj string JSON object to be updated in omniscript.

(static) URLParams()

Function to fetch the query params from the current URL.