Class SummaryGroup

    • Constructor Detail

      • SummaryGroup

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

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

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

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

      • getId

        public String getId()
      • getSummaryObject

        public Reference getSummaryObject()
      • getPaymentsSummary

        public Summary getPaymentsSummary()
      • getRefundsSummary

        public Summary getRefundsSummary()
      • getCreditsSummary

        public Summary getCreditsSummary()
      • getDiscountsSummary

        public Summary getDiscountsSummary()
      • 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
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullSummaryObject

        public boolean isNotNullSummaryObject()
        Checks whether the 'summaryObject' field is set and is not null
      • isNotNullPaymentsSummary

        public boolean isNotNullPaymentsSummary()
        Checks whether the 'paymentsSummary' field is set and is not null
      • isNotNullRefundsSummary

        public boolean isNotNullRefundsSummary()
        Checks whether the 'refundsSummary' field is set and is not null
      • isNotNullCreditsSummary

        public boolean isNotNullCreditsSummary()
        Checks whether the 'creditsSummary' field is set and is not null
      • isNotNullDiscountsSummary

        public boolean isNotNullDiscountsSummary()
        Checks whether the 'discountsSummary' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasSummaryObject

        public boolean hasSummaryObject()
        Checks whether the 'summaryObject' field has been set, however the value could be null
      • hasPaymentsSummary

        public boolean hasPaymentsSummary()
        Checks whether the 'paymentsSummary' field has been set, however the value could be null
      • hasRefundsSummary

        public boolean hasRefundsSummary()
        Checks whether the 'refundsSummary' field has been set, however the value could be null
      • hasCreditsSummary

        public boolean hasCreditsSummary()
        Checks whether the 'creditsSummary' field has been set, however the value could be null
      • hasDiscountsSummary

        public boolean hasDiscountsSummary()
        Checks whether the 'discountsSummary' field has been set, however the value could be null
      • setSummaryObject

        public SummaryGroup setSummaryObject​(Reference summaryObject)
        Sets the field 'summaryObject'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setPaymentsSummary

        public SummaryGroup setPaymentsSummary​(Summary paymentsSummary)
        Sets the field 'paymentsSummary'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setRefundsSummary

        public SummaryGroup setRefundsSummary​(Summary refundsSummary)
        Sets the field 'refundsSummary'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setCreditsSummary

        public SummaryGroup setCreditsSummary​(Summary creditsSummary)
        Sets the field 'creditsSummary'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setDiscountsSummary

        public SummaryGroup setDiscountsSummary​(Summary discountsSummary)
        Sets the field 'discountsSummary'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearSummaryObject

        public void clearSummaryObject()
        Clears the 'summaryObject' field, the 'has' method for this field will now return false
      • clearPaymentsSummary

        public void clearPaymentsSummary()
        Clears the 'paymentsSummary' field, the 'has' method for this field will now return false
      • clearRefundsSummary

        public void clearRefundsSummary()
        Clears the 'refundsSummary' field, the 'has' method for this field will now return false
      • clearCreditsSummary

        public void clearCreditsSummary()
        Clears the 'creditsSummary' field, the 'has' method for this field will now return false
      • clearDiscountsSummary

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

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