Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that defines input for getting cart details.

extends

DigitalCommerceInput

Hierarchy

Index

Constructors

constructor

  • Constructor function for GetItemsInCartInput class.

    Returns GetItemsInCartInput

Properties

actionObj

actionObj: Action

Action object json.

anonymousSiteUrl

anonymousSiteUrl: string

anonymousSiteUrl as the prefix of the API url for Off-Platform deployments.

apiNamespace

apiNamespace: string

API namespace.

Optional cacheable

cacheable: boolean = true

Boolean flag to indicate if we should cache the cart in SDK. Default is true to always cache cart in SDK.

Optional cartContextKey

cartContextKey: string

Persisting cartContext hash key to be used in part of the path of the API to maintain existing cart.

Optional catalogCode

catalogCode: string

catalogCode to be used in part of the path of the API.

Optional context

context: string

context param as part of the query string of the API to define which offers qualify in returning result set.

Optional fields

fields: string[]

List of fields to be returned.

Optional forceInvalidateCache

forceInvalidateCache: boolean

forceInvalidateCache as part of the query string of the API to refresh the cache for a particular catalog.

Optional reload

reload: boolean = false

Boolean flag to indicate if we should reload a cart via API or return the client side cached cart if exists. Default is false to cached cart.

remoteClass

remoteClass: string = "CpqAppHandler"

Remote class that handles this request.

remoteMethod

remoteMethod: string

Remote method that handles this request.

Methods

getAPIPath

  • getAPIPath(): string
  • Function that constructs the API path for ApexRest Handles scenerio when namespace is null

    Returns string

getAnonymousSiteRestUrl

  • getAnonymousSiteRestUrl(): string

Protected getEncodedQueryString

  • getEncodedQueryString(): string

getInputMap

  • getInputMap(): any
  • Function that constructs the input map object containing all query parameters for API

    Returns any

getRemoteMethod

  • getRemoteMethod(): string

getRequestPayload

  • getRequestPayload(): string
  • Function that constructs the Request body json for ApexRest and Rest

    Returns string

Generated using TypeDoc