feat(SW-251): add input
This commit is contained in:
@@ -20,12 +20,20 @@ async function getAvailableHotels({
|
|||||||
roomStayStartDate,
|
roomStayStartDate,
|
||||||
roomStayEndDate,
|
roomStayEndDate,
|
||||||
adults,
|
adults,
|
||||||
|
children,
|
||||||
|
promotionCode,
|
||||||
|
attachedProfileId,
|
||||||
|
reservationProfileType,
|
||||||
}: AvailabilityInput): Promise<HotelData[] | null> {
|
}: AvailabilityInput): Promise<HotelData[] | null> {
|
||||||
const getAvailableHotels = await serverClient().hotel.availability.get({
|
const getAvailableHotels = await serverClient().hotel.availability.get({
|
||||||
cityId: cityId,
|
cityId: cityId,
|
||||||
roomStayStartDate: roomStayStartDate,
|
roomStayStartDate: roomStayStartDate,
|
||||||
roomStayEndDate: roomStayEndDate,
|
roomStayEndDate: roomStayEndDate,
|
||||||
adults: adults,
|
adults: adults,
|
||||||
|
children: children,
|
||||||
|
promotionCode: promotionCode,
|
||||||
|
attachedProfileId: attachedProfileId,
|
||||||
|
reservationProfileType: reservationProfileType,
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!getAvailableHotels) return null
|
if (!getAvailableHotels) return null
|
||||||
|
|||||||
Reference in New Issue
Block a user