From 5a3a8ca6ea3a3883973c7c7f3aa9dcbd299a72a4 Mon Sep 17 00:00:00 2001 From: rschneider <97682836+rainer-exxcellent@users.noreply.github.com> Date: Thu, 25 May 2023 10:09:58 +0200 Subject: [PATCH] feat(api): #173 API: Address State Official Denotation -> Description removed unused toEntity method --- .../tractusx/bpdm/common/dto/response/AddressStateResponse.kt | 2 +- .../tractusx/bpdm/pool/service/BusinessPartnerBuildService.kt | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/response/AddressStateResponse.kt b/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/response/AddressStateResponse.kt index c82658504..67dfbb353 100644 --- a/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/response/AddressStateResponse.kt +++ b/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/response/AddressStateResponse.kt @@ -27,7 +27,7 @@ import java.time.LocalDateTime @Schema(name = "AddressStateResponse", description = "Status record of a legal entity") data class AddressStateResponse( @get:Schema(description = "Exact, official denotation of the status") - val officialDenotation: String?, + val description: String?, @get:Schema(description = "Since when the status is/was valid") val validFrom: LocalDateTime?, diff --git a/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/BusinessPartnerBuildService.kt b/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/BusinessPartnerBuildService.kt index 6b4a11c91..73e925f3b 100644 --- a/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/BusinessPartnerBuildService.kt +++ b/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/BusinessPartnerBuildService.kt @@ -542,10 +542,6 @@ class BusinessPartnerBuildService( ) } - private fun toEntity(dto: AddressVersionDto): AddressVersion { - return AddressVersion(dto.characterSet, dto.language) - } - private fun toEntity(dto: GeoCoordinateDto): GeographicCoordinate { return GeographicCoordinate(dto.latitude, dto.longitude, dto.altitude) }