WithdrawalRequest

@Serializable
data class WithdrawalRequest(val id: String, val createdAt: Instant, val updatedAt: Instant, val amount: CurrencyAmount, val bitcoinAddress: String, val status: WithdrawalRequestStatus, val estimatedAmount: CurrencyAmount? = null, val completedAt: Instant? = null, val withdrawalId: EntityId? = 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.

amount

The amount of money that should be withdrawn in this request.

bitcoinAddress

The bitcoin address where the funds should be sent.

status

The current status of this withdrawal request.

estimatedAmount

If the requested amount is -1 (i.e. everything), this field may contain an estimate of the amount for the withdrawal.

completedAt

The time at which this request was completed.

withdrawalId

The withdrawal transaction that has been generated by this request.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Instant, updatedAt: Instant, amount: CurrencyAmount, bitcoinAddress: String, status: WithdrawalRequestStatus, estimatedAmount: CurrencyAmount? = null, completedAt: Instant? = null, withdrawalId: EntityId? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val completedAt: Instant? = null
Link copied to clipboard
open override val createdAt: Instant
Link copied to clipboard
Link copied to clipboard
open override val id: String
Link copied to clipboard
Link copied to clipboard
open override val updatedAt: Instant
Link copied to clipboard
val withdrawalId: EntityId? = null