Transaction

Sealed class for all types of Transactions.

Author

Jan Müller
sealed class Transaction

Types

Funding
Link copied to clipboard
Funding Transaction.
data class Funding(value: Double,timestamp: Long) : Transaction
Purchase
Link copied to clipboard
Purchase Transaction.
data class Purchase(value: Double,timestamp: Long,itemId: String,itemName: String,amount: Int) : Transaction
Refund
Link copied to clipboard
Refund Transaction.
data class Refund(value: Double,timestamp: Long,itemId: String,itemName: String,amount: Int) : Transaction

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

timestamp
Link copied to clipboard
The timestamp of the Transaction.
abstract val timestamp: Long
value
Link copied to clipboard
The value of the Transaction.
abstract val value: Double

Inheritors

Transaction
Link copied to clipboard
Transaction
Link copied to clipboard
Transaction
Link copied to clipboard