Skip to content
Snippets Groups Projects
Verified Commit 1610160a authored by Konstantin Tsabolov's avatar Konstantin Tsabolov
Browse files

chore: keep acceptOffer method in credential service of SSI abstraction

parent 660479c9
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,8 @@ import type { ...@@ -16,6 +16,8 @@ import type {
EventAnonCredsCredentialsDeleteByIdInput, EventAnonCredsCredentialsDeleteByIdInput,
EventAnonCredsCredentialsGetAllInput, EventAnonCredsCredentialsGetAllInput,
EventAnonCredsCredentialsGetByIdInput, EventAnonCredsCredentialsGetByIdInput,
EventDidcommAnonCredsCredentialsAcceptOffer,
EventDidcommAnonCredsCredentialsAcceptOfferInput,
EventDidcommAnonCredsCredentialsOffer, EventDidcommAnonCredsCredentialsOffer,
EventDidcommAnonCredsCredentialsOfferInput, EventDidcommAnonCredsCredentialsOfferInput,
EventDidcommAnonCredsCredentialsOfferToSelf, EventDidcommAnonCredsCredentialsOfferToSelf,
...@@ -149,6 +151,19 @@ export class AnonCredsCredentialsService { ...@@ -149,6 +151,19 @@ export class AnonCredsCredentialsService {
}); });
} }
public async acceptOffer({
tenantId,
credentialId,
}: EventDidcommAnonCredsCredentialsAcceptOfferInput): Promise<
EventDidcommAnonCredsCredentialsAcceptOffer['data']
> {
return this.withTenantService.invoke(tenantId, (t) =>
t.credentials.acceptOffer({
credentialRecordId: credentialId,
}),
);
}
public async offer({ public async offer({
tenantId, tenantId,
connectionId, connectionId,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment