import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { BatchRateListModel } from '../model/batchRateListModel'; import { CountModel } from '../model/countModel'; import { Operation } from '../model/operation'; import { RateListModel } from '../model/rateListModel'; import { RatesPatchRequestModel } from '../model/ratesPatchRequestModel'; import { ReplaceRateListModel } from '../model/replaceRateListModel'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare namespace rateplanRatePlansByIdRatesDelete { interface Params { /** * The id of the rate plan. */ id: string; /** * The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected
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 */ from: string; /** * The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected
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 */ to: 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 rateplanRatePlansByIdRatesGet { interface Params { /** * The id of the rate plan. */ id: string; /** * The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected
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 */ from: string; /** * The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected
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 */ to: 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; } } export declare namespace rateplanRatePlansByIdRatesPatch { interface Params { /** * The id of the rate plan. */ id: string; /** * Define the list of operations to be applied to the resource. Learn more about JSON Patch here: http://jsonpatch.com/. */ body: RatesPatchRequestModel; /** * 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 rateplanRatePlansByIdRatesPut { interface Params { /** * The id of the rate plan. */ id: string; /** * The definition of the rates. */ body: ReplaceRateListModel; /** * 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 rateplanRatePlansByIdRatescountGet { interface Params { /** * The id of the rate plan. */ id: string; /** * The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected
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 */ from: string; /** * The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected
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 */ to: 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 rateplanRatesGet { interface Params { /** * The id of the property. */ propertyId: string; /** * The rate plan ids. At most 50 ids can be specified. */ ratePlanIds: Array; /** * The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected. The specified time range cannot span more than 60 days.
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 */ from: string; /** * The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected. The specified time range cannot span more than 60 days.
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 */ to: 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 rateplanRatesPatch { interface Params { /** * Filter rates for patching by rate plan ids */ ratePlanIds: Array; /** * The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected
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 */ from: string; /** * The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected
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 */ to: string; /** * Define the list of operations to be applied to the resource. Learn more about JSON Patch here: http://jsonpatch.com/. */ body: Array; /** * The weekdays that will be patched. If not specified, all weekdays will be patched. */ weekDays?: 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 WeekDaysEnum = 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday' | 'Sunday'; const WeekDaysEnumValues: readonly WeekDaysEnum[]; } export declare class RateService { 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; /** * Deletes the rates for the rate plan * Deletes all rates in the specifed time range.<br>You must have at least one of these scopes: 'rates.delete, rates.manage'. * @param $params.id The id of the rate plan. * @param $params.from The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected<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.to The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected<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.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. */ rateplanRatePlansByIdRatesDelete($params: rateplanRatePlansByIdRatesDelete.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanRatePlansByIdRatesDelete($params: rateplanRatePlansByIdRatesDelete.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanRatePlansByIdRatesDelete($params: rateplanRatePlansByIdRatesDelete.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a list of rates. * Returns all rates for a specific rate plan within the specified time range. If a rate has not been initialized, it will still be returned, but anything besides the from and to values will be empty. The time range of a rate is defined by the time slice definition of the rate plan. Time ranges with no initialized rates will not be available for sell. To be able to read rates for a corporate rate plan a client must additionally have the 'rateplans.read-corporate' scope.<br>You must have at least one of these scopes: 'rates.read, rates.manage'. * @param $params.id The id of the rate plan. * @param $params.from The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected<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.to The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected<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.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 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. */ rateplanRatePlansByIdRatesGet($params: rateplanRatePlansByIdRatesGet.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanRatePlansByIdRatesGet($params: rateplanRatePlansByIdRatesGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanRatePlansByIdRatesGet($params: rateplanRatePlansByIdRatesGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Allows to patch multiple rates of a single rate plan. * Note that the specified PATCH operations are applied to each and every rate for the specified time ranges. Here is the list of operations that are currently allowed: - Add, replace and remove Price - Add, replace and remove Restrictions<br>You must have this scope: 'rates.manage'. * @param $params.id The id of the rate plan. * @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. */ rateplanRatePlansByIdRatesPatch($params: rateplanRatePlansByIdRatesPatch.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanRatePlansByIdRatesPatch($params: rateplanRatePlansByIdRatesPatch.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanRatePlansByIdRatesPatch($params: rateplanRatePlansByIdRatesPatch.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Initializes and changes the rates for the rate plan. * All rates specified in the request will be initialized, or overwritten if they already exist. Make sure that the from and to date and time in the rates match the time slice definition of the rate plan. The easiest way to achieve this is calling the GET /rate-plans/{id}/rates for the time range you want to update and then resend the payload with the set prices and restrictions.<br>You must have this scope: 'rates.manage'. * @param $params.id The id of the rate plan. * @param $params.body The definition of the rates. * @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. */ rateplanRatePlansByIdRatesPut($params: rateplanRatePlansByIdRatesPut.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanRatePlansByIdRatesPut($params: rateplanRatePlansByIdRatesPut.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanRatePlansByIdRatesPut($params: rateplanRatePlansByIdRatesPut.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns the number of rates for a specific rate plan within the specifed time range. * To be able to count rates for a corporate rate plan a client must additionaly have the 'rateplans.read-corporate' scope.<br>You must have at least one of these scopes: 'rates.read, rates.manage'. * @param $params.id The id of the rate plan. * @param $params.from The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected<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.to The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected<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.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. */ rateplanRatePlansByIdRatescountGet($params: rateplanRatePlansByIdRatescountGet.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanRatePlansByIdRatescountGet($params: rateplanRatePlansByIdRatescountGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanRatePlansByIdRatescountGet($params: rateplanRatePlansByIdRatescountGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Returns a list of rates for multiple rate plans. * Returns all rates for multiple rate plans within the specified time range. If a rate has not been initialized, it will still be returned, but anything besides the from and to values will be empty. The time range of a rate is defined by the time slice definition of the rate plan. Time ranges with no initialized rates will not be available for sell. To be able to read rates for a corporate rate plan a client must additionally have the 'rateplans.read-corporate' scope.<br>You must have at least one of these scopes: 'rates.read, rates.manage'. * @param $params.propertyId The id of the property. * @param $params.ratePlanIds The rate plan ids. At most 50 ids can be specified. * @param $params.from The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected. The specified time range cannot span more than 60 days.<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.to The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected. The specified time range cannot span more than 60 days.<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.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. */ rateplanRatesGet($params: rateplanRatesGet.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanRatesGet($params: rateplanRatesGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanRatesGet($params: rateplanRatesGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Allows to patch the rates of multiple rate plans. * Note that the specified PATCH operations are applied to each and every rate for the specified time range. Here is the list of operations that are currently allowed: - Add, replace and remove Price - Add, replace and remove Restrictions<br>You must have this scope: 'rates.manage'. * @param $params.ratePlanIds Filter rates for patching by rate plan ids * @param $params.from The start of the time range to filter the rates by. All rates where the from date and time is equal or later than the specified date and optional time will be affected<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.to The end of the time range to filter the rates by. All rates where the from date and time is earlier than the specified date and optional time will be affected<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.body Define the list of operations to be applied to the resource. Learn more about JSON Patch here: http://jsonpatch.com/. * @param $params.weekDays The weekdays that will be patched. If not specified, all weekdays will be patched. * @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. */ rateplanRatesPatch($params: rateplanRatesPatch.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanRatesPatch($params: rateplanRatesPatch.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanRatesPatch($params: rateplanRatesPatch.Params, observe?: 'events', reportProgress?: boolean): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }