PaymentStatusReport

Usually a PaymentStatusReport has a single StatusInformation element, but some banks may return multiple elements. This class handles both cases.

type
payment | group | transaction

Returns the type of the first element in the report.

status
Status

Returns the status of the first element in the report.

statusInformation
StatusInformation

The status information of the first element in the report.

statusInformations
StatusInformation[]

The status information of the first element in the report.

This document outlines the various data types and interfaces related to payment status reports.

OriginalGroupInformation

Represents the original group information in a payment status report.

PropertyTypeDescription
originalMessageIdstringThe original message ID associated with the group.

StatusType

Represents the type of status in a payment status report.

Possible values: 'group' | 'payment' | 'transaction'

PaymentStatusCode

Represents the status codes in a payment status report.

CodeDescription
RJCTRejected
ACCPPartially Accepted
PNDGPending
ACCPAccepted
ACSPAccepted Settlement In Progress
ACSCAccepted Credit Settlement Completed
ACSCAccepted Settlement Completed
ACTCAccepted Technical Validation

For more information, see the ISO 20022 External Code Sets.

PaymentStatus

A type representing the possible values of PaymentStatusCode.

BaseStatusInformation

Represents the base structure for status information in a payment status report.

PropertyTypeDescription
typeStatusTypeThe type of status (group, payment, or transaction).
statusPaymentStatusThe status value.
reason?objectOptional reason for the status.
reason.code?stringOptional reason code.
reason.additionalInformation?stringOptional additional information about the reason.

GroupStatusInformation

Represents the status information for a group in a payment status report. Extends BaseStatusInformation.

PropertyTypeDescription
type’group’The type is always ‘group’ for GroupStatus.
originalMessageIdstringThe original message ID associated with the group.

PaymentStatusInformation

Represents the status information for a payment in a payment status report. Extends BaseStatusInformation.

PropertyTypeDescription
type’payment’The type is always ‘payment’ for PaymentStatus.
originalPaymentIdstringThe original payment ID associated with the payment.

TransactionStatusInformation

Represents the status information for a transaction in a payment status report. Extends BaseStatusInformation.

PropertyTypeDescription
type’transaction’The type is always ‘transaction’ for TransactionStatus.
originalEndToEndIdstringThe original end-to-end ID associated with the transaction.

StatusInformation

A union type of all possible status information types in a payment status report.

Possible types:

  • GroupStatusInformation
  • PaymentStatusInformation
  • TransactionStatusInformation