CashEvent

public class CashEvent extends GenericParcelable implements Validator, JSONifiable

This is an auto-generated Clover data object.

Fields

Constructors

Link copied to clipboard
public void CashEvent()
Constructs a new empty instance.
public void CashEvent(String json)
Constructs a new instance from the given JSON String.
public void CashEvent(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.
public void CashEvent(CashEvent src)
Constructs a new instance that is a deep copy of the source instance.

Types

Link copied to clipboard
public interface Constraints

Properties

Link copied to clipboard
public final static int CONTENTS_FILE_DESCRIPTOR
Link copied to clipboard
public final static Parcelable.Creator<CashEvent> CREATOR
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearAmountChange()
Clears the 'amountChange' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDevice()
Clears the 'device' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearNote()
Clears the 'note' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTimestamp()
Clears the 'timestamp' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearType()
Clears the 'type' field, the 'has' method for this field will now return false
Link copied to clipboard
public boolean containsChanges()
Returns true if this instance has any changes.
Link copied to clipboard
Create a copy of this instance that contains only fields that were set after the constructor was called.
Link copied to clipboard
public abstract int describeContents()
public final int describeContents()
Link copied to clipboard
The amount that was either added, removed of modified by the event
Link copied to clipboard
public final Bundle getBundle()
Gets a Bundle which can be used to get and set data attached to this instance.
Link copied to clipboard
public Device getDevice()
The device that initiated the event
Link copied to clipboard
The employee who performed the event
Link copied to clipboard
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.
Link copied to clipboard
The event occurred for this merchant.
Link copied to clipboard
public String getNote()
Any additional information regarding the event
Link copied to clipboard
public Long getTimestamp()
Time at which the event was executed
Link copied to clipboard
public Type getType()
The type of event that occurred
Link copied to clipboard
public boolean hasAmountChange()
Checks whether the 'amountChange' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDevice()
Checks whether the 'device' field has been set, however the value could be null
Link copied to clipboard
public boolean hasEmployee()
Checks whether the 'employee' field has been set, however the value could be null
Link copied to clipboard
public boolean hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
Link copied to clipboard
public boolean hasNote()
Checks whether the 'note' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTimestamp()
Checks whether the 'timestamp' field has been set, however the value could be null
Link copied to clipboard
public boolean hasType()
Checks whether the 'type' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotNullAmountChange()
Checks whether the 'amountChange' field is set and is not null
Link copied to clipboard
public boolean isNotNullDevice()
Checks whether the 'device' field is set and is not null
Link copied to clipboard
public boolean isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
Link copied to clipboard
public boolean isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
Link copied to clipboard
public boolean isNotNullNote()
Checks whether the 'note' field is set and is not null
Link copied to clipboard
public boolean isNotNullTimestamp()
Checks whether the 'timestamp' field is set and is not null
Link copied to clipboard
public boolean isNotNullType()
Checks whether the 'type' field is set and is not null
Link copied to clipboard
public void mergeChanges(CashEvent src)
Copy all the changed fields from the given source to this instance.
Link copied to clipboard
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
Link copied to clipboard
public CashEvent setAmountChange(Long amountChange)
Sets the field 'amountChange'.
Link copied to clipboard
public CashEvent setDevice(Device device)
Sets the field 'device'.
Link copied to clipboard
public CashEvent setEmployee(Employee employee)
Sets the field 'employee'.
Link copied to clipboard
public CashEvent setMerchant(Reference merchant)
Sets the field 'merchant'.
Link copied to clipboard
public CashEvent setNote(String note)
Sets the field 'note'.
Link copied to clipboard
public CashEvent setTimestamp(Long timestamp)
Sets the field 'timestamp'.
Link copied to clipboard
public CashEvent setType(Type type)
Sets the field 'type'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void validate()
Link copied to clipboard
public abstract void writeToParcel(Parcel p, int p1)
public final void writeToParcel(Parcel dest, int flags)