Package com.clover.sdk.v3.payments
Class EndpointTotalStats
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.EndpointTotalStats
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class EndpointTotalStats 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
EndpointTotalStats.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<EndpointTotalStats>
CREATOR
static JSONifiable.Creator<EndpointTotalStats>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description EndpointTotalStats()
Constructs a new empty instance.protected
EndpointTotalStats(boolean noInit)
Constructs a new empty instance.EndpointTotalStats(EndpointTotalStats src)
Constructs a new instance that is a deep copy of the source instance.EndpointTotalStats(String json)
Constructs a new instance from the given JSON String.EndpointTotalStats(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
clearBatchNumber()
Clears the 'batchNumber' 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
clearCount()
Clears the 'count' field, the 'has' method for this field will now return falsevoid
clearEndpointName()
Clears the 'endpointName' field, the 'has' method for this field will now return falsevoid
clearSuccess()
Clears the 'success' 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
clearTotal()
Clears the 'total' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.EndpointTotalStats
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getBatchNumber()
The batchNumber for this endpointList<BatchCardTotal>
getCardTotals()
Long
getCount()
Total count of endpoint transactionsString
getEndpointName()
Name for the given endpointprotected 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.Boolean
getSuccess()
Indicates if the closeout for terminalId/endpointName/batchNumber was successfully performed or notString
getTerminalId()
The terminal id for this endpoint & batch detailsLong
getTotal()
Total amount for transactionsboolean
hasBatchNumber()
Checks whether the 'batchNumber' 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
hasCount()
Checks whether the 'count' field has been set, however the value could be nullboolean
hasEndpointName()
Checks whether the 'endpointName' field has been set, however the value could be nullboolean
hasSuccess()
Checks whether the 'success' 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
hasTotal()
Checks whether the 'total' 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
isNotNullBatchNumber()
Checks whether the 'batchNumber' field is set and is not nullboolean
isNotNullCardTotals()
Checks whether the 'cardTotals' field is set and is not nullboolean
isNotNullCount()
Checks whether the 'count' field is set and is not nullboolean
isNotNullEndpointName()
Checks whether the 'endpointName' field is set and is not nullboolean
isNotNullSuccess()
Checks whether the 'success' field is set and is not nullboolean
isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not nullboolean
isNotNullTotal()
Checks whether the 'total' field is set and is not nullvoid
mergeChanges(EndpointTotalStats 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.EndpointTotalStats
setBatchNumber(String batchNumber)
Sets the field 'batchNumber'.EndpointTotalStats
setCardTotals(List<BatchCardTotal> cardTotals)
Sets the field 'cardTotals'.EndpointTotalStats
setCount(Long count)
Sets the field 'count'.EndpointTotalStats
setEndpointName(String endpointName)
Sets the field 'endpointName'.EndpointTotalStats
setSuccess(Boolean success)
Sets the field 'success'.EndpointTotalStats
setTerminalId(String terminalId)
Sets the field 'terminalId'.EndpointTotalStats
setTotal(Long total)
Sets the field 'total'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<EndpointTotalStats> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<EndpointTotalStats> JSON_CREATOR
-
-
Constructor Detail
-
EndpointTotalStats
public EndpointTotalStats()
Constructs a new empty instance.
-
EndpointTotalStats
protected EndpointTotalStats(boolean noInit)
Constructs a new empty instance.
-
EndpointTotalStats
public EndpointTotalStats(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
EndpointTotalStats
public EndpointTotalStats(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.
-
EndpointTotalStats
public EndpointTotalStats(EndpointTotalStats src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getSuccess
public Boolean getSuccess()
Indicates if the closeout for terminalId/endpointName/batchNumber was successfully performed or not
-
getEndpointName
public String getEndpointName()
Name for the given endpoint
-
getBatchNumber
public String getBatchNumber()
The batchNumber for this endpoint
-
getTerminalId
public String getTerminalId()
The terminal id for this endpoint & batch details
-
getCount
public Long getCount()
Total count of endpoint transactions
-
getTotal
public Long getTotal()
Total amount for transactions
-
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
-
isNotNullSuccess
public boolean isNotNullSuccess()
Checks whether the 'success' field is set and is not null
-
isNotNullEndpointName
public boolean isNotNullEndpointName()
Checks whether the 'endpointName' field is set and is not null
-
isNotNullBatchNumber
public boolean isNotNullBatchNumber()
Checks whether the 'batchNumber' field is set and is not null
-
isNotNullTerminalId
public boolean isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not null
-
isNotNullCount
public boolean isNotNullCount()
Checks whether the 'count' field is set and is not null
-
isNotNullTotal
public boolean isNotNullTotal()
Checks whether the 'total' 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
-
hasSuccess
public boolean hasSuccess()
Checks whether the 'success' field has been set, however the value could be null
-
hasEndpointName
public boolean hasEndpointName()
Checks whether the 'endpointName' field has been set, however the value could be null
-
hasBatchNumber
public boolean hasBatchNumber()
Checks whether the 'batchNumber' 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
-
hasCount
public boolean hasCount()
Checks whether the 'count' field has been set, however the value could be null
-
hasTotal
public boolean hasTotal()
Checks whether the 'total' 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
-
setSuccess
public EndpointTotalStats setSuccess(Boolean success)
Sets the field 'success'.
-
setEndpointName
public EndpointTotalStats setEndpointName(String endpointName)
Sets the field 'endpointName'.
-
setBatchNumber
public EndpointTotalStats setBatchNumber(String batchNumber)
Sets the field 'batchNumber'.
-
setTerminalId
public EndpointTotalStats setTerminalId(String terminalId)
Sets the field 'terminalId'.
-
setCount
public EndpointTotalStats setCount(Long count)
Sets the field 'count'.
-
setTotal
public EndpointTotalStats setTotal(Long total)
Sets the field 'total'.
-
setCardTotals
public EndpointTotalStats 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.
-
clearSuccess
public void clearSuccess()
Clears the 'success' field, the 'has' method for this field will now return false
-
clearEndpointName
public void clearEndpointName()
Clears the 'endpointName' field, the 'has' method for this field will now return false
-
clearBatchNumber
public void clearBatchNumber()
Clears the 'batchNumber' 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
-
clearCount
public void clearCount()
Clears the 'count' field, the 'has' method for this field will now return false
-
clearTotal
public void clearTotal()
Clears the 'total' 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 EndpointTotalStats copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(EndpointTotalStats src)
Copy all the changed fields from the given source to this instance.
-
-