Payload
public struct Payload : Codable, Equatable, Sendable
-
Declaration
Swift
public init( supplyOptionsType: RedeemOption, infoText: String? = nil, pickUpCodeHR: String? = nil, pickUpCodeDMC: String? = nil, url: String? = nil, version: Int ) -
The selected shipment option by the user
Declaration
Swift
public let supplyOptionsType: RedeemOption -
Free description text by the pharmacy
Declaration
Swift
public let infoText: String? -
Only available with supplyOptionsType
onPremise(e.g.: “12341234”)Declaration
Swift
public let pickUpCodeHR: String? -
Only available with supplyOptionsType
onPremise. Contains content that can be converted into a data matrix codeDeclaration
Swift
public let pickUpCodeDMC: String? -
Only available with supplyOptionsType
shipment. Contains an url with informations about the shipmentDeclaration
Swift
public let url: String? -
Declaration
Swift
public static func from(string: String?, decoder: JSONDecoder = defaultDecoder) throws -> Self? -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public static var defaultDecoder: JSONDecoder { get } -
Declaration
Swift
public var isPickupCodeEmptyOrNil: Bool { get }
View on GitHub
Payload Structure Reference