@revolugo/booking-api-client
Version:
Javascript Revolugo Booking API Client (browser + server)
99 lines (98 loc) • 4.79 kB
TypeScript
import { HotelOfferRequestApiResponse, HotelOfferRequestCreateApi } 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 HotelOfferRequestsRetrievePayload {
id: string;
}
export interface HotelOfferRequestsCreatePayload {
hotelOfferRequestCreateApi?: HotelOfferRequestCreateApi;
}
/**
* HotelOfferRequests - interface
*
* @export
* @interface HotelOfferRequestsInterface
*/
export interface HotelOfferRequestsInterface {
/**
* Returns a single Hotel Offer Request by id
* @summary Retrieve a Single Hotel Offer Request
* @param {string} id id of the **Hotel Offer Request**
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof HotelOfferRequestsInterface
*/
retrieveRaw(requestParameters: HotelOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
minCallCount?: number;
maxCallCount?: number;
}): Promise<runtime.ApiResponse<HotelOfferRequestApiResponse>>;
/**
* Returns a single Hotel Offer Request by id
* Retrieve a Single Hotel Offer Request
*/
retrieve(requestParameters: HotelOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
minCallCount?: number;
maxCallCount?: number;
}): Promise<HotelOfferRequestApiResponse>;
/**
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
* @summary Create an Hotel Offer Request
* @param {HotelOfferRequestCreateApi} [hotelOfferRequestCreateApi] Create an Hotel Offer Request
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof HotelOfferRequestsInterface
*/
createRaw(requestParameters: HotelOfferRequestsCreatePayload, initOverrides?: RequestInit & {
minCallCount?: number;
maxCallCount?: number;
}): Promise<runtime.ApiResponse<HotelOfferRequestApiResponse>>;
/**
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
* Create an Hotel Offer Request
*/
create(requestParameters: HotelOfferRequestsCreatePayload, initOverrides?: RequestInit & {
minCallCount?: number;
maxCallCount?: number;
}): Promise<HotelOfferRequestApiResponse>;
}
/**
*
*/
export declare class HotelOfferRequests extends runtime.BaseAPI implements HotelOfferRequestsInterface {
/**
* Returns a single Hotel Offer Request by id
* Retrieve a Single Hotel Offer Request
*/
retrieveRaw(requestParameters: HotelOfferRequestsRetrievePayload, initOverrides?: RequestInit & {
minCallCount?: number;
maxCallCount?: number;
}): Promise<runtime.ApiResponse<HotelOfferRequestApiResponse>>;
/**
* Returns a single Hotel Offer Request by id
* Retrieve a Single Hotel Offer Request
*/
retrieve(requestParameters: HotelOfferRequestsRetrievePayload, initOverrides?: RequestInit): Promise<HotelOfferRequestApiResponse>;
/**
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
* Create an Hotel Offer Request
*/
createRaw(requestParameters: HotelOfferRequestsCreatePayload, initOverrides?: RequestInit & {
minCallCount?: number;
maxCallCount?: number;
}): Promise<runtime.ApiResponse<HotelOfferRequestApiResponse>>;
/**
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
* Create an Hotel Offer Request
*/
create(requestParameters?: HotelOfferRequestsCreatePayload, initOverrides?: RequestInit): Promise<HotelOfferRequestApiResponse>;
}