Invoice

@Serializable
data class Invoice(val id: String, val createdAt: Instant, val updatedAt: Instant, val data: InvoiceData, val status: PaymentRequestStatus, val amountPaid: CurrencyAmount? = null) : PaymentRequest, Entity

This object represents a BOLT #11 invoice (https://github.com/lightning/bolts/blob/master/11-payment-encoding.md) initiated by a Lightspark Node.

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 the entity was first created.

updatedAt

The date and time when the entity was last updated.

data

The details of the invoice.

status

The status of the payment request.

amountPaid

The total amount that has been paid to this invoice.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Instant, updatedAt: Instant, data: InvoiceData, status: PaymentRequestStatus, amountPaid: CurrencyAmount? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val createdAt: Instant
Link copied to clipboard
open override val data: InvoiceData
Link copied to clipboard
open override val id: String
Link copied to clipboard
open override val status: PaymentRequestStatus
Link copied to clipboard
open override val updatedAt: Instant