PunchCardType
public struct PunchCardType : Codable, Equatable
Struct representing Punch Card Type related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int
-
Label of the punchcard type.
Declaration
Swift
public var label: String
-
Name of the punchcard type.
Declaration
Swift
public var name: String
-
Description of the punchcard type.
Declaration
Swift
public var description: String
-
Number of punches required to complete the punchcard type.
Declaration
Swift
public var requiredPunches: Int
-
Date when the punchcard type was created.
Declaration
Swift
public var created: String
-
Date when the punchcard type was published.
Declaration
Swift
public var publishedAt: String
-
Status of punchcard type.
Declaration
Swift
public var status: String
-
Expiration type of punchcard type.
Declaration
Swift
public var expirationType: String
-
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 response for punchcard.
Declaration
Swift
public var responseStartDate: String
-
End date of response for punchcard.
Declaration
Swift
public var responseEndDate: String
-
Response schedule of punchcard.
Declaration
Swift
public var responseSchedule: String
-
Flag if punchcard type is respondable.
Declaration
Swift
public var respondable: Bool
-
Respondable info of punchcard.
Declaration
Swift
public var respondableInfo: RespondableInfo?
-
Heading of the punchcard type.
Declaration
Swift
public var heading: String
-
Subheading of the punchcard type.
Declaration
Swift
public var subheading: String
-
Body of the punchcard type.
Declaration
Swift
public var body: String
-
Details of the punchcard type.
Declaration
Swift
public var details: String
-
Image URL of punchcard type.
Declaration
Swift
public var imageUrl: String
-
Thumbnail image URL of punchcard type.
Declaration
Swift
public var thumbImageUrl: String
-
Original image URL of punchcard type.
Declaration
Swift
public var originalImageUrl: String
-
Subject of punchcard type.
Declaration
Swift
public var subject: String
-
Action of punchcard type.
Declaration
Swift
public var action: String
-
Heading color of punchcard type.
Declaration
Swift
public var headingColor: String
-
Color of punchcard type.
Declaration
Swift
public var color: String
-
Background color of punchcard type.
Declaration
Swift
public var bgColor: String
-
Heading background color of punchcard type.
Declaration
Swift
public var headingBgColor: String
-
Image1 background of punchcard type.
Declaration
Swift
public var image1Bg: String
-
Layout ID of punchcard type.
Declaration
Swift
public var layoutId: String
-
init(id:
label: name: description: requiredPunches: created: publishedAt: status: expirationType: effectivityStart: effectivityEnd: responseStartDate: responseEndDate: responseSchedule: respondable: respondableInfo: heading: subheading: body: details: imageUrl: thumbImageUrl: originalImageUrl: subject: action: headingColor: color: bgColor: headingBgColor: image1Bg: layoutId: punches: rewards: locations: ) Undocumented
Declaration
Swift
public init(id: Int, label: String, name: String, description: String, requiredPunches: Int, created: String, publishedAt: String, status: String, expirationType: String, effectivityStart: String, effectivityEnd: String, responseStartDate: String, responseEndDate: String, responseSchedule: String, respondable: Bool, respondableInfo: RespondableInfo?, 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: [PunchCard.Punch], rewards: [PunchCard.Reward], locations: [PunchCard.Place])
-
Declaration
Swift
public init(from decoder: Decoder) throws