Package com.clover.sdk.v3.onlineorder
Class OnlineOrderService
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.onlineorder.OnlineOrderService
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class OnlineOrderService extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OnlineOrderService.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<OnlineOrderService>
CREATOR
static JSONifiable.Creator<OnlineOrderService>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description OnlineOrderService()
Constructs a new empty instance.protected
OnlineOrderService(boolean noInit)
Constructs a new empty instance.OnlineOrderService(OnlineOrderService src)
Constructs a new instance that is a deep copy of the source instance.OnlineOrderService(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearActivated()
Clears the 'activated' 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
clearEnabled()
Clears the 'enabled' 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
clearNote()
Clears the 'note' field, the 'has' method for this field will now return falsevoid
clearOnlineOrderProviderId()
Clears the 'onlineOrderProviderId' field, the 'has' method for this field will now return falsevoid
clearOrderType()
Clears the 'orderType' field, the 'has' method for this field will now return falsevoid
clearResumeTime()
Clears the 'resumeTime' field, the 'has' method for this field will now return falsevoid
clearStartTime()
Clears the 'startTime' field, the 'has' method for this field will now return falsevoid
clearType()
Clears the 'type' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.OnlineOrderService
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Boolean
getActivated()
Service subscribe / unsubscribe statusLong
getCreatedTime()
Timestamp when the online ordering service was createdLong
getDeletedTime()
Timestamp when online ordering service was last deletedBoolean
getEnabled()
Service enabled for online orderprotected 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 online ordering service was last modifiedString
getNote()
merchant instructions that are specific to serviceString
getOnlineOrderProviderId()
Provider UuidOrderType
getOrderType()
Long
getResumeTime()
Timestamp when the merchant scheduled to resume the online ordering service in the futureLong
getStartTime()
Timestamp when the merchant started trial for online ordering serviceServiceType
getType()
boolean
hasActivated()
Checks whether the 'activated' 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
hasEnabled()
Checks whether the 'enabled' 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
hasNote()
Checks whether the 'note' field has been set, however the value could be nullboolean
hasOnlineOrderProviderId()
Checks whether the 'onlineOrderProviderId' field has been set, however the value could be nullboolean
hasOrderType()
Checks whether the 'orderType' field has been set, however the value could be nullboolean
hasResumeTime()
Checks whether the 'resumeTime' field has been set, however the value could be nullboolean
hasStartTime()
Checks whether the 'startTime' field has been set, however the value could be nullboolean
hasType()
Checks whether the 'type' field has been set, however the value could be nullboolean
isNotNullActivated()
Checks whether the 'activated' 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
isNotNullEnabled()
Checks whether the 'enabled' 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
isNotNullNote()
Checks whether the 'note' field is set and is not nullboolean
isNotNullOnlineOrderProviderId()
Checks whether the 'onlineOrderProviderId' field is set and is not nullboolean
isNotNullOrderType()
Checks whether the 'orderType' field is set and is not nullboolean
isNotNullResumeTime()
Checks whether the 'resumeTime' field is set and is not nullboolean
isNotNullStartTime()
Checks whether the 'startTime' field is set and is not nullboolean
isNotNullType()
Checks whether the 'type' field is set and is not nullvoid
mergeChanges(OnlineOrderService 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.OnlineOrderService
setActivated(Boolean activated)
Sets the field 'activated'.OnlineOrderService
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.OnlineOrderService
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.OnlineOrderService
setEnabled(Boolean enabled)
Sets the field 'enabled'.OnlineOrderService
setId(String id)
Sets the field 'id'.OnlineOrderService
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.OnlineOrderService
setNote(String note)
Sets the field 'note'.OnlineOrderService
setOnlineOrderProviderId(String onlineOrderProviderId)
Sets the field 'onlineOrderProviderId'.OnlineOrderService
setOrderType(OrderType orderType)
Sets the field 'orderType'.OnlineOrderService
setResumeTime(Long resumeTime)
Sets the field 'resumeTime'.OnlineOrderService
setStartTime(Long startTime)
Sets the field 'startTime'.OnlineOrderService
setType(ServiceType type)
Sets the field 'type'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<OnlineOrderService> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<OnlineOrderService> JSON_CREATOR
-
-
Constructor Detail
-
OnlineOrderService
public OnlineOrderService()
Constructs a new empty instance.
-
OnlineOrderService
protected OnlineOrderService(boolean noInit)
Constructs a new empty instance.
-
OnlineOrderService
public OnlineOrderService(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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
-
getType
public ServiceType getType()
-
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()
-
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
-
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
-
setId
public OnlineOrderService setId(String id)
Sets the field 'id'.
-
setOnlineOrderProviderId
public OnlineOrderService setOnlineOrderProviderId(String onlineOrderProviderId)
Sets the field 'onlineOrderProviderId'.
-
setType
public OnlineOrderService setType(ServiceType type)
Sets the field 'type'.
-
setEnabled
public OnlineOrderService setEnabled(Boolean enabled)
Sets the field 'enabled'.
-
setStartTime
public OnlineOrderService setStartTime(Long startTime)
Sets the field 'startTime'.
-
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'.
-
setResumeTime
public OnlineOrderService setResumeTime(Long resumeTime)
Sets the field 'resumeTime'.
-
setNote
public OnlineOrderService setNote(String note)
Sets the field 'note'.
-
setActivated
public OnlineOrderService setActivated(Boolean activated)
Sets the field 'activated'.
-
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.
-
-