Skip to content

Commit

Permalink
Merge pull request #358 from catenax-ng/feat/API_rename_deliveryServi…
Browse files Browse the repository at this point in the history
…ceType

feat: API - Rename Type to DeliveryServiceType in AlternativePostalAddressVerboseDto
  • Loading branch information
nicoprow authored Jul 26, 2023
2 parents 50b3412 + 6d34a0c commit addf903
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -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?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ fun AlternativePostalAddress.toDto(): AlternativePostalAddressVerboseDto {
areaPart = AreaDistrictAlternativVerboseDto(
administrativeAreaLevel1 = administrativeAreaLevel1?.let { RegionDto(it.countryCode, it.regionCode, it.regionName) },
),
type = deliveryServiceType,
deliveryServiceType = deliveryServiceType,
deliveryServiceNumber = deliveryServiceNumber,
deliveryServiceQualifier = deliveryServiceQualifier
)
Expand Down

0 comments on commit addf903

Please sign in to comment.