Skip to content

Commit

Permalink
add credential offer status (#239)
Browse files Browse the repository at this point in the history
* add credential offer status
  • Loading branch information
vmidyllic authored Jun 7, 2024
1 parent c673d59 commit 8437584
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/iden3comm/types/protocol/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,18 @@ export type CredentialsOnchainOfferMessageBody = {
transaction_data: ContractInvokeTransactionData;
};

/** CredentialOfferStatus is list of possible statuses for credential offer message */
export enum CredentialOfferStatus {
Pending = 'pending',
Completed = 'completed',
Rejected = 'rejected'
}

/** CredentialOffer is structure to fetch credential */
export type CredentialOffer = {
id: string;
description: string;
status?: CredentialOfferStatus;
};

/** CredentialIssuanceMessage represent Iden3message for credential issuance */
Expand Down

0 comments on commit 8437584

Please sign in to comment.