LineItem
This is an auto-generated Clover data object.
Fields
- id
- item
- colorCode
- name
- alternateName
- price
- priceWithModifiers
- priceWithModifiersAndItemAndOrderDiscounts
- unitQty
- unitName
- itemCode
- note
- printed
- exchangedLineItem
- binName
- userData
- createdTime
- orderClientCreatedTime
- discounts
- orderLevelDiscounts
- discountAmount
- orderLevelDiscountAmount
- exchanged
- modifications
- tags
- refunded
- refund
- isRevenue
- taxRates
- payments
- revenueAmount
- quantitySold
- printGroup
- hidden
- percentage
- orderFee
- isOrderFee
- isPlatformOrderFee
- orderFeeType
See also
Constructors
Link copied to clipboard
Constructs a new empty instance.
Constructs a new instance from the given JSON String.
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
Constructs a new instance that is a deep copy of the source instance.
Properties
Functions
Link copied to clipboard
Clears the 'alternateName' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'binName' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'colorCode' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'createdTime' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'discountAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'discounts' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'exchanged' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'exchangedLineItem' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'hidden' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'isOrderFee' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'isPlatformOrderFee' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'isRevenue' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'itemCode' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'modifications' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'orderClientCreatedTime' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'orderFee' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'orderFee' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'orderLevelDiscountAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'orderLevelDiscounts' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'payments' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'percentage' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'price' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'priceWithModifiers' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'priceWithModifiersAndItemAndOrderDiscounts' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'printed' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'printGroup' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'quantitySold' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'refund' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'refunded' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'revenueAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'taxRates' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'unitName' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'unitQty' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'userData' field, the 'has' method for this field will now return false
Link copied to clipboard
Returns true if this instance has any changes.
Link copied to clipboard
Create a copy of this instance that contains only fields that were set after the constructor was called.
Link copied to clipboard
Link copied to clipboard
Alternate name of the line item.
Link copied to clipboard
Link copied to clipboard
Hex code representation of the color assigned to item in the form of #fff, #ffffff, or #ffffffff.
Link copied to clipboard
Link copied to clipboard
Unnamed fixed discount amount in cents.
Link copied to clipboard
List of discounts applied to the line item.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
True if this line item is an order fee line item
Link copied to clipboard
True if this line item is an platform order fee line item
Link copied to clipboard
True if this item should be counted as revenue, for example gift cards and donations would not.
Link copied to clipboard
Link copied to clipboard
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
Link copied to clipboard
List of references to modifications applied to this line item.
Link copied to clipboard
Link copied to clipboard
A reference to the inventory order fee that was used to create this line item.
Link copied to clipboard
Used to define the type of order fee line item.
Link copied to clipboard
The calculated sum of order level discounts attributed, approximately to the nearest cent, to this the line item.
Link copied to clipboard
List of order level discounts attributed to this line item.
Link copied to clipboard
Payments that apply to this line item
Link copied to clipboard
For percentage based order fee line item, percent to charge times 10000, e.g.
Link copied to clipboard
Price of item after adding all modifications.
Link copied to clipboard
Price of item after adding all modifications and subtracting all line item and order level discounts.
Link copied to clipboard
True if this line item has been printed out on an order printer at least once already.
Link copied to clipboard
Optional reference to the print group that this line item belongs to.
Link copied to clipboard
Quantity sold for this line item.
Link copied to clipboard
True if this line item has been refunded
Link copied to clipboard
Revenue collected for this.
Link copied to clipboard
Tax rates that apply to this line item
Link copied to clipboard
Unit name (e.g.
Link copied to clipboard
This is applicable only if the item is priced by quantity of a unit.
Link copied to clipboard
Link copied to clipboard
Checks whether the 'alternateName' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'binName' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'colorCode' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'createdTime' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'discountAmount' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'discounts' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'exchanged' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'exchangedLineItem' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'isOrderFee' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'isPlatformOrderFee' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'isRevenue' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'itemCode' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'modifications' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'orderClientCreatedTime' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'orderFee' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'orderFeeType' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'orderLevelDiscountAmount' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'orderLevelDiscounts' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'payments' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'percentage' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'priceWithModifiers' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'priceWithModifiersAndItemAndOrderDiscounts' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'printed' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'printGroup' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'quantitySold' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'refunded' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'revenueAmount' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'taxRates' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'unitName' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'unitQty' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'userData' field has been set, however the value could be null
Link copied to clipboard
Checks whether the 'discounts' field is set and is not null and is not empty
Link copied to clipboard
Checks whether the 'modifications' field is set and is not null and is not empty
Link copied to clipboard
Checks whether the 'orderLevelDiscounts' field is set and is not null and is not empty
Link copied to clipboard
Checks whether the 'payments' field is set and is not null and is not empty
Link copied to clipboard
Checks whether the 'tags' field is set and is not null and is not empty
Link copied to clipboard
Checks whether the 'taxRates' field is set and is not null and is not empty
Link copied to clipboard
Checks whether the 'alternateName' field is set and is not null
Link copied to clipboard
Checks whether the 'binName' field is set and is not null
Link copied to clipboard
Checks whether the 'colorCode' field is set and is not null
Link copied to clipboard
Checks whether the 'createdTime' field is set and is not null
Link copied to clipboard
Checks whether the 'discountAmount' field is set and is not null
Link copied to clipboard
Checks whether the 'discounts' field is set and is not null
Link copied to clipboard
Checks whether the 'exchanged' field is set and is not null
Link copied to clipboard
Checks whether the 'exchangedLineItem' field is set and is not null
Link copied to clipboard
Checks whether the 'hidden' field is set and is not null
Link copied to clipboard
Checks whether the 'id' field is set and is not null
Link copied to clipboard
Checks whether the 'isOrderFee' field is set and is not null
Link copied to clipboard
Checks whether the 'isPlatformOrderFee' field is set and is not null
Link copied to clipboard
Checks whether the 'isRevenue' field is set and is not null
Link copied to clipboard
Checks whether the 'item' field is set and is not null
Link copied to clipboard
Checks whether the 'itemCode' field is set and is not null
Link copied to clipboard
Checks whether the 'modifications' field is set and is not null
Link copied to clipboard
Checks whether the 'name' field is set and is not null
Link copied to clipboard
Checks whether the 'note' field is set and is not null
Link copied to clipboard
Checks whether the 'orderClientCreatedTime' field is set and is not null
Link copied to clipboard
Checks whether the 'orderFee' field is set and is not null
Link copied to clipboard
Checks whether the 'orderFeeType' field is set and is not null
Link copied to clipboard
Checks whether the 'orderLevelDiscountAmount' field is set and is not null
Link copied to clipboard
Checks whether the 'orderLevelDiscounts' field is set and is not null
Link copied to clipboard
Checks whether the 'payments' field is set and is not null
Link copied to clipboard
Checks whether the 'percentage' field is set and is not null
Link copied to clipboard
Checks whether the 'price' field is set and is not null
Link copied to clipboard
Checks whether the 'priceWithModifiers' field is set and is not null
Link copied to clipboard
Checks whether the 'priceWithModifiersAndItemAndOrderDiscounts' field is set and is not null
Link copied to clipboard
Checks whether the 'printed' field is set and is not null
Link copied to clipboard
Checks whether the 'printGroup' field is set and is not null
Link copied to clipboard
Checks whether the 'quantitySold' field is set and is not null
Link copied to clipboard
Checks whether the 'refund' field is set and is not null
Link copied to clipboard
Checks whether the 'refunded' field is set and is not null
Link copied to clipboard
Checks whether the 'revenueAmount' field is set and is not null
Link copied to clipboard
Checks whether the 'tags' field is set and is not null
Link copied to clipboard
Checks whether the 'taxRates' field is set and is not null
Link copied to clipboard
Checks whether the 'unitName' field is set and is not null
Link copied to clipboard
Checks whether the 'unitQty' field is set and is not null
Link copied to clipboard
Checks whether the 'userData' field is set and is not null
Link copied to clipboard
Copy all the changed fields from the given source to this instance.
Link copied to clipboard
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
Link copied to clipboard
Sets the field 'alternateName'.
Link copied to clipboard
Sets the field 'binName'.
Link copied to clipboard
Sets the field 'colorCode'.
Link copied to clipboard
Sets the field 'createdTime'.
Link copied to clipboard
Sets the field 'discountAmount'.
Link copied to clipboard
Sets the field 'discounts'.
Link copied to clipboard
Sets the field 'exchanged'.
Link copied to clipboard
Sets the field 'exchangedLineItem'.
Link copied to clipboard
Sets the field 'isOrderFee'.
Link copied to clipboard
Sets the field 'isPlatformOrderFee'.
Link copied to clipboard
Sets the field 'isRevenue'.
Link copied to clipboard
Sets the field 'itemCode'.
Link copied to clipboard
Sets the field 'modifications'.
Link copied to clipboard
Sets the field 'orderClientCreatedTime'.
Link copied to clipboard
Sets the field 'orderFee'.
Link copied to clipboard
Sets the field 'orderFeeType'.
Link copied to clipboard
Sets the field 'orderLevelDiscountAmount'.
Link copied to clipboard
Sets the field 'orderLevelDiscounts'.
Link copied to clipboard
Sets the field 'payments'.
Link copied to clipboard
Sets the field 'percentage'.
Link copied to clipboard
Sets the field 'priceWithModifiers'.
Link copied to clipboard
public LineItem setPriceWithModifiersAndItemAndOrderDiscounts(Long priceWithModifiersAndItemAndOrderDiscounts)
Sets the field 'priceWithModifiersAndItemAndOrderDiscounts'.
Link copied to clipboard
Sets the field 'printed'.
Link copied to clipboard
Sets the field 'printGroup'.
Link copied to clipboard
Sets the field 'quantitySold'.
Link copied to clipboard
Sets the field 'refunded'.
Link copied to clipboard
Sets the field 'revenueAmount'.
Link copied to clipboard
Sets the field 'taxRates'.
Link copied to clipboard
Sets the field 'unitName'.
Link copied to clipboard
Sets the field 'unitQty'.
Link copied to clipboard
Sets the field 'userData'.
Link copied to clipboard