CashDrawerConfig

Constructors

Link copied to clipboard
public void CashDrawerConfig()
Constructs a new empty instance.
public void CashDrawerConfig(String json)
Constructs a new instance from the given JSON String.
public void CashDrawerConfig(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.
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
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
public void clearAccountRef()
Clears the 'accountRef' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearConfig()
Clears the 'config' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDefaultSodAmount()
Clears the 'defaultSodAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDeviceRef()
Clears the 'deviceRef' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearMerchantRef()
Clears the 'merchantRef' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearModifiedTime()
Clears the 'modifiedTime' 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 account which created the config
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
Configs for the cash drawer
Link copied to clipboard
Time at when the config was created
Link copied to clipboard
Default start-of-day amount for the cash drawer
Link copied to clipboard
Deleted time
Link copied to clipboard
The device this config is associated with
Link copied to clipboard
public String getId()
Unique identifier
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 merchant this config belongs to
Link copied to clipboard
Time at when the config was last modified
Link copied to clipboard
public boolean hasAccountRef()
Checks whether the 'accountRef' field has been set, however the value could be null
Link copied to clipboard
public boolean hasConfig()
Checks whether the 'config' field has been set, however the value could be null
Link copied to clipboard
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDefaultSodAmount()
Checks whether the 'defaultSodAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDeviceRef()
Checks whether the 'deviceRef' field has been set, however the value could be null
Link copied to clipboard
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
Link copied to clipboard
public boolean hasMerchantRef()
Checks whether the 'merchantRef' field has been set, however the value could be null
Link copied to clipboard
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotNullAccountRef()
Checks whether the 'accountRef' field is set and is not null
Link copied to clipboard
public boolean isNotNullConfig()
Checks whether the 'config' field is set and is not null
Link copied to clipboard
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
Link copied to clipboard
public boolean isNotNullDefaultSodAmount()
Checks whether the 'defaultSodAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
Link copied to clipboard
public boolean isNotNullDeviceRef()
Checks whether the 'deviceRef' field is set and is not null
Link copied to clipboard
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
Link copied to clipboard
public boolean isNotNullMerchantRef()
Checks whether the 'merchantRef' field is set and is not null
Link copied to clipboard
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
Link copied to clipboard
public void mergeChanges(CashDrawerConfig 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
Sets the field 'accountRef'.
Link copied to clipboard
Sets the field 'config'.
Link copied to clipboard
public CashDrawerConfig setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
Link copied to clipboard
public CashDrawerConfig setDefaultSodAmount(Long defaultSodAmount)
Sets the field 'defaultSodAmount'.
Link copied to clipboard
public CashDrawerConfig setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
Link copied to clipboard
Sets the field 'deviceRef'.
Link copied to clipboard
Sets the field 'id'.
Link copied to clipboard
Sets the field 'merchantRef'.
Link copied to clipboard
public CashDrawerConfig setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
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)