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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import { Rate } from "@/server/routers/hotels/output"
|
||||
|
||||
export interface RoomSelectionProps {
|
||||
rates: Rate[]
|
||||
nrOfAdults: number
|
||||
nrOfNights: number
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface SelectRateSearchParams {
|
||||
fromDate: string
|
||||
toDate: string
|
||||
hotel: string
|
||||
}
|
||||
Reference in New Issue
Block a user