Class Reversal


  • public class Reversal
    extends java.lang.Object
    Reversal

    Contains either a cancellation or refund, depending on the method used to reverse the transfer.

    • Method Detail

      • value

        public java.lang.Object value()
        Returns an instance of one of these types:
        • io.moov.sdk.models.components.ReversedWithCancellation
        • io.moov.sdk.models.components.ReversedWithRefund

        Use instanceof to determine what type is returned. For example:

         if (obj.value() instanceof String) {
             String answer = (String) obj.value();
             System.out.println("answer=" + answer);
         }
         
        Returns:
        value of oneOf type
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object