Add nightlyRate in active room stays response
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s
This commit is contained in:
@@ -1304,6 +1304,7 @@ ROOM STAYS + CARDS APIS
|
|||||||
What it does:
|
What it does:
|
||||||
|
|
||||||
- Returns active stays with booking and guest details.
|
- Returns active stays with booking and guest details.
|
||||||
|
- Includes per-stay nightlyRate (nullable when rate was not set on room stay).
|
||||||
- AGENT-only users are blocked.
|
- AGENT-only users are blocked.
|
||||||
|
|
||||||
Request body:
|
Request body:
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ data class ActiveRoomStayResponse(
|
|||||||
val roomTypeName: String,
|
val roomTypeName: String,
|
||||||
val fromAt: String,
|
val fromAt: String,
|
||||||
val checkinAt: String?,
|
val checkinAt: String?,
|
||||||
val expectedCheckoutAt: String?
|
val expectedCheckoutAt: String?,
|
||||||
|
val nightlyRate: Long?
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -69,7 +69,8 @@ class RoomStays(
|
|||||||
roomTypeName = roomType.name,
|
roomTypeName = roomType.name,
|
||||||
fromAt = stay.fromAt.toString(),
|
fromAt = stay.fromAt.toString(),
|
||||||
checkinAt = booking.checkinAt?.toString(),
|
checkinAt = booking.checkinAt?.toString(),
|
||||||
expectedCheckoutAt = booking.expectedCheckoutAt?.toString()
|
expectedCheckoutAt = booking.expectedCheckoutAt?.toString(),
|
||||||
|
nightlyRate = stay.nightlyRate
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user