DiGaState
public indirect enum DiGaState : Hashable, 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 1
Declaration
Swift
case archive(_: DiGaState)
-
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?
-
Declaration
Swift
public var isArchive: Bool { get }
-
Declaration
Swift
public var archivable: Bool { get }
-
Declaration
Swift
public var unarchivable: Bool { get }