Merged in feature/select-room-ux-one-page (pull request #523)
This updates the select room page according to the new UX. It has different sections on the same page, but with specific URLs per section. Since neither UX, UI nor API is completely done both design and data structures are a bit temporary. Approved-by: Simon.Emanuelsson
This commit is contained in:
@@ -468,14 +468,24 @@ export const getHotelDataSchema = z.object({
|
||||
included: z.array(roomSchema).optional(),
|
||||
})
|
||||
|
||||
const flexibilityPrice = z.object({
|
||||
standard: z.number(),
|
||||
member: z.number(),
|
||||
})
|
||||
|
||||
const rate = z.object({
|
||||
id: z.number(),
|
||||
name: z.string(),
|
||||
description: z.string(),
|
||||
size: z.string(),
|
||||
pricePerNight: z.number(),
|
||||
currency: z.string(),
|
||||
imageSrc: z.string(),
|
||||
breakfastIncluded: z.boolean(),
|
||||
prices: z.object({
|
||||
currency: z.string(),
|
||||
nonRefundable: flexibilityPrice,
|
||||
freeRebooking: flexibilityPrice,
|
||||
freeCancellation: flexibilityPrice,
|
||||
}),
|
||||
})
|
||||
|
||||
export const getRatesSchema = z.array(rate)
|
||||
|
||||
Reference in New Issue
Block a user