Package com.clover.sdk.v3.onlineorder
Class OnlineOrderCustomer
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.onlineorder.OnlineOrderCustomer
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class OnlineOrderCustomer extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
OnlineOrderCustomer.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<OnlineOrderCustomer>
CREATOR
static JSONifiable.Creator<OnlineOrderCustomer>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description OnlineOrderCustomer()
Constructs a new empty instance.protected
OnlineOrderCustomer(boolean noInit)
Constructs a new empty instance.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearCustomerAddress()
Clears the 'customerAddress' field, the 'has' method for this field will now return falsevoid
clearCustomerDisplayName()
Clears the 'customerDisplayName' field, the 'has' method for this field will now return falsevoid
clearCustomerEmailAddress()
Clears the 'customerEmailAddress' field, the 'has' method for this field will now return falsevoid
clearCustomerFirstName()
Clears the 'customerFirstName' field, the 'has' method for this field will now return falsevoid
clearCustomerLastName()
Clears the 'customerLastName' field, the 'has' method for this field will now return falsevoid
clearCustomerPhoneNumber()
Clears the 'customerPhoneNumber' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearIsSnapshot()
Clears the 'isSnapshot' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falseboolean
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 createdAddress
getCustomerAddress()
Online Order customer addressString
getCustomerDisplayName()
Online Order customer display nameString
getCustomerEmailAddress()
Online Order customer email addressString
getCustomerFirstName()
Online Order customer first nameString
getCustomerLastName()
Online Order customer last nameString
getCustomerPhoneNumber()
Online Order customer phone numberprotected GenericClient
getGenericClient()
String
getId()
online order customer idBoolean
getIsSnapshot()
If the online order customer info is from snapshotJSONObject
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 modifiedboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasCustomerAddress()
Checks whether the 'customerAddress' field has been set, however the value could be nullboolean
hasCustomerDisplayName()
Checks whether the 'customerDisplayName' field has been set, however the value could be nullboolean
hasCustomerEmailAddress()
Checks whether the 'customerEmailAddress' field has been set, however the value could be nullboolean
hasCustomerFirstName()
Checks whether the 'customerFirstName' field has been set, however the value could be nullboolean
hasCustomerLastName()
Checks whether the 'customerLastName' field has been set, however the value could be nullboolean
hasCustomerPhoneNumber()
Checks whether the 'customerPhoneNumber' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasIsSnapshot()
Checks whether the 'isSnapshot' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullCustomerAddress()
Checks whether the 'customerAddress' field is set and is not nullboolean
isNotNullCustomerDisplayName()
Checks whether the 'customerDisplayName' field is set and is not nullboolean
isNotNullCustomerEmailAddress()
Checks whether the 'customerEmailAddress' field is set and is not nullboolean
isNotNullCustomerFirstName()
Checks whether the 'customerFirstName' field is set and is not nullboolean
isNotNullCustomerLastName()
Checks whether the 'customerLastName' field is set and is not nullboolean
isNotNullCustomerPhoneNumber()
Checks whether the 'customerPhoneNumber' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullIsSnapshot()
Checks whether the 'isSnapshot' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<OnlineOrderCustomer> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<OnlineOrderCustomer> JSON_CREATOR
-
-
Constructor Detail
-
OnlineOrderCustomer
public OnlineOrderCustomer()
Constructs a new empty instance.
-
OnlineOrderCustomer
protected OnlineOrderCustomer(boolean noInit)
Constructs a new empty instance.
-
OnlineOrderCustomer
public OnlineOrderCustomer(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
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 interfaceJSONifiable
-
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
-
setId
public OnlineOrderCustomer setId(String id)
Sets the field 'id'.
-
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.
-
setIsSnapshot
public OnlineOrderCustomer setIsSnapshot(Boolean isSnapshot)
Sets the field 'isSnapshot'.
-
setCreatedTime
public OnlineOrderCustomer setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
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.
-
-