Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

actionObj

actionObj: Action

action object.

anonymousSiteUrl

anonymousSiteUrl: string = ""

apiNamespace

apiNamespace: string = ""

API Namespace to be used in Rest API call. e.g. h_cpq_promotion

Optional attributes

attributes: string[]

Product result will be filtered by the provided Attributes and values. e.g. 991360000008eNU:32GB_64GB,991360000008eNY:RED means attribute 991360000008eNU can be 32GB or 64GB AND 991360000008eNY is RED

Optional cartId

cartId: string = ""

The cart Id to be used for getting a list of products. It may be the regular cart id or the anonymous cart id.

Optional fields

fields: string[]

List of fields to be returned. Supported Product2 and Pricebook fields.

Optional filters

filters: Map<string, string>

Filter to be used on the product result. Filter must be in name and value pair where name is the SObject.fieldname and value will be used for matching. eg. Product2.Name:Product1_Product2 (means Product2.Name = Product1 OR Product2)

Optional hierarchy

hierarchy: number

The hierarchy level to be retrieved. For only the current level of products, hierarchy will be 0. For retrieving current level of products with children, hierarchy will be 1.

Optional include

include: Set<string>

List of nodes to indicate what to include in the product results. Valid values: attributes, attachments, ineligible

todo

we can use enum here.

Optional lastRecordId

lastRecordId: string

When doing pagination, provide the last record ID that was previously return. If last record ID is not provided, get products will start from the beginning.

Optional offset

offset: number

The offset to start the product list from. If we are using pagesize of 20, the offset for next page will be 21.

Optional pageSize

pageSize: number

The number of top level products or offers to be returned. Default is 20.

price

price: boolean

Flag to indicate if pricing rules should be run.

Optional query

query: string

Search query string to search for matching products. Query will be used to match Product2.name or Product2.description fields.

remoteClass

remoteClass: string = "CpqAppHandler"

Remote class to handle get products.

remoteMethod

remoteMethod: string = "getCartsProducts"

Remote method in the boave Remote Class to handle get products.

validate

validate: boolean

Flag to indicate if validation rules should be run.

Static Private CustomProcessQueryNames

CustomProcessQueryNames: Set<string> = ...

Query Names that needs to be skipped and may require custom processing. If custom processing is needed, these query names will be flattened out into URL Get parameters.

Methods

anonymousRestUrl

  • anonymousRestUrl(urlparams: any): string

getAnonymousRestUrl

  • getAnonymousRestUrl(params?: object): string
  • Apply the given params value of matching in rest URL.

    Parameters

    • Optional params: object

      parameters to be applied in the Rest Url excluding the query string.

    Returns string

getLoginUserRestPath

  • getLoginUserRestPath(params?: object): string
  • Apply the given params value of matching in rest path.

    Parameters

    • Optional params: object

      parameters to be applied in the Rest Url excluding the query string.

    Returns string

inputMap

  • inputMap(): object
  • Returns object

loginUserRestPath

  • loginUserRestPath(urlparams: any): string
  • Rest URL for login user to get products.

    Parameters

    • urlparams: any

    Returns string

setInclude

  • setInclude(params: string[]): void
  • Add params as Set object

    Parameters

    • params: string[]

    Returns void

urlEncodedQuery

  • urlEncodedQuery(): string
  • Return the encoded query of a URI that contains the properties in this class. Undefined properties will not be included in the encoded query.

    scheme:[//[user[:password]@]host[:port]][/path][?query][#fragment]

    Returns string

Generated using TypeDoc