Deletion

@Serializable
data class Deletion(val id: String, val timestamp: Long, val status: WalletTransactionStatus, val documentId: String, val displayName: String? = null, val displayNames: Map<String, String> = emptyMap(), val vct: String? = null, val docType: String? = null, val issuerName: String? = null, val errorMessage: String? = null) : WalletTransactionEvent

Credential deletion event.

Emitted by the SDK itself (EUDI does not natively log deletions). All display names are captured before the document is removed so the activity log can render a friendly name even after the credential is gone from the wallet.

Unlike presentation/issuance events — where the consuming app can re-resolve names by VCT against currently-stored documents on every refresh — deletion events have no live document to look up, so we snapshot every available locale here and let the app pick the one matching the current language at render time.

Constructors

Link copied to clipboard
constructor(id: String, timestamp: Long, status: WalletTransactionStatus, documentId: String, displayName: String? = null, displayNames: Map<String, String> = emptyMap(), vct: String? = null, docType: String? = null, issuerName: String? = null, errorMessage: String? = null)

Properties

Link copied to clipboard

Best-effort display name in the locale active at delete time. Kept for backwards compatibility with events persisted before displayNames existed; consumers should prefer the localized lookup via displayNames when present.

Link copied to clipboard

Locale → friendly name snapshot taken at delete time, sourced from the credential's rendering bundle and VCT metadata display list. Keys are BCP-47 codes (e.g. "en", "da", "en-GB"); look them up with an exact, then language-only, then first-available fallback.

Link copied to clipboard

docType of the removed credential, when it was an ISO 18013-5 mdoc.

Link copied to clipboard

Wallet-local document id that was removed.

Link copied to clipboard
open override val errorMessage: String?

Failure detail when status is WalletTransactionStatus.Error.

Link copied to clipboard
open override val id: String

Stable opaque id, suitable for deletion via PersistentWalletTransactionLogger.delete.

Link copied to clipboard

Localized issuer name captured at delete time, when known.

Link copied to clipboard
open override val status: WalletTransactionStatus

Final status of the transaction.

Link copied to clipboard
open override val timestamp: Long

Epoch millis at which the event was recorded.

Link copied to clipboard
val vct: String?

VCT of the removed credential, when it was an SD-JWT VC.