Class EndpointTotalStats

    • Constructor Detail

      • EndpointTotalStats

        public EndpointTotalStats()
        Constructs a new empty instance.
      • EndpointTotalStats

        protected EndpointTotalStats​(boolean noInit)
        Constructs a new empty instance.
      • 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
      • 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 interface JSONifiable
      • 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
      • 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.