Skip to content

Commit dedd7e5

Browse files
committed
fix: add rooms and adults numbers to search results and quotes
1 parent 68e5be4 commit dedd7e5

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/Stays/StaysTypes.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,16 @@ export interface StaysQuote {
493493
* This value will be `null` if your organisation does not have this feature enabled,
494494
*/
495495
card_component_key: string | null
496+
497+
/*
498+
* The number of adult guests this quote is for.
499+
*/
500+
adults: number
501+
502+
/*
503+
* The number of rooms this quote is for
504+
*/
505+
rooms: number
496506
}
497507

498508
export type StaysBookingStatus = 'confirmed' | 'cancelled'
@@ -591,4 +601,6 @@ export interface StaysSearchResult {
591601
check_in_date: string
592602
check_out_date: string
593603
accommodation: StaysAccommodation
604+
adults: number
605+
rooms: number
594606
}

src/Stays/mocks.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ export const MOCK_SEARCH_RESULT: StaysSearchResult = {
148148
id: 'sta_something',
149149
check_in_date: '2023-03-24',
150150
check_out_date: '2023-03-28',
151+
adults: 1,
152+
rooms: 1,
151153
}
152154

153155
export const MOCK_BOOKING: StaysBooking = {
@@ -201,4 +203,6 @@ export const MOCK_QUOTE: StaysQuote = {
201203
due_at_accommodation_currency: 'USD',
202204
supported_loyalty_programme: 'duffel_hotel_group_rewards',
203205
card_component_key: null,
206+
adults: 1,
207+
rooms: 1,
204208
}

0 commit comments

Comments
 (0)