StarTransaction

@Serializable(with = StarTransaction.Companion::class)
sealed interface StarTransaction : Amounted

Inheritors

Types

Link copied to clipboard
object Companion : KSerializer<StarTransaction>
Link copied to clipboard
@Serializable(with = StarTransaction.Companion::class)
data class Incoming(    val id: StarTransactionId,     val amount: Long,     val nanostarAmount: Int,     val date: TelegramDate,     val partner: TransactionPartner) : StarTransaction
Link copied to clipboard
@Serializable(with = StarTransaction.Companion::class)
data class Outgoing(    val id: StarTransactionId,     val amount: Long,     val nanostarAmount: Int,     val date: TelegramDate,     val partner: TransactionPartner) : StarTransaction
Link copied to clipboard
@Serializable(with = StarTransaction.Companion::class)
data class Unknown(    val id: StarTransactionId,     val amount: Long,     val nanostarAmount: Int,     val date: TelegramDate,     val source: TransactionPartner?,     val receiver: TransactionPartner?,     val raw: JsonElement?) : StarTransaction

Properties

Link copied to clipboard
Link copied to clipboard
abstract val amount: Long
Link copied to clipboard
abstract val date: TelegramDate
Link copied to clipboard
abstract val id: StarTransactionId
Link copied to clipboard
abstract val nanostarAmount: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val source: TransactionPartner?