22 lines
461 B
TypeScript
22 lines
461 B
TypeScript
import { z } from "zod"
|
|
|
|
const flexibilityPrice = z.object({
|
|
member: z.number(),
|
|
standard: z.number(),
|
|
})
|
|
|
|
export const rateSchema = z.object({
|
|
breakfastIncluded: z.boolean(),
|
|
description: z.string(),
|
|
id: z.number(),
|
|
imageSrc: z.string(),
|
|
name: z.string(),
|
|
prices: z.object({
|
|
currency: z.string(),
|
|
freeCancellation: flexibilityPrice,
|
|
freeRebooking: flexibilityPrice,
|
|
nonRefundable: flexibilityPrice,
|
|
}),
|
|
size: z.string(),
|
|
})
|