Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that defines each cartItem.

Hierarchy

  • CartItem

Index

Constructors

constructor

Properties

action

action: string

Action which needs for MACD operations.

actions

actions: any[] = []

API actions for CRUD operations

Optional attributeCategories

attributeCategories: AttributeCategory[]

Attributes of an offer.

childProducts

childProducts: CartItem[]

Child products of an offer.

Optional columns

columns: any[] = []

custom columns for an offer

Optional customFields

customFields: any = {}

custom attributes for an offer

defaultQuantity

defaultQuantity: number

Default Quantity

description

description: string

Offer description

groupMaxQuantity

groupMaxQuantity: number

Group Max Quantity of the offer for cardinality check

groupMinQuantity

groupMinQuantity: number

Group Min Quantity of the offer for cardinality check

id

id: string

Unique offer id

Optional inCartQuantityMap

inCartQuantityMap: any

Offer inCartQuantityMap

isAssets

isAssets: boolean = false

boolean flag to reveal whether it is assets or not

isVirtualItem

isVirtualItem: boolean

boolean flag to reveal whether this offer is virtual item or not

itemType

itemType: string

Offer itemType eg: lineitem, productGroup

lineItems

lineItems: CartItem[]

Line items of an offer.

maxQuantity

maxQuantity: number

Max Quantity of the offer

messages

messages: any[] = []

Stores error messages

minQuantity

minQuantity: number

Min Quantity of the offer

name

name: string

Offer name

Optional parentAction

parentAction: string

Offer parentAction which needs for MACD operations.

parentId

parentId: string

Offer parentId which needs for CRUD operations.

pricebookId

pricebookId: string

Offer pricebook id

prices

prices: Price = {}

Stores all prices information including action objects.

productGroups

productGroups: CartItem[]

Product groups of an offer.

productHierarchyPath

productHierarchyPath: string

Offer productHierarchyPath

productId

productId: string

Offer product2.Id

Optional promotions

promotions: any = {}

quantity

quantity: number

Quantity of an offer

rootItemId

rootItemId: string

Root Bundle Product Id needs for CRUD operations.

sellingPeriod

sellingPeriod: string

Offer SellingPeriod

sequenceNumber

sequenceNumber: number

Sequence number

Methods

Static parse

  • parse(cartItemResponse: any, rootBundleId: string, input: any, parentLineItem?: any): CartItem
  • This function parse the cartItem.

    Parameters

    • cartItemResponse: any
    • rootBundleId: string
    • input: any
    • Optional parentLineItem: any

      optional

    Returns CartItem

Generated using TypeDoc