feat: keep inventory of bedselections
This commit is contained in:
committed by
Michael Zetterberg
parent
39b89c5d51
commit
5ca30d02a0
@@ -14,6 +14,7 @@ export type BedTypeSelection = {
|
||||
}
|
||||
value: string
|
||||
type: BedTypeEnum
|
||||
roomsLeft: number
|
||||
extraBed:
|
||||
| {
|
||||
description: string
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user