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 )