feat/SW-711-update-children-params (pull request #791)

Feat/SW-711 update children params

* feat(SW-711): add new child params for availability

* feat(SW-711): fix children schema

* feat(SW-711): fix optional values

* feat(SW-711): add children as parameter iff not undefined

* feat(SW-711): add bedType enum

* feat(SW-711): remove optional number type

* feat(SW-711): fix wrong slash

* feat(SW-711): remove optional


Approved-by: Hrishikesh Vaipurkar
This commit is contained in:
Bianca Widstam
2024-10-30 09:34:54 +00:00
parent 5f7dde16c6
commit eff0d122cd
9 changed files with 45 additions and 14 deletions

View File

@@ -312,13 +312,12 @@ export const hotelQueryRouter = router({
roomStayStartDate,
roomStayEndDate,
adults,
children,
...(children && { children }),
promotionCode,
reservationProfileType,
attachedProfileId,
language: apiLang,
}
hotelsAvailabilityCounter.add(1, {
cityId,
roomStayStartDate,
@@ -437,7 +436,7 @@ export const hotelQueryRouter = router({
roomStayStartDate,
roomStayEndDate,
adults,
children,
...(children && { children }),
promotionCode,
reservationProfileType,
attachedProfileId,