Package org.ngengine.lnurl
Class LnUrlVerify
- java.lang.Object
-
- org.ngengine.lnurl.LnUrlVerify
-
- All Implemented Interfaces:
LnUrlService
public class LnUrlVerify extends java.lang.Object implements LnUrlService
The lnurl verify service.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLnUrlVerify(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.StringgetName()A human readable name for the service.java.lang.StringgetPr()Get the invoicejava.lang.StringgetPreimage()Get the preimage of the payment request if it was settled.protected static booleanisAssignableTo(java.util.Map<java.lang.String,java.lang.Object> data)booleanisSettled()Check if the payment request was settled.java.util.Map<java.lang.String,java.lang.Object>toMap()Return the serializable representation of this service
-
-
-
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:LnUrlServiceA human readable name for the service. Used for debugging and logging purposes.- Specified by:
getNamein interfaceLnUrlService- Returns:
- the name of the service
-
toMap
public java.util.Map<java.lang.String,java.lang.Object> toMap()
Description copied from interface:LnUrlServiceReturn the serializable representation of this service- Specified by:
toMapin interfaceLnUrlService- Returns:
- the service data, the same way it was received from the LNURL endpoint.
-
-