Skip to content

Commit 5f6a04a

Browse files
committed
feat: add expires_at to StaysSearchResult and StaysRates
1 parent fcd759e commit 5f6a04a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Stays/StaysTypes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ export interface StaysRate {
205205
* Useful in scenarios where a rate requires explicitly showing the source.
206206
*/
207207
source: StaysSource
208+
209+
/**
210+
* The ISO 8601 date and time at which the rate will expire
211+
*/
212+
expires_at: string
208213
}
209214

210215
export interface StaysRoomRate extends StaysRate {
@@ -736,6 +741,10 @@ export interface StaysSearchResult {
736741
cheapest_rate_public_currency: string
737742
cheapest_rate_due_at_accommodation_amount: string | null
738743
cheapest_rate_due_at_accommodation_currency: string | null
744+
/**
745+
* The ISO 8601 date and time at which the search result will expire
746+
*/
747+
expires_at: string
739748
}
740749

741750
export interface StaysLoyaltyProgramme {

src/Stays/mocks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
6565
source: 'duffel_hotel_group',
6666
estimated_commission_amount: '10.00',
6767
estimated_commission_currency: 'GBP',
68+
expires_at: '2023-03-28T12:00:00Z',
6869
},
6970
{
7071
total_currency: 'GBP',
@@ -98,6 +99,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
9899
source: 'duffel_hotel_group',
99100
estimated_commission_amount: '10.00',
100101
estimated_commission_currency: 'GBP',
102+
expires_at: '2023-03-28T12:00:00Z',
101103
},
102104
],
103105
photos: [
@@ -205,6 +207,7 @@ export const MOCK_SEARCH_RESULT: StaysSearchResult = {
205207
cheapest_rate_base_currency: 'GBP',
206208
cheapest_rate_due_at_accommodation_amount: '39.95',
207209
cheapest_rate_due_at_accommodation_currency: 'GBP',
210+
expires_at: '2023-03-28T12:00:00Z',
208211
}
209212

210213
export const MOCK_BOOKING: StaysBooking = {

0 commit comments

Comments
 (0)