DiGaState
public enum DiGaState : CaseIterable, Equatable, Codable, Sendable
-
DiGa redeem code can be requested
Declaration
Swift
case request
-
DiGa redeem code is requested and waiting for response
Declaration
Swift
case insurance
-
DiGa can be downloaded We don’t know if it is actually downloaded the user just pressed the button on
DiGaDetailsView
Declaration
Swift
case download
-
DiGa is downloaded but not yet activated We don’t know if it is actually activated the user just pressed the button on
DiGaDetailsView
Declaration
Swift
case activate
-
All steps are done and DiGa is completed
Declaration
Swift
case completed
-
DiGa is archived
Declaration
Swift
case archive
-
when the dispense does not include a redeem code
Declaration
Swift
case noInformation
-
Declaration
Swift
public func encoding(encoder: JSONEncoder = { let encoder = JSONEncoder() encoder.outputFormatting = .sortedKeys return encoder }()) -> Data?