Uses of Class
org.ldk.structs.PaymentPurpose
-
Packages that use PaymentPurpose Package Description org.ldk.structs -
-
Uses of PaymentPurpose in org.ldk.structs
Subclasses of PaymentPurpose in org.ldk.structs Modifier and Type Class Description static classPaymentPurpose.InvoicePaymentInformation for receiving a payment that we generated an invoice for.static classPaymentPurpose.SpontaneousPaymentBecause this is a spontaneous payment, the payer generated their own preimage rather than us (the payee) providing a preimage.Fields in org.ldk.structs declared as PaymentPurpose Modifier and Type Field Description PaymentPurposeEvent.PaymentClaimed. purposeThe purpose of this claimed payment, i.e.PaymentPurposeEvent.PaymentReceived. purposeInformation for claiming this received payment, based on whether the purpose of the payment is to pay an invoice or to send a spontaneous payment.PaymentPurposeResult_PaymentPurposeDecodeErrorZ.Result_PaymentPurposeDecodeErrorZ_OK. resMethods in org.ldk.structs that return PaymentPurpose Modifier and Type Method Description PaymentPurposePaymentPurpose. clone()Creates a copy of the PaymentPurposestatic PaymentPurposePaymentPurpose. invoice_payment(byte[] payment_preimage, byte[] payment_secret)Utility method to constructs a new InvoicePayment-variant PaymentPurposestatic PaymentPurposePaymentPurpose. spontaneous_payment(byte[] a)Utility method to constructs a new SpontaneousPayment-variant PaymentPurposeMethods in org.ldk.structs with parameters of type PaymentPurpose Modifier and Type Method Description static Result_PaymentPurposeDecodeErrorZResult_PaymentPurposeDecodeErrorZ. ok(PaymentPurpose o)Creates a new CResult_PaymentPurposeDecodeErrorZ in the success state.static EventEvent. payment_claimed(byte[] payment_hash, long amount_msat, PaymentPurpose purpose)Utility method to constructs a new PaymentClaimed-variant Eventstatic EventEvent. payment_received(byte[] payment_hash, long amount_msat, PaymentPurpose purpose)Utility method to constructs a new PaymentReceived-variant Event
-