Class OnlineOrderService

    • Constructor Detail

      • OnlineOrderService

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

        protected OnlineOrderService​(boolean noInit)
        Constructs a new empty instance.
      • OnlineOrderService

        public OnlineOrderService​(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.
      • OnlineOrderService

        public OnlineOrderService​(OnlineOrderService 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
      • getOnlineOrderProviderId

        public String getOnlineOrderProviderId()
        Provider Uuid
      • getEnabled

        public Boolean getEnabled()
        Service enabled for online order
      • getStartTime

        public Long getStartTime()
        Timestamp when the merchant started trial for online ordering service
      • getCreatedTime

        public Long getCreatedTime()
        Timestamp when the online ordering service was created
      • getModifiedTime

        public Long getModifiedTime()
        Timestamp when the online ordering service was last modified
      • getDeletedTime

        public Long getDeletedTime()
        Timestamp when online ordering service was last deleted
      • getResumeTime

        public Long getResumeTime()
        Timestamp when the merchant scheduled to resume the online ordering service in the future
      • getNote

        public String getNote()
        merchant instructions that are specific to service
      • getActivated

        public Boolean getActivated()
        Service subscribe / unsubscribe status
      • getOrderType

        public OrderType getOrderType()
      • 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
      • isNotNullOnlineOrderProviderId

        public boolean isNotNullOnlineOrderProviderId()
        Checks whether the 'onlineOrderProviderId' field is set and is not null
      • isNotNullType

        public boolean isNotNullType()
        Checks whether the 'type' field is set and is not null
      • isNotNullEnabled

        public boolean isNotNullEnabled()
        Checks whether the 'enabled' field is set and is not null
      • isNotNullStartTime

        public boolean isNotNullStartTime()
        Checks whether the 'startTime' 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
      • isNotNullResumeTime

        public boolean isNotNullResumeTime()
        Checks whether the 'resumeTime' field is set and is not null
      • isNotNullNote

        public boolean isNotNullNote()
        Checks whether the 'note' field is set and is not null
      • isNotNullActivated

        public boolean isNotNullActivated()
        Checks whether the 'activated' field is set and is not null
      • isNotNullOrderType

        public boolean isNotNullOrderType()
        Checks whether the 'orderType' 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
      • hasOnlineOrderProviderId

        public boolean hasOnlineOrderProviderId()
        Checks whether the 'onlineOrderProviderId' field has been set, however the value could be null
      • hasType

        public boolean hasType()
        Checks whether the 'type' field has been set, however the value could be null
      • hasEnabled

        public boolean hasEnabled()
        Checks whether the 'enabled' field has been set, however the value could be null
      • hasStartTime

        public boolean hasStartTime()
        Checks whether the 'startTime' 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
      • hasResumeTime

        public boolean hasResumeTime()
        Checks whether the 'resumeTime' field has been set, however the value could be null
      • hasNote

        public boolean hasNote()
        Checks whether the 'note' field has been set, however the value could be null
      • hasActivated

        public boolean hasActivated()
        Checks whether the 'activated' field has been set, however the value could be null
      • hasOrderType

        public boolean hasOrderType()
        Checks whether the 'orderType' field has been set, however the value could be null
      • setOnlineOrderProviderId

        public OnlineOrderService setOnlineOrderProviderId​(String onlineOrderProviderId)
        Sets the field 'onlineOrderProviderId'.
      • setCreatedTime

        public OnlineOrderService setCreatedTime​(Long createdTime)
        Sets the field 'createdTime'.
      • setModifiedTime

        public OnlineOrderService setModifiedTime​(Long modifiedTime)
        Sets the field 'modifiedTime'.
      • setDeletedTime

        public OnlineOrderService setDeletedTime​(Long deletedTime)
        Sets the field 'deletedTime'.
      • setOrderType

        public OnlineOrderService setOrderType​(OrderType orderType)
        Sets the field 'orderType'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearOnlineOrderProviderId

        public void clearOnlineOrderProviderId()
        Clears the 'onlineOrderProviderId' field, the 'has' method for this field will now return false
      • clearType

        public void clearType()
        Clears the 'type' field, the 'has' method for this field will now return false
      • clearEnabled

        public void clearEnabled()
        Clears the 'enabled' field, the 'has' method for this field will now return false
      • clearStartTime

        public void clearStartTime()
        Clears the 'startTime' 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
      • clearResumeTime

        public void clearResumeTime()
        Clears the 'resumeTime' field, the 'has' method for this field will now return false
      • clearNote

        public void clearNote()
        Clears the 'note' field, the 'has' method for this field will now return false
      • clearActivated

        public void clearActivated()
        Clears the 'activated' field, the 'has' method for this field will now return false
      • clearOrderType

        public void clearOrderType()
        Clears the 'orderType' 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 OnlineOrderService copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(OnlineOrderService src)
        Copy all the changed fields from the given source to this instance.