Discount

@objc(_TtCCC15CloverConnector9CLVModels5Order8Discount)
public class Discount : NSObject, NSCoding, Mappable
  • id

    Unique identifier

    Declaration

    Swift

    public var id: String?
  • The order with which the discount is associated

    Declaration

    Swift

    public var orderRef: CLVModels.Order.Order?
  • The lineItem with which the discount is associated

    Declaration

    Swift

    public var lineItemRef: CLVModels.Order.LineItem?
  • If this item is based on a standard discount, this will point to the appropriate inventory.Discount

    Declaration

    Swift

    public var discount: CLVModels.Inventory.Discount?
  • Name of the discount

    Declaration

    Swift

    public var name: String?
  • Discount amount in fraction of currency unit (e.g. cents) based on currency fraction digits supported

    Declaration

    Swift

    public var amount: Int?
  • Discount amount in percent

    Declaration

    Swift

    public var percentage: Int?
  • Declaration

    Swift

    public func encode(with aCoder: NSCoder)
  • Declaration

    Swift

    required public init(coder aDecoder: NSCoder)
  • Declaration

    Swift

    override public init()
  • Declaration

    Swift

    required public init?(map: Map)
  • Declaration

    Swift

    public func mapping(map: Map)