From 6d34a0c85d307f3a89ce76c5837f458216e42d27 Mon Sep 17 00:00:00 2001 From: Martin Kaeser Date: Tue, 25 Jul 2023 15:26:01 +0200 Subject: [PATCH] feat(dto): API adjustment - Rename field AlternativePostalAddressVerboseDto.type to deliveryServiceType --- .../com/catenax/bpdm/bridge/dummy/dto/DtoConversionHelper.kt | 2 +- .../common/dto/response/AlternativePostalAddressVerboseDto.kt | 2 +- .../org/eclipse/tractusx/bpdm/pool/service/ResponseMappings.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bpdm-bridge-dummy/src/main/kotlin/com/catenax/bpdm/bridge/dummy/dto/DtoConversionHelper.kt b/bpdm-bridge-dummy/src/main/kotlin/com/catenax/bpdm/bridge/dummy/dto/DtoConversionHelper.kt index 0193afd02..b456082be 100644 --- a/bpdm-bridge-dummy/src/main/kotlin/com/catenax/bpdm/bridge/dummy/dto/DtoConversionHelper.kt +++ b/bpdm-bridge-dummy/src/main/kotlin/com/catenax/bpdm/bridge/dummy/dto/DtoConversionHelper.kt @@ -175,7 +175,7 @@ private fun poolToGateAlternativeAddress(address: AlternativePostalAddressVerbos baseAddress = baseAddress, areaPart = areaPart, deliveryServiceNumber = address.deliveryServiceNumber, - deliveryServiceType = address.type, + deliveryServiceType = address.deliveryServiceType, deliveryServiceQualifier = address.deliveryServiceQualifier ) } diff --git a/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/response/AlternativePostalAddressVerboseDto.kt b/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/response/AlternativePostalAddressVerboseDto.kt index 59d581ac7..0d575a1c0 100644 --- a/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/response/AlternativePostalAddressVerboseDto.kt +++ b/bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/response/AlternativePostalAddressVerboseDto.kt @@ -39,7 +39,7 @@ data class AlternativePostalAddressVerboseDto( val deliveryServiceNumber: String = "", @get:Schema(description = "The type of this specified delivery") - val type: DeliveryServiceType = DeliveryServiceType.PO_BOX, + val deliveryServiceType: DeliveryServiceType = DeliveryServiceType.PO_BOX, @get:Schema(description = "Delivery Service Qualifier") val deliveryServiceQualifier: String?, diff --git a/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/ResponseMappings.kt b/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/ResponseMappings.kt index ed0b37d79..bf25e0447 100644 --- a/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/ResponseMappings.kt +++ b/bpdm-pool/src/main/kotlin/org/eclipse/tractusx/bpdm/pool/service/ResponseMappings.kt @@ -190,7 +190,7 @@ fun AlternativePostalAddress.toDto(): AlternativePostalAddressVerboseDto { areaPart = AreaDistrictAlternativVerboseDto( administrativeAreaLevel1 = administrativeAreaLevel1?.let { NameRegioncodeVerboseDto(it.regionName, it.regionCode) }, ), - type = deliveryServiceType, + deliveryServiceType = deliveryServiceType, deliveryServiceNumber = deliveryServiceNumber, deliveryServiceQualifier = deliveryServiceQualifier )