Include guest dob in guest search and detail responses
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
This commit is contained in:
@@ -2247,6 +2247,7 @@ GUEST + DOCUMENT + RATING APIS
|
|||||||
What it does:
|
What it does:
|
||||||
|
|
||||||
- Searches guest by phone or vehicle number.
|
- Searches guest by phone or vehicle number.
|
||||||
|
- Returns guest profile fields including dob (if available), vehicles, and average score.
|
||||||
|
|
||||||
Request body:
|
Request body:
|
||||||
|
|
||||||
@@ -2272,7 +2273,7 @@ GUEST + DOCUMENT + RATING APIS
|
|||||||
|
|
||||||
What it does:
|
What it does:
|
||||||
|
|
||||||
- Returns guest profile with vehicles + average score.
|
- Returns guest profile with dob (if available), vehicles, and average score.
|
||||||
|
|
||||||
Request body:
|
Request body:
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ data class GuestResponse(
|
|||||||
val id: UUID,
|
val id: UUID,
|
||||||
val name: String?,
|
val name: String?,
|
||||||
val phoneE164: String?,
|
val phoneE164: String?,
|
||||||
|
val dob: String?,
|
||||||
val nationality: String?,
|
val nationality: String?,
|
||||||
val addressText: String?,
|
val addressText: String?,
|
||||||
val signatureUrl: String?,
|
val signatureUrl: String?,
|
||||||
|
|||||||
@@ -232,6 +232,7 @@ private fun Set<Guest>.toResponse(
|
|||||||
id = guest.id!!,
|
id = guest.id!!,
|
||||||
name = guest.name,
|
name = guest.name,
|
||||||
phoneE164 = guest.phoneE164,
|
phoneE164 = guest.phoneE164,
|
||||||
|
dob = guest.age?.trim()?.ifBlank { null },
|
||||||
nationality = guest.nationality,
|
nationality = guest.nationality,
|
||||||
addressText = guest.addressText,
|
addressText = guest.addressText,
|
||||||
signatureUrl = guest.signaturePath?.let {
|
signatureUrl = guest.signaturePath?.let {
|
||||||
|
|||||||
Reference in New Issue
Block a user