Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that defines each cart item.

Hierarchy

  • CartItem

Index

Constructors

constructor

Properties

Optional action

action: string

action for asset item in cart

Optional actions

actions: any

action params of each offer.

Optional attachments

attachments: any[] = []

media url's of an offer

Optional attributes

attributes: any

it holds various attribute types of an offer.

Optional bundleTotal

bundleTotal: PriceInfo

basket total prices.

Optional cartItems

cartItems: CartItem[]

cartItems will hold all cart items.

Optional cartItemsPriceInfo

cartItemsPriceInfo: any = {}

price information for cart items.

Optional childProducts

childProducts: CartItemGroup[]

childProducts will hold all child cart items which are not yet added.

Optional customFields

customFields: any = {}

custom attributes for an offer

description

description: string

description of the offer.

Optional groupMaxQuantity

groupMaxQuantity: number

groupMaxQuantity of the product bundle.

Optional groupMinQuantity

groupMinQuantity: number

groupMinQuantity of the product bundle.

id

id: string

unique ID for each offer.

Optional lineItems

lineItems: CartItemGroup[]

lineItems will hold all child cart items.

Optional lineNumber

lineNumber: string

line number of each bundle.

Optional maxQuantity

maxQuantity: number

Max Quantity of each basket offer.

Optional messages

messages: string[]

Error or warning messages from the response. Messages will be availabe when auto-rules of Excludes/Requires/Recommends setup for the products and the rules are triggered.

Optional minQuantity

minQuantity: number

Min Quantity of each basket offer.

name

name: string

name of the offer.

Optional offerType

offerType: string

promotions for an offer

Optional priceInfo

priceInfo: PriceInfo

prices information for an offer.

productCode

productCode: any

Unique offer catalog code.

Optional productGroups

productGroups: CartItemGroup[] = []

cartItemGroups of the each cart item.

Optional productHierarchyPath

productHierarchyPath: string

heirarchy path to identify child-product from offer bundle.

productId

productId: string

unique key for each basket.

Optional promotions

promotions: any[]

promotions for an offer

Optional provisioningStatus

provisioningStatus: any = {}

provisioningStatus for asset item in cart

quantity

quantity: number

Quantity of each basket offer.

Optional selectedAttributes

selectedAttributes: any

it holds various selected default attributes of an offer.

Methods

Static parse

  • parse(cartItemResponse: any, input?: any, isAsset?: boolean): CartItem
  • This function parse the cart item.

    Parameters

    • cartItemResponse: any
    • Optional input: any
    • Optional isAsset: boolean

    Returns CartItem

    CartItem

Generated using TypeDoc