@atala/prism-wallet-sdk / Exports / OfferCredential
Class: OfferCredential
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new OfferCredential(body
, attachments
, from?
, to?
, thid?
, id?
): OfferCredential
Parameters
Name | Type |
---|---|
body | OfferCredentialBody |
attachments | AttachmentDescriptor [] |
from? | DID |
to? | DID |
thid? | string |
id | string |
Returns
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:14
Properties
attachments
• attachments: AttachmentDescriptor
[]
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:16
body
• body: OfferCredentialBody
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:15
from
• Optional
from: DID
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:17
id
• id: string
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:20
thid
• Optional
thid: string
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:19
to
• Optional
to: DID
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:18
type
▪ Static
type: ProtocolType
= ProtocolType.DidcommOfferCredential
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:12
Methods
makeMessage
▸ makeMessage(): Message
Returns
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:29
build
▸ build<T
>(credentialPreview
, fromDID
, toDID
, thid?
, credentials?
): OfferCredential
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
credentialPreview | CredentialPreview |
fromDID | DID |
toDID | DID |
thid? | string |
credentials | Map <string , T > |
Returns
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:86
fromMessage
▸ fromMessage(fromMessage
): OfferCredential
Parameters
Name | Type |
---|---|
fromMessage | Message |
Returns
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:59
makeOfferFromProposedCredential
▸ makeOfferFromProposedCredential(proposed
): OfferCredential
Parameters
Name | Type |
---|---|
proposed | ProposeCredential |
Returns
Defined in
src/edge-agent/protocols/issueCredential/OfferCredential.ts:42