Hierarchy

Constructors

Properties

eventClear: ListenableEvent<void, Basket> = ...

Will be triggered from Basket.clear()

eventHeaderCalculationChanged: ListenableEvent<void, BaseItemManager<BasketItem, Basket>> = ...

Triggered every time the header calculation has changed. Note: A changed header calculation may also imply that the calculation of all items has changed if some conditions depend on header conditions. The event eventItemUpdated may not be triggered for all items in these cases (e.g. for indirect changes).

eventItemUpdated: ListenableEvent<{
    flags: number;
    item: BasketItem;
}, BaseItemManager<BasketItem, Basket>> = ...

Triggered every time an item changed. Note: The event will not be triggered if the item calculation has indirectly changed by some header conditions. You should also listen to the event eventHeaderCalculationChanged.

eventItemsPasted: ListenableEvent<EventDataItemsPasted, Basket> = ...

Will be triggered everytime if items got pasted into the basket. (e.g. copy/paste or OEX import)

eventModified: ListenableEvent<void, Basket> = ...

Will be triggered if this basket instance gets modified.

eventOfmlArticleUpdated: ListenableEvent<ArticleItem, Basket> = ...
eventOfmlUpdateStateChanged: ListenableEvent<ArticleItem, Basket> = ...
eventSelectionChanged: ListenableEvent<void, BaseItemManager<BasketItem, Basket>> = ...
eventUpdateSessionLanguage: ListenableEvent<void, Basket> = ...

Will be triggered from Basket.updateSessionLanguage()

includeCalculationErrorsInInconsistencies: boolean

If true calculation line errors will be also included in the inconsistencyReason of the article ItemProperties.

Default Value

true

mExtraPriceInfoSelectors: undefined | string[]
mRoot: BasketItem
mSelection: BasketItem[]
mSession: EaiwsSession
mViewId: undefined | string

Accessors

  • get generatedImageResolution(): number
  • Defines the image resolution for server generated images. (default: 512)

    Returns number

  • set generatedImageResolution(pValue: number): void
  • Parameters

    • pValue: number

    Returns void

  • get isValid(): boolean
  • Returns boolean

  • get root(): T
  • Returns T

  • get selection(): readonly T[]
  • Returns readonly T[]

  • get views(): readonly View[]
  • Returns readonly View[]

Methods

  • Checks the consistency of all articles. Returns false if at least one of the articles or its configuration is inconsistent. Note: Errors of invisible calculation lines will be ignored.

    Parameters

    • pCheckCalculation: boolean = true

      If true the calculation will be also checked for error. (default: true)

    Returns Promise<boolean>

  • Returns void

  • Parameters

    Returns Promise<void>

  • Removes a view and disposes it.

    Parameters

    Returns void

  • Should be called if the locale and or data language of the eaiws session has changed to update all language related data.

    Returns Promise<void>

  • Create necessary basket columns if they don't exist yet in the provided session. Note: This function will be also called from Basket.loadFromSession().

    Parameters

    Returns Promise<void>

Generated using TypeDoc