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

SentRequest

@JsonClass(true) data class SentRequest : CredentialRecord

This class relates to the CredentialState.SENT_REQUEST credential record. The current state of the credential record is intermediate between offered and issued. The new instance can be crated from ReceivedOffer instance by means ReceivedOffer.toRequestedCredential.

Constructors

<init>

This class relates to the CredentialState.SENT_REQUEST credential record. The current state of the credential record is intermediate between offered and issued. The new instance can be crated from ReceivedOffer instance by means ReceivedOffer.toRequestedCredential.

SentRequest(id: String, connectionContext: ConnectionContext, comment: String?, offerJson: String, credentialDefinitionId: String, credentialAttributesValues: List<CredentialPreviewAttribute> = emptyList(), schemaId: String, proverDid: String, requestJson: String, credentialRequestMetadataJson: 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

credentialRequestMetadataJson

the credential request metadata JSON.

val credentialRequestMetadataJson: 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

requestJson

val requestJson: String

schemaId

the schema identifier

val schemaId: String

Functions

toReceivedIssue

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

fun toReceivedIssue(credentialId: String, updatedAttributes: List<CredentialPreviewAttribute>, revocationRegistryId: String?): ReceivedIssue