import { Http, Headers } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import '../rxjs-operators'; import { ApaleoRequestOptions, ResponseModel } from '@apaleo/angular-api-proxy-common'; import { CountModel } from '../model/countModel'; import { CreateRatePlanModel } from '../model/createRatePlanModel'; import { RatePlanCreatedModel } from '../model/ratePlanCreatedModel'; import { RatePlanListModel } from '../model/ratePlanListModel'; import { RatePlanModel } from '../model/ratePlanModel'; import { ReplaceRatePlanModel } from '../model/replaceRatePlanModel'; import { Configuration } from '../configuration'; export declare namespace ratesRatePlansByIdDelete { interface Params { /** * The id of the rateplan. */ id: string; } } export declare namespace ratesRatePlansByIdGet { interface Params { /** * The id of the rateplan. */ id: string; /** * 'all' or comma separated list of language codes */ languages?: Array; /** * List of all embedded resources that should be expanded in the response. Possible values are: property, inventory. All other values will be silently ignored. */ expand?: Array; } type ExpandEnum = 'property' | 'inventory'; const ExpandEnumValues: ReadonlyArray; } export declare namespace ratesRatePlansByIdHead { interface Params { /** * The id of the rateplan. */ id: string; } } export declare namespace ratesRatePlansByIdPut { interface Params { /** * The id of the rateplan. */ id: string; /** * The definition of the rateplan. */ requestBody: ReplaceRatePlanModel; } } export declare namespace ratesRatePlansGet { interface Params { /** * Return rate plans for specific property */ propertyId?: string; /** * Page number, starting from 1 and defaulting to 1. Results in 204 if there are no items on that page. */ pageNumber?: number; /** * Page size. If this is not set, the pageNumber will be ignored and all values returned. */ pageSize?: number; /** * List of all embedded resources that should be expanded in the response. Possible values are: property, unitGroup. All other values will be silently ignored. */ expand?: Array; } type ExpandEnum = 'property' | 'unitGroup'; const ExpandEnumValues: ReadonlyArray; } export declare namespace ratesRatePlansPost { interface Params { /** * The definition of the rateplan. */ requestBody: CreateRatePlanModel; } } export declare namespace ratesRatePlanscountGet { interface Params { /** * Return rate plans for specific property */ propertyId?: string; } } export declare class RatePlanService { protected readonly http: Http; protected readonly basePath: string; protected readonly defaultHeaders: Headers; protected readonly configuration: Configuration; constructor(http: Http, basePath: string, configuration: Configuration); /** * * Extends object by coping non-existing properties. * @param objA object to be extended * @param objB source object */ private extendObj(objA, objB); /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ private canConsumeForm(consumes); /** * Use this call to delete a rateplan.
Scope required: 'rateplans.delete'. * @summary Delete a rateplan */ ratesRatePlansByIdDelete(params: ratesRatePlansByIdDelete.Params, $options?: ApaleoRequestOptions): Observable; /** * Get a rateplan by id.
Scope required: 'rateplans.read'. * @summary Get a rateplan */ ratesRatePlansByIdGet(params: ratesRatePlansByIdGet.Params, $options?: ApaleoRequestOptions): Observable; /** * Check if a rateplan exists by id.
Scope required: 'rateplans.read'. * @summary Check if a rateplan exists */ ratesRatePlansByIdHead(params: ratesRatePlansByIdHead.Params, $options?: ApaleoRequestOptions): Observable; /** * Use this call to modify a rateplan.
Scope required: 'rateplans.manage'. * @summary Replace a rateplan */ ratesRatePlansByIdPut(params: ratesRatePlansByIdPut.Params, $options?: ApaleoRequestOptions): Observable; /** * Get the list of rateplans.
Scope required: 'rateplans.read'. * @summary Get a rateplan list */ ratesRatePlansGet(params: ratesRatePlansGet.Params, $options?: ApaleoRequestOptions): Observable; /** * Use this call to create a new rateplan. The rate plan will already contain empty rates, fill them later using PUT rates.
Scope required: 'rateplans.create'. * @summary Create a rateplan */ ratesRatePlansPost(params: ratesRatePlansPost.Params, $options?: ApaleoRequestOptions): Observable; /** * Returns number of rate plans matching the filter criteria
Scope required: 'rateplans.read'. * @summary Returns number of rate plans */ ratesRatePlanscountGet(params: ratesRatePlanscountGet.Params, $options?: ApaleoRequestOptions): Observable; /** * Delete a rateplan * Use this call to delete a rateplan.<br>Scope required: 'rateplans.delete'. * @param id The id of the rateplan. */ ratesRatePlansByIdDeleteWithHttpInfo(params: ratesRatePlansByIdDelete.Params, $options?: ApaleoRequestOptions): Observable>; /** * Get a rateplan * Get a rateplan by id.<br>Scope required: 'rateplans.read'. * @param id The id of the rateplan. * @param languages 'all' or comma separated list of language codes * @param expand List of all embedded resources that should be expanded in the response. Possible values are: property, inventory. All other values will be silently ignored. */ ratesRatePlansByIdGetWithHttpInfo(params: ratesRatePlansByIdGet.Params, $options?: ApaleoRequestOptions): Observable>; /** * Check if a rateplan exists * Check if a rateplan exists by id.<br>Scope required: 'rateplans.read'. * @param id The id of the rateplan. */ ratesRatePlansByIdHeadWithHttpInfo(params: ratesRatePlansByIdHead.Params, $options?: ApaleoRequestOptions): Observable>; /** * Replace a rateplan * Use this call to modify a rateplan.<br>Scope required: 'rateplans.manage'. * @param id The id of the rateplan. * @param requestBody The definition of the rateplan. */ ratesRatePlansByIdPutWithHttpInfo(params: ratesRatePlansByIdPut.Params, $options?: ApaleoRequestOptions): Observable>; /** * Get a rateplan list * Get the list of rateplans.<br>Scope required: 'rateplans.read'. * @param propertyId Return rate plans for specific property * @param pageNumber Page number, starting from 1 and defaulting to 1. Results in 204 if there are no items on that page. * @param pageSize Page size. If this is not set, the pageNumber will be ignored and all values returned. * @param expand List of all embedded resources that should be expanded in the response. Possible values are: property, unitGroup. All other values will be silently ignored. */ ratesRatePlansGetWithHttpInfo(params: ratesRatePlansGet.Params, $options?: ApaleoRequestOptions): Observable>; /** * Create a rateplan * Use this call to create a new rateplan. The rate plan will already contain empty rates, fill them later using PUT rates.<br>Scope required: 'rateplans.create'. * @param requestBody The definition of the rateplan. */ ratesRatePlansPostWithHttpInfo(params: ratesRatePlansPost.Params, $options?: ApaleoRequestOptions): Observable>; /** * Returns number of rate plans * Returns number of rate plans matching the filter criteria<br>Scope required: 'rateplans.read'. * @param propertyId Return rate plans for specific property */ ratesRatePlanscountGetWithHttpInfo(params: ratesRatePlanscountGet.Params, $options?: ApaleoRequestOptions): Observable>; }