Skip to content

Commit 554e19c

Browse files
authored
Merge pull request #869 from duffelhq/jo-prepare-rates-source
Add StaysRate.source
2 parents 6a6374f + 8dc89be commit 554e19c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Stays/StaysTypes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ export interface StaysRate {
168168
* 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.
169169
*/
170170
supported_loyalty_programme: StaysLoyaltyProgramme | null
171+
172+
/**
173+
* The source of the rate.
174+
* Useful in scenarios where a rate requires explicitly showing the source.
175+
*/
176+
source: 'bookingcom' | 'priceline' | 'travelport' | 'duffel_hotel_group'
171177
}
172178

173179
export interface StaysRoomRate extends StaysRate {

src/Stays/mocks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
5252
payment_method: 'balance',
5353
quantity_available: 1,
5454
supported_loyalty_programme: null,
55+
source: 'duffel_hotel_group',
5556
},
5657
{
5758
total_currency: 'GBP',
@@ -82,6 +83,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
8283
payment_method: 'card',
8384
quantity_available: 1,
8485
supported_loyalty_programme: 'duffel_hotel_group_rewards',
86+
source: 'duffel_hotel_group',
8587
},
8688
],
8789
photos: [

0 commit comments

Comments
 (0)