Class BatchDetail

    • Constructor Detail

      • BatchDetail

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

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

        public Long getOpenTips()
        Number of open tips.
      • getOpenTabs

        public Long getOpenTabs()
        Number of open tabs.
      • 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
      • 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.