Package com.clover.sdk.v3.order
Class PrintOrder
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.order.PrintOrder
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class PrintOrder extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
- See Also:
IOrderService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PrintOrder.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<PrintOrder>
CREATOR
static JSONifiable.Creator<PrintOrder>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description PrintOrder()
Constructs a new empty instance.protected
PrintOrder(boolean noInit)
Constructs a new empty instance.PrintOrder(PrintOrder src)
Constructs a new instance that is a deep copy of the source instance.PrintOrder(String json)
Constructs a new instance from the given JSON String.PrintOrder(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCategory()
Clears the 'category' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return falsevoid
clearDeviceRef()
Clears the 'deviceRef' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearOrderRef()
Clears the 'orderRef' field, the 'has' method for this field will now return falsevoid
clearOrderSnapshot()
Clears the 'orderSnapshot' field, the 'has' method for this field will now return falsevoid
clearPrintTime()
Clears the 'printTime' field, the 'has' method for this field will now return falsevoid
clearState()
Clears the 'state' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.PrintOrder
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.PrintCategory
getCategory()
The print categoryLong
getCreatedTime()
Timestamp when the print event was createdLong
getDeletedTime()
Timestamp when the print event was last deletedReference
getDeviceRef()
The printing device.protected GenericClient
getGenericClient()
String
getId()
Unique identifierJSONObject
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.Long
getModifiedTime()
Timestamp when the print event was last modifiedReference
getOrderRef()
Reference to the order to be printedString
getOrderSnapshot()
Snapshot of the order at the time of print requestLong
getPrintTime()
Timestamp when the print event needs to fire to printerPrintState
getState()
print event stateboolean
hasCategory()
Checks whether the 'category' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be nullboolean
hasDeviceRef()
Checks whether the 'deviceRef' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasOrderRef()
Checks whether the 'orderRef' field has been set, however the value could be nullboolean
hasOrderSnapshot()
Checks whether the 'orderSnapshot' field has been set, however the value could be nullboolean
hasPrintTime()
Checks whether the 'printTime' field has been set, however the value could be nullboolean
hasState()
Checks whether the 'state' field has been set, however the value could be nullboolean
isNotNullCategory()
Checks whether the 'category' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not nullboolean
isNotNullDeviceRef()
Checks whether the 'deviceRef' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullOrderRef()
Checks whether the 'orderRef' field is set and is not nullboolean
isNotNullOrderSnapshot()
Checks whether the 'orderSnapshot' field is set and is not nullboolean
isNotNullPrintTime()
Checks whether the 'printTime' field is set and is not nullboolean
isNotNullState()
Checks whether the 'state' field is set and is not nullvoid
mergeChanges(PrintOrder 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.PrintOrder
setCategory(PrintCategory category)
Sets the field 'category'.PrintOrder
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.PrintOrder
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.PrintOrder
setDeviceRef(Reference deviceRef)
Sets the field 'deviceRef'.PrintOrder
setId(String id)
Sets the field 'id'.PrintOrder
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.PrintOrder
setOrderRef(Reference orderRef)
Sets the field 'orderRef'.PrintOrder
setOrderSnapshot(String orderSnapshot)
Sets the field 'orderSnapshot'.PrintOrder
setPrintTime(Long printTime)
Sets the field 'printTime'.PrintOrder
setState(PrintState state)
Sets the field 'state'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<PrintOrder> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<PrintOrder> JSON_CREATOR
-
-
Constructor Detail
-
PrintOrder
public PrintOrder()
Constructs a new empty instance.
-
PrintOrder
protected PrintOrder(boolean noInit)
Constructs a new empty instance.
-
PrintOrder
public PrintOrder(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
PrintOrder
public PrintOrder(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.
-
PrintOrder
public PrintOrder(PrintOrder src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getOrderRef
public Reference getOrderRef()
Reference to the order to be printed
-
getDeviceRef
public Reference getDeviceRef()
The printing device. A 128-bit UUID, not a normal base-13 Clover ID.
-
getCategory
public PrintCategory getCategory()
The print category
-
getState
public PrintState getState()
print event state
-
getOrderSnapshot
public String getOrderSnapshot()
Snapshot of the order at the time of print request
-
getCreatedTime
public Long getCreatedTime()
Timestamp when the print event was created
-
getModifiedTime
public Long getModifiedTime()
Timestamp when the print event was last modified
-
getDeletedTime
public Long getDeletedTime()
Timestamp when the print event was last deleted
-
getPrintTime
public Long getPrintTime()
Timestamp when the print event needs to fire to printer
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public 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.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullOrderRef
public boolean isNotNullOrderRef()
Checks whether the 'orderRef' field is set and is not null
-
isNotNullDeviceRef
public boolean isNotNullDeviceRef()
Checks whether the 'deviceRef' field is set and is not null
-
isNotNullCategory
public boolean isNotNullCategory()
Checks whether the 'category' field is set and is not null
-
isNotNullState
public boolean isNotNullState()
Checks whether the 'state' field is set and is not null
-
isNotNullOrderSnapshot
public boolean isNotNullOrderSnapshot()
Checks whether the 'orderSnapshot' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
-
isNotNullDeletedTime
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
-
isNotNullPrintTime
public boolean isNotNullPrintTime()
Checks whether the 'printTime' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasOrderRef
public boolean hasOrderRef()
Checks whether the 'orderRef' field has been set, however the value could be null
-
hasDeviceRef
public boolean hasDeviceRef()
Checks whether the 'deviceRef' field has been set, however the value could be null
-
hasCategory
public boolean hasCategory()
Checks whether the 'category' field has been set, however the value could be null
-
hasState
public boolean hasState()
Checks whether the 'state' field has been set, however the value could be null
-
hasOrderSnapshot
public boolean hasOrderSnapshot()
Checks whether the 'orderSnapshot' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
hasDeletedTime
public boolean hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
-
hasPrintTime
public boolean hasPrintTime()
Checks whether the 'printTime' field has been set, however the value could be null
-
setId
public PrintOrder setId(String id)
Sets the field 'id'.
-
setOrderRef
public PrintOrder setOrderRef(Reference orderRef)
Sets the field 'orderRef'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setDeviceRef
public PrintOrder setDeviceRef(Reference deviceRef)
Sets the field 'deviceRef'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCategory
public PrintOrder setCategory(PrintCategory category)
Sets the field 'category'.
-
setState
public PrintOrder setState(PrintState state)
Sets the field 'state'.
-
setOrderSnapshot
public PrintOrder setOrderSnapshot(String orderSnapshot)
Sets the field 'orderSnapshot'.
-
setCreatedTime
public PrintOrder setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
setModifiedTime
public PrintOrder setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
-
setDeletedTime
public PrintOrder setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
-
setPrintTime
public PrintOrder setPrintTime(Long printTime)
Sets the field 'printTime'.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearOrderRef
public void clearOrderRef()
Clears the 'orderRef' field, the 'has' method for this field will now return false
-
clearDeviceRef
public void clearDeviceRef()
Clears the 'deviceRef' field, the 'has' method for this field will now return false
-
clearCategory
public void clearCategory()
Clears the 'category' field, the 'has' method for this field will now return false
-
clearState
public void clearState()
Clears the 'state' field, the 'has' method for this field will now return false
-
clearOrderSnapshot
public void clearOrderSnapshot()
Clears the 'orderSnapshot' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
-
clearDeletedTime
public void clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
-
clearPrintTime
public void clearPrintTime()
Clears the 'printTime' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public PrintOrder copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(PrintOrder src)
Copy all the changed fields from the given source to this instance.
-
-