public class OnlineOrderProvider extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
OnlineOrderProvider.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<OnlineOrderProvider> |
CREATOR |
static JSONifiable.Creator<OnlineOrderProvider> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
OnlineOrderProvider()
Constructs a new empty instance.
|
protected |
OnlineOrderProvider(boolean noInit)
Constructs a new empty instance.
|
|
OnlineOrderProvider(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.
|
|
OnlineOrderProvider(OnlineOrderProvider src)
Constructs a new instance that is a deep copy of the source instance.
|
|
OnlineOrderProvider(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAuthtokenUrl()
Clears the 'authtokenUrl' field, the 'has' method for this field will now return false
|
void |
clearAutoOnline()
Clears the 'autoOnline' field, the 'has' method for this field will now return false
|
void |
clearBackendInstall()
Clears the 'backendInstall' 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 |
clearDeveloperAppId()
Clears the 'developerAppId' field, the 'has' method for this field will now return false
|
void |
clearDeveloperAppPackageName()
Clears the 'developerAppPackageName' field, the 'has' method for this field will now return false
|
void |
clearEnableDeliveryMinimum()
Clears the 'enableDeliveryMinimum' 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 |
clearLogoUrl()
Clears the 'logoUrl' field, the 'has' method for this field will now return false
|
void |
clearManageServices()
Clears the 'manageServices' 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 |
clearProviderType()
Clears the 'providerType' field, the 'has' method for this field will now return false
|
void |
clearToken()
Clears the 'token' field, the 'has' method for this field will now return false
|
void |
clearTrackCustomer()
Clears the 'trackCustomer' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
OnlineOrderProvider |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getAuthtokenUrl()
The url where to receive the authtoken when installing the developer app in the backend
|
Boolean |
getAutoOnline()
If the merchant's online order service and merchant provider status gets online automatically
|
Boolean |
getBackendInstall()
If the provider's app needs to be installed silently in backend
|
Long |
getCreatedTime()
Timestamp when the online ordering merchant was created
|
Long |
getDeletedTime()
Timestamp when online ordering merchant was last deleted
|
String |
getDeveloperAppId()
The developer app id
|
String |
getDeveloperAppPackageName()
The developer app package name
|
Boolean |
getEnableDeliveryMinimum()
Delivery minimum enabled for the merchant
|
protected GenericClient |
getGenericClient() |
String |
getId()
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.
|
String |
getLogoUrl()
The url where to retrieve logo
|
Boolean |
getManageServices()
If the provider's services can be managed individually
|
Long |
getModifiedTime()
Timestamp when the online ordering merchant was last modified
|
String |
getName()
Provider name
|
ProviderType |
getProviderType()
Type of provider denotes whether provider is from restaurant or retail
|
String |
getToken()
The access token used by provider
|
Boolean |
getTrackCustomer()
If track customer of the online order
|
boolean |
hasAuthtokenUrl()
Checks whether the 'authtokenUrl' field has been set, however the value could be null
|
boolean |
hasAutoOnline()
Checks whether the 'autoOnline' field has been set, however the value could be null
|
boolean |
hasBackendInstall()
Checks whether the 'backendInstall' 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 |
hasDeveloperAppId()
Checks whether the 'developerAppId' field has been set, however the value could be null
|
boolean |
hasDeveloperAppPackageName()
Checks whether the 'developerAppPackageName' field has been set, however the value could be null
|
boolean |
hasEnableDeliveryMinimum()
Checks whether the 'enableDeliveryMinimum' 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 |
hasLogoUrl()
Checks whether the 'logoUrl' field has been set, however the value could be null
|
boolean |
hasManageServices()
Checks whether the 'manageServices' 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 |
hasProviderType()
Checks whether the 'providerType' field has been set, however the value could be null
|
boolean |
hasToken()
Checks whether the 'token' field has been set, however the value could be null
|
boolean |
hasTrackCustomer()
Checks whether the 'trackCustomer' field has been set, however the value could be null
|
boolean |
isNotNullAuthtokenUrl()
Checks whether the 'authtokenUrl' field is set and is not null
|
boolean |
isNotNullAutoOnline()
Checks whether the 'autoOnline' field is set and is not null
|
boolean |
isNotNullBackendInstall()
Checks whether the 'backendInstall' 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 |
isNotNullDeveloperAppId()
Checks whether the 'developerAppId' field is set and is not null
|
boolean |
isNotNullDeveloperAppPackageName()
Checks whether the 'developerAppPackageName' field is set and is not null
|
boolean |
isNotNullEnableDeliveryMinimum()
Checks whether the 'enableDeliveryMinimum' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullLogoUrl()
Checks whether the 'logoUrl' field is set and is not null
|
boolean |
isNotNullManageServices()
Checks whether the 'manageServices' 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 |
isNotNullProviderType()
Checks whether the 'providerType' field is set and is not null
|
boolean |
isNotNullToken()
Checks whether the 'token' field is set and is not null
|
boolean |
isNotNullTrackCustomer()
Checks whether the 'trackCustomer' field is set and is not null
|
void |
mergeChanges(OnlineOrderProvider 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.
|
OnlineOrderProvider |
setAuthtokenUrl(String authtokenUrl)
Sets the field 'authtokenUrl'.
|
OnlineOrderProvider |
setAutoOnline(Boolean autoOnline)
Sets the field 'autoOnline'.
|
OnlineOrderProvider |
setBackendInstall(Boolean backendInstall)
Sets the field 'backendInstall'.
|
OnlineOrderProvider |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
OnlineOrderProvider |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
OnlineOrderProvider |
setDeveloperAppId(String developerAppId)
Sets the field 'developerAppId'.
|
OnlineOrderProvider |
setDeveloperAppPackageName(String developerAppPackageName)
Sets the field 'developerAppPackageName'.
|
OnlineOrderProvider |
setEnableDeliveryMinimum(Boolean enableDeliveryMinimum)
Sets the field 'enableDeliveryMinimum'.
|
OnlineOrderProvider |
setId(String id)
Sets the field 'id'.
|
OnlineOrderProvider |
setLogoUrl(String logoUrl)
Sets the field 'logoUrl'.
|
OnlineOrderProvider |
setManageServices(Boolean manageServices)
Sets the field 'manageServices'.
|
OnlineOrderProvider |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
OnlineOrderProvider |
setName(String name)
Sets the field 'name'.
|
OnlineOrderProvider |
setProviderType(ProviderType providerType)
Sets the field 'providerType'.
|
OnlineOrderProvider |
setToken(String token)
Sets the field 'token'.
|
OnlineOrderProvider |
setTrackCustomer(Boolean trackCustomer)
Sets the field 'trackCustomer'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<OnlineOrderProvider> CREATOR
public static final JSONifiable.Creator<OnlineOrderProvider> JSON_CREATOR
public OnlineOrderProvider()
protected OnlineOrderProvider(boolean noInit)
public OnlineOrderProvider(String json) throws IllegalArgumentException
IllegalArgumentException
public OnlineOrderProvider(JSONObject jsonObject)
public OnlineOrderProvider(OnlineOrderProvider src)
public String getId()
public String getName()
public String getLogoUrl()
public String getDeveloperAppId()
public String getDeveloperAppPackageName()
public String getToken()
public String getAuthtokenUrl()
public Boolean getBackendInstall()
public Boolean getAutoOnline()
public Boolean getTrackCustomer()
public Boolean getManageServices()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getDeletedTime()
public Boolean getEnableDeliveryMinimum()
public ProviderType getProviderType()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullName()
public boolean isNotNullLogoUrl()
public boolean isNotNullDeveloperAppId()
public boolean isNotNullDeveloperAppPackageName()
public boolean isNotNullToken()
public boolean isNotNullAuthtokenUrl()
public boolean isNotNullBackendInstall()
public boolean isNotNullAutoOnline()
public boolean isNotNullTrackCustomer()
public boolean isNotNullManageServices()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean isNotNullEnableDeliveryMinimum()
public boolean isNotNullProviderType()
public boolean hasId()
public boolean hasName()
public boolean hasLogoUrl()
public boolean hasDeveloperAppId()
public boolean hasDeveloperAppPackageName()
public boolean hasToken()
public boolean hasAuthtokenUrl()
public boolean hasBackendInstall()
public boolean hasAutoOnline()
public boolean hasTrackCustomer()
public boolean hasManageServices()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public boolean hasEnableDeliveryMinimum()
public boolean hasProviderType()
public OnlineOrderProvider setId(String id)
public OnlineOrderProvider setName(String name)
public OnlineOrderProvider setLogoUrl(String logoUrl)
public OnlineOrderProvider setDeveloperAppId(String developerAppId)
public OnlineOrderProvider setDeveloperAppPackageName(String developerAppPackageName)
public OnlineOrderProvider setToken(String token)
public OnlineOrderProvider setAuthtokenUrl(String authtokenUrl)
public OnlineOrderProvider setBackendInstall(Boolean backendInstall)
public OnlineOrderProvider setAutoOnline(Boolean autoOnline)
public OnlineOrderProvider setTrackCustomer(Boolean trackCustomer)
public OnlineOrderProvider setManageServices(Boolean manageServices)
public OnlineOrderProvider setCreatedTime(Long createdTime)
public OnlineOrderProvider setModifiedTime(Long modifiedTime)
public OnlineOrderProvider setDeletedTime(Long deletedTime)
public OnlineOrderProvider setEnableDeliveryMinimum(Boolean enableDeliveryMinimum)
public OnlineOrderProvider setProviderType(ProviderType providerType)
public void clearId()
public void clearName()
public void clearLogoUrl()
public void clearDeveloperAppId()
public void clearDeveloperAppPackageName()
public void clearToken()
public void clearAuthtokenUrl()
public void clearBackendInstall()
public void clearAutoOnline()
public void clearTrackCustomer()
public void clearManageServices()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearDeletedTime()
public void clearEnableDeliveryMinimum()
public void clearProviderType()
public boolean containsChanges()
public void resetChangeLog()
public OnlineOrderProvider copyChanges()
public void mergeChanges(OnlineOrderProvider src)