IncomingPayment

fun IncomingPayment(preimage: ByteVector32, origin: IncomingPayment.Origin)
fun IncomingPayment(preimage: ByteVector32, origin: IncomingPayment.Origin, received: IncomingPayment.Received?, createdAt: Long = currentTimestampMillis())

Parameters

preimage

payment preimage, which acts as a proof-of-payment for the payer.

origin

origin of a payment (normal, swap, etc).

received

funds received for this payment, null if no funds have been received yet.

createdAt

absolute time in milliseconds since UNIX epoch when the payment request was generated.