import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AddChannelReservationsModel } from '../model/addChannelReservationsModel'; import { AddReservationsModel } from '../model/addReservationsModel'; import { BookingCreatedModel } from '../model/bookingCreatedModel'; import { BookingListModel } from '../model/bookingListModel'; import { BookingModel } from '../model/bookingModel'; import { CreateBookingModel } from '../model/createBookingModel'; import { CreateChannelBookingModel } from '../model/createChannelBookingModel'; import { Operation } from '../model/operation'; import { ReservationsCreatedModel } from '../model/reservationsCreatedModel'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare namespace bookingBookingsByIdChannelReservationsPost { interface Params { /** * Id of the booking the reservations should be attached to. */ id: string; /** * The list of reservations you want to add. */ body: AddChannelReservationsModel; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingBookingsByIdGet { interface Params { /** * Id of the booking to be retrieved. */ id: string; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * List of all embedded resources that should be expanded in the response. Possible values are: property, unitGroup, ratePlan, services, reservations, propertyValues. All other values will be silently ignored. */ expand?: Array; } type ExpandEnum = 'property' | 'unitGroup' | 'ratePlan' | 'services' | 'reservations' | 'propertyValues'; const ExpandEnumValues: readonly ExpandEnum[]; } export declare namespace bookingBookingsByIdPatch { interface Params { /** * Id of the booking to be modified. */ id: string; /** * Define the list of operations to be applied to the resource. Learn more about JSON Patch here: http://jsonpatch.com/. */ body: Array; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; } } export declare namespace bookingBookingsByIdReservationsPost { interface Params { /** * Id of the booking the reservations should be attached to. */ id: string; /** * The list of reservations you want to add. */ body: AddReservationsModel; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingBookingsByIdReservationsforcePost { interface Params { /** * Id of the booking the reservations should be attached to. */ id: string; /** * The list of reservations you want to add. */ body: AddReservationsModel; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingBookingsGet { interface Params { /** * Filter result by reservation id. The result set will contain all bookings having reservations with the specified id */ reservationId?: string; /** * Filter result by group id. The result set will contain all bookings having groups with the specified id */ groupId?: string; /** * Filter result by the channel code. The resul set will contain all bookings having reservations with the specified channel code */ channelCode?: Array; /** * Filter result by the external code. The result set will contain all bookings having reservations with external code starting with provided value */ externalCode?: string; /** * This will filter all bookings for the provided free text. Currently it only looks up if either the lastname, firstname, email or company name of the booker contains one of the provided values */ textSearch?: string; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Page number, 1-based. Default value is 1 (if this is not set or not positive). Results in 204 if there are no items on that page. */ pageNumber?: number; /** * Page size. If this is not set or not positive, the pageNumber is ignored and all items are returned. */ pageSize?: number; /** * List of all embedded resources that should be expanded in the response. Possible values are: property, unitGroup, ratePlan, services, reservations. All other values will be silently ignored. */ expand?: Array; } type ChannelCodeEnum = 'Direct' | 'BookingCom' | 'Ibe' | 'ChannelManager' | 'Expedia' | 'Homelike' | 'Hrs' | 'AltoVita' | 'DesVu'; const ChannelCodeEnumValues: readonly ChannelCodeEnum[]; type ExpandEnum = 'property' | 'unitGroup' | 'ratePlan' | 'services' | 'reservations'; const ExpandEnumValues: readonly ExpandEnum[]; } export declare namespace bookingBookingsPost { interface Params { /** * The list of reservations you want to create. */ body: CreateBookingModel; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingBookingsforcePost { interface Params { /** * The list of reservations you want to create. */ body: CreateBookingModel; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare namespace bookingChannelBookingsPost { interface Params { /** * The list of reservations you want to create. */ body: CreateChannelBookingModel; /** * Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the ISO8601:2004.This header will only take effect on development environments. */ apaleoCurrentDateTime?: Date; /** * Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. */ idempotencyKey?: string; } } export declare class BookingService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ private canConsumeForm; /** * Add one or multiple channel reservations to an existing booking regardless of availability or restrictions. * Creates new reservations and adds them to an existing booking taking a list of reservations as input<br>You must have at least one of these scopes: 'reservations.force-create, reservations.force-manage'. * @param $params.id Id of the booking the reservations should be attached to. * @param $params.body The list of reservations you want to add. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingBookingsByIdChannelReservationsPost($params: bookingBookingsByIdChannelReservationsPost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBookingsByIdChannelReservationsPost($params: bookingBookingsByIdChannelReservationsPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBookingsByIdChannelReservationsPost($params: bookingBookingsByIdChannelReservationsPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a specific booking. * Retrieves a booking with all its reservations.<br>You must have at least one of these scopes: 'reservations.read, reservations.manage'. * @param $params.id Id of the booking to be retrieved. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.expand List of all embedded resources that should be expanded in the response. Possible values are: property, unitGroup, ratePlan, services, reservations, propertyValues. All other values will be silently ignored. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingBookingsByIdGet($params: bookingBookingsByIdGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBookingsByIdGet($params: bookingBookingsByIdGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBookingsByIdGet($params: bookingBookingsByIdGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Allows to modify certain booking properties * Here is the list of operations that are currently allowed: - Add, replace and remove PaymentAccount - Add, replace and remove Comment - Add, replace and remove BookerComment - Copy PaymentAccount, Comment and BookerComment from the booking to any reservation, or the other way around - Replace Booker<br>You must have this scope: 'reservations.manage'. * @param $params.id Id of the booking to be modified. * @param $params.body Define the list of operations to be applied to the resource. Learn more about JSON Patch here: http://jsonpatch.com/. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingBookingsByIdPatch($params: bookingBookingsByIdPatch.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBookingsByIdPatch($params: bookingBookingsByIdPatch.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBookingsByIdPatch($params: bookingBookingsByIdPatch.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Add one or multiple reservations to an existing booking. * Creates new reservations and adds them to an existing booking taking a list of reservations as input<br>You must have at least one of these scopes: 'reservations.create, reservations.manage'. * @param $params.id Id of the booking the reservations should be attached to. * @param $params.body The list of reservations you want to add. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingBookingsByIdReservationsPost($params: bookingBookingsByIdReservationsPost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBookingsByIdReservationsPost($params: bookingBookingsByIdReservationsPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBookingsByIdReservationsPost($params: bookingBookingsByIdReservationsPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Add one or multiple reservations to an existing booking regardless of availability or restrictions. * Creates new reservations and adds them to an existing booking taking a list of reservations as input<br>You must have at least one of these scopes: 'reservations.force-create, reservations.force-manage'. * @param $params.id Id of the booking the reservations should be attached to. * @param $params.body The list of reservations you want to add. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingBookingsByIdReservationsforcePost($params: bookingBookingsByIdReservationsforcePost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBookingsByIdReservationsforcePost($params: bookingBookingsByIdReservationsforcePost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBookingsByIdReservationsforcePost($params: bookingBookingsByIdReservationsforcePost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a list of all bookings, filtered by the specified parameters. * Returns a list of all bookings, filtered by the specified parameters. If no parameters are set, returns the entire list.<br>You must have at least one of these scopes: 'reservations.read, reservations.manage'. * @param $params.reservationId Filter result by reservation id. The result set will contain all bookings having reservations with the specified id * @param $params.groupId Filter result by group id. The result set will contain all bookings having groups with the specified id * @param $params.channelCode Filter result by the channel code. The resul set will contain all bookings having reservations with the specified channel code * @param $params.externalCode Filter result by the external code. The result set will contain all bookings having reservations with external code starting with provided value * @param $params.textSearch This will filter all bookings for the provided free text. Currently it only looks up if either the lastname, firstname, email or company name of the booker contains one of the provided values * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.pageNumber Page number, 1-based. Default value is 1 (if this is not set or not positive). Results in 204 if there are no items on that page. * @param $params.pageSize Page size. If this is not set or not positive, the pageNumber is ignored and all items are returned. * @param $params.expand List of all embedded resources that should be expanded in the response. Possible values are: property, unitGroup, ratePlan, services, reservations. All other values will be silently ignored. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingBookingsGet($params: bookingBookingsGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBookingsGet($params: bookingBookingsGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBookingsGet($params: bookingBookingsGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Creates a booking for one or more reservations. * Creates a booking taking a list of reservations as input<br>You must have at least one of these scopes: 'reservations.create, reservations.manage'. * @param $params.body The list of reservations you want to create. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingBookingsPost($params: bookingBookingsPost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBookingsPost($params: bookingBookingsPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBookingsPost($params: bookingBookingsPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Creates a booking for one or more reservations regardless of availability or restrictions. * Creates a booking taking a list of reservations as input.<br>You must have at least one of these scopes: 'reservations.force-create, reservations.force-manage'. * @param $params.body The list of reservations you want to create. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingBookingsforcePost($params: bookingBookingsforcePost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingBookingsforcePost($params: bookingBookingsforcePost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingBookingsforcePost($params: bookingBookingsforcePost.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Creates a channel booking for one or more reservations regardless of availability or restrictions. * Creates a booking taking a list of reservations as input<br>You must have at least one of these scopes: 'reservations.force-create, reservations.force-manage'. * @param $params.body The list of reservations you want to create. * @param $params.apaleoCurrentDateTime Use this parameter to override the current date and time for the current request. Specify a date and time (without fractional second part) in UTC or with UTC offset as defined in the <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a>.This header will only take effect on development environments. * @param $params.idempotencyKey Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours. * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ bookingChannelBookingsPost($params: bookingChannelBookingsPost.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingChannelBookingsPost($params: bookingChannelBookingsPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingChannelBookingsPost($params: bookingChannelBookingsPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }