public class Order extends GenericParcelable implements Validator, JSONifiable
The Order object is at the core of Clover’s transaction data. Almost every transaction either creates or updates an Order. When an order is created or updated via one of the Clover SDKs, the order data is automatically synchronized between the Clover Server and the merchant’s Clover devices.
id
currency
customers
employee
total
externalReferenceId
unpaidBalance
paymentState
title
note
orderType
taxRemoved
isVat
state
manualTransaction
groupLineItems
testMode
payType
createdTime
clientCreatedTime
modifiedTime
deletedTimestamp
serviceCharge
additionalCharges
discounts
lineItems
payments
refunds
credits
voids
preAuths
device
authorizations
merchant
onlineOrder
printGroups
orderFulfillmentEvent
IOrderService
Modifier and Type | Class and Description |
---|---|
static interface |
Order.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORITY |
static Parcelable.Creator<Order> |
CREATOR |
static JSONifiable.Creator<Order> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Order()
Constructs a new empty instance.
|
protected |
Order(boolean noInit)
Constructs a new empty instance.
|
|
Order(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.
|
|
Order(Order src)
Constructs a new instance that is a deep copy of the source instance.
|
|
Order(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAdditionalCharges()
Clears the 'additionalCharges' field, the 'has' method for this field will now return false
|
void |
clearAuthorizations()
Clears the 'authorizations' field, the 'has' method for this field will now return false
|
void |
clearClientCreatedTime()
Clears the 'clientCreatedTime' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearCredits()
Clears the 'credits' field, the 'has' method for this field will now return false
|
void |
clearCurrency()
Clears the 'currency' field, the 'has' method for this field will now return false
|
void |
clearCustomers()
Clears the 'customers' field, the 'has' method for this field will now return false
|
void |
clearDeletedTimestamp()
Clears the 'deletedTimestamp' field, the 'has' method for this field will now return false
|
void |
clearDevice()
Clears the 'device' field, the 'has' method for this field will now return false
|
void |
clearDiscounts()
Clears the 'discounts' field, the 'has' method for this field will now return false
|
void |
clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return false
|
void |
clearExternalReferenceId()
Clears the 'externalReferenceId' field, the 'has' method for this field will now return false
|
void |
clearGroupLineItems()
Clears the 'groupLineItems' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearIsVat()
Clears the 'isVat' field, the 'has' method for this field will now return false
|
void |
clearLineItems()
Clears the 'lineItems' field, the 'has' method for this field will now return false
|
void |
clearManualTransaction()
Clears the 'manualTransaction' field, the 'has' method for this field will now return false
|
void |
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
|
void |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearNote()
Clears the 'note' field, the 'has' method for this field will now return false
|
void |
clearOnlineOrder()
Clears the 'onlineOrder' field, the 'has' method for this field will now return false
|
void |
clearOrderFulfillmentEvent()
Clears the 'orderFulfillmentEvent' field, the 'has' method for this field will now return false
|
void |
clearOrderType()
Clears the 'orderType' field, the 'has' method for this field will now return false
|
void |
clearPayments()
Clears the 'payments' field, the 'has' method for this field will now return false
|
void |
clearPaymentState()
Clears the 'paymentState' field, the 'has' method for this field will now return false
|
void |
clearPayType()
Clears the 'payType' field, the 'has' method for this field will now return false
|
void |
clearPreAuths()
Clears the 'preAuths' field, the 'has' method for this field will now return false
|
void |
clearPrintGroups()
Clears the 'printGroups' field, the 'has' method for this field will now return false
|
void |
clearRefunds()
Clears the 'refunds' field, the 'has' method for this field will now return false
|
void |
clearServiceCharge()
Clears the 'serviceCharge' field, the 'has' method for this field will now return false
|
void |
clearState()
Clears the 'state' field, the 'has' method for this field will now return false
|
void |
clearTaxRemoved()
Clears the 'taxRemoved' field, the 'has' method for this field will now return false
|
void |
clearTestMode()
Clears the 'testMode' field, the 'has' method for this field will now return false
|
void |
clearTitle()
Clears the 'title' field, the 'has' method for this field will now return false
|
void |
clearTotal()
Clears the 'total' field, the 'has' method for this field will now return false
|
void |
clearUnpaidBalance()
Clears the 'unpaidBalance' field, the 'has' method for this field will now return false
|
void |
clearVoids()
Clears the 'voids' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
Order |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
List<AdditionalCharge> |
getAdditionalCharges() |
List<Authorization> |
getAuthorizations()
Card authorizations associated with this order
|
Long |
getClientCreatedTime()
The time at which the client created this order
|
Long |
getCreatedTime()
Creation timestamp
|
List<Credit> |
getCredits()
Credits associated with this order.
|
String |
getCurrency()
Currency of this order.
|
List<Customer> |
getCustomers()
List of customers associated with this order.
|
Long |
getDeletedTimestamp() |
Reference |
getDevice()
Device which created the order, a 128-bit UUID, not a normal base-13 Clover ID.
|
List<Discount> |
getDiscounts()
Amount or percentage discounts applied to the order subtotal.
|
Reference |
getEmployee()
The employee who took this order
|
String |
getExternalReferenceId()
External reference id if present in the order
|
protected GenericClient |
getGenericClient() |
Boolean |
getGroupLineItems()
Whether similar line items should be grouped together on the receipt that this order generates.
|
String |
getId()
Unique identifier
|
Boolean |
getIsVat()
This order was created by merchant with VAT enabled.
|
JSONObject |
getJSONObject()
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.
|
List<LineItem> |
getLineItems()
Line items associated with this order
|
Boolean |
getManualTransaction()
Whether this order represents a manual transaction.
|
Reference |
getMerchant() |
Long |
getModifiedTime()
Last modified time of the order
|
String |
getNote()
An arbitrary string with information about this order, may be printed on the order receipt and displayed in apps
|
OnlineOrder |
getOnlineOrder() |
LineItemEvent |
getOrderFulfillmentEvent()
Latest order fulfillment event of this order.
|
OrderType |
getOrderType() |
List<Payment> |
getPayments()
Payments that were made for this order.
|
PaymentState |
getPaymentState()
Is this order paid or not?
|
PayType |
getPayType()
Possible values: SPLIT_GUEST, SPLIT_ITEM, SPLIT_CUSTOM, FULL.
|
List<Payment> |
getPreAuths()
Pre-authorizations associated with this order
|
List<PrintGroup> |
getPrintGroups()
Print groups for line items of this order.
|
List<Refund> |
getRefunds()
Refunds that were made for this order
|
ServiceCharge |
getServiceCharge()
Optional service charge (gratuity) applied to this order
|
String |
getState()
A String generally describing the state of the order.
|
Boolean |
getTaxRemoved()
If true then this order should not have taxes applied to it
|
Boolean |
getTestMode()
Whether this order was created in test mode.
|
String |
getTitle() |
Long |
getTotal()
Total price of the order in cents
|
Long |
getUnpaidBalance()
The net of orders with payment minus the amount collected.
|
List<Payment> |
getVoids()
Voided payments associated with this order
|
boolean |
hasAdditionalCharges()
Checks whether the 'additionalCharges' field has been set, however the value could be null
|
boolean |
hasAuthorizations()
Checks whether the 'authorizations' field has been set, however the value could be null
|
boolean |
hasClientCreatedTime()
Checks whether the 'clientCreatedTime' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasCredits()
Checks whether the 'credits' field has been set, however the value could be null
|
boolean |
hasCurrency()
Checks whether the 'currency' field has been set, however the value could be null
|
boolean |
hasCustomers()
Checks whether the 'customers' field has been set, however the value could be null
|
boolean |
hasDeletedTimestamp()
Checks whether the 'deletedTimestamp' field has been set, however the value could be null
|
boolean |
hasDevice()
Checks whether the 'device' field has been set, however the value could be null
|
boolean |
hasDiscounts()
Checks whether the 'discounts' field has been set, however the value could be null
|
boolean |
hasEmployee()
Checks whether the 'employee' field has been set, however the value could be null
|
boolean |
hasExternalReferenceId()
Checks whether the 'externalReferenceId' field has been set, however the value could be null
|
boolean |
hasGroupLineItems()
Checks whether the 'groupLineItems' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasIsVat()
Checks whether the 'isVat' field has been set, however the value could be null
|
boolean |
hasLineItems()
Checks whether the 'lineItems' field has been set, however the value could be null
|
boolean |
hasManualTransaction()
Checks whether the 'manualTransaction' field has been set, however the value could be null
|
boolean |
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
|
boolean |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasNote()
Checks whether the 'note' field has been set, however the value could be null
|
boolean |
hasOnlineOrder()
Checks whether the 'onlineOrder' field has been set, however the value could be null
|
boolean |
hasOrderFulfillmentEvent()
Checks whether the 'orderFulfillmentEvent' field has been set, however the value could be null
|
boolean |
hasOrderType()
Checks whether the 'orderType' field has been set, however the value could be null
|
boolean |
hasPayments()
Checks whether the 'payments' field has been set, however the value could be null
|
boolean |
hasPaymentState()
Checks whether the 'paymentState' field has been set, however the value could be null
|
boolean |
hasPayType()
Checks whether the 'payType' field has been set, however the value could be null
|
boolean |
hasPreAuths()
Checks whether the 'preAuths' field has been set, however the value could be null
|
boolean |
hasPrintGroups()
Checks whether the 'printGroups' field has been set, however the value could be null
|
boolean |
hasRefunds()
Checks whether the 'refunds' field has been set, however the value could be null
|
boolean |
hasServiceCharge()
Checks whether the 'serviceCharge' field has been set, however the value could be null
|
boolean |
hasState()
Checks whether the 'state' field has been set, however the value could be null
|
boolean |
hasTaxRemoved()
Checks whether the 'taxRemoved' field has been set, however the value could be null
|
boolean |
hasTestMode()
Checks whether the 'testMode' field has been set, however the value could be null
|
boolean |
hasTitle()
Checks whether the 'title' field has been set, however the value could be null
|
boolean |
hasTotal()
Checks whether the 'total' field has been set, however the value could be null
|
boolean |
hasUnpaidBalance()
Checks whether the 'unpaidBalance' field has been set, however the value could be null
|
boolean |
hasVoids()
Checks whether the 'voids' field has been set, however the value could be null
|
boolean |
isNotEmptyAdditionalCharges()
Checks whether the 'additionalCharges' field is set and is not null and is not empty
|
boolean |
isNotEmptyAuthorizations()
Checks whether the 'authorizations' field is set and is not null and is not empty
|
boolean |
isNotEmptyCredits()
Checks whether the 'credits' field is set and is not null and is not empty
|
boolean |
isNotEmptyCustomers()
Checks whether the 'customers' field is set and is not null and is not empty
|
boolean |
isNotEmptyDiscounts()
Checks whether the 'discounts' field is set and is not null and is not empty
|
boolean |
isNotEmptyLineItems()
Checks whether the 'lineItems' field is set and is not null and is not empty
|
boolean |
isNotEmptyPayments()
Checks whether the 'payments' field is set and is not null and is not empty
|
boolean |
isNotEmptyPreAuths()
Checks whether the 'preAuths' field is set and is not null and is not empty
|
boolean |
isNotEmptyPrintGroups()
Checks whether the 'printGroups' field is set and is not null and is not empty
|
boolean |
isNotEmptyRefunds()
Checks whether the 'refunds' field is set and is not null and is not empty
|
boolean |
isNotEmptyVoids()
Checks whether the 'voids' field is set and is not null and is not empty
|
boolean |
isNotNullAdditionalCharges()
Checks whether the 'additionalCharges' field is set and is not null
|
boolean |
isNotNullAuthorizations()
Checks whether the 'authorizations' field is set and is not null
|
boolean |
isNotNullClientCreatedTime()
Checks whether the 'clientCreatedTime' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullCredits()
Checks whether the 'credits' field is set and is not null
|
boolean |
isNotNullCurrency()
Checks whether the 'currency' field is set and is not null
|
boolean |
isNotNullCustomers()
Checks whether the 'customers' field is set and is not null
|
boolean |
isNotNullDeletedTimestamp()
Checks whether the 'deletedTimestamp' field is set and is not null
|
boolean |
isNotNullDevice()
Checks whether the 'device' field is set and is not null
|
boolean |
isNotNullDiscounts()
Checks whether the 'discounts' field is set and is not null
|
boolean |
isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
|
boolean |
isNotNullExternalReferenceId()
Checks whether the 'externalReferenceId' field is set and is not null
|
boolean |
isNotNullGroupLineItems()
Checks whether the 'groupLineItems' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullIsVat()
Checks whether the 'isVat' field is set and is not null
|
boolean |
isNotNullLineItems()
Checks whether the 'lineItems' field is set and is not null
|
boolean |
isNotNullManualTransaction()
Checks whether the 'manualTransaction' field is set and is not null
|
boolean |
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullNote()
Checks whether the 'note' field is set and is not null
|
boolean |
isNotNullOnlineOrder()
Checks whether the 'onlineOrder' field is set and is not null
|
boolean |
isNotNullOrderFulfillmentEvent()
Checks whether the 'orderFulfillmentEvent' field is set and is not null
|
boolean |
isNotNullOrderType()
Checks whether the 'orderType' field is set and is not null
|
boolean |
isNotNullPayments()
Checks whether the 'payments' field is set and is not null
|
boolean |
isNotNullPaymentState()
Checks whether the 'paymentState' field is set and is not null
|
boolean |
isNotNullPayType()
Checks whether the 'payType' field is set and is not null
|
boolean |
isNotNullPreAuths()
Checks whether the 'preAuths' field is set and is not null
|
boolean |
isNotNullPrintGroups()
Checks whether the 'printGroups' field is set and is not null
|
boolean |
isNotNullRefunds()
Checks whether the 'refunds' field is set and is not null
|
boolean |
isNotNullServiceCharge()
Checks whether the 'serviceCharge' field is set and is not null
|
boolean |
isNotNullState()
Checks whether the 'state' field is set and is not null
|
boolean |
isNotNullTaxRemoved()
Checks whether the 'taxRemoved' field is set and is not null
|
boolean |
isNotNullTestMode()
Checks whether the 'testMode' field is set and is not null
|
boolean |
isNotNullTitle()
Checks whether the 'title' field is set and is not null
|
boolean |
isNotNullTotal()
Checks whether the 'total' field is set and is not null
|
boolean |
isNotNullUnpaidBalance()
Checks whether the 'unpaidBalance' field is set and is not null
|
boolean |
isNotNullVoids()
Checks whether the 'voids' field is set and is not null
|
void |
mergeChanges(Order src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
Order |
setAdditionalCharges(List<AdditionalCharge> additionalCharges)
Sets the field 'additionalCharges'.
|
Order |
setAuthorizations(List<Authorization> authorizations)
Sets the field 'authorizations'.
|
Order |
setClientCreatedTime(Long clientCreatedTime)
Sets the field 'clientCreatedTime'.
|
Order |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
Order |
setCredits(List<Credit> credits)
Sets the field 'credits'.
|
Order |
setCurrency(String currency)
Sets the field 'currency'.
|
Order |
setCustomers(List<Customer> customers)
Sets the field 'customers'.
|
Order |
setDeletedTimestamp(Long deletedTimestamp)
Sets the field 'deletedTimestamp'.
|
Order |
setDevice(Reference device)
Sets the field 'device'.
|
Order |
setDiscounts(List<Discount> discounts)
Sets the field 'discounts'.
|
Order |
setEmployee(Reference employee)
Sets the field 'employee'.
|
Order |
setExternalReferenceId(String externalReferenceId)
Sets the field 'externalReferenceId'.
|
Order |
setGroupLineItems(Boolean groupLineItems)
Sets the field 'groupLineItems'.
|
Order |
setId(String id)
Sets the field 'id'.
|
Order |
setIsVat(Boolean isVat)
Sets the field 'isVat'.
|
Order |
setLineItems(List<LineItem> lineItems)
Sets the field 'lineItems'.
|
Order |
setManualTransaction(Boolean manualTransaction)
Sets the field 'manualTransaction'.
|
Order |
setMerchant(Reference merchant)
Sets the field 'merchant'.
|
Order |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
Order |
setNote(String note)
Sets the field 'note'.
|
Order |
setOnlineOrder(OnlineOrder onlineOrder)
Sets the field 'onlineOrder'.
|
Order |
setOrderFulfillmentEvent(LineItemEvent orderFulfillmentEvent)
Sets the field 'orderFulfillmentEvent'.
|
Order |
setOrderType(OrderType orderType)
Sets the field 'orderType'.
|
Order |
setPayments(List<Payment> payments)
Sets the field 'payments'.
|
Order |
setPaymentState(PaymentState paymentState)
Sets the field 'paymentState'.
|
Order |
setPayType(PayType payType)
Sets the field 'payType'.
|
Order |
setPreAuths(List<Payment> preAuths)
Sets the field 'preAuths'.
|
Order |
setPrintGroups(List<PrintGroup> printGroups)
Sets the field 'printGroups'.
|
Order |
setRefunds(List<Refund> refunds)
Sets the field 'refunds'.
|
Order |
setServiceCharge(ServiceCharge serviceCharge)
Sets the field 'serviceCharge'.
|
Order |
setState(String state)
Sets the field 'state'.
|
Order |
setTaxRemoved(Boolean taxRemoved)
Sets the field 'taxRemoved'.
|
Order |
setTestMode(Boolean testMode)
Sets the field 'testMode'.
|
Order |
setTitle(String title)
Sets the field 'title'.
|
Order |
setTotal(Long total)
Sets the field 'total'.
|
Order |
setUnpaidBalance(Long unpaidBalance)
Sets the field 'unpaidBalance'.
|
Order |
setVoids(List<Payment> voids)
Sets the field 'voids'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final String AUTHORITY
public static final Parcelable.Creator<Order> CREATOR
public static final JSONifiable.Creator<Order> JSON_CREATOR
public Order()
protected Order(boolean noInit)
public Order(String json) throws IllegalArgumentException
IllegalArgumentException
public Order(JSONObject jsonObject)
public Order(Order src)
public String getId()
public String getCurrency()
public Reference getEmployee()
public Long getTotal()
public String getExternalReferenceId()
public Long getUnpaidBalance()
public PaymentState getPaymentState()
public String getTitle()
public String getNote()
public OrderType getOrderType()
public Boolean getTaxRemoved()
public Boolean getIsVat()
public String getState()
public Boolean getManualTransaction()
public Boolean getGroupLineItems()
public Boolean getTestMode()
public PayType getPayType()
public Long getCreatedTime()
public Long getClientCreatedTime()
public Long getModifiedTime()
public Long getDeletedTimestamp()
public ServiceCharge getServiceCharge()
public List<AdditionalCharge> getAdditionalCharges()
public List<Discount> getDiscounts()
public List<Payment> getPayments()
public Reference getDevice()
public List<Authorization> getAuthorizations()
public Reference getMerchant()
public OnlineOrder getOnlineOrder()
public List<PrintGroup> getPrintGroups()
public LineItemEvent getOrderFulfillmentEvent()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullCurrency()
public boolean isNotNullCustomers()
public boolean isNotEmptyCustomers()
public boolean isNotNullEmployee()
public boolean isNotNullTotal()
public boolean isNotNullExternalReferenceId()
public boolean isNotNullUnpaidBalance()
public boolean isNotNullPaymentState()
public boolean isNotNullTitle()
public boolean isNotNullNote()
public boolean isNotNullOrderType()
public boolean isNotNullTaxRemoved()
public boolean isNotNullIsVat()
public boolean isNotNullState()
public boolean isNotNullManualTransaction()
public boolean isNotNullGroupLineItems()
public boolean isNotNullTestMode()
public boolean isNotNullPayType()
public boolean isNotNullCreatedTime()
public boolean isNotNullClientCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTimestamp()
public boolean isNotNullServiceCharge()
public boolean isNotNullAdditionalCharges()
public boolean isNotEmptyAdditionalCharges()
public boolean isNotNullDiscounts()
public boolean isNotEmptyDiscounts()
public boolean isNotNullLineItems()
public boolean isNotEmptyLineItems()
public boolean isNotNullPayments()
public boolean isNotEmptyPayments()
public boolean isNotNullRefunds()
public boolean isNotEmptyRefunds()
public boolean isNotNullCredits()
public boolean isNotEmptyCredits()
public boolean isNotNullVoids()
public boolean isNotEmptyVoids()
public boolean isNotNullPreAuths()
public boolean isNotEmptyPreAuths()
public boolean isNotNullDevice()
public boolean isNotNullAuthorizations()
public boolean isNotEmptyAuthorizations()
public boolean isNotNullMerchant()
public boolean isNotNullOnlineOrder()
public boolean isNotNullPrintGroups()
public boolean isNotEmptyPrintGroups()
public boolean isNotNullOrderFulfillmentEvent()
public boolean hasId()
public boolean hasCurrency()
public boolean hasCustomers()
public boolean hasEmployee()
public boolean hasTotal()
public boolean hasExternalReferenceId()
public boolean hasUnpaidBalance()
public boolean hasPaymentState()
public boolean hasTitle()
public boolean hasNote()
public boolean hasOrderType()
public boolean hasTaxRemoved()
public boolean hasIsVat()
public boolean hasState()
public boolean hasManualTransaction()
public boolean hasGroupLineItems()
public boolean hasTestMode()
public boolean hasPayType()
public boolean hasCreatedTime()
public boolean hasClientCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTimestamp()
public boolean hasServiceCharge()
public boolean hasAdditionalCharges()
public boolean hasDiscounts()
public boolean hasLineItems()
public boolean hasPayments()
public boolean hasRefunds()
public boolean hasCredits()
public boolean hasVoids()
public boolean hasPreAuths()
public boolean hasDevice()
public boolean hasAuthorizations()
public boolean hasMerchant()
public boolean hasOnlineOrder()
public boolean hasPrintGroups()
public boolean hasOrderFulfillmentEvent()
public Order setCustomers(List<Customer> customers)
public Order setEmployee(Reference employee)
public Order setExternalReferenceId(String externalReferenceId)
public Order setPaymentState(PaymentState paymentState)
public Order setOrderType(OrderType orderType)
public Order setManualTransaction(Boolean manualTransaction)
public Order setGroupLineItems(Boolean groupLineItems)
public Order setClientCreatedTime(Long clientCreatedTime)
public Order setDeletedTimestamp(Long deletedTimestamp)
public Order setServiceCharge(ServiceCharge serviceCharge)
public Order setAdditionalCharges(List<AdditionalCharge> additionalCharges)
public Order setDiscounts(List<Discount> discounts)
public Order setLineItems(List<LineItem> lineItems)
public Order setPayments(List<Payment> payments)
public Order setRefunds(List<Refund> refunds)
public Order setCredits(List<Credit> credits)
public Order setVoids(List<Payment> voids)
public Order setPreAuths(List<Payment> preAuths)
public Order setDevice(Reference device)
public Order setAuthorizations(List<Authorization> authorizations)
public Order setMerchant(Reference merchant)
public Order setOnlineOrder(OnlineOrder onlineOrder)
public Order setPrintGroups(List<PrintGroup> printGroups)
public Order setOrderFulfillmentEvent(LineItemEvent orderFulfillmentEvent)
public void clearId()
public void clearCurrency()
public void clearCustomers()
public void clearEmployee()
public void clearTotal()
public void clearExternalReferenceId()
public void clearUnpaidBalance()
public void clearPaymentState()
public void clearTitle()
public void clearNote()
public void clearOrderType()
public void clearTaxRemoved()
public void clearIsVat()
public void clearState()
public void clearManualTransaction()
public void clearGroupLineItems()
public void clearTestMode()
public void clearPayType()
public void clearCreatedTime()
public void clearClientCreatedTime()
public void clearModifiedTime()
public void clearDeletedTimestamp()
public void clearServiceCharge()
public void clearAdditionalCharges()
public void clearDiscounts()
public void clearLineItems()
public void clearPayments()
public void clearRefunds()
public void clearCredits()
public void clearVoids()
public void clearPreAuths()
public void clearDevice()
public void clearAuthorizations()
public void clearMerchant()
public void clearOnlineOrder()
public void clearPrintGroups()
public void clearOrderFulfillmentEvent()
public boolean containsChanges()
public void resetChangeLog()
public Order copyChanges()
public void mergeChanges(Order src)