Merged in feat/SW-1076-no-room-availability (pull request #1467)

Feat/SW-1076 no room availability

* fix: update booking error codes

* feat(SW-1076): handle no room availabilty on enter-details

* fix: parse to json in api mutation instead of expecting json

* fix: remove 'isComplete' state from sectionAccordion because it was not needed


Approved-by: Simon.Emanuelsson
This commit is contained in:
Tobias Johansson
2025-03-10 12:13:15 +00:00
parent 131cbfcda3
commit 7c233ab846
23 changed files with 139 additions and 63 deletions
@@ -13,6 +13,7 @@ export interface Room {
roomRate: RoomRate
roomType: string
roomTypeCode: string
isAvailable: boolean
}
export interface RoomProviderProps extends React.PropsWithChildren {
@@ -22,6 +22,7 @@ import type {
import type { Packages } from "../requests/packages"
export interface InitialRoomData {
isAvailable: boolean
bedType?: BedTypeSchema // used when there is only one bedtype to preselect it
bedTypes: BedTypeSelection[]
breakfastIncluded: boolean