import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CancellationPolicyCreatedModel } from '../model/cancellationPolicyCreatedModel'; import { CancellationPolicyListModel } from '../model/cancellationPolicyListModel'; import { CancellationPolicyModel } from '../model/cancellationPolicyModel'; import { CreateCancellationPolicyModel } from '../model/createCancellationPolicyModel'; import { Operation } from '../model/operation'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare namespace rateplanCancellationPoliciesByIdDelete { interface Params { /** * The id of the cancellation policy. */ 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 rateplanCancellationPoliciesByIdGet { interface Params { /** * The id of the cancellation policy. */ id: string; /** * 'all' or comma separated list of two-letter language codes (ISO Alpha-2) */ languages?: 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 rateplanCancellationPoliciesByIdPatch { interface Params { /** * The id of the cancellation policy 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 rateplanCancellationPoliciesGet { interface Params { /** * Filter cancellation policies by the specified property */ propertyId?: 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 rateplanCancellationPoliciesPost { interface Params { /** * The definition of the cancellation policy. */ body: CreateCancellationPolicyModel; /** * 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 CancellationPolicyService { 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; /** * Delete a cancellation policy * Use this call to delete a cancellation policy.<br>You must have this scope: 'setup.manage'. * @param $params.id The id of the cancellation policy. * @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. */ rateplanCancellationPoliciesByIdDelete($params: rateplanCancellationPoliciesByIdDelete.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanCancellationPoliciesByIdDelete($params: rateplanCancellationPoliciesByIdDelete.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanCancellationPoliciesByIdDelete($params: rateplanCancellationPoliciesByIdDelete.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Get a specific cancellation policy. * Get a specific cancellation policy.<br>You must have at least one of these scopes: 'settings.read, setup.read, setup.manage'. * @param $params.id The id of the cancellation policy. * @param $params.languages 'all' or comma separated list of two-letter language codes (ISO Alpha-2) * @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. */ rateplanCancellationPoliciesByIdGet($params: rateplanCancellationPoliciesByIdGet.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanCancellationPoliciesByIdGet($params: rateplanCancellationPoliciesByIdGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanCancellationPoliciesByIdGet($params: rateplanCancellationPoliciesByIdGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Allows to modify properties of a cancellation policy * Here is the list of operations that are currently allowed: - Replace name and description - Replace the period from reference - Replace the reference - Replace the fee details: fixed and percent values<br>You must have at least one of these scopes: 'settings.manage, setup.manage'. * @param $params.id The id of the cancellation policy 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. */ rateplanCancellationPoliciesByIdPatch($params: rateplanCancellationPoliciesByIdPatch.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanCancellationPoliciesByIdPatch($params: rateplanCancellationPoliciesByIdPatch.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanCancellationPoliciesByIdPatch($params: rateplanCancellationPoliciesByIdPatch.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Get all cancellation policies. * Get the list of cancellation policies.<br>You must have at least one of these scopes: 'settings.read, setup.read, setup.manage'. * @param $params.propertyId Filter cancellation policies by the specified property * @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. */ rateplanCancellationPoliciesGet($params: rateplanCancellationPoliciesGet.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanCancellationPoliciesGet($params: rateplanCancellationPoliciesGet.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanCancellationPoliciesGet($params: rateplanCancellationPoliciesGet.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Create a cancellation policy. * Create a cancellation policy.<br>You must have at least one of these scopes: 'settings.manage, setup.manage'. * @param $params.body The definition of the cancellation policy. * @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. */ rateplanCancellationPoliciesPost($params: rateplanCancellationPoliciesPost.Params, observe?: 'body', reportProgress?: boolean): Observable; rateplanCancellationPoliciesPost($params: rateplanCancellationPoliciesPost.Params, observe?: 'response', reportProgress?: boolean): Observable>; rateplanCancellationPoliciesPost($params: rateplanCancellationPoliciesPost.Params, observe?: 'events', reportProgress?: boolean): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }