Revert "feature/Add function PemCertificateRole.toBerlinGroup"

This reverts commit e81eccde3b.
This commit is contained in:
Marko Milić 2025-08-25 10:53:32 +02:00
parent b0b062cc55
commit bd43d9347f
2 changed files with 1 additions and 10 deletions

View File

@ -3979,8 +3979,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
tpp <- BerlinGroupSigning.getTppByCertificate(certificate, cc)
} yield {
if (tpp.nonEmpty) {
val berlinGroupRole = PemCertificateRole.toBerlinGroup(serviceProvider)
val hasRole = tpp.exists(_.services.contains(berlinGroupRole))
val hasRole = tpp.exists(_.services.contains(serviceProvider))
if (hasRole) {
Full(true)
} else {

View File

@ -173,14 +173,6 @@ object PemCertificateRole extends OBPEnumeration[PemCertificateRole] {
object PSP_IC extends Value
object PSP_AI extends Value
object PSP_PI extends Value
def toBerlinGroup(role: String): String = {
role match {
case item if PSP_AI.toString == item => "AISP"
case item if PSP_PI.toString == item => "PISP"
case _ => ""
}
}
}
sealed trait UserInvitationPurpose extends EnumValue