Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Stigg

Implements

Index

Accessors

  • get isCustomerLoaded(): boolean
  • get isResourceLoaded(): boolean
  • get isWidgetWatermarkEnabled(): boolean

Methods

  • addListener<K>(eventName: K, listener: Events[K]): void
  • Add a listener to handle updates of entitlements changes

    Type parameters

    • K: keyof Events

    Parameters

    • eventName: K
    • listener: Events[K]

    Returns void

  • clearCustomer(): void
  • clearResource(): void
  • getCoupons(): Promise<Coupon[]>
  • getEntitlements(resourceId?: string): Promise<Entitlement[]>
  • refresh(): Promise<void>
  • removeListener<K>(eventName: K, listener: Events[K]): void
  • Remove a listener to stop handle updates of entitlements changes

    Type parameters

    • K: keyof Events

    Parameters

    • eventName: K
    • listener: Events[K]

    Returns void

  • setCustomerId(customerId: string, customerToken?: null | string, resourceId?: null | string): Promise<void>
  • Set the customer ID, usually after the customer signs in or restores a session

    Parameters

    • customerId: string
    • customerToken: null | string = null
    • resourceId: null | string = null

    Returns Promise<void>

  • setResource(resourceId: string): Promise<void>
  • Set the customer's resource ID, usually after the customer select a specific resource.

    Parameters

    • resourceId: string

    Returns Promise<void>

  • Returns a Promise that tracks the client's initialization state.

    The Promise will be resolved if the client successfully initializes, or rejected if client initialization has irrevocably failed.

    Returns Promise<StiggClient>

    Stigg client instance.

Generated using TypeDoc