UNPKG

@revolugo/booking-api-client

Version:

Javascript Revolugo Booking API Client (browser + server)

67 lines (66 loc) 2.31 kB
import { HotelApi, Locale } from '../models/index.ts'; /** * Revolugo Booking API Reference * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.5.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime.ts'; export interface HotelsRetrievePayload { id: string; event?: string; lang?: Locale; } /** * Hotels - interface * * @export * @interface HotelsInterface */ export interface HotelsInterface { /** * Returns a single Hotel by id with their content localize into the requested **lang**. * @summary Retrieve a Hotel * @param {string} id Id of the requested hotel. * @param {string} [event] Event Name * @param {Locale} [lang] Set the language for the returned content using a valid language code. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof HotelsInterface */ retrieveRaw(requestParameters: HotelsRetrievePayload, initOverrides?: RequestInit & { minCallCount?: number; maxCallCount?: number; }): Promise<runtime.ApiResponse<HotelApi>>; /** * Returns a single Hotel by id with their content localize into the requested **lang**. * Retrieve a Hotel */ retrieve(requestParameters: HotelsRetrievePayload, initOverrides?: RequestInit & { minCallCount?: number; maxCallCount?: number; }): Promise<HotelApi>; } /** * */ export declare class Hotels extends runtime.BaseAPI implements HotelsInterface { /** * Returns a single Hotel by id with their content localize into the requested **lang**. * Retrieve a Hotel */ retrieveRaw(requestParameters: HotelsRetrievePayload, initOverrides?: RequestInit & { minCallCount?: number; maxCallCount?: number; }): Promise<runtime.ApiResponse<HotelApi>>; /** * Returns a single Hotel by id with their content localize into the requested **lang**. * Retrieve a Hotel */ retrieve(requestParameters: HotelsRetrievePayload, initOverrides?: RequestInit): Promise<HotelApi>; }