Class OnlineOrderCustomer

    • Constructor Detail

      • OnlineOrderCustomer

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

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

        public OnlineOrderCustomer​(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.
      • OnlineOrderCustomer

        public OnlineOrderCustomer​(OnlineOrderCustomer 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()
        online order customer id
      • getCustomerEmailAddress

        public String getCustomerEmailAddress()
        Online Order customer email address
      • getCustomerDisplayName

        public String getCustomerDisplayName()
        Online Order customer display name
      • getCustomerFirstName

        public String getCustomerFirstName()
        Online Order customer first name
      • getCustomerLastName

        public String getCustomerLastName()
        Online Order customer last name
      • getCustomerPhoneNumber

        public String getCustomerPhoneNumber()
        Online Order customer phone number
      • getCustomerAddress

        public Address getCustomerAddress()
        Online Order customer address
      • getIsSnapshot

        public Boolean getIsSnapshot()
        If the online order customer info is from snapshot
      • getCreatedTime

        public Long getCreatedTime()
        Timestamp when the online ordering item was created
      • getModifiedTime

        public Long getModifiedTime()
        Timestamp when the online ordering item was last modified
      • 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
      • isNotNullCustomerEmailAddress

        public boolean isNotNullCustomerEmailAddress()
        Checks whether the 'customerEmailAddress' field is set and is not null
      • isNotNullCustomerDisplayName

        public boolean isNotNullCustomerDisplayName()
        Checks whether the 'customerDisplayName' field is set and is not null
      • isNotNullCustomerFirstName

        public boolean isNotNullCustomerFirstName()
        Checks whether the 'customerFirstName' field is set and is not null
      • isNotNullCustomerLastName

        public boolean isNotNullCustomerLastName()
        Checks whether the 'customerLastName' field is set and is not null
      • isNotNullCustomerPhoneNumber

        public boolean isNotNullCustomerPhoneNumber()
        Checks whether the 'customerPhoneNumber' field is set and is not null
      • isNotNullCustomerAddress

        public boolean isNotNullCustomerAddress()
        Checks whether the 'customerAddress' field is set and is not null
      • isNotNullIsSnapshot

        public boolean isNotNullIsSnapshot()
        Checks whether the 'isSnapshot' 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
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasCustomerEmailAddress

        public boolean hasCustomerEmailAddress()
        Checks whether the 'customerEmailAddress' field has been set, however the value could be null
      • hasCustomerDisplayName

        public boolean hasCustomerDisplayName()
        Checks whether the 'customerDisplayName' field has been set, however the value could be null
      • hasCustomerFirstName

        public boolean hasCustomerFirstName()
        Checks whether the 'customerFirstName' field has been set, however the value could be null
      • hasCustomerLastName

        public boolean hasCustomerLastName()
        Checks whether the 'customerLastName' field has been set, however the value could be null
      • hasCustomerPhoneNumber

        public boolean hasCustomerPhoneNumber()
        Checks whether the 'customerPhoneNumber' field has been set, however the value could be null
      • hasCustomerAddress

        public boolean hasCustomerAddress()
        Checks whether the 'customerAddress' field has been set, however the value could be null
      • hasIsSnapshot

        public boolean hasIsSnapshot()
        Checks whether the 'isSnapshot' 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
      • setCustomerEmailAddress

        public OnlineOrderCustomer setCustomerEmailAddress​(String customerEmailAddress)
        Sets the field 'customerEmailAddress'.
      • setCustomerDisplayName

        public OnlineOrderCustomer setCustomerDisplayName​(String customerDisplayName)
        Sets the field 'customerDisplayName'.
      • setCustomerFirstName

        public OnlineOrderCustomer setCustomerFirstName​(String customerFirstName)
        Sets the field 'customerFirstName'.
      • setCustomerLastName

        public OnlineOrderCustomer setCustomerLastName​(String customerLastName)
        Sets the field 'customerLastName'.
      • setCustomerPhoneNumber

        public OnlineOrderCustomer setCustomerPhoneNumber​(String customerPhoneNumber)
        Sets the field 'customerPhoneNumber'.
      • setCustomerAddress

        public OnlineOrderCustomer setCustomerAddress​(Address customerAddress)
        Sets the field 'customerAddress'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setModifiedTime

        public OnlineOrderCustomer 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
      • clearCustomerEmailAddress

        public void clearCustomerEmailAddress()
        Clears the 'customerEmailAddress' field, the 'has' method for this field will now return false
      • clearCustomerDisplayName

        public void clearCustomerDisplayName()
        Clears the 'customerDisplayName' field, the 'has' method for this field will now return false
      • clearCustomerFirstName

        public void clearCustomerFirstName()
        Clears the 'customerFirstName' field, the 'has' method for this field will now return false
      • clearCustomerLastName

        public void clearCustomerLastName()
        Clears the 'customerLastName' field, the 'has' method for this field will now return false
      • clearCustomerPhoneNumber

        public void clearCustomerPhoneNumber()
        Clears the 'customerPhoneNumber' field, the 'has' method for this field will now return false
      • clearCustomerAddress

        public void clearCustomerAddress()
        Clears the 'customerAddress' field, the 'has' method for this field will now return false
      • clearIsSnapshot

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

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