Constructors

Link copied to clipboard
public void DisplayOrder()
Constructs a new empty instance.
public void DisplayOrder(String json)
Constructs a new instance from the given JSON String.
public void DisplayOrder(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 DisplayOrder(DisplayOrder 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
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearAmountRemaining()
Clears the 'amountRemaining' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearCurrency()
Clears the 'currency' 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 clearEmployee()
Clears the 'employee' 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 clearIsVat()
Clears the 'isVat' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearLineItems()
Clears the 'lineItems' 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
public void clearOrderFeeItems()
Clears the 'orderFeeItems' 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
Clears the 'serviceChargeAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearServiceChargeName()
Clears the 'serviceChargeName' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearSubtotal()
Clears the 'subtotal' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTax()
Clears the 'tax' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTitle()
Clears the 'title' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTotal()
Clears the 'total' 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
Formatted amount remaining
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
Currency of this order
Link copied to clipboard
Link copied to clipboard
The employee associated with this order
Link copied to clipboard
public String getId()
Unique identifier
Link copied to clipboard
public Boolean getIsVat()
This order was created by merchant with VAT enabled.
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
Link copied to clipboard
public String getNote()
Link copied to clipboard
Link copied to clipboard
Payments that were made for this order
Link copied to clipboard
Optional service charge amount (gratuity) applied to this order
Link copied to clipboard
Optional service charge name (gratuity) applied to this order
Link copied to clipboard
Formatted subtotal of the order
Link copied to clipboard
public String getTax()
Formatted tax of the order
Link copied to clipboard
public String getTitle()
Link copied to clipboard
public String getTotal()
Formatted total of the order
Link copied to clipboard
public boolean hasAmountRemaining()
Checks whether the 'amountRemaining' field has been set, however the value could be null
Link copied to clipboard
public boolean hasCurrency()
Checks whether the 'currency' 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 hasEmployee()
Checks whether the 'employee' 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 hasIsVat()
Checks whether the 'isVat' field has been set, however the value could be null
Link copied to clipboard
public boolean hasLineItems()
Checks whether the 'lineItems' 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 hasOrderFeeItems()
Checks whether the 'orderFeeItems' 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 hasServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasServiceChargeName()
Checks whether the 'serviceChargeName' field has been set, however the value could be null
Link copied to clipboard
public boolean hasSubtotal()
Checks whether the 'subtotal' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTax()
Checks whether the 'tax' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTitle()
Checks whether the 'title' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTotal()
Checks whether the 'total' 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 isNotEmptyLineItems()
Checks whether the 'lineItems' field is set and is not null and is not empty
Link copied to clipboard
public boolean isNotEmptyOrderFeeItems()
Checks whether the 'orderFeeItems' 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 isNotNullAmountRemaining()
Checks whether the 'amountRemaining' field is set and is not null
Link copied to clipboard
public boolean isNotNullCurrency()
Checks whether the 'currency' 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 isNotNullEmployee()
Checks whether the 'employee' 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 isNotNullIsVat()
Checks whether the 'isVat' field is set and is not null
Link copied to clipboard
public boolean isNotNullLineItems()
Checks whether the 'lineItems' 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
public boolean isNotNullOrderFeeItems()
Checks whether the 'orderFeeItems' 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
Checks whether the 'serviceChargeAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullServiceChargeName()
Checks whether the 'serviceChargeName' field is set and is not null
Link copied to clipboard
public boolean isNotNullSubtotal()
Checks whether the 'subtotal' field is set and is not null
Link copied to clipboard
public boolean isNotNullTax()
Checks whether the 'tax' field is set and is not null
Link copied to clipboard
public boolean isNotNullTitle()
Checks whether the 'title' field is set and is not null
Link copied to clipboard
public boolean isNotNullTotal()
Checks whether the 'total' field is set and is not null
Link copied to clipboard
public void mergeChanges(DisplayOrder 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 DisplayOrder setAmountRemaining(String amountRemaining)
Sets the field 'amountRemaining'.
Link copied to clipboard
public DisplayOrder setCurrency(String currency)
Sets the field 'currency'.
Link copied to clipboard
Sets the field 'discounts'.
Link copied to clipboard
public DisplayOrder setEmployee(String employee)
Sets the field 'employee'.
Link copied to clipboard
Sets the field 'id'.
Link copied to clipboard
public DisplayOrder setIsVat(Boolean isVat)
Sets the field 'isVat'.
Link copied to clipboard
Sets the field 'lineItems'.
Link copied to clipboard
public DisplayOrder setNote(String note)
Sets the field 'note'.
Link copied to clipboard
Sets the field 'orderFeeItems'.
Link copied to clipboard
Sets the field 'payments'.
Link copied to clipboard
public DisplayOrder setServiceChargeAmount(String serviceChargeAmount)
Sets the field 'serviceChargeAmount'.
Link copied to clipboard
public DisplayOrder setServiceChargeName(String serviceChargeName)
Sets the field 'serviceChargeName'.
Link copied to clipboard
public DisplayOrder setSubtotal(String subtotal)
Sets the field 'subtotal'.
Link copied to clipboard
public DisplayOrder setTax(String tax)
Sets the field 'tax'.
Link copied to clipboard
public DisplayOrder setTitle(String title)
Sets the field 'title'.
Link copied to clipboard
public DisplayOrder setTotal(String total)
Sets the field 'total'.
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)