Created
June 4, 2019 14:12
-
-
Save zamahaka/fa7396247ee8dfb20ae5f0315340d995 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Transaction( | |
override val id: Long, | |
val blockchainUrl: String?, | |
val type: Type, | |
val status: Status, | |
val castAs: CastAs, | |
val senderAddress: String?, | |
val receiverAddress: String?, | |
val senderMessage: String?, | |
val receiverMessage: String?, | |
val amount: String, | |
val currency: Currency, | |
val transactionHash: String?, | |
val requestedAt: Timestamp?, | |
val respondedAt: Timestamp?, | |
val time: Timestamp?, | |
val isIncoming: Boolean, | |
val isInvoice: Boolean, | |
val isFromUnknown: Boolean | |
) : IdEntity<Long> { | |
enum class Type { RECEIVED, SENT } | |
enum class Status { NEW, CANCELED, PENDING, SUCCESS, FAILED } | |
enum class CastAs { INVOICE, WITHDRAWAL, DEPOSIT } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment