UNPKG

@revolugo/booking-api-client

Version:

Javascript Revolugo Booking API Client (browser + server)

217 lines (216 loc) 5.28 kB
import { AmenitiesApi } from './AmenitiesApi'; import { CurrencyClient } from './CurrencyClient'; import { HotelApiImages } from './HotelApiImages'; import { HotelImageApi } from './HotelImageApi'; import { HotelReviewRatingApi } from './HotelReviewRatingApi'; import { HotelRoomOfferApi } from './HotelRoomOfferApi'; import { TagApi } from './TagApi'; import { TravelTimesApi } from './TravelTimesApi'; /** * * @export * @interface HotelOfferApi */ export interface HotelOfferApi { /** * Hotel address. * @type {string} * @memberof HotelOfferApi */ address?: string | null; /** * Second part of hotel address. * @type {string} * @memberof HotelOfferApi */ address2?: string | null; /** * * @type {AmenitiesApi} * @memberof HotelOfferApi */ amenities?: AmenitiesApi | null; /** * Check in time of the hotel. * @type {string} * @memberof HotelOfferApi */ checkInTime?: string | null; /** * Check out time of the hotel. * @type {string} * @memberof HotelOfferApi */ checkOutTime?: string | null; /** * City * @type {string} * @memberof HotelOfferApi */ city?: string | null; /** * Country * @type {string} * @memberof HotelOfferApi */ country?: string | null; /** * Hotel country code in ISO2. * @type {string} * @memberof HotelOfferApi */ countryCode?: string | null; /** * * @type {CurrencyClient} * @memberof HotelOfferApi */ currency?: CurrencyClient; /** * Hotel description. * @type {string} * @memberof HotelOfferApi */ description?: string | null; /** * Distance from a requested location, expressed in meters * @type {number} * @memberof HotelOfferApi */ distance?: number | null; /** * Hotel email. * @type {string} * @memberof HotelOfferApi */ email?: string | null; /** * Hotel fax number. * @type {string} * @memberof HotelOfferApi */ fax?: string | null; /** * ⚠️ Cached images of the hotel. May be empty, use the endpoint /hotels/{id}/images to get the latest images. * * List of hotel images in various sizes featuring an indicator for the primary (hero) image * @type {Array<HotelImageApi>} * @memberof HotelOfferApi */ hotelImages: Array<HotelImageApi>; /** * List of meta reviews (category and rating) that are summary of verified reviews collected across the web on the Hotel to help choose the best option. * @type {Array<HotelReviewRatingApi>} * @memberof HotelOfferApi */ hotelReviewRatings?: Array<HotelReviewRatingApi> | null; /** * Hotel id. * @type {string} * @memberof HotelOfferApi */ id: string; /** * * @type {HotelApiImages} * @memberof HotelOfferApi */ images?: HotelApiImages | null; /** * Hotel latitude. * @type {number} * @memberof HotelOfferApi */ latitude: number; /** * Hotel longitude. * @type {number} * @memberof HotelOfferApi */ longitude: number; /** * Hotel name. * @type {string} * @memberof HotelOfferApi */ name: string; /** * Hotel phone number. * @type {string} * @memberof HotelOfferApi */ phone?: string | null; /** * Internal policy of the hotel. * @type {string} * @memberof HotelOfferApi */ policy?: string | null; /** * Hotel address postal code. * @type {string} * @memberof HotelOfferApi */ postalCode?: string | null; /** * Hotel Star rating. * @type {number} * @memberof HotelOfferApi */ rating?: number | null; /** * Hotel review count * @type {number} * @memberof HotelOfferApi */ reviewCount?: number | null; /** * Hotel address state. * @type {string} * @memberof HotelOfferApi */ state?: string | null; /** * TripAdvisor property id. When applicable. * @type {string} * @memberof HotelOfferApi */ taId?: string | null; /** * Hotel timezone. * @type {string} * @memberof HotelOfferApi */ timezone: string; /** * * @type {Array<TravelTimesApi>} * @memberof HotelOfferApi */ venues?: Array<TravelTimesApi>; /** * Hotel website url. * @type {string} * @memberof HotelOfferApi */ website?: string | null; /** * * @type {Array<HotelRoomOfferApi>} * @memberof HotelOfferApi */ hotelRoomOffers: Array<HotelRoomOfferApi>; /** * * @type {Array<TagApi>} * @memberof HotelOfferApi */ tags?: Array<TagApi>; } /** * Check if a given object implements the HotelOfferApi interface. */ export declare function instanceOfHotelOfferApi(value: object): boolean; export declare function HotelOfferApiFromJSON(json: any): HotelOfferApi; export declare function HotelOfferApiFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelOfferApi; export declare function HotelOfferApiToJSON(value?: HotelOfferApi | null): any;