feat(SW-251): add input

This commit is contained in:
Fredrik Thorsson
2024-09-11 16:19:59 +02:00
parent 7eeafd2a20
commit 98b903b314

View File

@@ -20,12 +20,20 @@ async function getAvailableHotels({
roomStayStartDate,
roomStayEndDate,
adults,
children,
promotionCode,
attachedProfileId,
reservationProfileType,
}: AvailabilityInput): Promise<HotelData[] | null> {
const getAvailableHotels = await serverClient().hotel.availability.get({
cityId: cityId,
roomStayStartDate: roomStayStartDate,
roomStayEndDate: roomStayEndDate,
adults: adults,
children: children,
promotionCode: promotionCode,
attachedProfileId: attachedProfileId,
reservationProfileType: reservationProfileType,
})
if (!getAvailableHotels) return null