public class OnlineOrderCustomer extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
OnlineOrderCustomer.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<OnlineOrderCustomer> |
CREATOR |
static JSONifiable.Creator<OnlineOrderCustomer> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
OnlineOrderCustomer()
Constructs a new empty instance.
|
protected |
OnlineOrderCustomer(boolean noInit)
Constructs a new empty instance.
|
|
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(OnlineOrderCustomer src)
Constructs a new instance that is a deep copy of the source instance.
|
|
OnlineOrderCustomer(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearCustomerAddress()
Clears the 'customerAddress' field, the 'has' method for this field will now return false
|
void |
clearCustomerDisplayName()
Clears the 'customerDisplayName' field, the 'has' method for this field will now return false
|
void |
clearCustomerEmailAddress()
Clears the 'customerEmailAddress' field, the 'has' method for this field will now return false
|
void |
clearCustomerFirstName()
Clears the 'customerFirstName' field, the 'has' method for this field will now return false
|
void |
clearCustomerLastName()
Clears the 'customerLastName' field, the 'has' method for this field will now return false
|
void |
clearCustomerPhoneNumber()
Clears the 'customerPhoneNumber' 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 |
clearIsSnapshot()
Clears the 'isSnapshot' 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
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
OnlineOrderCustomer |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getCreatedTime()
Timestamp when the online ordering item was created
|
Address |
getCustomerAddress()
Online Order customer address
|
String |
getCustomerDisplayName()
Online Order customer display name
|
String |
getCustomerEmailAddress()
Online Order customer email address
|
String |
getCustomerFirstName()
Online Order customer first name
|
String |
getCustomerLastName()
Online Order customer last name
|
String |
getCustomerPhoneNumber()
Online Order customer phone number
|
protected GenericClient |
getGenericClient() |
String |
getId()
online order customer id
|
Boolean |
getIsSnapshot()
If the online order customer info is from snapshot
|
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.
|
Long |
getModifiedTime()
Timestamp when the online ordering item was last modified
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasCustomerAddress()
Checks whether the 'customerAddress' field has been set, however the value could be null
|
boolean |
hasCustomerDisplayName()
Checks whether the 'customerDisplayName' field has been set, however the value could be null
|
boolean |
hasCustomerEmailAddress()
Checks whether the 'customerEmailAddress' field has been set, however the value could be null
|
boolean |
hasCustomerFirstName()
Checks whether the 'customerFirstName' field has been set, however the value could be null
|
boolean |
hasCustomerLastName()
Checks whether the 'customerLastName' field has been set, however the value could be null
|
boolean |
hasCustomerPhoneNumber()
Checks whether the 'customerPhoneNumber' 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 |
hasIsSnapshot()
Checks whether the 'isSnapshot' 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 |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullCustomerAddress()
Checks whether the 'customerAddress' field is set and is not null
|
boolean |
isNotNullCustomerDisplayName()
Checks whether the 'customerDisplayName' field is set and is not null
|
boolean |
isNotNullCustomerEmailAddress()
Checks whether the 'customerEmailAddress' field is set and is not null
|
boolean |
isNotNullCustomerFirstName()
Checks whether the 'customerFirstName' field is set and is not null
|
boolean |
isNotNullCustomerLastName()
Checks whether the 'customerLastName' field is set and is not null
|
boolean |
isNotNullCustomerPhoneNumber()
Checks whether the 'customerPhoneNumber' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullIsSnapshot()
Checks whether the 'isSnapshot' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
void |
mergeChanges(OnlineOrderCustomer 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.
|
OnlineOrderCustomer |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
OnlineOrderCustomer |
setCustomerAddress(Address customerAddress)
Sets the field 'customerAddress'.
|
OnlineOrderCustomer |
setCustomerDisplayName(String customerDisplayName)
Sets the field 'customerDisplayName'.
|
OnlineOrderCustomer |
setCustomerEmailAddress(String customerEmailAddress)
Sets the field 'customerEmailAddress'.
|
OnlineOrderCustomer |
setCustomerFirstName(String customerFirstName)
Sets the field 'customerFirstName'.
|
OnlineOrderCustomer |
setCustomerLastName(String customerLastName)
Sets the field 'customerLastName'.
|
OnlineOrderCustomer |
setCustomerPhoneNumber(String customerPhoneNumber)
Sets the field 'customerPhoneNumber'.
|
OnlineOrderCustomer |
setId(String id)
Sets the field 'id'.
|
OnlineOrderCustomer |
setIsSnapshot(Boolean isSnapshot)
Sets the field 'isSnapshot'.
|
OnlineOrderCustomer |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<OnlineOrderCustomer> CREATOR
public static final JSONifiable.Creator<OnlineOrderCustomer> JSON_CREATOR
public OnlineOrderCustomer()
protected OnlineOrderCustomer(boolean noInit)
public OnlineOrderCustomer(String json) throws IllegalArgumentException
IllegalArgumentException
public OnlineOrderCustomer(JSONObject jsonObject)
public OnlineOrderCustomer(OnlineOrderCustomer src)
public String getId()
public String getCustomerEmailAddress()
public String getCustomerDisplayName()
public String getCustomerFirstName()
public String getCustomerLastName()
public String getCustomerPhoneNumber()
public Address getCustomerAddress()
public Boolean getIsSnapshot()
public Long getCreatedTime()
public Long getModifiedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullCustomerEmailAddress()
public boolean isNotNullCustomerDisplayName()
public boolean isNotNullCustomerFirstName()
public boolean isNotNullCustomerLastName()
public boolean isNotNullCustomerPhoneNumber()
public boolean isNotNullCustomerAddress()
public boolean isNotNullIsSnapshot()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean hasId()
public boolean hasCustomerEmailAddress()
public boolean hasCustomerDisplayName()
public boolean hasCustomerFirstName()
public boolean hasCustomerLastName()
public boolean hasCustomerPhoneNumber()
public boolean hasCustomerAddress()
public boolean hasIsSnapshot()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public OnlineOrderCustomer setId(String id)
public OnlineOrderCustomer setCustomerEmailAddress(String customerEmailAddress)
public OnlineOrderCustomer setCustomerDisplayName(String customerDisplayName)
public OnlineOrderCustomer setCustomerFirstName(String customerFirstName)
public OnlineOrderCustomer setCustomerLastName(String customerLastName)
public OnlineOrderCustomer setCustomerPhoneNumber(String customerPhoneNumber)
public OnlineOrderCustomer setCustomerAddress(Address customerAddress)
public OnlineOrderCustomer setIsSnapshot(Boolean isSnapshot)
public OnlineOrderCustomer setCreatedTime(Long createdTime)
public OnlineOrderCustomer setModifiedTime(Long modifiedTime)
public void clearId()
public void clearCustomerEmailAddress()
public void clearCustomerDisplayName()
public void clearCustomerFirstName()
public void clearCustomerLastName()
public void clearCustomerPhoneNumber()
public void clearCustomerAddress()
public void clearIsSnapshot()
public void clearCreatedTime()
public void clearModifiedTime()
public boolean containsChanges()
public void resetChangeLog()
public OnlineOrderCustomer copyChanges()
public void mergeChanges(OnlineOrderCustomer src)