Skip to content

Commit

Permalink
Merge pull request #951 from duffelhq/jo-booking-contacts
Browse files Browse the repository at this point in the history
Read booking contacts from API response
  • Loading branch information
jekku committed Sep 5, 2024
2 parents 237dfc9 + 762d1aa commit 886f2c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@duffel/api",
"version": "2.14.3",
"version": "2.14.4",
"description": "Javascript client library for the Duffel API",
"main": "dist/index.js",
"module": "dist/index.es.js",
Expand Down
10 changes: 10 additions & 0 deletions src/Stays/StaysTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,16 @@ export interface StaysBooking {
*/
id: string

/**
* The email of the lead guest of the booking
*/
email: string

/**
* The phone number of the lead guest of the booking
*/
phone_number: string

/**
* The accommodation object for the booking
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Stays/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ export const MOCK_SEARCH_RESULT: StaysSearchResult = {

export const MOCK_BOOKING: StaysBooking = {
accommodation: MOCK_ACCOMMODATION,
email: 'jean@example.com',
phone_number: '+4407242242424',
status: 'confirmed',
reference: 'dhg-4692ARxBI85qTkbDDEZMO8',
id: 'bok_0000ARxBI85qTkbDDEZMO3',
Expand Down

0 comments on commit 886f2c4

Please sign in to comment.