Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

[resDataKey]: "metadata"
id: string
lastFetched: undefined | Date = undefined

Methods

  • Get the full response from the object. Fetches from Swedbank Pay if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<MaybePopulated<{}>>

  • getPaymentOrderId(): Promise<null | string>
  • Get the ID of the parent paymentOrder. This will fetch the data from the backend if necessary. note, paymentOrder is not always available in the response.

    Returns Promise<null | string>

    A promise that resolves to the ID of the parent paymentOrder or null if not available.

  • getValue(key: string, defaultVal: string | number | boolean, forceFresh?: boolean): Promise<string | number | boolean>
  • getValue(key: string, defaultVal?: string | number | boolean, forceFresh?: boolean): Promise<null | string | number | boolean>
  • Get the value for a certain key. Fetching from swedbank pay if needed.

    Parameters

    • key: string
    • defaultVal: string | number | boolean
    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<string | number | boolean>

  • Parameters

    • key: string
    • Optional defaultVal: string | number | boolean
    • Optional forceFresh: boolean

    Returns Promise<null | string | number | boolean>

Generated using TypeDoc