-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a1951a
commit f3ccbaa
Showing
8 changed files
with
117 additions
and
33 deletions.
There are no files selected for viewing
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
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
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
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
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
28 changes: 28 additions & 0 deletions
28
...s/waltid-service-commons/src/main/kotlin/id/walt/commons/events/wallet/CredentialEvent.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package id.walt.commons.events.wallet | ||
|
||
import id.walt.commons.events.* | ||
import id.walt.commons.temp.UuidSerializer | ||
import id.walt.oid4vc.data.ProofType | ||
import kotlinx.serialization.Serializable | ||
import kotlin.uuid.ExperimentalUuidApi | ||
import kotlin.uuid.Uuid | ||
|
||
@OptIn(ExperimentalUuidApi::class) | ||
@Serializable | ||
class CredentialEvent( | ||
override val originator: String?, | ||
override val target: String, | ||
override val timestamp: Long, | ||
override val action: Action, | ||
override val status: Status, | ||
override val callId: String?, | ||
override val error: String?, | ||
|
||
// custom event data | ||
val tenant: String, | ||
val account: String, | ||
val credentialId: String, | ||
val credentialStatus: String | ||
) : Event() { | ||
|
||
} |
28 changes: 18 additions & 10 deletions
28
...ces/waltid-service-commons/src/main/kotlin/id/walt/commons/events/wallet/IssuanceEvent.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
package id.walt.commons.events.wallet | ||
|
||
import id.walt.commons.events.Event | ||
import id.walt.commons.events.EventStatus | ||
import id.walt.commons.events.EventType | ||
import id.walt.commons.events.* | ||
import id.walt.commons.temp.UuidSerializer | ||
import id.walt.oid4vc.data.ProofType | ||
import kotlinx.serialization.Serializable | ||
import kotlin.uuid.ExperimentalUuidApi | ||
import kotlin.uuid.Uuid | ||
|
||
@OptIn(ExperimentalUuidApi::class) | ||
@Serializable | ||
class IssuanceEvent( | ||
override val originator: String?, | ||
override val target: String, | ||
override val timestamp: Long, | ||
override val status: EventStatus, | ||
override val action: Action, | ||
override val status: Status, | ||
override val callId: String?, | ||
override val error: String?, | ||
|
||
// custom event data | ||
val tenant: String, | ||
val account: String, | ||
val credentialOfferUrl: String, | ||
val credentialConfigurationId: String, | ||
val credentialId: String, | ||
val issuerId: String, | ||
val type: String, | ||
override val action: String, | ||
override val callId: String? = null, | ||
override val error: String? = null | ||
) : Event(Uuid.random().toHexString(), EventType.IssuanceEvent, null) | ||
val type: String | ||
) : Event() { | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
...waltid-service-commons/src/main/kotlin/id/walt/commons/events/wallet/PresentationEvent.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package id.walt.commons.events.wallet | ||
|
||
import id.walt.commons.events.* | ||
import id.walt.commons.temp.UuidSerializer | ||
import id.walt.oid4vc.data.ProofType | ||
import kotlinx.serialization.Serializable | ||
import kotlin.uuid.ExperimentalUuidApi | ||
import kotlin.uuid.Uuid | ||
|
||
@OptIn(ExperimentalUuidApi::class) | ||
@Serializable | ||
class PresentationEvent( | ||
override val originator: String?, | ||
override val target: String, | ||
override val timestamp: Long, | ||
override val action: Action, | ||
override val status: Status, | ||
override val callId: String?, | ||
override val error: String?, | ||
|
||
// custom event data | ||
val tenant: String, | ||
val account: String, | ||
val presentationRequestUrl: String, | ||
val credentialId: String, | ||
val verifierId: String, | ||
val type: String | ||
) : Event() { | ||
|
||
} |