Code
public struct Code : Codable, Equatable
Struct representing Code related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int
-
Amount in metric name for primary prize.
Declaration
Swift
public var metricAmount: Double
-
Metric used for primary prize.
Declaration
Swift
public var metricName: String
-
Indicates if this code can still be used.
Declaration
Swift
public var respondable: Bool
-
Code that was passed.
Declaration
Swift
public var response: String
-
Response message if successful.
Declaration
Swift
public var responseMessage: String
-
Additional prize in form of a reward. This could be an award or a contest.
Declaration
Swift
public var rewardId: Int?
-
The reward’s name.
Declaration
Swift
public var rewardName: String
-
Amount in metric name for secondary prize.
Declaration
Swift
public var secondaryMetricAmount: Double
-
Metric used for secondary prize.
Declaration
Swift
public var secondaryMetricName: String
-
Status of the code whether it is approved, used or invalid.
Declaration
Swift
public var status: String
-
init(id:
metricAmount: metricName: respondable: response: responseMessage: rewardId: rewardName: secondaryMetricAmount: secondaryMetricName: status: ) Undocumented
Declaration
Swift
public init(id: Int, metricAmount: Double, metricName: String, respondable: Bool, response: String, responseMessage: String, rewardId: Int?, rewardName: String, secondaryMetricAmount: Double, secondaryMetricName: String, status: String)
-
Declaration
Swift
public init(from decoder: Decoder) throws