DiscountCode
@objc(GFYDiscountCode)
public class DiscountCode : NSObject, Encodable
Represents an order discount code
-
The discount code string
Typically this is some coupon or promo code string entered by the user to apply the discount to the order.
Declaration
Swift
@objc public let code: String
-
The discounted amount
Declaration
Swift
@objc public let amount: Price
-
Creates a
DiscountCode
instanceDeclaration
Swift
@objc public init(code: String, amount: Price)
Parameters
code
The discount code string
amount
The discounted amount