LineItem

@objc(_TtCCC15CloverConnector9CLVModels5Order8LineItem)
public class LineItem : NSObject, NSCoding, Mappable
  • id

    Unique identifier

    Declaration

    Swift

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

    Declaration

    Swift

    public var orderRef: CLVModels.Order.Order?
  • Inventory item used to create this line item

    Declaration

    Swift

    public var item: CLVModels.Inventory.Item?
  • Line item name

    Declaration

    Swift

    public var name: String?
  • Alternate name of the line item

    Declaration

    Swift

    public var alternateName: String?
  • Price of the item, typically in cents; use priceType and merchant currency to determine actual item price

    Declaration

    Swift

    public var price: Int?
  • Unit quantity

    Declaration

    Swift

    public var unitQty: Int?
  • Unit name (e.g. oz, lb, etc.)

    Declaration

    Swift

    public var unitName: String?
  • Declaration

    Swift

    public var itemCode: String?
  • Declaration

    Swift

    public var note: String?
  • Declaration

    Swift

    public var printed: Bool?
  • Declaration

    Swift

    public var exchangedLineItem: CLVModels.Order.LineItem?
  • Declaration

    Swift

    public var binName: String?
  • Declaration

    Swift

    public var userData: String?
  • Declaration

    Swift

    public var createdTime: Date?
  • Declaration

    Swift

    public var orderClientCreatedTime: Date?
  • Declaration

    Swift

    public var discounts: [CLVModels.Order.Discount]?
  • does the calculated flag actually do anything?

    Declaration

    Swift

    public var discountAmount: Int?
  • Declaration

    Swift

    public var exchanged: Bool?
  • Declaration

    Swift

    public var modifications: [CLVModels.Order.Modification]?
  • Declaration

    Swift

    public var refunded: Bool?
  • True if this item should be counted as revenue, for example gift cards and donations would not

    Declaration

    Swift

    public var isRevenue: Bool?
  • Declaration

    Swift

    public var taxRates: [CLVModels.Inventory.TaxRate]?
  • Payments that were made for this line item

    Declaration

    Swift

    public var payments: [CLVModels.Payments.LineItemPayment]?
  • 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)