AVSSession
public protocol AVSSession
Interface to the eRpApp
-
redeem(message:
Asynchronousendpoint: recipients: ) Redeem a prescription encoded into a
AVSMessage
by (encrypting it for (multiple) recipients and) sending it to a given endpoint.Note
OnlyAVSError
s are supposed to be thrownDeclaration
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 torecipients
the message will potentially be prepared (encrypted) for them
Return Value
The sent
AVSMessage
if successful, elseAVSError