import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CountModel } from '../model/countModel'; import { Operation } from '../model/operation'; import { ReservationListModel } from '../model/reservationListModel'; import { ReservationModel } from '../model/reservationModel'; import { ReservationServiceListModel } from '../model/reservationServiceListModel'; import { ReservationStayOffersModel } from '../model/reservationStayOffersModel'; import { ServiceOffersModel } from '../model/serviceOffersModel'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare namespace bookingReservationsByIdGet { interface Params { /** * Id of the reservation 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: timeSlices, services, booker, actions, company, assignedUnits. All other values will be silently ignored. */ expand?: Array; } type ExpandEnum = 'timeSlices' | 'services' | 'booker' | 'actions' | 'company' | 'assignedUnits'; const ExpandEnumValues: readonly ExpandEnum[]; } export declare namespace bookingReservationsByIdOffersGet { interface Params { /** * Id of the reservation to be amended. */ id: string; /** * Date and optional time of arrival
Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ arrival?: string; /** * Date and optional time of departure. Cannot be more than 5 years after arrival.
Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ departure?: string; /** * Number of adults */ adults?: number; /** * Ages of children */ childrenAges?: Array; /** * The channel code used to filter the rate plans */ channelCode?: ChannelCodeEnum; /** * The promo code associated with a certain special offer, like corporate rate */ promoCode?: string; /** * Whether the offers should be re-quoted based on current prices, or only additions like change of number of adults should be calculated. Defaults to 'false' */ requote?: boolean; /** * Return also offers that are currently not publicly bookable as restrictions are violated. By default only available offers are returned */ includeUnavailable?: boolean; /** * The list of unit groups used to filter the offers. */ unitGroupIds?: 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; } type ChannelCodeEnum = 'Direct' | 'BookingCom' | 'Ibe' | 'ChannelManager' | 'Expedia' | 'Homelike' | 'Hrs' | 'AltoVita' | 'DesVu'; const ChannelCodeEnumValues: readonly ChannelCodeEnum[]; } export declare namespace bookingReservationsByIdPatch { interface Params { /** * Id of the reservation 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 bookingReservationsByIdServiceOffersGet { interface Params { /** * Id of the reservation. */ id: string; /** * The channel code used to filter the services */ channelCode?: ChannelCodeEnum; /** * Depending on the postNextDay setting of a service it will by default be posted before or after midnight. Breakfast is usually delivered on the next morning, so all the dates from the day after arrival to the departure day are default dates and will have this flag set to true. For services like a dinner it is the other way around. With this query parameter, you can also ask for the dates, that usually the service will not be booked. It defaults to true. */ onlyDefaultDates?: boolean; /** * Return also offers that are currently not publicly bookable as restrictions are violated. By default only available offers are returned */ includeUnavailable?: boolean; /** * 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; } type ChannelCodeEnum = 'Direct' | 'BookingCom' | 'Ibe' | 'ChannelManager' | 'Expedia' | 'Homelike' | 'Hrs' | 'AltoVita' | 'DesVu'; const ChannelCodeEnumValues: readonly ChannelCodeEnum[]; } export declare namespace bookingReservationsByIdServicesDelete { interface Params { /** * Id of the reservation. */ id: string; /** * The id of the service to delete */ serviceId: 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; } } export declare namespace bookingReservationsByIdServicesGet { interface Params { /** * Id of the reservation. */ 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; } } export declare namespace bookingReservationsGet { interface Params { /** * Filter result by booking id */ bookingId?: string; /** * Filter result by requested properties */ propertyIds?: Array; /** * Filter result by requested rate plans */ ratePlanIds?: Array; /** * Filter result by requested companies */ companyIds?: Array; /** * Filter result by assigned units */ unitIds?: Array; /** * Filter result by requested unit groups */ unitGroupIds?: Array; /** * Filter result by requested unit group types */ unitGroupTypes?: Array; /** * Filter result by requested blocks */ blockIds?: Array; /** * Filter result by requested market segments */ marketSegmentIds?: Array; /** * Filter result by reservation status */ status?: Array; /** * Filter by date and time attributes of reservation. Use in combination with the 'To' and 'From' attributes. All filters will check if the date specified by the filter type is between from (included) and to (excluded). The exception being filtering for 'stay', which will return all reservations that are overlapping with the interval specified by from and to. */ dateFilter?: DateFilterEnum; /** * The start of the time interval. When filtering by date, at least one of 'from' and 'to' has to be specified
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ from?: Date; /** * The end of the time interval, must be larger than 'from'. When filtering by date, at least one of 'from' and 'to' has to be specified
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ to?: Date; /** * Filter result by the channel code */ channelCode?: Array; /** * Filter result by source */ sources?: Array; /** * Filter result by validation message category */ validationMessageCategory?: Array; /** * Filter result by the external code. The result set will contain all reservations that have an external code starting with the provided value */ externalCode?: string; /** * This will filter all reservations where the provided text is contained in: booker first name or last name or email or company name, primary guest first name or last name or email or company name, external code, reservation id, unit name, or any of the external references. The search is case insensitive. */ textSearch?: string; /** * This will filter all reservation where the provided external references have an exact match on at least one of the properties in Apaleo.Api.Modules.Booking.Models.Reservation.ExternalReferencesModel */ externalReferences?: Array; /** * This will filter reservations based on their balance.
You can provide an array of string expressions which all need to apply.
Each expression has the form of 'OPERATION_VALUE' where VALUE needs to be of the valid format of the property type and OPERATION can be:
'eq' for equals
'neq' for not equals
'lt' for less than
'gt' for greater than
'lte' for less than or equals
'gte' for greater than or equals
For instance
'eq_5' would mean the value should equal 5
'lte_7' would mean the value should be less than or equal to 7 */ balanceFilter?: Array; /** * If set to `true`, returns only reservations, in which all folios are closed and have an invoice. If set to `false`, returns only reservations, in which some of the folios are open or don't have an invoice */ allFoliosHaveInvoice?: boolean; /** * If set to `true`, returns only the reservations marked as pre-checked-in. If set to `false`, returns only the reservations not marked as pre-checked-in. */ isPreCheckedIn?: boolean; /** * If set to `true`, returns only unit assignment locked reservations. */ isUnitAssignmentLocked?: boolean; /** * 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 fields that can be used to sort the results. Possible values are: arrival:asc, arrival:desc, departure:asc, departure:desc, created:asc, created:desc, updated:asc, updated:desc, balance:asc, balance:desc, id:asc, id:desc, firstname:asc, firstname:desc, lastname:asc, lastname:desc, unitname:asc, unitname:desc. All other values will be silently ignored. */ sort?: Array; /** * List of all embedded resources that should be expanded in the response. Possible values are: booker, actions, timeSlices, services, assignedUnits, company. All other values will be silently ignored. */ expand?: Array; } type UnitGroupTypesEnum = 'BedRoom' | 'MeetingRoom' | 'EventSpace' | 'ParkingLot' | 'Other'; const UnitGroupTypesEnumValues: readonly UnitGroupTypesEnum[]; type StatusEnum = 'Confirmed' | 'InHouse' | 'CheckedOut' | 'Canceled' | 'NoShow'; const StatusEnumValues: readonly StatusEnum[]; type DateFilterEnum = 'Arrival' | 'Departure' | 'Stay' | 'Creation' | 'Modification' | 'Cancellation' | 'ArrivalAndCheckIn' | 'DepartureAndCheckOut'; const DateFilterEnumValues: readonly DateFilterEnum[]; type ChannelCodeEnum = 'Direct' | 'BookingCom' | 'Ibe' | 'ChannelManager' | 'Expedia' | 'Homelike' | 'Hrs' | 'AltoVita' | 'DesVu'; const ChannelCodeEnumValues: readonly ChannelCodeEnum[]; type ValidationMessageCategoryEnum = 'OfferNotAvailable' | 'AutoUnitAssignment'; const ValidationMessageCategoryEnumValues: readonly ValidationMessageCategoryEnum[]; type SortEnum = 'arrival:asc' | 'arrival:desc' | 'departure:asc' | 'departure:desc' | 'created:asc' | 'created:desc' | 'updated:asc' | 'updated:desc' | 'balance:asc' | 'balance:desc' | 'id:asc' | 'id:desc' | 'firstname:asc' | 'firstname:desc' | 'lastname:asc' | 'lastname:desc' | 'unitname:asc' | 'unitname:desc'; const SortEnumValues: readonly SortEnum[]; type ExpandEnum = 'booker' | 'actions' | 'timeSlices' | 'services' | 'assignedUnits' | 'company'; const ExpandEnumValues: readonly ExpandEnum[]; } export declare namespace bookingReservationscountGet { interface Params { /** * Filter result by booking id */ bookingId?: string; /** * Filter result by requested properties */ propertyIds?: Array; /** * Filter result by requested rate plans */ ratePlanIds?: Array; /** * Filter result by requested companies */ companyIds?: Array; /** * Filter result by assigned units */ unitIds?: Array; /** * Filter result by requested unit groups */ unitGroupIds?: Array; /** * Filter result by requested unit group types */ unitGroupTypes?: Array; /** * Filter result by requested blocks */ blockIds?: Array; /** * Filter result by requested market segments */ marketSegmentIds?: Array; /** * Filter result by reservation status */ status?: Array; /** * Filter by date and time attributes of reservation. Use in combination with the 'To' and 'From' attributes. All filters will check if the date specified by the filter type is between from (included) and to (excluded). The exception being filtering for 'stay', which will return all reservations that are overlapping with the interval specified by from and to. */ dateFilter?: DateFilterEnum; /** * The start of the time interval. When filtering by date, at least one of 'from' and 'to' has to be specified
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ from?: Date; /** * The end of the time interval, must be larger than 'from'. When filtering by date, at least one of 'from' and 'to' has to be specified
A date and time (without fractional second part) in UTC or with UTC offset as defined in ISO8601:2004 */ to?: Date; /** * Filter result by the channel code */ channelCode?: Array; /** * Filter result by source */ sources?: Array; /** * Filter result by validation message category */ validationMessageCategory?: Array; /** * Filter result by the external code. The result set will contain all reservations that have an external code starting with the provided value */ externalCode?: string; /** * This will filter all reservations where the provided text is contained in: booker first name or last name or email or company name, primary guest first name or last name or email or company name, external code, reservation id, unit name, or any of the external references. The search is case insensitive. */ textSearch?: string; /** * This will filter all reservation where the provided external references have an exact match on at least one of the properties in Apaleo.Api.Modules.Booking.Models.Reservation.ExternalReferencesModel */ externalReferences?: Array; /** * This will filter reservations based on their balance.
You can provide an array of string expressions which all need to apply.
Each expression has the form of 'OPERATION_VALUE' where VALUE needs to be of the valid format of the property type and OPERATION can be:
'eq' for equals
'neq' for not equals
'lt' for less than
'gt' for greater than
'lte' for less than or equals
'gte' for greater than or equals
For instance
'eq_5' would mean the value should equal 5
'lte_7' would mean the value should be less than or equal to 7 */ balanceFilter?: Array; /** * If set to `true`, returns only reservations, in which all folios are closed and have an invoice. If set to `false`, returns only reservations, in which some of the folios are open or don't have an invoice */ allFoliosHaveInvoice?: boolean; /** * If set to `true`, returns only the reservations marked as pre-checked-in. If set to `false`, returns only the reservations not marked as pre-checked-in. */ isPreCheckedIn?: boolean; /** * If set to `true`, returns only unit assignment locked reservations. */ isUnitAssignmentLocked?: boolean; /** * 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; } type UnitGroupTypesEnum = 'BedRoom' | 'MeetingRoom' | 'EventSpace' | 'ParkingLot' | 'Other'; const UnitGroupTypesEnumValues: readonly UnitGroupTypesEnum[]; type StatusEnum = 'Confirmed' | 'InHouse' | 'CheckedOut' | 'Canceled' | 'NoShow'; const StatusEnumValues: readonly StatusEnum[]; type DateFilterEnum = 'Arrival' | 'Departure' | 'Stay' | 'Creation' | 'Modification' | 'Cancellation' | 'ArrivalAndCheckIn' | 'DepartureAndCheckOut'; const DateFilterEnumValues: readonly DateFilterEnum[]; type ChannelCodeEnum = 'Direct' | 'BookingCom' | 'Ibe' | 'ChannelManager' | 'Expedia' | 'Homelike' | 'Hrs' | 'AltoVita' | 'DesVu'; const ChannelCodeEnumValues: readonly ChannelCodeEnum[]; type ValidationMessageCategoryEnum = 'OfferNotAvailable' | 'AutoUnitAssignment'; const ValidationMessageCategoryEnumValues: readonly ValidationMessageCategoryEnum[]; } export declare class ReservationService { 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; /** * Returns a specific reservation. * Retrieves a reservation, specified by its ID.<br>You must have at least one of these scopes: 'reservations.read, reservations.manage'. * @param $params.id Id of the reservation 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: timeSlices, services, booker, actions, company, assignedUnits. 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. */ bookingReservationsByIdGet($params: bookingReservationsByIdGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingReservationsByIdGet($params: bookingReservationsByIdGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingReservationsByIdGet($params: bookingReservationsByIdGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns offers for one specific reservation. * Calculates and returns offers for amending a specific reservation.<br>You must have at least one of these scopes: 'offers.read, reservations.manage'. * @param $params.id Id of the reservation to be amended. * @param $params.arrival Date and optional time of arrival<br />Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.departure Date and optional time of departure. Cannot be more than 5 years after arrival.<br />Specify either a pure date or a date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.adults Number of adults * @param $params.childrenAges Ages of children * @param $params.channelCode The channel code used to filter the rate plans * @param $params.promoCode The promo code associated with a certain special offer, like corporate rate * @param $params.requote Whether the offers should be re-quoted based on current prices, or only additions like change of number of adults should be calculated. Defaults to 'false' * @param $params.includeUnavailable Return also offers that are currently not publicly bookable as restrictions are violated. By default only available offers are returned * @param $params.unitGroupIds The list of unit groups used to filter the offers. * @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. */ bookingReservationsByIdOffersGet($params: bookingReservationsByIdOffersGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingReservationsByIdOffersGet($params: bookingReservationsByIdOffersGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingReservationsByIdOffersGet($params: bookingReservationsByIdOffersGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Allows to modify certain reservation properties * Here is the list of operations that are currently allowed: - Add, replace and remove Comment - Add, replace and remove GuestComment - Add, replace and remove PaymentAccount - Add, replace and remove TravelPurpose - Add, replace and remove AdditionalGuests - Add, replace and remove ExternalReferences - Add a company (using company/Id, and only if not already set) - Add, replace and remove Commission - Replace PrimaryGuest - Remove ValidationMessages - Add, replace and remove MarketSegment - Replace IsOpenForCharges - Replace IsPreCheckedIn<br>You must have this scope: 'reservations.manage'. * @param $params.id Id of the reservation 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. */ bookingReservationsByIdPatch($params: bookingReservationsByIdPatch.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingReservationsByIdPatch($params: bookingReservationsByIdPatch.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingReservationsByIdPatch($params: bookingReservationsByIdPatch.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns service offers for one specific reservation. * Calculates and returns service offers for a specific reservation.<br>You must have at least one of these scopes: 'offers.read, reservations.manage'. * @param $params.id Id of the reservation. * @param $params.channelCode The channel code used to filter the services * @param $params.onlyDefaultDates Depending on the postNextDay setting of a service it will by default be posted before or after midnight. Breakfast is usually delivered on the next morning, so all the dates from the day after arrival to the departure day are default dates and will have this flag set to true. For services like a dinner it is the other way around. With this query parameter, you can also ask for the dates, that usually the service will not be booked. It defaults to true. * @param $params.includeUnavailable Return also offers that are currently not publicly bookable as restrictions are violated. By default only available offers are returned * @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. */ bookingReservationsByIdServiceOffersGet($params: bookingReservationsByIdServiceOffersGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingReservationsByIdServiceOffersGet($params: bookingReservationsByIdServiceOffersGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingReservationsByIdServiceOffersGet($params: bookingReservationsByIdServiceOffersGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Removes a service from a reservation. * Removes a service from a reservation. The service will not be removed if it is mandatory, already posted or if the service date is in the past.<br>You must have this scope: 'reservations.manage'. * @param $params.id Id of the reservation. * @param $params.serviceId The id of the service to delete * @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. */ bookingReservationsByIdServicesDelete($params: bookingReservationsByIdServicesDelete.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingReservationsByIdServicesDelete($params: bookingReservationsByIdServicesDelete.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingReservationsByIdServicesDelete($params: bookingReservationsByIdServicesDelete.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns the services booked for a specific reservation. * Returns the services booked for a specific reservation.<br>You must have at least one of these scopes: 'reservations.read, reservations.manage'. * @param $params.id Id of the reservation. * @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. */ bookingReservationsByIdServicesGet($params: bookingReservationsByIdServicesGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingReservationsByIdServicesGet($params: bookingReservationsByIdServicesGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingReservationsByIdServicesGet($params: bookingReservationsByIdServicesGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a list of all reservations, filtered by the specified parameters. * Returns a list of all reservations, 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.bookingId Filter result by booking id * @param $params.propertyIds Filter result by requested properties * @param $params.ratePlanIds Filter result by requested rate plans * @param $params.companyIds Filter result by requested companies * @param $params.unitIds Filter result by assigned units * @param $params.unitGroupIds Filter result by requested unit groups * @param $params.unitGroupTypes Filter result by requested unit group types * @param $params.blockIds Filter result by requested blocks * @param $params.marketSegmentIds Filter result by requested market segments * @param $params.status Filter result by reservation status * @param $params.dateFilter Filter by date and time attributes of reservation. Use in combination with the 'To' and 'From' attributes. All filters will check if the date specified by the filter type is between from (included) and to (excluded). The exception being filtering for 'stay', which will return all reservations that are overlapping with the interval specified by from and to. * @param $params.from The start of the time interval. When filtering by date, at least one of 'from' and 'to' has to be specified<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.to The end of the time interval, must be larger than 'from'. When filtering by date, at least one of 'from' and 'to' has to be specified<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.channelCode Filter result by the channel code * @param $params.sources Filter result by source * @param $params.validationMessageCategory Filter result by validation message category * @param $params.externalCode Filter result by the external code. The result set will contain all reservations that have an external code starting with the provided value * @param $params.textSearch This will filter all reservations where the provided text is contained in: booker first name or last name or email or company name, primary guest first name or last name or email or company name, external code, reservation id, unit name, or any of the external references. The search is case insensitive. * @param $params.externalReferences This will filter all reservation where the provided external references have an exact match on at least one of the properties in Apaleo.Api.Modules.Booking.Models.Reservation.ExternalReferencesModel * @param $params.balanceFilter This will filter reservations based on their balance.<br />You can provide an array of string expressions which all need to apply.<br />Each expression has the form of 'OPERATION_VALUE' where VALUE needs to be of the valid format of the property type and OPERATION can be:<br />'eq' for equals<br />'neq' for not equals<br />'lt' for less than<br />'gt' for greater than<br />'lte' for less than or equals<br />'gte' for greater than or equals<br />For instance<br />'eq_5' would mean the value should equal 5<br />'lte_7' would mean the value should be less than or equal to 7 * @param $params.allFoliosHaveInvoice If set to `true`, returns only reservations, in which all folios are closed and have an invoice. If set to `false`, returns only reservations, in which some of the folios are open or don't have an invoice * @param $params.isPreCheckedIn If set to `true`, returns only the reservations marked as pre-checked-in. If set to `false`, returns only the reservations not marked as pre-checked-in. * @param $params.isUnitAssignmentLocked If set to `true`, returns only unit assignment locked reservations. * @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.sort List of all fields that can be used to sort the results. Possible values are: arrival:asc, arrival:desc, departure:asc, departure:desc, created:asc, created:desc, updated:asc, updated:desc, balance:asc, balance:desc, id:asc, id:desc, firstname:asc, firstname:desc, lastname:asc, lastname:desc, unitname:asc, unitname:desc. All other values will be silently ignored. * @param $params.expand List of all embedded resources that should be expanded in the response. Possible values are: booker, actions, timeSlices, services, assignedUnits, company. 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. */ bookingReservationsGet($params: bookingReservationsGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingReservationsGet($params: bookingReservationsGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingReservationsGet($params: bookingReservationsGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns the number of reservations fulfilling the criteria specified in the parameters. * If no parameters are set, returns the total count of reservations.<br>You must have at least one of these scopes: 'reservations.read, reservations.manage'. * @param $params.bookingId Filter result by booking id * @param $params.propertyIds Filter result by requested properties * @param $params.ratePlanIds Filter result by requested rate plans * @param $params.companyIds Filter result by requested companies * @param $params.unitIds Filter result by assigned units * @param $params.unitGroupIds Filter result by requested unit groups * @param $params.unitGroupTypes Filter result by requested unit group types * @param $params.blockIds Filter result by requested blocks * @param $params.marketSegmentIds Filter result by requested market segments * @param $params.status Filter result by reservation status * @param $params.dateFilter Filter by date and time attributes of reservation. Use in combination with the 'To' and 'From' attributes. All filters will check if the date specified by the filter type is between from (included) and to (excluded). The exception being filtering for 'stay', which will return all reservations that are overlapping with the interval specified by from and to. * @param $params.from The start of the time interval. When filtering by date, at least one of 'from' and 'to' has to be specified<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.to The end of the time interval, must be larger than 'from'. When filtering by date, at least one of 'from' and 'to' has to be specified<br />A date and time (without fractional second part) in UTC or with UTC offset as defined in <a href=\"https://en.wikipedia.org/wiki/ISO_8601\">ISO8601:2004</a> * @param $params.channelCode Filter result by the channel code * @param $params.sources Filter result by source * @param $params.validationMessageCategory Filter result by validation message category * @param $params.externalCode Filter result by the external code. The result set will contain all reservations that have an external code starting with the provided value * @param $params.textSearch This will filter all reservations where the provided text is contained in: booker first name or last name or email or company name, primary guest first name or last name or email or company name, external code, reservation id, unit name, or any of the external references. The search is case insensitive. * @param $params.externalReferences This will filter all reservation where the provided external references have an exact match on at least one of the properties in Apaleo.Api.Modules.Booking.Models.Reservation.ExternalReferencesModel * @param $params.balanceFilter This will filter reservations based on their balance.<br />You can provide an array of string expressions which all need to apply.<br />Each expression has the form of 'OPERATION_VALUE' where VALUE needs to be of the valid format of the property type and OPERATION can be:<br />'eq' for equals<br />'neq' for not equals<br />'lt' for less than<br />'gt' for greater than<br />'lte' for less than or equals<br />'gte' for greater than or equals<br />For instance<br />'eq_5' would mean the value should equal 5<br />'lte_7' would mean the value should be less than or equal to 7 * @param $params.allFoliosHaveInvoice If set to `true`, returns only reservations, in which all folios are closed and have an invoice. If set to `false`, returns only reservations, in which some of the folios are open or don't have an invoice * @param $params.isPreCheckedIn If set to `true`, returns only the reservations marked as pre-checked-in. If set to `false`, returns only the reservations not marked as pre-checked-in. * @param $params.isUnitAssignmentLocked If set to `true`, returns only unit assignment locked reservations. * @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. */ bookingReservationscountGet($params: bookingReservationscountGet.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingReservationscountGet($params: bookingReservationscountGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingReservationscountGet($params: bookingReservationscountGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }