Wallet

@Serializable
data class Wallet(val id: String, val createdAt: Instant, val updatedAt: Instant, val status: WalletStatus, val balances: Balances? = null) : Entity

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.

status

The status of this wallet.

balances

The balances that describe the funds in this wallet.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Instant, updatedAt: Instant, status: WalletStatus, balances: Balances? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getPaymentRequestsQuery(first: Int? = null, after: String? = null, createdAfterDate: Instant? = null, createdBeforeDate: Instant? = null): Query<WalletToPaymentRequestsConnection>
Link copied to clipboard
fun getTransactionsQuery(first: Int? = null, after: String? = null, createdAfterDate: Instant? = null, createdBeforeDate: Instant? = null, statuses: List<TransactionStatus>? = null, types: List<TransactionType>? = null): Query<WalletToTransactionsConnection>

Properties

Link copied to clipboard
val balances: Balances? = null
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 updatedAt: Instant