Reward

public struct Reward : Codable, Equatable

Struct representing Punch Card Reward related values.

  • id

    Value representing the entity id.

    Declaration

    Swift

    public var id: Int
  • Number of punches of punchcard reward.

    Declaration

    Swift

    public var punches: Int
  • Prize name of punchcard reward.

    Declaration

    Swift

    public var prizeName: String
  • Prize description of punchcard reward.

    Declaration

    Swift

    public var prizeDescription: String
  • Prize ID of punchcard reward.

    Declaration

    Swift

    public var prizeId: Int
  • Prize type of punchcard reward.

    Declaration

    Swift

    public var prizeType: String
  • Metric name of punchcard reward.

    Declaration

    Swift

    public var metricName: String
  • Metric amount of punchcard reward.

    Declaration

    Swift

    public var metricAmount: String
  • Flag to check upgrade tier of punchcard reward.

    Declaration

    Swift

    public var upgradeTier: Bool
  • Undocumented

    Declaration

    Swift

    public init(id: Int, punches: Int, prizeName: String, prizeDescription: String, prizeId: Int,
                prizeType: String, metricName: String, metricAmount: String, upgradeTier: Bool)
  • Declaration

    Swift

    public init(from decoder: Decoder) throws