Coupon
struct Coupon : Codable
Represents a discount that can be redeemed by the user.
-
Unique id
Declaration
Swift
let _id: String
-
Presented at the top of the coupon in large font.
Declaration
Swift
let title: String
-
Descriptive text what the coupon is offereing.
Declaration
Swift
let text: String
-
The discount the coupons offers (1-100)%.
Declaration
Swift
let discountPercentage: Int
-
The date when the coupon expires.
Declaration
Swift
let expiration: Date