Skip to content

Commit

Permalink
Merge pull request #762 from duffelhq/number-of-rooms
Browse files Browse the repository at this point in the history
fix: add rooms to bookings
  • Loading branch information
andrejak committed Jul 7, 2023
2 parents 7b7f8b8 + 7e84588 commit e30d3d6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/Stays/StaysTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,33 @@ export interface StaysBooking {
* The guests for the booking
*/
guests: Array<{ given_name: string; family_name: string }>

/**
* The loyalty programme that this booking supports.
*/
supported_loyalty_programme:
| 'wyndham_rewards'
| 'choice_privileges'
| 'marriott_bonvoy'
| 'best_western_rewards'
| 'world_of_hyatt'
| 'hilton_honors'
| 'ihg_one_rewards'
| 'leaders_club'
| 'stash_rewards'
| 'omni_select_guest'
| 'i_prefer'
| 'accor_live_limitless'
| 'my_6'
| 'jumeirah_one'
| 'global_hotel_alliance_discovery'
| 'duffel_hotel_group_rewards'
| null

/**
* The number of rooms in the booking
*/
rooms: number
}

export interface StaysSearchParams {
Expand Down
2 changes: 2 additions & 0 deletions src/Stays/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ export const MOCK_BOOKING: StaysBooking = {
family_name: 'Ei',
},
],
supported_loyalty_programme: null,
rooms: 1,
}

export const MOCK_CREATE_BOOKING_PAYLOAD: StaysBookingPayload = {
Expand Down

0 comments on commit e30d3d6

Please sign in to comment.