Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PaymentOrder

Index

Constructors

Properties

aborted: Aborted
amount: number
availableInstruments: string[]
cancelled: Cancelled
created: Date
description: string
failed: Failed
failedAttempts: FailedAttempts
financialTransactions: FinancialTransactions
guestMode: boolean
history: History
id: string
implementation: string
initiatingSystemUserAgent: string
instrumentMode: boolean
integration: string
language: string
lastFetched: Date
metadata: Metadata
operations: { abort: undefined | PaymentOrderOperationEntity; cancel: undefined | PaymentOrderOperationEntity; capture: undefined | PaymentOrderOperationEntity; redirect-checkout: undefined | PaymentOrderOperationEntity; reversal: undefined | PaymentOrderOperationEntity; update-order: undefined | PaymentOrderOperationEntity; view-checkout: undefined | PaymentOrderOperationEntity }

Type declaration

orderItems: null | OrderItems
paid: Paid
payeeInfo: PayeeInfo
payer: null | Payer
remainingCancellationAmount: null | number
remainingCaptureAmount: null | number
remainingReversalAmount: null | number
status: "Initialized" | "Cancelled" | "Ready" | "Pending" | "Paid" | "Failed" | "Aborted"
updated: Date
urls: Urls
vatAmount: number

Accessors

  • get isAborted(): boolean
  • Due to an oddity in the SwedbankPay API, this getter is required to deduce whether the payment is already aborted by checking for the presence of the `abort´ operation.

    Returns boolean

Methods

  • abort(abortReason: "CancelledByConsumer" | "CancelledByCustomer"): Promise<PaymentOrder>
  • cancel(__namedParameters: { description: string; payeeReference: string }): Promise<PaymentOrder>
  • getCapturedAmount(excludeSingleStep?: boolean): Promise<number>
  • getReversedAmount(): Promise<number>
  • isFullyCaptured(excludeSingleStep?: boolean): Promise<boolean>
  • isFullyReversed(): Promise<boolean>

Generated using TypeDoc