Class BatchTransactions

    • Constructor Detail

      • BatchTransactions

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

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

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

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

      • getPaymentIds

        public List<String> getPaymentIds()
        List of payments in the batch
      • getRefundIds

        public List<String> getRefundIds()
        List of refunds in the batch
      • getCreditIds

        public List<String> getCreditIds()
        List of credits in the batch
      • 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
      • isNotNullPaymentIds

        public boolean isNotNullPaymentIds()
        Checks whether the 'paymentIds' field is set and is not null
      • isNotEmptyPaymentIds

        public boolean isNotEmptyPaymentIds()
        Checks whether the 'paymentIds' field is set and is not null and is not empty
      • isNotNullRefundIds

        public boolean isNotNullRefundIds()
        Checks whether the 'refundIds' field is set and is not null
      • isNotEmptyRefundIds

        public boolean isNotEmptyRefundIds()
        Checks whether the 'refundIds' field is set and is not null and is not empty
      • isNotNullCreditIds

        public boolean isNotNullCreditIds()
        Checks whether the 'creditIds' field is set and is not null
      • isNotEmptyCreditIds

        public boolean isNotEmptyCreditIds()
        Checks whether the 'creditIds' field is set and is not null and is not empty
      • hasPaymentIds

        public boolean hasPaymentIds()
        Checks whether the 'paymentIds' field has been set, however the value could be null
      • hasRefundIds

        public boolean hasRefundIds()
        Checks whether the 'refundIds' field has been set, however the value could be null
      • hasCreditIds

        public boolean hasCreditIds()
        Checks whether the 'creditIds' field has been set, however the value could be null
      • setPaymentIds

        public BatchTransactions setPaymentIds​(List<String> paymentIds)
        Sets the field 'paymentIds'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setRefundIds

        public BatchTransactions setRefundIds​(List<String> refundIds)
        Sets the field 'refundIds'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setCreditIds

        public BatchTransactions setCreditIds​(List<String> creditIds)
        Sets the field 'creditIds'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • clearPaymentIds

        public void clearPaymentIds()
        Clears the 'paymentIds' field, the 'has' method for this field will now return false
      • clearRefundIds

        public void clearRefundIds()
        Clears the 'refundIds' field, the 'has' method for this field will now return false
      • clearCreditIds

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

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