Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

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

Methods

  • getAll(forceFresh?: boolean): Promise<MaybePopulated<{ device?: PayerDeviceResponse; hashedFields?: { msisdnHash?: string }; msisdn?: string; name: string; reference?: string }>>
  • 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<{ device?: PayerDeviceResponse; hashedFields?: { msisdnHash?: string }; msisdn?: string; name: string; reference?: string }>>

  • getMsisdn(forceFresh?: boolean): Promise<null | string>
  • Get the msisdn of the payer, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

  • getName(forceFresh?: boolean): Promise<null | string>
  • Get the name of the payer, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

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

  • getReference(forceFresh?: boolean): Promise<null | string>
  • Get the reference of the payer, fetches from Swedbank Pay backend if necessary.

    Parameters

    • Optional forceFresh: boolean

      Force a refresh from Swedbank Pay before resolving

    Returns Promise<null | string>

Generated using TypeDoc