public class OnlineOrderMerchantProvider extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
OnlineOrderMerchantProvider.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<OnlineOrderMerchantProvider> |
CREATOR |
static JSONifiable.Creator<OnlineOrderMerchantProvider> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
OnlineOrderMerchantProvider()
Constructs a new empty instance.
|
protected |
OnlineOrderMerchantProvider(boolean noInit)
Constructs a new empty instance.
|
|
OnlineOrderMerchantProvider(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.
|
|
OnlineOrderMerchantProvider(OnlineOrderMerchantProvider src)
Constructs a new instance that is a deep copy of the source instance.
|
|
OnlineOrderMerchantProvider(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
|
void |
clearEnabled()
Clears the 'enabled' 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 |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearProvider()
Clears the 'provider' field, the 'has' method for this field will now return false
|
void |
clearStartTime()
Clears the 'startTime' field, the 'has' method for this field will now return false
|
void |
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
OnlineOrderMerchantProvider |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getCreatedTime()
Timestamp when the online ordering provider was created
|
Long |
getDeletedTime()
Timestamp when online ordering provider was last deleted
|
Boolean |
getEnabled()
If the merchant enable the provider
|
protected GenericClient |
getGenericClient() |
String |
getId()
Merchant Provider id
|
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.
|
Long |
getModifiedTime()
Timestamp when the online ordering provider was last modified
|
OnlineOrderProvider |
getProvider()
Provider
|
Long |
getStartTime()
When the merchant start enabling this provider for the first time
|
OnboardingStatus |
getStatus()
Restaurant online order onboarding status
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
|
boolean |
hasEnabled()
Checks whether the 'enabled' 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 |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasProvider()
Checks whether the 'provider' field has been set, however the value could be null
|
boolean |
hasStartTime()
Checks whether the 'startTime' field has been set, however the value could be null
|
boolean |
hasStatus()
Checks whether the 'status' field has been set, however the value could be null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
|
boolean |
isNotNullEnabled()
Checks whether the 'enabled' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullProvider()
Checks whether the 'provider' field is set and is not null
|
boolean |
isNotNullStartTime()
Checks whether the 'startTime' field is set and is not null
|
boolean |
isNotNullStatus()
Checks whether the 'status' field is set and is not null
|
void |
mergeChanges(OnlineOrderMerchantProvider 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.
|
OnlineOrderMerchantProvider |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
OnlineOrderMerchantProvider |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
OnlineOrderMerchantProvider |
setEnabled(Boolean enabled)
Sets the field 'enabled'.
|
OnlineOrderMerchantProvider |
setId(String id)
Sets the field 'id'.
|
OnlineOrderMerchantProvider |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
OnlineOrderMerchantProvider |
setProvider(OnlineOrderProvider provider)
Sets the field 'provider'.
|
OnlineOrderMerchantProvider |
setStartTime(Long startTime)
Sets the field 'startTime'.
|
OnlineOrderMerchantProvider |
setStatus(OnboardingStatus status)
Sets the field 'status'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<OnlineOrderMerchantProvider> CREATOR
public static final JSONifiable.Creator<OnlineOrderMerchantProvider> JSON_CREATOR
public OnlineOrderMerchantProvider()
protected OnlineOrderMerchantProvider(boolean noInit)
public OnlineOrderMerchantProvider(String json) throws IllegalArgumentException
IllegalArgumentException
public OnlineOrderMerchantProvider(JSONObject jsonObject)
public OnlineOrderMerchantProvider(OnlineOrderMerchantProvider src)
public String getId()
public OnlineOrderProvider getProvider()
public OnboardingStatus getStatus()
public Boolean getEnabled()
public Long getStartTime()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getDeletedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullProvider()
public boolean isNotNullStatus()
public boolean isNotNullEnabled()
public boolean isNotNullStartTime()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean hasId()
public boolean hasProvider()
public boolean hasStatus()
public boolean hasEnabled()
public boolean hasStartTime()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public OnlineOrderMerchantProvider setId(String id)
public OnlineOrderMerchantProvider setProvider(OnlineOrderProvider provider)
public OnlineOrderMerchantProvider setStatus(OnboardingStatus status)
public OnlineOrderMerchantProvider setEnabled(Boolean enabled)
public OnlineOrderMerchantProvider setStartTime(Long startTime)
public OnlineOrderMerchantProvider setCreatedTime(Long createdTime)
public OnlineOrderMerchantProvider setModifiedTime(Long modifiedTime)
public OnlineOrderMerchantProvider setDeletedTime(Long deletedTime)
public void clearId()
public void clearProvider()
public void clearStatus()
public void clearEnabled()
public void clearStartTime()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearDeletedTime()
public boolean containsChanges()
public void resetChangeLog()
public OnlineOrderMerchantProvider copyChanges()
public void mergeChanges(OnlineOrderMerchantProvider src)