feat/SW-627-query-available-hotels (pull request #751)

Feat/SW-627 query available hotels

* feat(SW-627): use correct search query to find available hotels

* feat(SW-627): fix type name

* feat(SW-627): update correct params

* feat(SW-627): update correct params type

* feat(SW-627): fix select hotel searchParams type


Approved-by: Niclas Edenvin
This commit is contained in:
Bianca Widstam
2024-10-25 06:48:29 +00:00
parent 048559009c
commit d8bc677b4d
3 changed files with 48 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
interface Child {
bed: string
age: number
}
interface Room {
adults: number
child?: Child[]
}
export interface SelectHotelSearchParams {
city: string
fromDate: string
toDate: string
room: Room[]
[key: string]: string | string[] | Room[]
}

View File

@@ -14,8 +14,8 @@ interface Room {
export interface SelectRateSearchParams {
hotel: string
fromdate: string
todate: string
fromDate: string
toDate: string
room: Room[]
[key: string]: string | string[] | Room[]
}