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 class
PaymentPurpose.InvoicePayment
Information for receiving a payment that we generated an invoice for.static class
PaymentPurpose.SpontaneousPayment
Because 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 PaymentPurpose
Event.PaymentClaimable. purpose
Information for claiming this received payment, based on whether the purpose of the payment is to pay an invoice or to send a spontaneous payment.PaymentPurpose
Event.PaymentClaimed. purpose
The purpose of the claimed payment, i.e.PaymentPurpose
Result_PaymentPurposeDecodeErrorZ.Result_PaymentPurposeDecodeErrorZ_OK. res
Methods in org.ldk.structs that return PaymentPurpose Modifier and Type Method Description PaymentPurpose
PaymentPurpose. clone()
Creates a copy of the PaymentPurposestatic PaymentPurpose
PaymentPurpose. invoice_payment(byte[] payment_preimage, byte[] payment_secret)
Utility method to constructs a new InvoicePayment-variant PaymentPurposestatic PaymentPurpose
PaymentPurpose. 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 boolean
PaymentPurpose. eq(PaymentPurpose b)
Checks if two PaymentPurposes contain equal inner contents.static Result_PaymentPurposeDecodeErrorZ
Result_PaymentPurposeDecodeErrorZ. ok(PaymentPurpose o)
Creates a new CResult_PaymentPurposeDecodeErrorZ in the success state.static Event
Event. payment_claimable(byte[] receiver_node_id, byte[] payment_hash, RecipientOnionFields onion_fields, long amount_msat, PaymentPurpose purpose, byte[] via_channel_id, Option_u128Z via_user_channel_id, Option_u32Z claim_deadline)
Utility method to constructs a new PaymentClaimable-variant Eventstatic Event
Event. payment_claimed(byte[] receiver_node_id, byte[] payment_hash, long amount_msat, PaymentPurpose purpose)
Utility method to constructs a new PaymentClaimed-variant Event
-