PaygateUnprocessableEntity

public struct PaygateUnprocessableEntity : Decodable, Equatable

PaygateUnprocessableEntity represents an error response for a 422 Unprocessable Entity status code.

This struct conforms to the Decodable and Equatable protocols, allowing it to be decoded from JSON and compared to other instances. The error indicates that the request was well-formed but could not be processed.

  • The ID of the merchant associated with the transaction.

    Declaration

    Swift

    public let merchantId: String
  • The unique payment identifier generated by the payment gateway.

    Declaration

    Swift

    public let paymentId: String
  • xId

    An additional transaction identifier.

    Declaration

    Swift

    public let xId: String
  • The transaction ID provided by the merchant in the initial request.

    Declaration

    Swift

    public let transId: String
  • The final status of the transaction (e.g., “FAILED”).

    Declaration

    Swift

    public let status: String
  • A specific error code provided by the Paygate API.

    Declaration

    Swift

    public let code: String
  • A description of the error that occurred.

    Declaration

    Swift

    public let description: String
  • A reference number for the transaction.

    Declaration

    Swift

    public let refNr: String