Class ServerTotalStats

    • Constructor Detail

      • ServerTotalStats

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

        protected ServerTotalStats​(boolean noInit)
        Constructs a new empty instance.
      • ServerTotalStats

        public ServerTotalStats​(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.
      • ServerTotalStats

        public ServerTotalStats​(ServerTotalStats src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getEmployeeId

        public String getEmployeeId()
        Employee corresponding to these stats
      • getEmployeeName

        public String getEmployeeName()
      • 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
      • isNotNullEmployeeId

        public boolean isNotNullEmployeeId()
        Checks whether the 'employeeId' field is set and is not null
      • isNotNullEmployeeName

        public boolean isNotNullEmployeeName()
        Checks whether the 'employeeName' field is set and is not null
      • isNotNullSales

        public boolean isNotNullSales()
        Checks whether the 'sales' field is set and is not null
      • isNotNullRefunds

        public boolean isNotNullRefunds()
        Checks whether the 'refunds' field is set and is not null
      • isNotNullNet

        public boolean isNotNullNet()
        Checks whether the 'net' field is set and is not null
      • isNotNullGiftCardLoads

        public boolean isNotNullGiftCardLoads()
        Checks whether the 'giftCardLoads' field is set and is not null
      • isNotNullGiftCardCashOuts

        public boolean isNotNullGiftCardCashOuts()
        Checks whether the 'giftCardCashOuts' field is set and is not null
      • isNotNullTax

        public boolean isNotNullTax()
        Checks whether the 'tax' field is set and is not null
      • isNotNullTips

        public boolean isNotNullTips()
        Checks whether the 'tips' field is set and is not null
      • hasEmployeeId

        public boolean hasEmployeeId()
        Checks whether the 'employeeId' field has been set, however the value could be null
      • hasEmployeeName

        public boolean hasEmployeeName()
        Checks whether the 'employeeName' field has been set, however the value could be null
      • hasSales

        public boolean hasSales()
        Checks whether the 'sales' field has been set, however the value could be null
      • hasRefunds

        public boolean hasRefunds()
        Checks whether the 'refunds' field has been set, however the value could be null
      • hasNet

        public boolean hasNet()
        Checks whether the 'net' field has been set, however the value could be null
      • hasGiftCardLoads

        public boolean hasGiftCardLoads()
        Checks whether the 'giftCardLoads' field has been set, however the value could be null
      • hasGiftCardCashOuts

        public boolean hasGiftCardCashOuts()
        Checks whether the 'giftCardCashOuts' field has been set, however the value could be null
      • hasTax

        public boolean hasTax()
        Checks whether the 'tax' field has been set, however the value could be null
      • hasTips

        public boolean hasTips()
        Checks whether the 'tips' field has been set, however the value could be null
      • setEmployeeName

        public ServerTotalStats setEmployeeName​(String employeeName)
        Sets the field 'employeeName'.
      • setSales

        public ServerTotalStats setSales​(BatchTotalType sales)
        Sets the field 'sales'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setRefunds

        public ServerTotalStats setRefunds​(BatchTotalType refunds)
        Sets the field 'refunds'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setNet

        public ServerTotalStats setNet​(BatchTotalType net)
        Sets the field 'net'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setGiftCardLoads

        public ServerTotalStats setGiftCardLoads​(BatchTotalType giftCardLoads)
        Sets the field 'giftCardLoads'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setGiftCardCashOuts

        public ServerTotalStats setGiftCardCashOuts​(BatchTotalType giftCardCashOuts)
        Sets the field 'giftCardCashOuts'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setTax

        public ServerTotalStats setTax​(BatchTotalType tax)
        Sets the field 'tax'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setTips

        public ServerTotalStats setTips​(BatchTotalType tips)
        Sets the field 'tips'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearEmployeeId

        public void clearEmployeeId()
        Clears the 'employeeId' field, the 'has' method for this field will now return false
      • clearEmployeeName

        public void clearEmployeeName()
        Clears the 'employeeName' field, the 'has' method for this field will now return false
      • clearSales

        public void clearSales()
        Clears the 'sales' field, the 'has' method for this field will now return false
      • clearRefunds

        public void clearRefunds()
        Clears the 'refunds' field, the 'has' method for this field will now return false
      • clearNet

        public void clearNet()
        Clears the 'net' field, the 'has' method for this field will now return false
      • clearGiftCardLoads

        public void clearGiftCardLoads()
        Clears the 'giftCardLoads' field, the 'has' method for this field will now return false
      • clearGiftCardCashOuts

        public void clearGiftCardCashOuts()
        Clears the 'giftCardCashOuts' field, the 'has' method for this field will now return false
      • clearTax

        public void clearTax()
        Clears the 'tax' field, the 'has' method for this field will now return false
      • clearTips

        public void clearTips()
        Clears the 'tips' 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 ServerTotalStats copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(ServerTotalStats src)
        Copy all the changed fields from the given source to this instance.