Private singleton instance of this SDK. There should always be only 1 instance.
getter method for namespace. Provides the salesforce org namespace
setter method for namespace. Set custom namespace
Add an addon to the cart.
Add a product to the cart such that it can be configured.
Create a default InvokeActionInput object.
A workaround mechanism for v102 when getProducts API do not relate attribute id to attachment url. Here we assume Admin would have configured the url such that it is appended by a vertical bar followed by attribute id, we would then split them apart and create a map that pairs the attribute id to the attachment url.
Returns anonymous cartId and accountId.
Create a default InvokeActionInput object.
Create a default CreateCartInput object.
Create a default InvokeActionInput object.
Create a default InvokeActionInput object.
Create a default GetCatalogsInput object.
Create a default InvokeActionInput object.
Create a default GetProductsInput object.
Create a default InvokeActionInput object.
Delete a line item from the cart.
Returns a list of products.
Returns a list of catalogs.
Returns a list of products.
Returns a list of products using action object from getCatalo API.
Returns a list of Ppromotions.
Get the userContext used in this CPQ SDK instance or create a new one if create is true.
flag to indicate to create a new UserContext if true. Otherwise, return UserContext in the sdk.
Get the CPQSDKConfig used in this CPQ SDK instance.
CPQSDKConfig.
Invoke an action returning from API call.
Update a root bundle or line item in the cart.
Returns the version number of SDK.
Returns SDK version number as string
Create a CPQSDKConfig object that consists of a UserContext and a DataSourceService for login user.
Configuration object to instantiate SDK.
Adds all the enumerable string keyed function properties of a source
object to the sdk prototype.
.extend should only be used to add new methods and it won't override the existing methods.
Note: If the property already exists, it will be not be added.
Custom functions which are being extended should have proper namespaces to avoid issues during upgrades. When Vlocity releases new changes it won't impact if unique namespaces are used.
Example: myCompanyOrFeatureMethodName
The object of functions
Get an instance of this SDK.
CPQ SDK instance.
Adds all the enumerable string keyed function properties of a source object to the sdk prototype.
.override method should only be used to override the existing methods and should only be used in rare cases.
Overriding the existing or default methods may cause unintended consequences and may also impact during upgrades.
Please be cautious while using this
The object of functions
Generated using TypeDoc
The Facade to interact with Vlocity CPQ functionality.