Class LnUrlVerify

  • All Implemented Interfaces:
    LnUrlService

    public class LnUrlVerify
    extends java.lang.Object
    implements LnUrlService
    The lnurl verify service.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected LnUrlVerify​(java.util.Map<java.lang.String,​java.lang.Object> data)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      A human readable name for the service.
      java.lang.String getPr()
      Get the invoice
      java.lang.String getPreimage()
      Get the preimage of the payment request if it was settled.
      protected static boolean isAssignableTo​(java.util.Map<java.lang.String,​java.lang.Object> data)  
      boolean isSettled()
      Check if the payment request was settled.
      java.util.Map<java.lang.String,​java.lang.Object> toMap()
      Return the serializable representation of this service
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LnUrlVerify

        protected LnUrlVerify​(java.util.Map<java.lang.String,​java.lang.Object> data)
    • Method Detail

      • isAssignableTo

        protected static boolean isAssignableTo​(java.util.Map<java.lang.String,​java.lang.Object> data)
      • getPreimage

        @Nullable
        public java.lang.String getPreimage()
        Get the preimage of the payment request if it was settled.
        Returns:
        The preimage of the payment request, or null if not provided.
      • getPr

        public java.lang.String getPr()
        Get the invoice
        Returns:
        the invoice
      • isSettled

        public boolean isSettled()
        Check if the payment request was settled.
        Returns:
        true if the payment request was settled, false otherwise.
      • getName

        public java.lang.String getName()
        Description copied from interface: LnUrlService
        A human readable name for the service. Used for debugging and logging purposes.
        Specified by:
        getName in interface LnUrlService
        Returns:
        the name of the service
      • toMap

        public java.util.Map<java.lang.String,​java.lang.Object> toMap()
        Description copied from interface: LnUrlService
        Return the serializable representation of this service
        Specified by:
        toMap in interface LnUrlService
        Returns:
        the service data, the same way it was received from the LNURL endpoint.