Skip to content

Commit

Permalink
Merge pull request #871 from duffelhq/jo-key-collection-instructions
Browse files Browse the repository at this point in the history
Adds StaysBooking key collection instructions
  • Loading branch information
jekku authored Jan 15, 2024
2 parents e5ab059 + b3f7898 commit b58f98b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Stays/StaysTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,10 @@ export interface StaysQuote {

export type StaysBookingStatus = 'confirmed' | 'cancelled'

export interface StaysBookingKeyCollection {
instructions: string
}

export interface StaysBooking {
/**
* The ID of the booking
Expand Down Expand Up @@ -579,6 +583,11 @@ export interface StaysBooking {
* The number of rooms in the booking.
*/
rooms: number

/**
* Instructions to access the accommodation in the booking
*/
key_collection: StaysBookingKeyCollection | null
}

interface CommonStaysSearchParams {
Expand Down
3 changes: 3 additions & 0 deletions src/Stays/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ export const MOCK_BOOKING: StaysBooking = {
supported_loyalty_programme: null,
loyalty_programme_account_number: null,
rooms: 1,
key_collection: {
instructions: 'Key is at the property. Collect from the lock box.',
},
}

export const MOCK_CREATE_BOOKING_PAYLOAD: StaysBookingPayload = {
Expand Down

0 comments on commit b58f98b

Please sign in to comment.