From 8dc89be9dd713cf75560bcaa4f1573a5c17de18d Mon Sep 17 00:00:00 2001 From: Jekri Preclaro Orlina Date: Tue, 9 Jan 2024 10:07:38 +0000 Subject: [PATCH] fix: add StaysRate.source --- src/Stays/StaysTypes.ts | 6 ++++++ src/Stays/mocks.ts | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/Stays/StaysTypes.ts b/src/Stays/StaysTypes.ts index a2129cc0..89be18b8 100644 --- a/src/Stays/StaysTypes.ts +++ b/src/Stays/StaysTypes.ts @@ -168,6 +168,12 @@ export interface StaysRate { * The duffel_hotel_group_rewards value is an example programme for testing and integration purposes, and will only appear on Duffel Hotel Group test hotel rates. */ supported_loyalty_programme: StaysLoyaltyProgramme | null + + /** + * The source of the rate. + * Useful in scenarios where a rate requires explicitly showing the source. + */ + source: 'bookingcom' | 'priceline' | 'travelport' | 'duffel_hotel_group' } export interface StaysRoomRate extends StaysRate { diff --git a/src/Stays/mocks.ts b/src/Stays/mocks.ts index 6984b47f..96fd0a75 100644 --- a/src/Stays/mocks.ts +++ b/src/Stays/mocks.ts @@ -52,6 +52,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = { payment_method: 'balance', quantity_available: 1, supported_loyalty_programme: null, + source: 'duffel_hotel_group', }, { total_currency: 'GBP', @@ -82,6 +83,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = { payment_method: 'card', quantity_available: 1, supported_loyalty_programme: 'duffel_hotel_group_rewards', + source: 'duffel_hotel_group', }, ], photos: [