Transaction status
@@ -3,11 +3,15 @@ package fr.acinq.phoenix.app
data class Transaction(
val amountSat: Long,
val desc: String, // Swift does not support fields named description
- val success: Boolean,
+ val status: Status,
val paymentHash: String,
val paymentRequest: String,
val paymentPreimage: String,
val creationTimestamp: Long,
val expirationTimestamp: Long,
val completionTimestamp: Long
-)
\ No newline at end of file
+) {
+
+ enum class Status { Success, Pending, Failure }
+
+}
\ No newline at end of file
