Skip to content

Instantly share code, notes, and snippets.

@zamahaka
Created June 4, 2019 14:12
Show Gist options
  • Save zamahaka/fa7396247ee8dfb20ae5f0315340d995 to your computer and use it in GitHub Desktop.
Save zamahaka/fa7396247ee8dfb20ae5f0315340d995 to your computer and use it in GitHub Desktop.
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