Package com.clover.sdk.v3.onlineorder
Class OnlineOrderMerchant
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.onlineorder.OnlineOrderMerchant
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class OnlineOrderMerchant 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
OnlineOrderMerchant.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<OnlineOrderMerchant>
CREATOR
static JSONifiable.Creator<OnlineOrderMerchant>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description OnlineOrderMerchant()
Constructs a new empty instance.protected
OnlineOrderMerchant(boolean noInit)
Constructs a new empty instance.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAddress()
Clears the 'address' field, the 'has' method for this field will now return falsevoid
clearBusinessInfoDone()
Clears the 'businessInfoDone' 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
clearLeadTime()
Clears the 'leadTime' field, the 'has' method for this field will now return falsevoid
clearMenuWalkthroughComplete()
Clears the 'menuWalkthroughComplete' 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
clearName()
Clears the 'name' field, the 'has' method for this field will now return falsevoid
clearPhoneNumber()
Clears the 'phoneNumber' field, the 'has' method for this field will now return falsevoid
clearScheduleDayRange()
Clears the 'scheduleDayRange' field, the 'has' method for this field will now return falsevoid
clearScheduleOrder()
Clears the 'scheduleOrder' field, the 'has' method for this field will now return falsevoid
clearServiceInfoDone()
Clears the 'serviceInfoDone' field, the 'has' method for this field will now return falsevoid
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return falseboolean
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 addressBoolean
getBusinessInfoDone()
Finished collecting business informationLong
getCreatedTime()
Timestamp when the online ordering merchant was createdLong
getDeletedTime()
Timestamp when online ordering merchant was last deletedBoolean
getEnabled()
Restaurant enabled for online orderingprotected GenericClient
getGenericClient()
String
getId()
merchant idJSONObject
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 prepareBoolean
getMenuWalkthroughComplete()
Auto-curation menu walkthrough completeLong
getModifiedTime()
Timestamp when the online ordering merchant was last modifiedString
getName()
Customer facing business nameString
getPhoneNumber()
Integer
getScheduleDayRange()
Order ahead day rangeBoolean
getScheduleOrder()
If the merchant accepts scheduled orderBoolean
getServiceInfoDone()
Finished collecting service informationStatus
getStatus()
Restaurant online order onboarding statusboolean
hasAddress()
Checks whether the 'address' field has been set, however the value could be nullboolean
hasBusinessInfoDone()
Checks whether the 'businessInfoDone' 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
hasLeadTime()
Checks whether the 'leadTime' field has been set, however the value could be nullboolean
hasMenuWalkthroughComplete()
Checks whether the 'menuWalkthroughComplete' 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
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
hasPhoneNumber()
Checks whether the 'phoneNumber' field has been set, however the value could be nullboolean
hasScheduleDayRange()
Checks whether the 'scheduleDayRange' field has been set, however the value could be nullboolean
hasScheduleOrder()
Checks whether the 'scheduleOrder' field has been set, however the value could be nullboolean
hasServiceInfoDone()
Checks whether the 'serviceInfoDone' field has been set, however the value could be nullboolean
hasStatus()
Checks whether the 'status' field has been set, however the value could be nullboolean
isNotNullAddress()
Checks whether the 'address' field is set and is not nullboolean
isNotNullBusinessInfoDone()
Checks whether the 'businessInfoDone' 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
isNotNullLeadTime()
Checks whether the 'leadTime' field is set and is not nullboolean
isNotNullMenuWalkthroughComplete()
Checks whether the 'menuWalkthroughComplete' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullboolean
isNotNullPhoneNumber()
Checks whether the 'phoneNumber' field is set and is not nullboolean
isNotNullScheduleDayRange()
Checks whether the 'scheduleDayRange' field is set and is not nullboolean
isNotNullScheduleOrder()
Checks whether the 'scheduleOrder' field is set and is not nullboolean
isNotNullServiceInfoDone()
Checks whether the 'serviceInfoDone' field is set and is not nullboolean
isNotNullStatus()
Checks whether the 'status' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<OnlineOrderMerchant> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<OnlineOrderMerchant> JSON_CREATOR
-
-
Constructor Detail
-
OnlineOrderMerchant
public OnlineOrderMerchant()
Constructs a new empty instance.
-
OnlineOrderMerchant
protected OnlineOrderMerchant(boolean noInit)
Constructs a new empty instance.
-
OnlineOrderMerchant
public OnlineOrderMerchant(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
OnlineOrderMerchant
public 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
public OnlineOrderMerchant(OnlineOrderMerchant 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()
merchant id
-
getAddress
public Address getAddress()
The merchant address
-
getName
public String getName()
Customer facing business name
-
getPhoneNumber
public String getPhoneNumber()
-
getEnabled
public Boolean getEnabled()
Restaurant enabled for online ordering
-
getMenuWalkthroughComplete
public Boolean getMenuWalkthroughComplete()
Auto-curation menu walkthrough complete
-
getBusinessInfoDone
public Boolean getBusinessInfoDone()
Finished collecting business information
-
getServiceInfoDone
public Boolean getServiceInfoDone()
Finished collecting service information
-
getStatus
public Status getStatus()
Restaurant online order onboarding status
-
getScheduleOrder
public Boolean getScheduleOrder()
If the merchant accepts scheduled order
-
getScheduleDayRange
public Integer getScheduleDayRange()
Order ahead day range
-
getCreatedTime
public Long getCreatedTime()
Timestamp when the online ordering merchant was created
-
getModifiedTime
public Long getModifiedTime()
Timestamp when the online ordering merchant was last modified
-
getLeadTime
public Integer getLeadTime()
Number of minutes to tell the customer the order usually takes to prepare
-
getDeletedTime
public Long getDeletedTime()
Timestamp when online ordering merchant was last deleted
-
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
-
isNotNullAddress
public boolean isNotNullAddress()
Checks whether the 'address' field is set and is not null
-
isNotNullName
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
-
isNotNullPhoneNumber
public boolean isNotNullPhoneNumber()
Checks whether the 'phoneNumber' field is set and is not null
-
isNotNullEnabled
public boolean isNotNullEnabled()
Checks whether the 'enabled' field is set and is not null
-
isNotNullMenuWalkthroughComplete
public boolean isNotNullMenuWalkthroughComplete()
Checks whether the 'menuWalkthroughComplete' field is set and is not null
-
isNotNullBusinessInfoDone
public boolean isNotNullBusinessInfoDone()
Checks whether the 'businessInfoDone' field is set and is not null
-
isNotNullServiceInfoDone
public boolean isNotNullServiceInfoDone()
Checks whether the 'serviceInfoDone' field is set and is not null
-
isNotNullStatus
public boolean isNotNullStatus()
Checks whether the 'status' field is set and is not null
-
isNotNullScheduleOrder
public boolean isNotNullScheduleOrder()
Checks whether the 'scheduleOrder' field is set and is not null
-
isNotNullScheduleDayRange
public boolean isNotNullScheduleDayRange()
Checks whether the 'scheduleDayRange' 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
-
isNotNullLeadTime
public boolean isNotNullLeadTime()
Checks whether the 'leadTime' field is set and is not null
-
isNotNullDeletedTime
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' 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
-
hasAddress
public boolean hasAddress()
Checks whether the 'address' field has been set, however the value could be null
-
hasName
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
-
hasPhoneNumber
public boolean hasPhoneNumber()
Checks whether the 'phoneNumber' 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
-
hasMenuWalkthroughComplete
public boolean hasMenuWalkthroughComplete()
Checks whether the 'menuWalkthroughComplete' field has been set, however the value could be null
-
hasBusinessInfoDone
public boolean hasBusinessInfoDone()
Checks whether the 'businessInfoDone' field has been set, however the value could be null
-
hasServiceInfoDone
public boolean hasServiceInfoDone()
Checks whether the 'serviceInfoDone' field has been set, however the value could be null
-
hasStatus
public boolean hasStatus()
Checks whether the 'status' field has been set, however the value could be null
-
hasScheduleOrder
public boolean hasScheduleOrder()
Checks whether the 'scheduleOrder' field has been set, however the value could be null
-
hasScheduleDayRange
public boolean hasScheduleDayRange()
Checks whether the 'scheduleDayRange' 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
-
hasLeadTime
public boolean hasLeadTime()
Checks whether the 'leadTime' 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
-
setId
public OnlineOrderMerchant setId(String id)
Sets the field 'id'.
-
setAddress
public OnlineOrderMerchant setAddress(Address address)
Sets the field 'address'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setName
public OnlineOrderMerchant setName(String name)
Sets the field 'name'.
-
setPhoneNumber
public OnlineOrderMerchant setPhoneNumber(String phoneNumber)
Sets the field 'phoneNumber'.
-
setEnabled
public OnlineOrderMerchant setEnabled(Boolean enabled)
Sets the field 'enabled'.
-
setMenuWalkthroughComplete
public OnlineOrderMerchant setMenuWalkthroughComplete(Boolean menuWalkthroughComplete)
Sets the field 'menuWalkthroughComplete'.
-
setBusinessInfoDone
public OnlineOrderMerchant setBusinessInfoDone(Boolean businessInfoDone)
Sets the field 'businessInfoDone'.
-
setServiceInfoDone
public OnlineOrderMerchant setServiceInfoDone(Boolean serviceInfoDone)
Sets the field 'serviceInfoDone'.
-
setStatus
public OnlineOrderMerchant setStatus(Status status)
Sets the field 'status'.
-
setScheduleOrder
public OnlineOrderMerchant setScheduleOrder(Boolean scheduleOrder)
Sets the field 'scheduleOrder'.
-
setScheduleDayRange
public OnlineOrderMerchant setScheduleDayRange(Integer scheduleDayRange)
Sets the field 'scheduleDayRange'.
-
setCreatedTime
public OnlineOrderMerchant setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
setModifiedTime
public OnlineOrderMerchant setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
-
setLeadTime
public OnlineOrderMerchant setLeadTime(Integer leadTime)
Sets the field 'leadTime'.
-
setDeletedTime
public OnlineOrderMerchant setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearAddress
public void clearAddress()
Clears the 'address' field, the 'has' method for this field will now return false
-
clearName
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
-
clearPhoneNumber
public void clearPhoneNumber()
Clears the 'phoneNumber' 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
-
clearMenuWalkthroughComplete
public void clearMenuWalkthroughComplete()
Clears the 'menuWalkthroughComplete' field, the 'has' method for this field will now return false
-
clearBusinessInfoDone
public void clearBusinessInfoDone()
Clears the 'businessInfoDone' field, the 'has' method for this field will now return false
-
clearServiceInfoDone
public void clearServiceInfoDone()
Clears the 'serviceInfoDone' field, the 'has' method for this field will now return false
-
clearStatus
public void clearStatus()
Clears the 'status' field, the 'has' method for this field will now return false
-
clearScheduleOrder
public void clearScheduleOrder()
Clears the 'scheduleOrder' field, the 'has' method for this field will now return false
-
clearScheduleDayRange
public void clearScheduleDayRange()
Clears the 'scheduleDayRange' 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
-
clearLeadTime
public void clearLeadTime()
Clears the 'leadTime' 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
-
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 OnlineOrderMerchant copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(OnlineOrderMerchant src)
Copy all the changed fields from the given source to this instance.
-
-