Merged in feat/SW-454-select-room-api (pull request #648)

Feat/SW-454 Create select rate page foundation

* Extract select-rate page to its own, fixed route

* Rename availability to hotelsAvailability

* Update availability hotels response

* Number to string


Approved-by: Pontus Dreij
This commit is contained in:
Niclas Edenvin
2024-10-08 09:10:06 +00:00
parent 05222035ff
commit 6e6d14875d
14 changed files with 143 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
import { AvailabilityPrices } from "@/server/routers/hotels/output"
import { HotelsAvailabilityPrices } from "@/server/routers/hotels/output"
import { Hotel } from "@/types/hotel"
@@ -8,5 +8,5 @@ export type HotelCardListingProps = {
export type HotelData = {
hotelData: Hotel
price: AvailabilityPrices
price: HotelsAvailabilityPrices
}

View File

@@ -0,0 +1,7 @@
import { Rate } from "@/server/routers/hotels/output"
export interface RoomSelectionProps {
rates: Rate[]
nrOfAdults: number
nrOfNights: number
}

View File

@@ -1,5 +1,3 @@
import { Rate } from "@/server/routers/hotels/output"
import { Hotel } from "@/types/hotel"
export interface SectionProps {
@@ -27,12 +25,6 @@ export interface BreakfastSelectionProps extends SectionProps {
}[]
}
export interface RoomSelectionProps extends SectionProps {
alternatives: Rate[]
nrOfAdults: number
nrOfNights: number
}
export interface DetailsProps extends SectionProps {}
export interface PaymentProps {

View File

@@ -0,0 +1,5 @@
export interface SelectRateSearchParams {
fromDate: string
toDate: string
hotel: string
}