IncomingPayment

@Serializable
data class IncomingPayment(val id: String, val createdAt: Instant, val updatedAt: Instant, val status: TransactionStatus, val amount: CurrencyAmount, val resolvedAt: Instant? = null, val transactionHash: String? = null, val paymentRequestId: EntityId? = null) : LightningTransaction, Transaction, Entity

A transaction that was sent to a Lightspark node on the Lightning Network.

Parameters

id

The unique identifier of this entity across all Lightspark systems. Should be treated as an opaque string.

createdAt

The date and time when this transaction was initiated.

updatedAt

The date and time when the entity was last updated.

status

The current status of this transaction.

amount

The amount of money involved in this transaction.

resolvedAt

The date and time when this transaction was completed or failed.

transactionHash

The hash of this transaction, so it can be uniquely identified on the Lightning Network.

paymentRequestId

The optional payment request for this incoming payment, which will be null if the payment is sent through keysend.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Instant, updatedAt: Instant, status: TransactionStatus, amount: CurrencyAmount, resolvedAt: Instant? = null, transactionHash: String? = null, paymentRequestId: EntityId? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val amount: CurrencyAmount
Link copied to clipboard
open override val createdAt: Instant
Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard
open override val resolvedAt: Instant? = null
Link copied to clipboard
open override val status: TransactionStatus
Link copied to clipboard
open override val transactionHash: String? = null
Link copied to clipboard
open override val updatedAt: Instant