Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that defines each offer.

Hierarchy

  • Offer

Index

Properties

Optional attachments

attachments: any[]

media url's of an offer

Optional attributes

attributes: any[]

it holds various attribute types of an offer.

Optional childProducts

childProducts: any[]

product child addons for an offer.

Optional customFields

customFields: any[]

custom attributes for an offer

Optional description

description: string

description of the offer.

id

id: string

unique ID for each offer.

name

name: string

name of the offer.

Optional navigationInfo

navigationInfo: string

Route url for deep linking for an offer.

Optional offerCode

offerCode: string

offercode.

Optional priceInfo

priceInfo: PriceInfo

prices information for an offer.

Optional productGroups

productGroups: any[]

product addons bundles for an offer.

Optional productHierarchyPath

productHierarchyPath: string

heirarchy path to identify child-product from offer bundle.

Optional quantity

quantity: number

quantity of the offer.

Optional seoMetaData

seoMetaData: any

seoMetaData - It contains all meta data needed for SEO.

  1. Meta Data Page Title - Name
  2. Meta Data description - Description
  3. Meta Data Key words - Name

Methods

Static parse

  • parse(offerResponse: any): Offer
  • This function parse the offer information.

    Parameters

    • offerResponse: any

    Returns Offer

    Offer

Static updateOffer

  • updateOffer(updatedFields: any, productConfiguration: any): any
  • This function updates the original object with updated values

    Parameters

    • updatedFields: any

      Fields updated in the web components

    • productConfiguration: any

      Original product copy

    Returns any

    • Original product with updated fields.

Generated using TypeDoc