Package com.clover.sdk.v3.payments
Class DeviceTotalStats
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.DeviceTotalStats
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class DeviceTotalStats 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
DeviceTotalStats.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<DeviceTotalStats>
CREATOR
static JSONifiable.Creator<DeviceTotalStats>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor 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(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCardTotals()
Clears the 'cardTotals' field, the 'has' method for this field will now return falsevoid
clearDeviceId()
Clears the 'deviceId' field, the 'has' method for this field will now return falsevoid
clearDeviceName()
Clears the 'deviceName' field, the 'has' method for this field will now return falsevoid
clearDeviceSerial()
Clears the 'deviceSerial' field, the 'has' method for this field will now return falsevoid
clearGiftCardCashOuts()
Clears the 'giftCardCashOuts' field, the 'has' method for this field will now return falsevoid
clearGiftCardLoads()
Clears the 'giftCardLoads' field, the 'has' method for this field will now return falsevoid
clearNet()
Clears the 'net' field, the 'has' method for this field will now return falsevoid
clearRefunds()
Clears the 'refunds' field, the 'has' method for this field will now return falsevoid
clearSales()
Clears the 'sales' field, the 'has' method for this field will now return falsevoid
clearTax()
Clears the 'tax' field, the 'has' method for this field will now return falsevoid
clearTerminalId()
Clears the 'terminalId' field, the 'has' method for this field will now return falsevoid
clearTips()
Clears the 'tips' field, the 'has' method for this field will now return falseboolean
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 statsString
getDeviceName()
Device name corresponding to these statsString
getDeviceSerial()
Device serial number corresponding to these statsprotected 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 statsBatchTotalType
getTips()
boolean
hasCardTotals()
Checks whether the 'cardTotals' field has been set, however the value could be nullboolean
hasDeviceId()
Checks whether the 'deviceId' field has been set, however the value could be nullboolean
hasDeviceName()
Checks whether the 'deviceName' field has been set, however the value could be nullboolean
hasDeviceSerial()
Checks whether the 'deviceSerial' field has been set, however the value could be nullboolean
hasGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field has been set, however the value could be nullboolean
hasGiftCardLoads()
Checks whether the 'giftCardLoads' field has been set, however the value could be nullboolean
hasNet()
Checks whether the 'net' field has been set, however the value could be nullboolean
hasRefunds()
Checks whether the 'refunds' field has been set, however the value could be nullboolean
hasSales()
Checks whether the 'sales' field has been set, however the value could be nullboolean
hasTax()
Checks whether the 'tax' field has been set, however the value could be nullboolean
hasTerminalId()
Checks whether the 'terminalId' field has been set, however the value could be nullboolean
hasTips()
Checks whether the 'tips' field has been set, however the value could be nullboolean
isNotEmptyCardTotals()
Checks whether the 'cardTotals' field is set and is not null and is not emptyboolean
isNotNullCardTotals()
Checks whether the 'cardTotals' field is set and is not nullboolean
isNotNullDeviceId()
Checks whether the 'deviceId' field is set and is not nullboolean
isNotNullDeviceName()
Checks whether the 'deviceName' field is set and is not nullboolean
isNotNullDeviceSerial()
Checks whether the 'deviceSerial' field is set and is not nullboolean
isNotNullGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field is set and is not nullboolean
isNotNullGiftCardLoads()
Checks whether the 'giftCardLoads' field is set and is not nullboolean
isNotNullNet()
Checks whether the 'net' field is set and is not nullboolean
isNotNullRefunds()
Checks whether the 'refunds' field is set and is not nullboolean
isNotNullSales()
Checks whether the 'sales' field is set and is not nullboolean
isNotNullTax()
Checks whether the 'tax' field is set and is not nullboolean
isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not nullboolean
isNotNullTips()
Checks whether the 'tips' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<DeviceTotalStats> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<DeviceTotalStats> JSON_CREATOR
-
-
Constructor Detail
-
DeviceTotalStats
public DeviceTotalStats()
Constructs a new empty instance.
-
DeviceTotalStats
protected DeviceTotalStats(boolean noInit)
Constructs a new empty instance.
-
DeviceTotalStats
public DeviceTotalStats(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
DeviceTotalStats
public 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
public DeviceTotalStats(DeviceTotalStats src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getDeviceId
public Long getDeviceId()
Device ID corresponding to these stats
-
getDeviceSerial
public String getDeviceSerial()
Device serial number corresponding to these stats
-
getDeviceName
public String getDeviceName()
Device name corresponding to these stats
-
getTerminalId
public String getTerminalId()
Terminal ID of Device corresponding to these stats
-
getSales
public BatchTotalType getSales()
-
getRefunds
public BatchTotalType getRefunds()
-
getNet
public BatchTotalType getNet()
-
getGiftCardLoads
public BatchTotalType getGiftCardLoads()
-
getGiftCardCashOuts
public BatchTotalType getGiftCardCashOuts()
-
getTax
public BatchTotalType getTax()
-
getTips
public BatchTotalType getTips()
-
getCardTotals
public List<BatchCardTotal> getCardTotals()
-
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
-
isNotNullDeviceId
public boolean isNotNullDeviceId()
Checks whether the 'deviceId' field is set and is not null
-
isNotNullDeviceSerial
public boolean isNotNullDeviceSerial()
Checks whether the 'deviceSerial' field is set and is not null
-
isNotNullDeviceName
public boolean isNotNullDeviceName()
Checks whether the 'deviceName' field is set and is not null
-
isNotNullTerminalId
public boolean isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not null
-
isNotNullSales
public boolean isNotNullSales()
Checks whether the 'sales' field is set and is not null
-
isNotNullRefunds
public boolean isNotNullRefunds()
Checks whether the 'refunds' field is set and is not null
-
isNotNullNet
public boolean isNotNullNet()
Checks whether the 'net' field is set and is not null
-
isNotNullGiftCardLoads
public boolean isNotNullGiftCardLoads()
Checks whether the 'giftCardLoads' field is set and is not null
-
isNotNullGiftCardCashOuts
public boolean isNotNullGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field is set and is not null
-
isNotNullTax
public boolean isNotNullTax()
Checks whether the 'tax' field is set and is not null
-
isNotNullTips
public boolean isNotNullTips()
Checks whether the 'tips' field is set and is not null
-
isNotNullCardTotals
public boolean isNotNullCardTotals()
Checks whether the 'cardTotals' field is set and is not null
-
isNotEmptyCardTotals
public boolean isNotEmptyCardTotals()
Checks whether the 'cardTotals' field is set and is not null and is not empty
-
hasDeviceId
public boolean hasDeviceId()
Checks whether the 'deviceId' field has been set, however the value could be null
-
hasDeviceSerial
public boolean hasDeviceSerial()
Checks whether the 'deviceSerial' field has been set, however the value could be null
-
hasDeviceName
public boolean hasDeviceName()
Checks whether the 'deviceName' field has been set, however the value could be null
-
hasTerminalId
public boolean hasTerminalId()
Checks whether the 'terminalId' field has been set, however the value could be null
-
hasSales
public boolean hasSales()
Checks whether the 'sales' field has been set, however the value could be null
-
hasRefunds
public boolean hasRefunds()
Checks whether the 'refunds' field has been set, however the value could be null
-
hasNet
public boolean hasNet()
Checks whether the 'net' field has been set, however the value could be null
-
hasGiftCardLoads
public boolean hasGiftCardLoads()
Checks whether the 'giftCardLoads' field has been set, however the value could be null
-
hasGiftCardCashOuts
public boolean hasGiftCardCashOuts()
Checks whether the 'giftCardCashOuts' field has been set, however the value could be null
-
hasTax
public boolean hasTax()
Checks whether the 'tax' field has been set, however the value could be null
-
hasTips
public boolean hasTips()
Checks whether the 'tips' field has been set, however the value could be null
-
hasCardTotals
public boolean hasCardTotals()
Checks whether the 'cardTotals' field has been set, however the value could be null
-
setDeviceId
public DeviceTotalStats setDeviceId(Long deviceId)
Sets the field 'deviceId'.
-
setDeviceSerial
public DeviceTotalStats setDeviceSerial(String deviceSerial)
Sets the field 'deviceSerial'.
-
setDeviceName
public DeviceTotalStats setDeviceName(String deviceName)
Sets the field 'deviceName'.
-
setTerminalId
public DeviceTotalStats setTerminalId(String terminalId)
Sets the field 'terminalId'.
-
setSales
public DeviceTotalStats setSales(BatchTotalType sales)
Sets the field 'sales'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setRefunds
public DeviceTotalStats setRefunds(BatchTotalType refunds)
Sets the field 'refunds'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setNet
public DeviceTotalStats setNet(BatchTotalType net)
Sets the field 'net'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setGiftCardLoads
public DeviceTotalStats setGiftCardLoads(BatchTotalType giftCardLoads)
Sets the field 'giftCardLoads'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setGiftCardCashOuts
public DeviceTotalStats setGiftCardCashOuts(BatchTotalType giftCardCashOuts)
Sets the field 'giftCardCashOuts'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setTax
public DeviceTotalStats setTax(BatchTotalType tax)
Sets the field 'tax'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setTips
public DeviceTotalStats setTips(BatchTotalType tips)
Sets the field 'tips'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCardTotals
public DeviceTotalStats setCardTotals(List<BatchCardTotal> cardTotals)
Sets the field 'cardTotals'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
clearDeviceId
public void clearDeviceId()
Clears the 'deviceId' field, the 'has' method for this field will now return false
-
clearDeviceSerial
public void clearDeviceSerial()
Clears the 'deviceSerial' field, the 'has' method for this field will now return false
-
clearDeviceName
public void clearDeviceName()
Clears the 'deviceName' field, the 'has' method for this field will now return false
-
clearTerminalId
public void clearTerminalId()
Clears the 'terminalId' field, the 'has' method for this field will now return false
-
clearSales
public void clearSales()
Clears the 'sales' field, the 'has' method for this field will now return false
-
clearRefunds
public void clearRefunds()
Clears the 'refunds' field, the 'has' method for this field will now return false
-
clearNet
public void clearNet()
Clears the 'net' field, the 'has' method for this field will now return false
-
clearGiftCardLoads
public void clearGiftCardLoads()
Clears the 'giftCardLoads' field, the 'has' method for this field will now return false
-
clearGiftCardCashOuts
public void clearGiftCardCashOuts()
Clears the 'giftCardCashOuts' field, the 'has' method for this field will now return false
-
clearTax
public void clearTax()
Clears the 'tax' field, the 'has' method for this field will now return false
-
clearTips
public void clearTips()
Clears the 'tips' field, the 'has' method for this field will now return false
-
clearCardTotals
public void clearCardTotals()
Clears the 'cardTotals' 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 DeviceTotalStats copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(DeviceTotalStats src)
Copy all the changed fields from the given source to this instance.
-
-