Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that defines cart.

Hierarchy

  • Cart

Index

Properties

assetReferenceKey

assetReferenceKey: string

assetReferenceKey which is used during the createCart API to sync the assetReferenceIds in the orderItems.

cartContextKey

cartContextKey: string

unique key for each cart.

Optional cartItemGroups

cartItemGroups: CartItemGroup[] = []

cartItemGroups of the each cart item.

Optional cartItems

cartItems: CartItem[] = []

cartItems will hold all cart items.

cartItemsPriceInfo

cartItemsPriceInfo: any

price information of all the items in the cart.

Optional cartItemsPromotionList

cartItemsPromotionList: Promotion[] = []

promotions for all cart items.

Optional customFields

customFields: any

custom attributes for an cart.

priceInfo

priceInfo: PriceInfo

cart total prices.

Methods

Static parse

  • parse(cartResponse: any, input?: any, isAsset?: boolean): Cart
  • This function parse the cart information.

    Parameters

    • cartResponse: any
    • Optional input: any
    • Optional isAsset: boolean

    Returns Cart

    Cart

Generated using TypeDoc