feat: keep inventory of bedselections

This commit is contained in:
Simon Emanuelsson
2025-05-16 16:58:53 +02:00
committed by Michael Zetterberg
parent 39b89c5d51
commit 5ca30d02a0
12 changed files with 153 additions and 47 deletions

View File

@@ -14,6 +14,7 @@ export type BedTypeSelection = {
}
value: string
type: BedTypeEnum
roomsLeft: number
extraBed:
| {
description: string

View File

@@ -1,21 +1,21 @@
import type { BedTypeSelection } from "@/types/components/hotelReservation/enterDetails/bedType"
import type { RoomRate } from "@/types/components/hotelReservation/enterDetails/details"
import type { RateEnum } from "@/types/enums/rate"
import type { Packages } from "@/types/requests/packages"
import type { Package } from "@/types/requests/packages"
export interface Room {
bedTypes?: BedTypeSelection[]
breakfastIncluded?: boolean
bedTypes: BedTypeSelection[]
breakfastIncluded: boolean
cancellationRule?: string
cancellationText: string
mustBeGuaranteed: boolean
memberMustBeGuaranteed?: boolean
packages: Packages | null
memberMustBeGuaranteed: boolean | undefined
packages: Package[]
rate: RateEnum
rateDefinitionTitle: string
rateDetails: string[]
memberRateDetails?: string[]
rateTitle?: string
memberRateDetails: string[] | undefined
rateTitle: string | undefined
rateType: string
roomRate: RoomRate
roomType: string

View File

@@ -90,6 +90,7 @@ export interface DetailsState {
updateSeachParamString: (searchParamString: string) => void
addPreSubmitCallback: (name: string, callback: () => void) => void
}
availableBeds: Record<string, number>
booking: SelectRateSearchParams
breakfastPackages: BreakfastPackages
canProceedToPayment: boolean