Skip to content

Commit

Permalink
feat(dto): API adjustment - Rename field AlternativePostalAddressVerb…
Browse files Browse the repository at this point in the history
…oseDto.type to deliveryServiceType
  • Loading branch information
martinfkaeser committed Jul 26, 2023
1 parent 6ce9614 commit 6d34a0c
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 { NameRegioncodeVerboseDto(it.regionName, it.regionCode) },
),
type = deliveryServiceType,
deliveryServiceType = deliveryServiceType,
deliveryServiceNumber = deliveryServiceNumber,
deliveryServiceQualifier = deliveryServiceQualifier
)
Expand Down

0 comments on commit 6d34a0c

Please sign in to comment.