|
|
|
|
@ -11,6 +11,7 @@ public enum StoreItem: String, Identifiable, CaseIterable { |
|
|
|
|
case monthlyUnlimited = "app.padelclub.tournament.subscription.unlimited" |
|
|
|
|
case fivePerMonth = "app.padelclub.tournament.subscription.five.per.month" |
|
|
|
|
case unit = "app.padelclub.tournament.unit" |
|
|
|
|
case unit10Pack = "app.padelclub.tournament.unit.10" |
|
|
|
|
|
|
|
|
|
#if DEBUG |
|
|
|
|
public static let five: Int = 2 |
|
|
|
|
@ -25,13 +26,14 @@ public enum StoreItem: String, Identifiable, CaseIterable { |
|
|
|
|
case .monthlyUnlimited: return "infinity.circle.fill" |
|
|
|
|
case .fivePerMonth: return "star.circle.fill" |
|
|
|
|
case .unit: return "tennisball.circle.fill" |
|
|
|
|
case .unit10Pack: return "10.circle.fill" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public var isConsumable: Bool { |
|
|
|
|
switch self { |
|
|
|
|
case .monthlyUnlimited, .fivePerMonth: return false |
|
|
|
|
case .unit: return true |
|
|
|
|
case .unit, .unit10Pack: return true |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|