UNPKG

@revolugo/booking-api-client

Version:

Javascript Revolugo Booking API Client (browser + server)

95 lines (94 loc) 3.39 kB
import { EventMetadataApi } from './EventMetadataApi'; import { SourceMarket } from './SourceMarket'; /** * * @export * @interface HotelOfferRequestApiResponse */ export interface HotelOfferRequestApiResponse { /** * Formatted address in the case of an hotel offer request created with an address that has been successfully geocoded. * @type {string} * @memberof HotelOfferRequestApiResponse */ address?: string | null; /** * The total number of adults who will be staying in the property. * @type {number} * @memberof HotelOfferRequestApiResponse */ adultCount: number; /** * Date of check-in formatted as YYYY-MM-DD. * @type {string} * @memberof HotelOfferRequestApiResponse */ checkInDate: string; /** * Date of check-out formatted as YYYY-MM-DD. * @type {string} * @memberof HotelOfferRequestApiResponse */ checkOutDate: string; /** * A comma-separated list of child ages (0 up to 17). e.g.: "3,7" represents 2 children respectively 3 and 7 years old. * @type {string} * @memberof HotelOfferRequestApiResponse */ children?: string | null; /** * Date of the **Hotel Room Offer Request** creation * @type {string} * @memberof HotelOfferRequestApiResponse */ createdAt: string; /** * * @type {EventMetadataApi} * @memberof HotelOfferRequestApiResponse */ eventMetadata?: EventMetadataApi | null; /** * id of the **Hotel Offer Request** * @type {string} * @memberof HotelOfferRequestApiResponse */ id: string; /** * Search location latitude. * * <b style="color: red;"> when no address parameter passed.</b> * @type {number} * @memberof HotelOfferRequestApiResponse */ latitude: number; /** * Search location longitude. * * <b style="color: red;"> when no address parameter passed.</b> * @type {number} * @memberof HotelOfferRequestApiResponse */ longitude: number; /** * The total number of rooms requested for the stay. Results may display offers matching a different room count than the requested one, however those results will always provide enough occupancy for the total guest count needed. * * Constraint: The **room_count** cannot be greater than the requested guest count (adult and children guests) and the minimum **room_count** cannot be less than the total guest count (adult and children guests) divided by 4, meaning that the maximum number of guest in a single room cannot be greeater than 4. * @type {number} * @memberof HotelOfferRequestApiResponse */ roomCount: number; /** * * @type {SourceMarket} * @memberof HotelOfferRequestApiResponse */ sourceMarket: SourceMarket; } /** * Check if a given object implements the HotelOfferRequestApiResponse interface. */ export declare function instanceOfHotelOfferRequestApiResponse(value: object): boolean; export declare function HotelOfferRequestApiResponseFromJSON(json: any): HotelOfferRequestApiResponse; export declare function HotelOfferRequestApiResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HotelOfferRequestApiResponse; export declare function HotelOfferRequestApiResponseToJSON(value?: HotelOfferRequestApiResponse | null): any;