Constructors

Link copied to clipboard
public void LineItem()
Constructs a new empty instance.
public void LineItem(String json)
Constructs a new instance from the given JSON String.
public void LineItem(JSONObject jsonObject)
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.
public void LineItem(LineItem src)
Constructs a new instance that is a deep copy of the source instance.

Types

Link copied to clipboard
public interface Constraints

Properties

Link copied to clipboard
public final static int CONTENTS_FILE_DESCRIPTOR
Link copied to clipboard
public final static Parcelable.Creator<LineItem> CREATOR
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearAlternateName()
Clears the 'alternateName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearBinName()
Clears the 'binName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearColorCode()
Clears the 'colorCode' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDiscounts()
Clears the 'discounts' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearExchanged()
Clears the 'exchanged' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearExchangedLineItem()
Clears the 'exchangedLineItem' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearHidden()
Clears the 'hidden' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearIsOrderFee()
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
public void clearIsRevenue()
Clears the 'isRevenue' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearItem()
Clears the 'item' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearItemCode()
Clears the 'itemCode' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearModifications()
Clears the 'modifications' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearNote()
Clears the 'note' 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
public void clearOrderFee()
Clears the 'orderFee' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearOrderFeeType()
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
public void clearPayments()
Clears the 'payments' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearPercentage()
Clears the 'percentage' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearPrice()
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
Clears the 'priceWithModifiersAndItemAndOrderDiscounts' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearPrinted()
Clears the 'printed' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearPrintGroup()
Clears the 'printGroup' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearQuantitySold()
Clears the 'quantitySold' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearRefund()
Clears the 'refund' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearRefunded()
Clears the 'refunded' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearRevenueAmount()
Clears the 'revenueAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTags()
Clears the 'tags' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTaxRates()
Clears the 'taxRates' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearUnitName()
Clears the 'unitName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearUnitQty()
Clears the 'unitQty' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearUserData()
Clears the 'userData' field, the 'has' method for this field will now return false
Link copied to clipboard
public boolean containsChanges()
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
public abstract int describeContents()
public final int describeContents()
Link copied to clipboard
Alternate name of the line item.
Link copied to clipboard
public String getBinName()
Link copied to clipboard
public final Bundle getBundle()
Gets a Bundle which can be used to get and set data attached to this instance.
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
public Boolean getHidden()
True if this line item has been marked as hidden on User Interface like Orders page and receipts
Link copied to clipboard
public String getId()
Unique identifier.
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
public Reference getItem()
A reference to the inventory item that was used to create this line item.
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
public String getName()
Line item name.
Link copied to clipboard
public String getNote()
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
public Long getPrice()
Price of the item, typically in cents of merchant currency.
Link copied to clipboard
Price of item after adding all modifications.
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
public Refund getRefund()
direct item refund
Link copied to clipboard
True if this line item has been refunded
Link copied to clipboard
Revenue collected for this.
Link copied to clipboard
public List<Tag> getTags()
List of tags associated with this line item.
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
public boolean hasAlternateName()
Checks whether the 'alternateName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasBinName()
Checks whether the 'binName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasColorCode()
Checks whether the 'colorCode' field has been set, however the value could be null
Link copied to clipboard
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDiscounts()
Checks whether the 'discounts' field has been set, however the value could be null
Link copied to clipboard
public boolean hasExchanged()
Checks whether the 'exchanged' field has been set, however the value could be null
Link copied to clipboard
public boolean hasExchangedLineItem()
Checks whether the 'exchangedLineItem' field has been set, however the value could be null
Link copied to clipboard
public boolean hasHidden()
Checks whether the 'hidden' field has been set, however the value could be null
Link copied to clipboard
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
Link copied to clipboard
public boolean hasIsOrderFee()
Checks whether the 'isOrderFee' field has been set, however the value could be null
Link copied to clipboard
public boolean hasIsPlatformOrderFee()
Checks whether the 'isPlatformOrderFee' field has been set, however the value could be null
Link copied to clipboard
public boolean hasIsRevenue()
Checks whether the 'isRevenue' field has been set, however the value could be null
Link copied to clipboard
public boolean hasItem()
Checks whether the 'item' field has been set, however the value could be null
Link copied to clipboard
public boolean hasItemCode()
Checks whether the 'itemCode' field has been set, however the value could be null
Link copied to clipboard
public boolean hasModifications()
Checks whether the 'modifications' field has been set, however the value could be null
Link copied to clipboard
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
Link copied to clipboard
public boolean hasNote()
Checks whether the 'note' field has been set, however the value could be null
Link copied to clipboard
public boolean hasOrderClientCreatedTime()
Checks whether the 'orderClientCreatedTime' field has been set, however the value could be null
Link copied to clipboard
public boolean hasOrderFee()
Checks whether the 'orderFee' field has been set, however the value could be null
Link copied to clipboard
public boolean hasOrderFeeType()
Checks whether the 'orderFeeType' field has been set, however the value could be null
Link copied to clipboard
public boolean hasOrderLevelDiscountAmount()
Checks whether the 'orderLevelDiscountAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasOrderLevelDiscounts()
Checks whether the 'orderLevelDiscounts' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPayments()
Checks whether the 'payments' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPercentage()
Checks whether the 'percentage' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPrice()
Checks whether the 'price' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPriceWithModifiers()
Checks whether the 'priceWithModifiers' field has been set, however the value could be null
Checks whether the 'priceWithModifiersAndItemAndOrderDiscounts' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPrinted()
Checks whether the 'printed' field has been set, however the value could be null
Link copied to clipboard
public boolean hasPrintGroup()
Checks whether the 'printGroup' field has been set, however the value could be null
Link copied to clipboard
public boolean hasQuantitySold()
Checks whether the 'quantitySold' field has been set, however the value could be null
Link copied to clipboard
public boolean hasRefund()
Checks whether the 'refund' field has been set, however the value could be null
Link copied to clipboard
public boolean hasRefunded()
Checks whether the 'refunded' field has been set, however the value could be null
Link copied to clipboard
public boolean hasRevenueAmount()
Checks whether the 'revenueAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTags()
Checks whether the 'tags' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTaxRates()
Checks whether the 'taxRates' field has been set, however the value could be null
Link copied to clipboard
public boolean hasUnitName()
Checks whether the 'unitName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasUnitQty()
Checks whether the 'unitQty' field has been set, however the value could be null
Link copied to clipboard
public boolean hasUserData()
Checks whether the 'userData' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotEmptyDiscounts()
Checks whether the 'discounts' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotEmptyModifications()
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
public boolean isNotEmptyPayments()
Checks whether the 'payments' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotEmptyTags()
Checks whether the 'tags' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotEmptyTaxRates()
Checks whether the 'taxRates' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotNullAlternateName()
Checks whether the 'alternateName' field is set and is not null
Link copied to clipboard
public boolean isNotNullBinName()
Checks whether the 'binName' field is set and is not null
Link copied to clipboard
public boolean isNotNullColorCode()
Checks whether the 'colorCode' field is set and is not null
Link copied to clipboard
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
Link copied to clipboard
public boolean isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullDiscounts()
Checks whether the 'discounts' field is set and is not null
Link copied to clipboard
public boolean isNotNullExchanged()
Checks whether the 'exchanged' field is set and is not null
Link copied to clipboard
public boolean isNotNullExchangedLineItem()
Checks whether the 'exchangedLineItem' field is set and is not null
Link copied to clipboard
public boolean isNotNullHidden()
Checks whether the 'hidden' field is set and is not null
Link copied to clipboard
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
Link copied to clipboard
public boolean isNotNullIsOrderFee()
Checks whether the 'isOrderFee' field is set and is not null
Link copied to clipboard
public boolean isNotNullIsPlatformOrderFee()
Checks whether the 'isPlatformOrderFee' field is set and is not null
Link copied to clipboard
public boolean isNotNullIsRevenue()
Checks whether the 'isRevenue' field is set and is not null
Link copied to clipboard
public boolean isNotNullItem()
Checks whether the 'item' field is set and is not null
Link copied to clipboard
public boolean isNotNullItemCode()
Checks whether the 'itemCode' field is set and is not null
Link copied to clipboard
public boolean isNotNullModifications()
Checks whether the 'modifications' field is set and is not null
Link copied to clipboard
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
Link copied to clipboard
public boolean isNotNullNote()
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
public boolean isNotNullOrderFee()
Checks whether the 'orderFee' field is set and is not null
Link copied to clipboard
public boolean isNotNullOrderFeeType()
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
public boolean isNotNullPayments()
Checks whether the 'payments' field is set and is not null
Link copied to clipboard
public boolean isNotNullPercentage()
Checks whether the 'percentage' field is set and is not null
Link copied to clipboard
public boolean isNotNullPrice()
Checks whether the 'price' field is set and is not null
Link copied to clipboard
public boolean isNotNullPriceWithModifiers()
Checks whether the 'priceWithModifiers' field is set and is not null
Checks whether the 'priceWithModifiersAndItemAndOrderDiscounts' field is set and is not null
Link copied to clipboard
public boolean isNotNullPrinted()
Checks whether the 'printed' field is set and is not null
Link copied to clipboard
public boolean isNotNullPrintGroup()
Checks whether the 'printGroup' field is set and is not null
Link copied to clipboard
public boolean isNotNullQuantitySold()
Checks whether the 'quantitySold' field is set and is not null
Link copied to clipboard
public boolean isNotNullRefund()
Checks whether the 'refund' field is set and is not null
Link copied to clipboard
public boolean isNotNullRefunded()
Checks whether the 'refunded' field is set and is not null
Link copied to clipboard
public boolean isNotNullRevenueAmount()
Checks whether the 'revenueAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullTags()
Checks whether the 'tags' field is set and is not null
Link copied to clipboard
public boolean isNotNullTaxRates()
Checks whether the 'taxRates' field is set and is not null
Link copied to clipboard
public boolean isNotNullUnitName()
Checks whether the 'unitName' field is set and is not null
Link copied to clipboard
public boolean isNotNullUnitQty()
Checks whether the 'unitQty' field is set and is not null
Link copied to clipboard
public boolean isNotNullUserData()
Checks whether the 'userData' field is set and is not null
Link copied to clipboard
public void mergeChanges(LineItem src)
Copy all the changed fields from the given source to this instance.
Link copied to clipboard
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
Link copied to clipboard
public LineItem setAlternateName(String alternateName)
Sets the field 'alternateName'.
Link copied to clipboard
public LineItem setBinName(String binName)
Sets the field 'binName'.
Link copied to clipboard
public LineItem setColorCode(String colorCode)
Sets the field 'colorCode'.
Link copied to clipboard
public LineItem setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
Link copied to clipboard
public LineItem setDiscountAmount(Long discountAmount)
Sets the field 'discountAmount'.
Link copied to clipboard
public LineItem setDiscounts(List<Discount> discounts)
Sets the field 'discounts'.
Link copied to clipboard
public LineItem setExchanged(Boolean exchanged)
Sets the field 'exchanged'.
Link copied to clipboard
public LineItem setExchangedLineItem(Reference exchangedLineItem)
Sets the field 'exchangedLineItem'.
Link copied to clipboard
public LineItem setHidden(Boolean hidden)
Sets the field 'hidden'.
Link copied to clipboard
public LineItem setId(String id)
Sets the field 'id'.
Link copied to clipboard
public LineItem setIsOrderFee(Boolean isOrderFee)
Sets the field 'isOrderFee'.
Link copied to clipboard
public LineItem setIsPlatformOrderFee(Boolean isPlatformOrderFee)
Sets the field 'isPlatformOrderFee'.
Link copied to clipboard
public LineItem setIsRevenue(Boolean isRevenue)
Sets the field 'isRevenue'.
Link copied to clipboard
public LineItem setItem(Reference item)
Sets the field 'item'.
Link copied to clipboard
public LineItem setItemCode(String itemCode)
Sets the field 'itemCode'.
Link copied to clipboard
public LineItem setModifications(List<Modification> modifications)
Sets the field 'modifications'.
Link copied to clipboard
public LineItem setName(String name)
Sets the field 'name'.
Link copied to clipboard
public LineItem setNote(String note)
Sets the field 'note'.
Link copied to clipboard
public LineItem setOrderClientCreatedTime(Long orderClientCreatedTime)
Sets the field 'orderClientCreatedTime'.
Link copied to clipboard
public LineItem setOrderFee(Reference orderFee)
Sets the field 'orderFee'.
Link copied to clipboard
public LineItem setOrderFeeType(String orderFeeType)
Sets the field 'orderFeeType'.
Link copied to clipboard
public LineItem setOrderLevelDiscountAmount(Long orderLevelDiscountAmount)
Sets the field 'orderLevelDiscountAmount'.
Link copied to clipboard
public LineItem setOrderLevelDiscounts(List<Discount> orderLevelDiscounts)
Sets the field 'orderLevelDiscounts'.
Link copied to clipboard
Sets the field 'payments'.
Link copied to clipboard
public LineItem setPercentage(Long percentage)
Sets the field 'percentage'.
Link copied to clipboard
public LineItem setPrice(Long price)
Sets the field 'price'.
Link copied to clipboard
public LineItem setPriceWithModifiers(Long priceWithModifiers)
Sets the field 'priceWithModifiers'.
public LineItem setPriceWithModifiersAndItemAndOrderDiscounts(Long priceWithModifiersAndItemAndOrderDiscounts)
Sets the field 'priceWithModifiersAndItemAndOrderDiscounts'.
Link copied to clipboard
public LineItem setPrinted(Boolean printed)
Sets the field 'printed'.
Link copied to clipboard
public LineItem setPrintGroup(Reference printGroup)
Sets the field 'printGroup'.
Link copied to clipboard
public LineItem setQuantitySold(Double quantitySold)
Sets the field 'quantitySold'.
Link copied to clipboard
public LineItem setRefund(Refund refund)
Sets the field 'refund'.
Link copied to clipboard
public LineItem setRefunded(Boolean refunded)
Sets the field 'refunded'.
Link copied to clipboard
public LineItem setRevenueAmount(Long revenueAmount)
Sets the field 'revenueAmount'.
Link copied to clipboard
public LineItem setTags(List<Tag> tags)
Sets the field 'tags'.
Link copied to clipboard
public LineItem setTaxRates(List<TaxRate> taxRates)
Sets the field 'taxRates'.
Link copied to clipboard
public LineItem setUnitName(String unitName)
Sets the field 'unitName'.
Link copied to clipboard
public LineItem setUnitQty(Integer unitQty)
Sets the field 'unitQty'.
Link copied to clipboard
public LineItem setUserData(String userData)
Sets the field 'userData'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void validate()
Link copied to clipboard
public abstract void writeToParcel(Parcel p, int p1)
public final void writeToParcel(Parcel dest, int flags)