Reward
public struct Reward : Codable, Equatable
extension Reward: SecondaryPrize
Struct representing Reward related values.
-
Value representing the entity id.
Declaration
Swift
public var id: Int
-
Stock keeping unit of the reward.
Declaration
Swift
public var sku: String
-
Heading label of the reward.
Declaration
Swift
public var heading: String
-
Subheading label of the reward.
Declaration
Swift
public var subHeading: String
-
Body text of the reward.
Declaration
Swift
public var body: String
-
Details of the reward.
Declaration
Swift
public var details: String
-
Metric name used in the reward.
Declaration
Swift
public var metricDisplayName: String
-
Url of the image attached to the reward.
Declaration
Swift
public var imageUrl: String
-
Url of the thumbnail image attached to the reward.
Declaration
Swift
public var thumbnailUrl: String
-
Reward type.
Declaration
Swift
public var type: Reward.RewardType?
-
Starting date of the reward.
Declaration
Swift
public var startDate: String
-
Ending date of the reward.
Declaration
Swift
public var endDate: String
-
Draw date of the reward.
Declaration
Swift
public var drawDate: String
-
Attributes of the reward.
Declaration
Swift
public var attributes: [Reward.Attribute]
-
Attributes of the reward classes.
Declaration
Swift
public var requiredAttributes: [Reward.Class]
-
Combinations of the reward.
Declaration
Swift
public var combinations: [Reward.AttributeCombination]
-
Selected combinations of the reward.
Declaration
Swift
public var selectedCombination: Reward.AttributeCombination?
-
Redeem options of the reward.
Declaration
Swift
public var redemptionOptions: [RedemptionOptions]
-
Points required by the reward.
Declaration
Swift
public var points: String
-
Member response count for reward.
Declaration
Swift
public var responseCount: Int
-
Boolean value if award is respondable.
Declaration
Swift
public var isRespondable: Bool
-
Booolean value if award is favorited.
Declaration
Swift
public var isFavorited: Bool
-
Boolean value if user is required to have an address.
Declaration
Swift
public var addressRequired: Bool
-
Boolean value if award is already awarded.
Declaration
Swift
public var isAwarded: Bool
-
The payment method of the reward.
Declaration
Swift
public var paymentMethod: String
-
The action to be done.
Declaration
Swift
public var action: String
-
The currency amount of the response as
String
.Declaration
Swift
public var responseCurrencyAmount: String
-
The currency name of the response.
Declaration
Swift
public var responseCurrencyName: String
-
The expiration interval of the reward.
Declaration
Swift
public var expirationInterval: String
-
The expirateion period of the reward.
Declaration
Swift
public var expirationPeriod: String
-
Reward’s respondable information.
Declaration
Swift
public var respondableInfo: RespondableInfo?
-
Embededd objects in the reward.
Declaration
Swift
public var embedded: AnyCodable?
-
Boolean value whether acceptance is required or not.
Declaration
Swift
public var isAcceptanceRequired: Bool
-
The string as the acceptance text to display in the view.
Declaration
Swift
public var acceptanceText: String
-
The string value of the url to redirect the acceptance link.
Declaration
Swift
public var acceptanceUrl: String
-
The action to be done.
Declaration
Swift
public var responseMessage: String
-
Business value of the reward.
Declaration
Swift
public var businessValue: String
-
Maximum metric for transfer
Declaration
Swift
public var maximumMetric: String
-
Minimum metric for transfer
Declaration
Swift
public var minimumMetric: String
-
Boolean value whether there’s at least 1 respondable combination.
Declaration
Swift
public var hasRespondableCombination: Bool { get }
-
Extra Json added on the offer object
Declaration
Swift
public var extraJSON: [String : AnyCodable]
-
init(id:
sku: heading: subHeading: body: details: metricDisplayName: imageUrl: thumbnailUrl: type: startDate: endDate: drawDate: attributes: requiredAttributes: combinations: selectedCombination: redemptionOptions: points: responseCount: isRespondable: isFavorited: addressRequired: isAwarded: paymentMethod: action: responseCurrencyAmount: responseCurrencyName: expirationInterval: expirationPeriod: respondableInfo: embedded: isAcceptanceRequired: acceptanceText: acceptanceUrl: responseMessage: businessValue: maximumMetric: minimumMetric: extraJSON: ) Undocumented
Declaration
Swift
public init(id: Int, sku: String, heading: String, subHeading: String, body: String, details: String, metricDisplayName: String, imageUrl: String, thumbnailUrl: String, type: RewardType?, startDate: String, endDate: String, drawDate: String, attributes: [Reward.Attribute], requiredAttributes: [Reward.Class], combinations: [Reward.AttributeCombination], selectedCombination: Reward.AttributeCombination?, redemptionOptions: [RedemptionOptions], points: String, responseCount: Int, isRespondable: Bool, isFavorited: Bool, addressRequired: Bool, isAwarded: Bool, paymentMethod: String, action: String, responseCurrencyAmount: String, responseCurrencyName: String, expirationInterval: String, expirationPeriod: String, respondableInfo: RespondableInfo?, embedded: AnyCodable?, isAcceptanceRequired: Bool, acceptanceText: String, acceptanceUrl: String, responseMessage: String, businessValue: String, maximumMetric: String, minimumMetric: String, extraJSON: [String: AnyCodable])
-
Enum representing type of a reward.
See moreDeclaration
Swift
public enum RewardType : String, Codable
-
Enum representing redeem options of a reward.
See moreDeclaration
Swift
public enum RedemptionOptions : String, Codable
-
Struct representing Reward Class related values.
See moreDeclaration
Swift
public struct Class : Codable, Equatable
-
Struct representing Reward Response related values.
See moreDeclaration
Swift
public struct Response : Codable, Equatable
-
Struct representing reward response info values.
See moreDeclaration
Swift
public struct ResponseInfo : Codable, Equatable
-
Struct representing Reward Category related values.
See moreDeclaration
Swift
public struct Category : Codable, Equatable
-
Struct representing Reward Attribute related values.
See moreDeclaration
Swift
public struct Attribute : Codable, Equatable
-
Struct representing Reward Attribute Combination related values.
See moreDeclaration
Swift
public struct AttributeCombination : Codable, Equatable
-
Struct representing Reward Attribute Option related values.
See moreDeclaration
Swift
public struct AttributeOption : Codable, Equatable
-
Declaration
Swift
public init(from decoder: Decoder) throws