DiscountCoupon
public struct DiscountCoupon : Decodable
Holds information about a discount.
-
DiscountStatus
of the current discountDeclaration
Swift
public let status: DisountCouponStatus
-
The title or name of the
Discount
. Explains what theDiscount
is about.Declaration
Swift
public let title: String
-
The Terms and Conditions URL for the
Discount
Declaration
Swift
public let termsAndConditions: URL
-
The amount of the
Discount
Declaration
Swift
public let amount: Price
-
The
Discount
tokenDeclaration
Swift
public let discountToken: String
-
Declaration
Swift
public init(from decoder: Decoder) throws