Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Stays/StaysTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ export interface StaysRate {
* as formatting and content quality may vary significantly between suppliers.
*/
description: string | null

/**
* The name of the rate, provided by the rate supplier.
* This is typically a short, human-readable label that identifies the rate,
* such as "Best Available Rate" or "Advance Purchase".
*
* Example: "Best Available Rate"
*/
name: string | null
}

export interface StaysRoomRate extends StaysRate {
Expand Down
2 changes: 2 additions & 0 deletions src/Stays/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
expires_at: '2023-03-28T12:00:00Z',
code: null,
description: null,
name: 'Best Available Rate',
},
{
total_currency: 'GBP',
Expand Down Expand Up @@ -104,6 +105,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
expires_at: '2023-03-28T12:00:00Z',
code: 'ABC',
description: 'ABC - Free cancellation up to 1 hour after booking',
name: 'Refundable Rate',
},
],
photos: [
Expand Down
Loading