@findhotel/sapi
Advanced tools
Comparing version 1.11.2 to 1.12.0
@@ -68,3 +68,5 @@ import { CancellationPenalties, Currency, RoomId, HotelId } from './types'; | ||
} | ||
export interface SplitBookingEntity { | ||
export interface SplitBookingBundle { | ||
url?: string; | ||
bundleId?: string; | ||
offers?: SplitBookingOffer[]; | ||
@@ -93,3 +95,3 @@ tags?: string[]; | ||
/** Split booking offers */ | ||
splitBooking?: SplitBookingEntity; | ||
splitBooking?: SplitBookingBundle; | ||
/** Indicates if this hotel has more offers without filtering */ | ||
@@ -130,3 +132,5 @@ hasMoreOffersWithoutFiltering: HasMoreOffersWithoutFiltering; | ||
} | ||
interface SapiSplitBookingEntity { | ||
interface SapiSplitBookingBundle { | ||
url?: string; | ||
bundleId?: string; | ||
offers?: SapiSplitBookingOffer[]; | ||
@@ -153,3 +157,3 @@ tags?: string[]; | ||
roomsConfig?: string; | ||
splitBooking?: SapiSplitBookingEntity; | ||
splitBooking?: SapiSplitBookingBundle; | ||
promos?: SapiResponsePromos; | ||
@@ -156,0 +160,0 @@ hasMoreOffersWithoutFiltering: HasMoreOffersWithoutFiltering; |
@@ -0,1 +1,2 @@ | ||
import { RateBreakdown } from './offers'; | ||
import { HotelId, AnonymousId, Currency, RoomId, UserTier, CancellationPenalties } from './types'; | ||
@@ -21,2 +22,4 @@ export interface RoomsRequestParameters { | ||
metadata?: Record<string, string>; | ||
bundleId?: string; | ||
bundleID?: string; | ||
} | ||
@@ -105,2 +108,16 @@ export declare type RoomPackageId = string; | ||
} | ||
export interface RoomSplitBookingOffer { | ||
checkIn: string; | ||
checkOut: string; | ||
offer: RoomOffer; | ||
room: Omit<Room, 'offers'>; | ||
} | ||
export interface RoomsSplitBooking { | ||
bundleId: string; | ||
links: RoomLinks[]; | ||
offers: RoomSplitBookingOffer[]; | ||
prices: RoomPrice[]; | ||
tags: string[]; | ||
totalRate: RateBreakdown; | ||
} | ||
export interface RoomsResults { | ||
@@ -111,2 +128,3 @@ hotelId: HotelId; | ||
anonymousId: AnonymousId; | ||
splitBooking?: RoomsSplitBooking; | ||
} |
{ | ||
"name": "@findhotel/sapi", | ||
"version": "1.11.2", | ||
"version": "1.12.0", | ||
"description": "FindHotel Search API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
291924
2719
1447