diff --git a/src/credential_offer.rs b/src/credential_offer.rs index 67eff47..f1d1535 100644 --- a/src/credential_offer.rs +++ b/src/credential_offer.rs @@ -133,6 +133,18 @@ pub struct CredentialOfferParameters { } impl CredentialOfferParameters { + pub fn new( + credential_issuer: IssuerUrl, + credential_configuration_ids: Vec, + grants: Option, + ) -> Self { + Self { + credential_issuer, + credential_configuration_ids, + grants, + } + } + pub fn issuer(&self) -> &IssuerUrl { &self.credential_issuer }