Package com.clover.sdk.v3.payments
Class BatchDetail
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.BatchDetail
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class BatchDetail 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
BatchDetail.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<BatchDetail>
CREATOR
static JSONifiable.Creator<BatchDetail>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description BatchDetail()
Constructs a new empty instance.protected
BatchDetail(boolean noInit)
Constructs a new empty instance.BatchDetail(BatchDetail src)
Constructs a new instance that is a deep copy of the source instance.BatchDetail(String json)
Constructs a new instance from the given JSON String.BatchDetail(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
clearBatchTotals()
Clears the 'batchTotals' field, the 'has' method for this field will now return falsevoid
clearCardlessTotals()
Clears the 'cardlessTotals' field, the 'has' method for this field will now return falsevoid
clearCardTotals()
Clears the 'cardTotals' field, the 'has' method for this field will now return falsevoid
clearDeviceTotals()
Clears the 'deviceTotals' field, the 'has' method for this field will now return falsevoid
clearEndpointTotals()
Clears the 'endpointTotals' field, the 'has' method for this field will now return falsevoid
clearOpenTabs()
Clears the 'openTabs' field, the 'has' method for this field will now return falsevoid
clearOpenTips()
Clears the 'openTips' field, the 'has' method for this field will now return falsevoid
clearServerTotals()
Clears the 'serverTotals' 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 falseboolean
containsChanges()
Returns true if this instance has any changes.BatchDetail
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.BatchTotalStats
getBatchTotals()
List<BatchCardlessTotal>
getCardlessTotals()
List<BatchCardTotal>
getCardTotals()
List<DeviceTotalStats>
getDeviceTotals()
List<EndpointTotalStats>
getEndpointTotals()
protected GenericClient
getGenericClient()
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.Long
getOpenTabs()
Number of open tabs.Long
getOpenTips()
Number of open tips.List<ServerTotalStats>
getServerTotals()
String
getTerminalId()
Terminal ID.boolean
hasBatchTotals()
Checks whether the 'batchTotals' field has been set, however the value could be nullboolean
hasCardlessTotals()
Checks whether the 'cardlessTotals' field has been set, however the value could be nullboolean
hasCardTotals()
Checks whether the 'cardTotals' field has been set, however the value could be nullboolean
hasDeviceTotals()
Checks whether the 'deviceTotals' field has been set, however the value could be nullboolean
hasEndpointTotals()
Checks whether the 'endpointTotals' field has been set, however the value could be nullboolean
hasOpenTabs()
Checks whether the 'openTabs' field has been set, however the value could be nullboolean
hasOpenTips()
Checks whether the 'openTips' field has been set, however the value could be nullboolean
hasServerTotals()
Checks whether the 'serverTotals' 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
isNotEmptyCardlessTotals()
Checks whether the 'cardlessTotals' field is set and is not null and is not emptyboolean
isNotEmptyCardTotals()
Checks whether the 'cardTotals' field is set and is not null and is not emptyboolean
isNotEmptyDeviceTotals()
Checks whether the 'deviceTotals' field is set and is not null and is not emptyboolean
isNotEmptyEndpointTotals()
Checks whether the 'endpointTotals' field is set and is not null and is not emptyboolean
isNotEmptyServerTotals()
Checks whether the 'serverTotals' field is set and is not null and is not emptyboolean
isNotNullBatchTotals()
Checks whether the 'batchTotals' field is set and is not nullboolean
isNotNullCardlessTotals()
Checks whether the 'cardlessTotals' field is set and is not nullboolean
isNotNullCardTotals()
Checks whether the 'cardTotals' field is set and is not nullboolean
isNotNullDeviceTotals()
Checks whether the 'deviceTotals' field is set and is not nullboolean
isNotNullEndpointTotals()
Checks whether the 'endpointTotals' field is set and is not nullboolean
isNotNullOpenTabs()
Checks whether the 'openTabs' field is set and is not nullboolean
isNotNullOpenTips()
Checks whether the 'openTips' field is set and is not nullboolean
isNotNullServerTotals()
Checks whether the 'serverTotals' field is set and is not nullboolean
isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not nullvoid
mergeChanges(BatchDetail 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.BatchDetail
setBatchTotals(BatchTotalStats batchTotals)
Sets the field 'batchTotals'.BatchDetail
setCardlessTotals(List<BatchCardlessTotal> cardlessTotals)
Sets the field 'cardlessTotals'.BatchDetail
setCardTotals(List<BatchCardTotal> cardTotals)
Sets the field 'cardTotals'.BatchDetail
setDeviceTotals(List<DeviceTotalStats> deviceTotals)
Sets the field 'deviceTotals'.BatchDetail
setEndpointTotals(List<EndpointTotalStats> endpointTotals)
Sets the field 'endpointTotals'.BatchDetail
setOpenTabs(Long openTabs)
Sets the field 'openTabs'.BatchDetail
setOpenTips(Long openTips)
Sets the field 'openTips'.BatchDetail
setServerTotals(List<ServerTotalStats> serverTotals)
Sets the field 'serverTotals'.BatchDetail
setTerminalId(String terminalId)
Sets the field 'terminalId'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<BatchDetail> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<BatchDetail> JSON_CREATOR
-
-
Constructor Detail
-
BatchDetail
public BatchDetail()
Constructs a new empty instance.
-
BatchDetail
protected BatchDetail(boolean noInit)
Constructs a new empty instance.
-
BatchDetail
public BatchDetail(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
BatchDetail
public BatchDetail(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.
-
BatchDetail
public BatchDetail(BatchDetail src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getTerminalId
public String getTerminalId()
Terminal ID.
-
getBatchTotals
public BatchTotalStats getBatchTotals()
-
getServerTotals
public List<ServerTotalStats> getServerTotals()
-
getCardTotals
public List<BatchCardTotal> getCardTotals()
-
getCardlessTotals
public List<BatchCardlessTotal> getCardlessTotals()
-
getDeviceTotals
public List<DeviceTotalStats> getDeviceTotals()
-
getEndpointTotals
public List<EndpointTotalStats> getEndpointTotals()
-
getOpenTips
public Long getOpenTips()
Number of open tips.
-
getOpenTabs
public Long getOpenTabs()
Number of open tabs.
-
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
-
isNotNullTerminalId
public boolean isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not null
-
isNotNullBatchTotals
public boolean isNotNullBatchTotals()
Checks whether the 'batchTotals' field is set and is not null
-
isNotNullServerTotals
public boolean isNotNullServerTotals()
Checks whether the 'serverTotals' field is set and is not null
-
isNotEmptyServerTotals
public boolean isNotEmptyServerTotals()
Checks whether the 'serverTotals' field is set and is not null and is not empty
-
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
-
isNotNullCardlessTotals
public boolean isNotNullCardlessTotals()
Checks whether the 'cardlessTotals' field is set and is not null
-
isNotEmptyCardlessTotals
public boolean isNotEmptyCardlessTotals()
Checks whether the 'cardlessTotals' field is set and is not null and is not empty
-
isNotNullDeviceTotals
public boolean isNotNullDeviceTotals()
Checks whether the 'deviceTotals' field is set and is not null
-
isNotEmptyDeviceTotals
public boolean isNotEmptyDeviceTotals()
Checks whether the 'deviceTotals' field is set and is not null and is not empty
-
isNotNullEndpointTotals
public boolean isNotNullEndpointTotals()
Checks whether the 'endpointTotals' field is set and is not null
-
isNotEmptyEndpointTotals
public boolean isNotEmptyEndpointTotals()
Checks whether the 'endpointTotals' field is set and is not null and is not empty
-
isNotNullOpenTips
public boolean isNotNullOpenTips()
Checks whether the 'openTips' field is set and is not null
-
isNotNullOpenTabs
public boolean isNotNullOpenTabs()
Checks whether the 'openTabs' field is set and is not null
-
hasTerminalId
public boolean hasTerminalId()
Checks whether the 'terminalId' field has been set, however the value could be null
-
hasBatchTotals
public boolean hasBatchTotals()
Checks whether the 'batchTotals' field has been set, however the value could be null
-
hasServerTotals
public boolean hasServerTotals()
Checks whether the 'serverTotals' 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
-
hasCardlessTotals
public boolean hasCardlessTotals()
Checks whether the 'cardlessTotals' field has been set, however the value could be null
-
hasDeviceTotals
public boolean hasDeviceTotals()
Checks whether the 'deviceTotals' field has been set, however the value could be null
-
hasEndpointTotals
public boolean hasEndpointTotals()
Checks whether the 'endpointTotals' field has been set, however the value could be null
-
hasOpenTips
public boolean hasOpenTips()
Checks whether the 'openTips' field has been set, however the value could be null
-
hasOpenTabs
public boolean hasOpenTabs()
Checks whether the 'openTabs' field has been set, however the value could be null
-
setTerminalId
public BatchDetail setTerminalId(String terminalId)
Sets the field 'terminalId'.
-
setBatchTotals
public BatchDetail setBatchTotals(BatchTotalStats batchTotals)
Sets the field 'batchTotals'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setServerTotals
public BatchDetail setServerTotals(List<ServerTotalStats> serverTotals)
Sets the field 'serverTotals'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setCardTotals
public BatchDetail 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.
-
setCardlessTotals
public BatchDetail setCardlessTotals(List<BatchCardlessTotal> cardlessTotals)
Sets the field 'cardlessTotals'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setDeviceTotals
public BatchDetail setDeviceTotals(List<DeviceTotalStats> deviceTotals)
Sets the field 'deviceTotals'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setEndpointTotals
public BatchDetail setEndpointTotals(List<EndpointTotalStats> endpointTotals)
Sets the field 'endpointTotals'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
-
setOpenTips
public BatchDetail setOpenTips(Long openTips)
Sets the field 'openTips'.
-
setOpenTabs
public BatchDetail setOpenTabs(Long openTabs)
Sets the field 'openTabs'.
-
clearTerminalId
public void clearTerminalId()
Clears the 'terminalId' field, the 'has' method for this field will now return false
-
clearBatchTotals
public void clearBatchTotals()
Clears the 'batchTotals' field, the 'has' method for this field will now return false
-
clearServerTotals
public void clearServerTotals()
Clears the 'serverTotals' 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
-
clearCardlessTotals
public void clearCardlessTotals()
Clears the 'cardlessTotals' field, the 'has' method for this field will now return false
-
clearDeviceTotals
public void clearDeviceTotals()
Clears the 'deviceTotals' field, the 'has' method for this field will now return false
-
clearEndpointTotals
public void clearEndpointTotals()
Clears the 'endpointTotals' field, the 'has' method for this field will now return false
-
clearOpenTips
public void clearOpenTips()
Clears the 'openTips' field, the 'has' method for this field will now return false
-
clearOpenTabs
public void clearOpenTabs()
Clears the 'openTabs' 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 BatchDetail copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(BatchDetail src)
Copy all the changed fields from the given source to this instance.
-
-