Class OnlineOrderMerchant

    • Constructor Detail

      • OnlineOrderMerchant

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

        protected OnlineOrderMerchant​(boolean noInit)
        Constructs a new empty instance.
      • 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
      • 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
      • 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
      • 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.
      • 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'.
      • setScheduleDayRange

        public OnlineOrderMerchant setScheduleDayRange​(Integer scheduleDayRange)
        Sets the field 'scheduleDayRange'.
      • setModifiedTime

        public OnlineOrderMerchant setModifiedTime​(Long modifiedTime)
        Sets the field 'modifiedTime'.
      • 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.