Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

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

Methods

  • getAbortReason(forceFresh?: boolean): Promise<null | string>
  • Get the abort reason, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

  • getAll(forceFresh?: boolean): Promise<MaybePopulated<{ abortReason: "CancelledByConsumer" | "CancelledByCustomer" }>>
  • 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<{ abortReason: "CancelledByConsumer" | "CancelledByCustomer" }>>

  • 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.

Generated using TypeDoc