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) -> Order

    Parameters

    discountTaxFree

    discount value tax free

    discountTaxIncluded

    discount value tax included

    promotionalCode

    promotional code

    Return Value

    the Order instance