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
DiscountCodeinstanceDeclaration
Swift
@objc public init(code: String, amount: Price)Parameters
codeThe discount code string
amountThe discounted amount
DiscountCode Class Reference