RewardItem
@objc public class RewardItem: NSObject, Gloss.Decodable
Data object representing a reward for a product upon successful purchase.
-
The type of reward to give.
Declaration
Swift
public var rewardType = "" -
A float amount representing the amount to give.
Declaration
Swift
public var amount: Int = 0 -
Returns a special string outputing all the class’s data.
Declaration
Swift
public override var description: String -
Initializes a
RewardItemobject from a JSON object.Declaration
Swift
public required init?(json: JSON)Parameters
jsonThe json object to parse.
RewardItem Class Reference