PunchCard
public struct PunchCard : Codable, Equatable
Struct representing Punch Card related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int
-
Name of punchcard.
Declaration
Swift
public var name: String
-
Label of punchcard.
Declaration
Swift
public var label: String
-
Status of punchcard.
Declaration
Swift
public var status: String
-
Description of punchcard.
Declaration
Swift
public var description: String
-
Number of punches required to complete the punchcard.
Declaration
Swift
public var requiredPunches: Int
-
Start of effectivity of punchcard.
Declaration
Swift
public var effectivityStart: String
-
End of effectivity of punchcard.
Declaration
Swift
public var effectivityEnd: String
-
Start date of usage of punchcard.
Declaration
Swift
public var usageStartDate: String
-
End date of usage of punchcard.
Declaration
Swift
public var usageEndDate: String
-
Schedule of usage of punchcard.
Declaration
Swift
public var usageSchedule: String
-
Heading of punchcard.
Declaration
Swift
public var heading: String
-
Subheading of punchcard.
Declaration
Swift
public var subheading: String
-
Body of punchcard.
Declaration
Swift
public var body: String
-
Details of punchcard.
Declaration
Swift
public var details: String
-
The main image url for the punchcard.
Declaration
Swift
public var imageUrl: String
-
The main image’s thumbnail for the punchcard.
Declaration
Swift
public var thumbImageUrl: String
-
Original image URL of punchcard.
Declaration
Swift
public var originalImageUrl: String
-
Subject of punchcard.
Declaration
Swift
public var subject: String
-
Action of punchcard.
Declaration
Swift
public var action: String
-
Heading color of punchcard.
Declaration
Swift
public var headingColor: String
-
Color of punchcard.
Declaration
Swift
public var color: String
-
Background color of punchcard.
Declaration
Swift
public var bgColor: String
-
Heading background color of punchcard.
Declaration
Swift
public var headingBgColor: String
-
Image 1 background of punchcard.
Declaration
Swift
public var image1Bg: String
-
Layout ID of punchcard.
Declaration
Swift
public var layoutId: String
-
Current number of punches earned by the user for the punchcard.
Declaration
Swift
public var punches: Int
-
Start date of punchcard.
Declaration
Swift
public var startDate: String
-
Expiration of punchcard.
Declaration
Swift
public var expiration: String
-
Array of punch card details.
Declaration
Swift
public var punchDetail: [PunchCard.Detail]
-
Punchcard type of punchcard.
Declaration
Swift
public var punchCardType: PunchCard.PunchCardType?
-
init(id:
name: label: status: description: requiredPunches: effectivityStart: effectivityEnd: usageStartDate: usageEndDate: usageSchedule: heading: subheading: body: details: imageUrl: thumbImageUrl: originalImageUrl: subject: action: headingColor: color: bgColor: headingBgColor: image1Bg: layoutId: punches: startDate: expiration: punchDetail: punchCardType: ) Undocumented
Declaration
Swift
public init(id: Int, name: String, label: String, status: String, description: String, requiredPunches: Int, effectivityStart: String, effectivityEnd: String, usageStartDate: String, usageEndDate: String, usageSchedule: String, heading: String, subheading: String, body: String, details: String, imageUrl: String, thumbImageUrl: String, originalImageUrl: String, subject: String, action: String, headingColor: String, color: String, bgColor: String, headingBgColor: String, image1Bg: String, layoutId: String, punches: Int, startDate: String, expiration: String, punchDetail: [PunchCard.Detail], punchCardType: PunchCard.PunchCardType?)
-
Struct representing Punch Card Detail related values.
See moreDeclaration
Swift
public struct Detail : Codable, Equatable
-
Struct representing Punch Card Type related values.
See moreDeclaration
Swift
public struct PunchCardType : Codable, Equatable
-
Struct representing Punch Card “Punch” related values.
See moreDeclaration
Swift
public struct Punch : Codable, Equatable
-
Struct representing Punch Card Reward related values.
See moreDeclaration
Swift
public struct Reward : Codable, Equatable
-
Place object specifically for PunchCard object.
Note
This structure is different from thePlace
object in thePlaces
Module, but its id property can be used to obtain aPlace
object from the API.Declaration
Swift
public struct Place : Codable, Equatable
-
Declaration
Swift
public init(from decoder: Decoder) throws