Class VoidReasonDetails

    • Constructor Detail

      • VoidReasonDetails

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

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

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

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

      • getTxError

        public String getTxError()
        Transaction Error byte in hex
      • getVoidReasonCode

        public VoidReasonCode getVoidReasonCode()
        Detailed Reason code
      • getDescription

        public String getDescription()
        More detailed reason for voiding the transaction
      • getPayFailureMessage

        public String getPayFailureMessage()
        Pay Failure Message
      • getPaymentUuid

        public String getPaymentUuid()
      • getOrderId

        public String getOrderId()
      • 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
      • isNotNullTxError

        public boolean isNotNullTxError()
        Checks whether the 'txError' field is set and is not null
      • isNotNullVoidReasonCode

        public boolean isNotNullVoidReasonCode()
        Checks whether the 'voidReasonCode' field is set and is not null
      • isNotNullDescription

        public boolean isNotNullDescription()
        Checks whether the 'description' field is set and is not null
      • isNotNullPayFailureMessage

        public boolean isNotNullPayFailureMessage()
        Checks whether the 'payFailureMessage' field is set and is not null
      • isNotNullPaymentUuid

        public boolean isNotNullPaymentUuid()
        Checks whether the 'paymentUuid' field is set and is not null
      • isNotNullOrderId

        public boolean isNotNullOrderId()
        Checks whether the 'orderId' field is set and is not null
      • hasTxError

        public boolean hasTxError()
        Checks whether the 'txError' field has been set, however the value could be null
      • hasVoidReasonCode

        public boolean hasVoidReasonCode()
        Checks whether the 'voidReasonCode' field has been set, however the value could be null
      • hasDescription

        public boolean hasDescription()
        Checks whether the 'description' field has been set, however the value could be null
      • hasPayFailureMessage

        public boolean hasPayFailureMessage()
        Checks whether the 'payFailureMessage' field has been set, however the value could be null
      • hasPaymentUuid

        public boolean hasPaymentUuid()
        Checks whether the 'paymentUuid' field has been set, however the value could be null
      • hasOrderId

        public boolean hasOrderId()
        Checks whether the 'orderId' field has been set, however the value could be null
      • setPayFailureMessage

        public VoidReasonDetails setPayFailureMessage​(String payFailureMessage)
        Sets the field 'payFailureMessage'.
      • clearTxError

        public void clearTxError()
        Clears the 'txError' field, the 'has' method for this field will now return false
      • clearVoidReasonCode

        public void clearVoidReasonCode()
        Clears the 'voidReasonCode' field, the 'has' method for this field will now return false
      • clearDescription

        public void clearDescription()
        Clears the 'description' field, the 'has' method for this field will now return false
      • clearPayFailureMessage

        public void clearPayFailureMessage()
        Clears the 'payFailureMessage' field, the 'has' method for this field will now return false
      • clearPaymentUuid

        public void clearPaymentUuid()
        Clears the 'paymentUuid' field, the 'has' method for this field will now return false
      • clearOrderId

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

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