OrderDiscount
public class OrderDiscount: NSObject
Wrapper class to manage specific order discount feature
-
Discount with tax
Declaration
Swift
public var discountTaxIncluded: Double = -1 -
Discount without tax
Declaration
Swift
public var discountTaxFree: Double = -1 -
Promotional code
Declaration
Swift
public var promotionalCode: String? -
Attach discount to order
Declaration
Swift
public func set(_ discountTaxFree: Double, discountTaxIncluded: Double, promotionalCode: String) -> OrderParameters
discountTaxFreediscount value tax free
discountTaxIncludeddiscount value tax included
promotionalCodepromotional code
Return Value
the Order instance
OrderDiscount Class Reference