Skip to main content

@bloock/sdk / CredentialReceipt

Class: CredentialReceipt

Represents a receipt for a credential, including the credential itself, its ID, and type.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CredentialReceipt(credential, credentialId, credentialType): CredentialReceipt

Constructs an CredentialReceipt object with the specified parameters.

Parameters

NameType
credentialCredential
credentialIdstring
credentialTypestring

Returns

CredentialReceipt

Defined in

entity/identity/credential_receipt.ts:18

Properties

credential

credential: Credential

Defined in

entity/identity/credential_receipt.ts:8


credentialId

credentialId: string

Defined in

entity/identity/credential_receipt.ts:9


credentialType

credentialType: string

Defined in

entity/identity/credential_receipt.ts:10

Methods

toProto

toProto(): CredentialReceipt

Returns

CredentialReceipt

Defined in

entity/identity/credential_receipt.ts:28


fromProto

fromProto(r): CredentialReceipt

Parameters

NameType
rCredentialReceipt

Returns

CredentialReceipt

Defined in

entity/identity/credential_receipt.ts:36