Package org.ldk.structs
Class PaymentPurpose
- java.lang.Object
-
- org.ldk.structs.PaymentPurpose
-
- Direct Known Subclasses:
PaymentPurpose.InvoicePayment,PaymentPurpose.SpontaneousPayment
public class PaymentPurpose extends Object
Some information provided on receipt of payment depends on whether the payment received is a spontaneous payment or a \"conventional\" lightning payment that's paying an invoice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentPurpose.InvoicePaymentstatic classPaymentPurpose.SpontaneousPayment
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentPurposeclone()Creates a copy of the PaymentPurposeprotected voidfinalize()static PaymentPurposeinvoice_payment(byte[] payment_preimage, byte[] payment_secret, long user_payment_id)Utility method to constructs a new InvoicePayment-variant PaymentPurposestatic PaymentPurposespontaneous_payment(byte[] a)Utility method to constructs a new SpontaneousPayment-variant PaymentPurpose
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public PaymentPurpose clone()
Creates a copy of the PaymentPurpose
-
invoice_payment
public static PaymentPurpose invoice_payment(byte[] payment_preimage, byte[] payment_secret, long user_payment_id)
Utility method to constructs a new InvoicePayment-variant PaymentPurpose
-
spontaneous_payment
public static PaymentPurpose spontaneous_payment(byte[] a)
Utility method to constructs a new SpontaneousPayment-variant PaymentPurpose
-
-