diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/constant/MIWVerifiableCredentialType.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/constant/MIWVerifiableCredentialType.java index 02d432a5d..08aa96ee2 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/constant/MIWVerifiableCredentialType.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/constant/MIWVerifiableCredentialType.java @@ -33,7 +33,7 @@ public class MIWVerifiableCredentialType extends VerifiableCredentialType { /** * The constant USE_CASE_FRAMEWORK_CONDITION_CX. */ - public static final String USE_CASE_FRAMEWORK_CONDITION_CX = "UseCaseFrameworkConditionCX"; + public static final String USE_CASE_FRAMEWORK_CONDITION_CX = "UseCaseFrameworkCondition"; public static final String BPN_CREDENTIAL = "BpnCredential"; diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/constant/StringPool.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/constant/StringPool.java index 3d4ce7f26..dcdde15e6 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/constant/StringPool.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/constant/StringPool.java @@ -28,7 +28,7 @@ public class StringPool { public static final String CREDENTIAL_ID = "credentialId"; public static final String VALUE = "value"; - public static final String CONTRACT_VERSION = "contract-version"; + public static final String CONTRACT_VERSION = "contractVersion"; public static final String ACTIVITY_TYPE = "activityType"; public static final String ALLOWED_VEHICLE_BRANDS = "allowedVehicleBrands"; public static final String VERIFIABLE_CREDENTIALS = "verifiableCredentials"; @@ -48,8 +48,8 @@ private StringPool() { public static final String HOLDER_DID = "holderDid"; public static final String HOLDER_IDENTIFIER = "holderIdentifier"; public static final String NAME = "name"; - public static final String CONTRACT_TEMPLATES = "contract-templates"; - public static final String CONTRACT_TEMPLATE = "contract-template"; + public static final String CONTRACT_TEMPLATES = "contractTemplates"; + public static final String CONTRACT_TEMPLATE = "contractTemplate"; public static final String TYPE = "type"; public static final String MEMBER_OF = "memberOf"; public static final String STATUS = "status"; diff --git a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/IssuersCredentialService.java b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/IssuersCredentialService.java index 8a535d424..cb60cb653 100644 --- a/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/IssuersCredentialService.java +++ b/src/main/java/org/eclipse/tractusx/managedidentitywallets/service/IssuersCredentialService.java @@ -505,6 +505,7 @@ private void updateSummeryCredentials(DidDocument issuerDidDocument, byte[] issu Map subject = Map.of(StringPool.ID, holderDid, StringPool.HOLDER_IDENTIFIER, holderBpn, StringPool.ITEMS, items, + StringPool.TYPE, MIWVerifiableCredentialType.SUMMARY_CREDENTIAL, StringPool.CONTRACT_TEMPLATES, miwSettings.contractTemplatesUrl());