public class OnlineOrderMerchant extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
OnlineOrderMerchant.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<OnlineOrderMerchant> |
CREATOR |
static JSONifiable.Creator<OnlineOrderMerchant> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
OnlineOrderMerchant()
Constructs a new empty instance.
|
protected |
OnlineOrderMerchant(boolean noInit)
Constructs a new empty instance.
|
|
OnlineOrderMerchant(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.
|
|
OnlineOrderMerchant(OnlineOrderMerchant src)
Constructs a new instance that is a deep copy of the source instance.
|
|
OnlineOrderMerchant(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAddress()
Clears the 'address' field, the 'has' method for this field will now return false
|
void |
clearBusinessInfoDone()
Clears the 'businessInfoDone' field, the 'has' method for this field will now return false
|
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 |
clearLeadTime()
Clears the 'leadTime' field, the 'has' method for this field will now return false
|
void |
clearMenuWalkthroughComplete()
Clears the 'menuWalkthroughComplete' 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 |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
void |
clearPhoneNumber()
Clears the 'phoneNumber' field, the 'has' method for this field will now return false
|
void |
clearScheduleDayRange()
Clears the 'scheduleDayRange' field, the 'has' method for this field will now return false
|
void |
clearScheduleOrder()
Clears the 'scheduleOrder' field, the 'has' method for this field will now return false
|
void |
clearServiceInfoDone()
Clears the 'serviceInfoDone' 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.
|
OnlineOrderMerchant |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Address |
getAddress()
The merchant address
|
Boolean |
getBusinessInfoDone()
Finished collecting business information
|
Long |
getCreatedTime()
Timestamp when the online ordering merchant was created
|
Long |
getDeletedTime()
Timestamp when online ordering merchant was last deleted
|
Boolean |
getEnabled()
Restaurant enabled for online ordering
|
protected GenericClient |
getGenericClient() |
String |
getId()
merchant 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.
|
Integer |
getLeadTime()
Number of minutes to tell the customer the order usually takes to prepare
|
Boolean |
getMenuWalkthroughComplete()
Auto-curation menu walkthrough complete
|
Long |
getModifiedTime()
Timestamp when the online ordering merchant was last modified
|
String |
getName()
Customer facing business name
|
String |
getPhoneNumber() |
Integer |
getScheduleDayRange()
Order ahead day range
|
Boolean |
getScheduleOrder()
If the merchant accepts scheduled order
|
Boolean |
getServiceInfoDone()
Finished collecting service information
|
Status |
getStatus()
Restaurant online order onboarding status
|
boolean |
hasAddress()
Checks whether the 'address' field has been set, however the value could be null
|
boolean |
hasBusinessInfoDone()
Checks whether the 'businessInfoDone' field has been set, however the value could be null
|
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 |
hasLeadTime()
Checks whether the 'leadTime' field has been set, however the value could be null
|
boolean |
hasMenuWalkthroughComplete()
Checks whether the 'menuWalkthroughComplete' 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 |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
hasPhoneNumber()
Checks whether the 'phoneNumber' field has been set, however the value could be null
|
boolean |
hasScheduleDayRange()
Checks whether the 'scheduleDayRange' field has been set, however the value could be null
|
boolean |
hasScheduleOrder()
Checks whether the 'scheduleOrder' field has been set, however the value could be null
|
boolean |
hasServiceInfoDone()
Checks whether the 'serviceInfoDone' 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 |
isNotNullAddress()
Checks whether the 'address' field is set and is not null
|
boolean |
isNotNullBusinessInfoDone()
Checks whether the 'businessInfoDone' field is set and is not 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 |
isNotNullLeadTime()
Checks whether the 'leadTime' field is set and is not null
|
boolean |
isNotNullMenuWalkthroughComplete()
Checks whether the 'menuWalkthroughComplete' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullPhoneNumber()
Checks whether the 'phoneNumber' field is set and is not null
|
boolean |
isNotNullScheduleDayRange()
Checks whether the 'scheduleDayRange' field is set and is not null
|
boolean |
isNotNullScheduleOrder()
Checks whether the 'scheduleOrder' field is set and is not null
|
boolean |
isNotNullServiceInfoDone()
Checks whether the 'serviceInfoDone' field is set and is not null
|
boolean |
isNotNullStatus()
Checks whether the 'status' field is set and is not null
|
void |
mergeChanges(OnlineOrderMerchant 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.
|
OnlineOrderMerchant |
setAddress(Address address)
Sets the field 'address'.
|
OnlineOrderMerchant |
setBusinessInfoDone(Boolean businessInfoDone)
Sets the field 'businessInfoDone'.
|
OnlineOrderMerchant |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
OnlineOrderMerchant |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
OnlineOrderMerchant |
setEnabled(Boolean enabled)
Sets the field 'enabled'.
|
OnlineOrderMerchant |
setId(String id)
Sets the field 'id'.
|
OnlineOrderMerchant |
setLeadTime(Integer leadTime)
Sets the field 'leadTime'.
|
OnlineOrderMerchant |
setMenuWalkthroughComplete(Boolean menuWalkthroughComplete)
Sets the field 'menuWalkthroughComplete'.
|
OnlineOrderMerchant |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
OnlineOrderMerchant |
setName(String name)
Sets the field 'name'.
|
OnlineOrderMerchant |
setPhoneNumber(String phoneNumber)
Sets the field 'phoneNumber'.
|
OnlineOrderMerchant |
setScheduleDayRange(Integer scheduleDayRange)
Sets the field 'scheduleDayRange'.
|
OnlineOrderMerchant |
setScheduleOrder(Boolean scheduleOrder)
Sets the field 'scheduleOrder'.
|
OnlineOrderMerchant |
setServiceInfoDone(Boolean serviceInfoDone)
Sets the field 'serviceInfoDone'.
|
OnlineOrderMerchant |
setStatus(Status status)
Sets the field 'status'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<OnlineOrderMerchant> CREATOR
public static final JSONifiable.Creator<OnlineOrderMerchant> JSON_CREATOR
public OnlineOrderMerchant()
protected OnlineOrderMerchant(boolean noInit)
public OnlineOrderMerchant(String json) throws IllegalArgumentException
IllegalArgumentException
public OnlineOrderMerchant(JSONObject jsonObject)
public OnlineOrderMerchant(OnlineOrderMerchant src)
public String getId()
public Address getAddress()
public String getName()
public String getPhoneNumber()
public Boolean getEnabled()
public Boolean getMenuWalkthroughComplete()
public Boolean getBusinessInfoDone()
public Boolean getServiceInfoDone()
public Status getStatus()
public Boolean getScheduleOrder()
public Integer getScheduleDayRange()
public Long getCreatedTime()
public Long getModifiedTime()
public Integer getLeadTime()
public Long getDeletedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullAddress()
public boolean isNotNullName()
public boolean isNotNullPhoneNumber()
public boolean isNotNullEnabled()
public boolean isNotNullMenuWalkthroughComplete()
public boolean isNotNullBusinessInfoDone()
public boolean isNotNullServiceInfoDone()
public boolean isNotNullStatus()
public boolean isNotNullScheduleOrder()
public boolean isNotNullScheduleDayRange()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullLeadTime()
public boolean isNotNullDeletedTime()
public boolean hasId()
public boolean hasAddress()
public boolean hasName()
public boolean hasPhoneNumber()
public boolean hasEnabled()
public boolean hasMenuWalkthroughComplete()
public boolean hasBusinessInfoDone()
public boolean hasServiceInfoDone()
public boolean hasStatus()
public boolean hasScheduleOrder()
public boolean hasScheduleDayRange()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasLeadTime()
public boolean hasDeletedTime()
public OnlineOrderMerchant setId(String id)
public OnlineOrderMerchant setAddress(Address address)
public OnlineOrderMerchant setName(String name)
public OnlineOrderMerchant setPhoneNumber(String phoneNumber)
public OnlineOrderMerchant setEnabled(Boolean enabled)
public OnlineOrderMerchant setMenuWalkthroughComplete(Boolean menuWalkthroughComplete)
public OnlineOrderMerchant setBusinessInfoDone(Boolean businessInfoDone)
public OnlineOrderMerchant setServiceInfoDone(Boolean serviceInfoDone)
public OnlineOrderMerchant setStatus(Status status)
public OnlineOrderMerchant setScheduleOrder(Boolean scheduleOrder)
public OnlineOrderMerchant setScheduleDayRange(Integer scheduleDayRange)
public OnlineOrderMerchant setCreatedTime(Long createdTime)
public OnlineOrderMerchant setModifiedTime(Long modifiedTime)
public OnlineOrderMerchant setLeadTime(Integer leadTime)
public OnlineOrderMerchant setDeletedTime(Long deletedTime)
public void clearId()
public void clearAddress()
public void clearName()
public void clearPhoneNumber()
public void clearEnabled()
public void clearMenuWalkthroughComplete()
public void clearBusinessInfoDone()
public void clearServiceInfoDone()
public void clearStatus()
public void clearScheduleOrder()
public void clearScheduleDayRange()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearLeadTime()
public void clearDeletedTime()
public boolean containsChanges()
public void resetChangeLog()
public OnlineOrderMerchant copyChanges()
public void mergeChanges(OnlineOrderMerchant src)