AVSSession
public protocol AVSSession
Interface to the eRpApp
-
redeem(message:Asynchronousendpoint: recipients: ) Redeem a prescription encoded into a
AVSMessageby (encrypting it for (multiple) recipients and) sending it to a given endpoint.Note
OnlyAVSErrors are supposed to be thrownDeclaration
Swift
func redeem(message: AVSMessage, endpoint: AVSEndpoint, recipients: [X509]) async throws -> AVSSessionResponseParameters
messagecontains the information for redeeming of a prescription
endpoint(wrapped)
URLto send the request torecipientsthe message will potentially be prepared (encrypted) for them
Return Value
The sent
AVSMessageif successful, elseAVSError
View on GitHub
AVSSession Protocol Reference