Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that defines each cart item.

Hierarchy

  • CartItem

Index

Properties

Optional actions

actions: any

action params of each offer.

Optional bundleTotal

bundleTotal: PriceInfo

basket total prices.

Optional cartItemGroups

cartItemGroups: CartItemGroup[] = []

cartItemGroups of the each cart item.

Optional cartItems

cartItems: CartItem[]

cartItems will hold all cart items.

Optional customFields

customFields: any[]

custom attributes for an offer

id

id: string

unique ID for each offer.

Optional lineItems

lineItems: CartItemGroup[]

lineItems will hold all child cart items which are added.

Optional lineNumber

lineNumber: string

line number of each bundle.

Optional maxQuantity

maxQuantity: number

maximum child quantity allowed for product bundle.

name

name: string

name of the offer.

Optional priceInfo

priceInfo: PriceInfo

prices information for an offer.

productCode

productCode: any

Unique offer catalog code.

Optional productHierarchyPath

productHierarchyPath: string

heirarchy path to identify child-product from offer bundle.

productId

productId: string

unique key for each basket.

quantity

quantity: number

Quantity of each basket offer.

Methods

Static parse

  • parse(cartItemResponse: any): CartItem
  • This function parse the cart item.

    Parameters

    • cartItemResponse: any

    Returns CartItem

    CartItem

Generated using TypeDoc