public class DeviceTotalStats extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
DeviceTotalStats.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DeviceTotalStats> |
CREATOR |
static JSONifiable.Creator<DeviceTotalStats> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
DeviceTotalStats()
Constructs a new empty instance.
|
protected |
DeviceTotalStats(boolean noInit)
Constructs a new empty instance.
|
|
DeviceTotalStats(DeviceTotalStats src)
Constructs a new instance that is a deep copy of the source instance.
|
|
DeviceTotalStats(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.
|
|
DeviceTotalStats(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCardTotals()
Clears the 'cardTotals' field, the 'has' method for this field will now return false
|
void |
clearDeviceId()
Clears the 'deviceId' field, the 'has' method for this field will now return false
|
void |
clearDeviceName()
Clears the 'deviceName' field, the 'has' method for this field will now return false
|
void |
clearDeviceSerial()
Clears the 'deviceSerial' field, the 'has' method for this field will now return false
|
void |
clearGiftCardCashOuts()
Clears the 'giftCardCashOuts' field, the 'has' method for this field will now return false
|
void |
clearGiftCardLoads()
Clears the 'giftCardLoads' field, the 'has' method for this field will now return false
|
void |
clearNet()
Clears the 'net' field, the 'has' method for this field will now return false
|
void |
clearRefunds()
Clears the 'refunds' field, the 'has' method for this field will now return false
|
void |
clearSales()
Clears the 'sales' field, the 'has' method for this field will now return false
|
void |
clearTax()
Clears the 'tax' field, the 'has' method for this field will now return false
|
void |
clearTerminalId()
Clears the 'terminalId' field, the 'has' method for this field will now return false
|
void |
clearTips()
Clears the 'tips' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
DeviceTotalStats |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
List<BatchCardTotal> |
getCardTotals() |
Long |
getDeviceId()
Device ID corresponding to these stats
|
String |
getDeviceName()
Device name corresponding to these stats
|
String |
getDeviceSerial()
Device serial number corresponding to these stats
|
protected GenericClient |
getGenericClient() |
BatchTotalType |
getGiftCardCashOuts() |
BatchTotalType |
getGiftCardLoads() |
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.
|
BatchTotalType |
getNet() |
BatchTotalType |
getRefunds() |
BatchTotalType |
getSales() |
BatchTotalType |
getTax() |
String |
getTerminalId()
Terminal ID of Device corresponding to these stats
|
BatchTotalType |
getTips() |
boolean |
hasCardTotals()
Checks whether the 'cardTotals' field has been set, however the value could be null
|
boolean |
hasDeviceId()
Checks whether the 'deviceId' field has been set, however the value could be null
|
boolean |
hasDeviceName()
Checks whether the 'deviceName' field has been set, however the value could be null
|
boolean |
hasDeviceSerial()
Checks whether the 'deviceSerial' field has been set, however the value could be null
|
boolean |
hasGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field has been set, however the value could be null
|
boolean |
hasGiftCardLoads()
Checks whether the 'giftCardLoads' field has been set, however the value could be null
|
boolean |
hasNet()
Checks whether the 'net' field has been set, however the value could be null
|
boolean |
hasRefunds()
Checks whether the 'refunds' field has been set, however the value could be null
|
boolean |
hasSales()
Checks whether the 'sales' field has been set, however the value could be null
|
boolean |
hasTax()
Checks whether the 'tax' field has been set, however the value could be null
|
boolean |
hasTerminalId()
Checks whether the 'terminalId' field has been set, however the value could be null
|
boolean |
hasTips()
Checks whether the 'tips' field has been set, however the value could be null
|
boolean |
isNotEmptyCardTotals()
Checks whether the 'cardTotals' field is set and is not null and is not empty
|
boolean |
isNotNullCardTotals()
Checks whether the 'cardTotals' field is set and is not null
|
boolean |
isNotNullDeviceId()
Checks whether the 'deviceId' field is set and is not null
|
boolean |
isNotNullDeviceName()
Checks whether the 'deviceName' field is set and is not null
|
boolean |
isNotNullDeviceSerial()
Checks whether the 'deviceSerial' field is set and is not null
|
boolean |
isNotNullGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field is set and is not null
|
boolean |
isNotNullGiftCardLoads()
Checks whether the 'giftCardLoads' field is set and is not null
|
boolean |
isNotNullNet()
Checks whether the 'net' field is set and is not null
|
boolean |
isNotNullRefunds()
Checks whether the 'refunds' field is set and is not null
|
boolean |
isNotNullSales()
Checks whether the 'sales' field is set and is not null
|
boolean |
isNotNullTax()
Checks whether the 'tax' field is set and is not null
|
boolean |
isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not null
|
boolean |
isNotNullTips()
Checks whether the 'tips' field is set and is not null
|
void |
mergeChanges(DeviceTotalStats 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.
|
DeviceTotalStats |
setCardTotals(List<BatchCardTotal> cardTotals)
Sets the field 'cardTotals'.
|
DeviceTotalStats |
setDeviceId(Long deviceId)
Sets the field 'deviceId'.
|
DeviceTotalStats |
setDeviceName(String deviceName)
Sets the field 'deviceName'.
|
DeviceTotalStats |
setDeviceSerial(String deviceSerial)
Sets the field 'deviceSerial'.
|
DeviceTotalStats |
setGiftCardCashOuts(BatchTotalType giftCardCashOuts)
Sets the field 'giftCardCashOuts'.
|
DeviceTotalStats |
setGiftCardLoads(BatchTotalType giftCardLoads)
Sets the field 'giftCardLoads'.
|
DeviceTotalStats |
setNet(BatchTotalType net)
Sets the field 'net'.
|
DeviceTotalStats |
setRefunds(BatchTotalType refunds)
Sets the field 'refunds'.
|
DeviceTotalStats |
setSales(BatchTotalType sales)
Sets the field 'sales'.
|
DeviceTotalStats |
setTax(BatchTotalType tax)
Sets the field 'tax'.
|
DeviceTotalStats |
setTerminalId(String terminalId)
Sets the field 'terminalId'.
|
DeviceTotalStats |
setTips(BatchTotalType tips)
Sets the field 'tips'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<DeviceTotalStats> CREATOR
public static final JSONifiable.Creator<DeviceTotalStats> JSON_CREATOR
public DeviceTotalStats()
protected DeviceTotalStats(boolean noInit)
public DeviceTotalStats(String json) throws IllegalArgumentException
IllegalArgumentException
public DeviceTotalStats(JSONObject jsonObject)
public DeviceTotalStats(DeviceTotalStats src)
public Long getDeviceId()
public String getDeviceSerial()
public String getDeviceName()
public String getTerminalId()
public BatchTotalType getSales()
public BatchTotalType getRefunds()
public BatchTotalType getNet()
public BatchTotalType getGiftCardLoads()
public BatchTotalType getGiftCardCashOuts()
public BatchTotalType getTax()
public BatchTotalType getTips()
public List<BatchCardTotal> getCardTotals()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullDeviceId()
public boolean isNotNullDeviceSerial()
public boolean isNotNullDeviceName()
public boolean isNotNullTerminalId()
public boolean isNotNullSales()
public boolean isNotNullRefunds()
public boolean isNotNullNet()
public boolean isNotNullGiftCardLoads()
public boolean isNotNullGiftCardCashOuts()
public boolean isNotNullTax()
public boolean isNotNullTips()
public boolean isNotNullCardTotals()
public boolean isNotEmptyCardTotals()
public boolean hasDeviceId()
public boolean hasDeviceSerial()
public boolean hasDeviceName()
public boolean hasTerminalId()
public boolean hasSales()
public boolean hasRefunds()
public boolean hasNet()
public boolean hasGiftCardLoads()
public boolean hasGiftCardCashOuts()
public boolean hasTax()
public boolean hasTips()
public boolean hasCardTotals()
public DeviceTotalStats setDeviceId(Long deviceId)
public DeviceTotalStats setDeviceSerial(String deviceSerial)
public DeviceTotalStats setDeviceName(String deviceName)
public DeviceTotalStats setTerminalId(String terminalId)
public DeviceTotalStats setSales(BatchTotalType sales)
public DeviceTotalStats setRefunds(BatchTotalType refunds)
public DeviceTotalStats setNet(BatchTotalType net)
public DeviceTotalStats setGiftCardLoads(BatchTotalType giftCardLoads)
public DeviceTotalStats setGiftCardCashOuts(BatchTotalType giftCardCashOuts)
public DeviceTotalStats setTax(BatchTotalType tax)
public DeviceTotalStats setTips(BatchTotalType tips)
public DeviceTotalStats setCardTotals(List<BatchCardTotal> cardTotals)
public void clearDeviceId()
public void clearDeviceSerial()
public void clearDeviceName()
public void clearTerminalId()
public void clearSales()
public void clearRefunds()
public void clearNet()
public void clearGiftCardLoads()
public void clearGiftCardCashOuts()
public void clearTax()
public void clearTips()
public void clearCardTotals()
public boolean containsChanges()
public void resetChangeLog()
public DeviceTotalStats copyChanges()
public void mergeChanges(DeviceTotalStats src)