public class EndpointTotalStats extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
EndpointTotalStats.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<EndpointTotalStats> |
CREATOR |
static JSONifiable.Creator<EndpointTotalStats> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and 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(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(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearBatchNumber()
Clears the 'batchNumber' field, the 'has' method for this field will now return false
|
void |
clearCardTotals()
Clears the 'cardTotals' field, the 'has' method for this field will now return false
|
void |
clearCount()
Clears the 'count' field, the 'has' method for this field will now return false
|
void |
clearEndpointName()
Clears the 'endpointName' field, the 'has' method for this field will now return false
|
void |
clearSuccess()
Clears the 'success' 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 |
clearTotal()
Clears the 'total' field, the 'has' method for this field will now return false
|
boolean |
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 endpoint
|
List<BatchCardTotal> |
getCardTotals() |
Long |
getCount()
Total count of endpoint transactions
|
String |
getEndpointName()
Name for the given endpoint
|
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.
|
Boolean |
getSuccess()
Indicates if the closeout for terminalId/endpointName/batchNumber was successfully performed or not
|
String |
getTerminalId()
The terminal id for this endpoint & batch details
|
Long |
getTotal()
Total amount for transactions
|
boolean |
hasBatchNumber()
Checks whether the 'batchNumber' field has been set, however the value could be null
|
boolean |
hasCardTotals()
Checks whether the 'cardTotals' field has been set, however the value could be null
|
boolean |
hasCount()
Checks whether the 'count' field has been set, however the value could be null
|
boolean |
hasEndpointName()
Checks whether the 'endpointName' field has been set, however the value could be null
|
boolean |
hasSuccess()
Checks whether the 'success' 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 |
hasTotal()
Checks whether the 'total' 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 |
isNotNullBatchNumber()
Checks whether the 'batchNumber' field is set and is not null
|
boolean |
isNotNullCardTotals()
Checks whether the 'cardTotals' field is set and is not null
|
boolean |
isNotNullCount()
Checks whether the 'count' field is set and is not null
|
boolean |
isNotNullEndpointName()
Checks whether the 'endpointName' field is set and is not null
|
boolean |
isNotNullSuccess()
Checks whether the 'success' field is set and is not null
|
boolean |
isNotNullTerminalId()
Checks whether the 'terminalId' field is set and is not null
|
boolean |
isNotNullTotal()
Checks whether the 'total' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<EndpointTotalStats> CREATOR
public static final JSONifiable.Creator<EndpointTotalStats> JSON_CREATOR
public EndpointTotalStats()
protected EndpointTotalStats(boolean noInit)
public EndpointTotalStats(String json) throws IllegalArgumentException
IllegalArgumentException
public EndpointTotalStats(JSONObject jsonObject)
public EndpointTotalStats(EndpointTotalStats src)
public Boolean getSuccess()
public String getEndpointName()
public String getBatchNumber()
public String getTerminalId()
public Long getCount()
public Long getTotal()
public List<BatchCardTotal> getCardTotals()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullSuccess()
public boolean isNotNullEndpointName()
public boolean isNotNullBatchNumber()
public boolean isNotNullTerminalId()
public boolean isNotNullCount()
public boolean isNotNullTotal()
public boolean isNotNullCardTotals()
public boolean isNotEmptyCardTotals()
public boolean hasSuccess()
public boolean hasEndpointName()
public boolean hasBatchNumber()
public boolean hasTerminalId()
public boolean hasCount()
public boolean hasTotal()
public boolean hasCardTotals()
public EndpointTotalStats setSuccess(Boolean success)
public EndpointTotalStats setEndpointName(String endpointName)
public EndpointTotalStats setBatchNumber(String batchNumber)
public EndpointTotalStats setTerminalId(String terminalId)
public EndpointTotalStats setCount(Long count)
public EndpointTotalStats setTotal(Long total)
public EndpointTotalStats setCardTotals(List<BatchCardTotal> cardTotals)
public void clearSuccess()
public void clearEndpointName()
public void clearBatchNumber()
public void clearTerminalId()
public void clearCount()
public void clearTotal()
public void clearCardTotals()
public boolean containsChanges()
public void resetChangeLog()
public EndpointTotalStats copyChanges()
public void mergeChanges(EndpointTotalStats src)