feat: make PaymentRecord immutable and add keys to HistoryScreen

This commit is contained in:
2026-06-08 17:07:20 +02:00
parent a232d4bfde
commit 6bd42b61cc
2 changed files with 8 additions and 2 deletions
@@ -1,5 +1,6 @@
package com.bitcointxoko.gudariwallet.api
import androidx.compose.runtime.Immutable
import com.google.gson.TypeAdapter
import com.google.gson.annotations.JsonAdapter
import com.google.gson.annotations.SerializedName
@@ -156,6 +157,7 @@ data class LnurlpLink(
// ── Payment history ───────────────────────────────────────────────────────────
@Immutable
data class PaymentRecord(
@SerializedName("payment_hash") val paymentHash: String,
@SerializedName("checking_id") val checkingId: String,
@@ -204,6 +206,8 @@ data class PaymentRecord(
}
}
@Immutable
data class PaymentExtra(
@SerializedName("tag") val tag: String?,
@JsonAdapter(FlexibleStringAdapter::class)
@@ -214,6 +218,7 @@ data class PaymentExtra(
@SerializedName("expires_at") val expiresAt: String?
)
@Immutable
data class SuccessAction(
@SerializedName("tag") val tag: String?,
@SerializedName("message") val message: String?,