aries / net.globalid.aries.features.issuecredential.record / CredentialRecord / ReceivedOffer

ReceivedOffer

@JsonClass(true) data class ReceivedOffer : CredentialRecord

This class relates to the CredentialState.RECEIVED_OFFER credential record. The current record is first in the credential record lifecycle.

Constructors

<init>

This class relates to the CredentialState.RECEIVED_OFFER credential record. The current record is first in the credential record lifecycle.

ReceivedOffer(id: String, connectionContext: ConnectionContext, comment: String?, offerJson: String, credentialDefinitionId: String, credentialAttributesValues: List<CredentialPreviewAttribute> = emptyList(), schemaId: String, proverDid: String)

Properties

comment

is an optional comment for display

val comment: String?

connectionContext

is a ConnectionContext, holding the data for sending a message.

val connectionContext: ConnectionContext

credentialAttributesValues

the user values json

val credentialAttributesValues: List<CredentialPreviewAttribute>

credentialDefinitionId

the definition identifier of this credential

val credentialDefinitionId: String

id

the unique record identifier

val id: String

offerJson

the credential offer json

val offerJson: String

proverDid

is our DID for this credential flow

val proverDid: String

schemaId

the schema identifier

val schemaId: String

Functions

toRejectedCredential

Converts ReceivedOffer to RejectedCredential record and copies all tags from previous state to a new one.

fun toRejectedCredential(): RejectedCredential

toRequestedCredential

Converts ReceivedOffer to SentRequest record and copies all tags from previous state to a new one.

fun toRequestedCredential(requestJson: String, requestMetadataJson: String): SentRequest