Class PrintOrder

    • Constructor Detail

      • PrintOrder

        public PrintOrder()
        Constructs a new empty instance.
      • PrintOrder

        protected PrintOrder​(boolean noInit)
        Constructs a new empty instance.
      • 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
      • 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 interface JSONifiable
      • 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
      • 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.
      • 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.