Class OnlineOrderProvider

    • Constructor Detail

      • OnlineOrderProvider

        public OnlineOrderProvider()
        Constructs a new empty instance.
      • OnlineOrderProvider

        protected OnlineOrderProvider​(boolean noInit)
        Constructs a new empty instance.
      • OnlineOrderProvider

        public 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

        public OnlineOrderProvider​(OnlineOrderProvider 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()
        Provider id
      • getName

        public String getName()
        Provider name
      • getLogoUrl

        public String getLogoUrl()
        The url where to retrieve logo
      • getDeveloperAppId

        public String getDeveloperAppId()
        The developer app id
      • getDeveloperAppPackageName

        public String getDeveloperAppPackageName()
        The developer app package name
      • getToken

        public String getToken()
        The access token used by provider
      • getAuthtokenUrl

        public String getAuthtokenUrl()
        The url where to receive the authtoken when installing the developer app in the backend
      • getBackendInstall

        public Boolean getBackendInstall()
        If the provider's app needs to be installed silently in backend
      • getAutoOnline

        public Boolean getAutoOnline()
        If the merchant's online order service and merchant provider status gets online automatically
      • getTrackCustomer

        public Boolean getTrackCustomer()
        If track customer of the online order
      • getManageServices

        public Boolean getManageServices()
        If the provider's services can be managed individually
      • 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
      • getDeletedTime

        public Long getDeletedTime()
        Timestamp when online ordering merchant was last deleted
      • getEnableDeliveryMinimum

        public Boolean getEnableDeliveryMinimum()
        Delivery minimum enabled for the merchant
      • getProviderType

        public ProviderType getProviderType()
        Type of provider denotes whether provider is from restaurant or retail
      • getOnlineItemValidationEnabled

        public Boolean getOnlineItemValidationEnabled()
        If the provider has been enabled for online order item validation checks
      • getOrderapiTimeValidationEnabled

        public Boolean getOrderapiTimeValidationEnabled()
        If the provider has been enabled for online order time validation checks
      • getEnableDeliveryService

        public Boolean getEnableDeliveryService()
        If the provider has been enabled for Clover delivery-service
      • getEnableOrderStatusManagement

        public Boolean getEnableOrderStatusManagement()
        If provider has been enabled for Order Status Management on device
      • 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 interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • isNotNullLogoUrl

        public boolean isNotNullLogoUrl()
        Checks whether the 'logoUrl' field is set and is not null
      • isNotNullDeveloperAppId

        public boolean isNotNullDeveloperAppId()
        Checks whether the 'developerAppId' field is set and is not null
      • isNotNullDeveloperAppPackageName

        public boolean isNotNullDeveloperAppPackageName()
        Checks whether the 'developerAppPackageName' field is set and is not null
      • isNotNullToken

        public boolean isNotNullToken()
        Checks whether the 'token' field is set and is not null
      • isNotNullAuthtokenUrl

        public boolean isNotNullAuthtokenUrl()
        Checks whether the 'authtokenUrl' field is set and is not null
      • isNotNullBackendInstall

        public boolean isNotNullBackendInstall()
        Checks whether the 'backendInstall' field is set and is not null
      • isNotNullAutoOnline

        public boolean isNotNullAutoOnline()
        Checks whether the 'autoOnline' field is set and is not null
      • isNotNullTrackCustomer

        public boolean isNotNullTrackCustomer()
        Checks whether the 'trackCustomer' field is set and is not null
      • isNotNullManageServices

        public boolean isNotNullManageServices()
        Checks whether the 'manageServices' 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
      • isNotNullEnableDeliveryMinimum

        public boolean isNotNullEnableDeliveryMinimum()
        Checks whether the 'enableDeliveryMinimum' field is set and is not null
      • isNotNullProviderType

        public boolean isNotNullProviderType()
        Checks whether the 'providerType' field is set and is not null
      • isNotNullOnlineItemValidationEnabled

        public boolean isNotNullOnlineItemValidationEnabled()
        Checks whether the 'onlineItemValidationEnabled' field is set and is not null
      • isNotNullOrderapiTimeValidationEnabled

        public boolean isNotNullOrderapiTimeValidationEnabled()
        Checks whether the 'orderapiTimeValidationEnabled' field is set and is not null
      • isNotNullEnableDeliveryService

        public boolean isNotNullEnableDeliveryService()
        Checks whether the 'enableDeliveryService' field is set and is not null
      • isNotNullEnableOrderStatusManagement

        public boolean isNotNullEnableOrderStatusManagement()
        Checks whether the 'enableOrderStatusManagement' 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
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • hasLogoUrl

        public boolean hasLogoUrl()
        Checks whether the 'logoUrl' field has been set, however the value could be null
      • hasDeveloperAppId

        public boolean hasDeveloperAppId()
        Checks whether the 'developerAppId' field has been set, however the value could be null
      • hasDeveloperAppPackageName

        public boolean hasDeveloperAppPackageName()
        Checks whether the 'developerAppPackageName' field has been set, however the value could be null
      • hasToken

        public boolean hasToken()
        Checks whether the 'token' field has been set, however the value could be null
      • hasAuthtokenUrl

        public boolean hasAuthtokenUrl()
        Checks whether the 'authtokenUrl' field has been set, however the value could be null
      • hasBackendInstall

        public boolean hasBackendInstall()
        Checks whether the 'backendInstall' field has been set, however the value could be null
      • hasAutoOnline

        public boolean hasAutoOnline()
        Checks whether the 'autoOnline' field has been set, however the value could be null
      • hasTrackCustomer

        public boolean hasTrackCustomer()
        Checks whether the 'trackCustomer' field has been set, however the value could be null
      • hasManageServices

        public boolean hasManageServices()
        Checks whether the 'manageServices' 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
      • hasEnableDeliveryMinimum

        public boolean hasEnableDeliveryMinimum()
        Checks whether the 'enableDeliveryMinimum' field has been set, however the value could be null
      • hasProviderType

        public boolean hasProviderType()
        Checks whether the 'providerType' field has been set, however the value could be null
      • hasOnlineItemValidationEnabled

        public boolean hasOnlineItemValidationEnabled()
        Checks whether the 'onlineItemValidationEnabled' field has been set, however the value could be null
      • hasOrderapiTimeValidationEnabled

        public boolean hasOrderapiTimeValidationEnabled()
        Checks whether the 'orderapiTimeValidationEnabled' field has been set, however the value could be null
      • hasEnableDeliveryService

        public boolean hasEnableDeliveryService()
        Checks whether the 'enableDeliveryService' field has been set, however the value could be null
      • hasEnableOrderStatusManagement

        public boolean hasEnableOrderStatusManagement()
        Checks whether the 'enableOrderStatusManagement' field has been set, however the value could be null
      • setDeveloperAppId

        public OnlineOrderProvider setDeveloperAppId​(String developerAppId)
        Sets the field 'developerAppId'.
      • setDeveloperAppPackageName

        public OnlineOrderProvider setDeveloperAppPackageName​(String developerAppPackageName)
        Sets the field 'developerAppPackageName'.
      • setModifiedTime

        public OnlineOrderProvider setModifiedTime​(Long modifiedTime)
        Sets the field 'modifiedTime'.
      • setEnableDeliveryMinimum

        public OnlineOrderProvider setEnableDeliveryMinimum​(Boolean enableDeliveryMinimum)
        Sets the field 'enableDeliveryMinimum'.
      • setOnlineItemValidationEnabled

        public OnlineOrderProvider setOnlineItemValidationEnabled​(Boolean onlineItemValidationEnabled)
        Sets the field 'onlineItemValidationEnabled'.
      • setOrderapiTimeValidationEnabled

        public OnlineOrderProvider setOrderapiTimeValidationEnabled​(Boolean orderapiTimeValidationEnabled)
        Sets the field 'orderapiTimeValidationEnabled'.
      • setEnableDeliveryService

        public OnlineOrderProvider setEnableDeliveryService​(Boolean enableDeliveryService)
        Sets the field 'enableDeliveryService'.
      • setEnableOrderStatusManagement

        public OnlineOrderProvider setEnableOrderStatusManagement​(Boolean enableOrderStatusManagement)
        Sets the field 'enableOrderStatusManagement'.
      • clearId

        public void clearId()
        Clears the 'id' 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
      • clearLogoUrl

        public void clearLogoUrl()
        Clears the 'logoUrl' field, the 'has' method for this field will now return false
      • clearDeveloperAppId

        public void clearDeveloperAppId()
        Clears the 'developerAppId' field, the 'has' method for this field will now return false
      • clearDeveloperAppPackageName

        public void clearDeveloperAppPackageName()
        Clears the 'developerAppPackageName' field, the 'has' method for this field will now return false
      • clearToken

        public void clearToken()
        Clears the 'token' field, the 'has' method for this field will now return false
      • clearAuthtokenUrl

        public void clearAuthtokenUrl()
        Clears the 'authtokenUrl' field, the 'has' method for this field will now return false
      • clearBackendInstall

        public void clearBackendInstall()
        Clears the 'backendInstall' field, the 'has' method for this field will now return false
      • clearAutoOnline

        public void clearAutoOnline()
        Clears the 'autoOnline' field, the 'has' method for this field will now return false
      • clearTrackCustomer

        public void clearTrackCustomer()
        Clears the 'trackCustomer' field, the 'has' method for this field will now return false
      • clearManageServices

        public void clearManageServices()
        Clears the 'manageServices' 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
      • clearEnableDeliveryMinimum

        public void clearEnableDeliveryMinimum()
        Clears the 'enableDeliveryMinimum' field, the 'has' method for this field will now return false
      • clearProviderType

        public void clearProviderType()
        Clears the 'providerType' field, the 'has' method for this field will now return false
      • clearOnlineItemValidationEnabled

        public void clearOnlineItemValidationEnabled()
        Clears the 'onlineItemValidationEnabled' field, the 'has' method for this field will now return false
      • clearOrderapiTimeValidationEnabled

        public void clearOrderapiTimeValidationEnabled()
        Clears the 'orderapiTimeValidationEnabled' field, the 'has' method for this field will now return false
      • clearEnableDeliveryService

        public void clearEnableDeliveryService()
        Clears the 'enableDeliveryService' field, the 'has' method for this field will now return false
      • clearEnableOrderStatusManagement

        public void clearEnableOrderStatusManagement()
        Clears the 'enableOrderStatusManagement' 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 OnlineOrderProvider copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(OnlineOrderProvider src)
        Copy all the changed fields from the given source to this instance.