AVSTransaction

public struct AVSTransaction : Identifiable, Hashable, Equatable, Codable

Represents the information of a transaction with the AVS

  • id

    Declaration

    Swift

    public var id: UUID { get }
  • ID of transaction for a sole ErxTask. May be used to track service communication

    Declaration

    Swift

    public let transactionID: UUID
  • States the HTTP status code the transaction terminated with

    Declaration

    Swift

    public let httpStatusCode: Int32
  • Timestamp of transaction

    Declaration

    Swift

    public let groupedRedeemTime: Date
  • ID for multiple ErxTasks that are redeemed at once

    Declaration

    Swift

    public let groupedRedeemID: UUID
  • ID of receiving AVS (Apothekenverzeichnisdienst)

    Declaration

    Swift

    public let telematikID: String?
  • Declaration

    Swift

    public let taskId: String?
  • Declaration

    Swift

    public init(
        transactionID: UUID = UUID(),
        httpStatusCode: Int32,
        groupedRedeemTime: Date,
        groupedRedeemID: UUID,
        telematikID: String? = nil,
        taskId: String
    )