AVSSession

public protocol AVSSession

Interface to the eRpApp

  • Redeem a prescription encoded into a AVSMessage by (encrypting it for (multiple) recipients and) sending it to a given endpoint.

    Note

    Only AVSErrors are supposed to be thrown

    Declaration

    Swift

    func redeem(message: AVSMessage, endpoint: AVSEndpoint, recipients: [X509]) async throws -> AVSSessionResponse

    Parameters

    message

    contains the information for redeeming of a prescription

    endpoint

    (wrapped) URL to send the request to

    recipients

    the message will potentially be prepared (encrypted) for them

    Return Value

    The sent AVSMessage if successful, else AVSError