feat(SW-251): add input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user