OrderDiscount
public class OrderDiscount : NSObject
Wrapper class to manage specific order discount feature
-
Discount with tax
Declaration
Swift
@objc public var discountTaxIncluded: Double
-
Discount without tax
Declaration
Swift
@objc public var discountTaxFree: Double
-
Promotional code
Declaration
Swift
@objc public var promotionalCode: String?
-
Attach discount to order
Declaration
Swift
@objc public func set(_ discountTaxFree: Double, discountTaxIncluded: Double, promotionalCode: String) -> Order
Parameters
discountTaxFree
discount value tax free
discountTaxIncluded
discount value tax included
promotionalCode
promotional code
Return Value
the Order instance