Options
All
  • Public
  • Public/Protected
  • All
Menu

Class that defines price information of an each offer.

Hierarchy

  • PromotionList

Index

Constructors

constructor

Properties

Optional promoCode

promoCode: string = ""

promocode applicable to the offer.

Methods

Static createPromotionList

  • createPromotionList(promotions: any, offerCode: string): Promise<any>
  • Function that constructs the result for getPromotions call

    Parameters

    • promotions: any
    • offerCode: string

    Returns Promise<any>

    promotion List or promotion for a specific offer code

Static getFilteredPromotionList

  • getFilteredPromotionList(offers: Offer[]): Promise<any>
  • Function that constructs a filtered Promotion List having products and promotions.

    Parameters

    Returns Promise<any>

    a JSON object having two properties i.e products and promotions.

Static parse

  • parse(promotionResponse: any): Promise<any>
  • This function parse the information.

    Parameters

    • promotionResponse: any

    Returns Promise<any>

    PromotionList

Static parsePromotions

  • parsePromotions(promotionObj: any): any
  • Function that constructs a JSON object with key as product name and value as associated list of promotions.

    Parameters

    • promotionObj: any

    Returns any

    parsed promotion list

Generated using TypeDoc