The Discountler is the primary utility for interfacing with discounts. You should instantiate a singleton instance for the whole app to gain the benefits of internal caching.

Hierarchy

  • Discountler

Constructors

Properties

cache?: MemoryCache

Methods

  • Returns Promise<MemoryCache>

  • Parameters

    • Optional cacheKey: string

    Returns Promise<undefined | CustomerDiscounter>

Generated using TypeDoc