import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
import { CreateNoShowPolicyModel } from '../model/createNoShowPolicyModel';
import { NoShowPolicyCreatedModel } from '../model/noShowPolicyCreatedModel';
import { NoShowPolicyListModel } from '../model/noShowPolicyListModel';
import { NoShowPolicyModel } from '../model/noShowPolicyModel';
import { Operation } from '../model/operation';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
export declare namespace rateplanNoShowPoliciesByIdDelete {
interface Params {
/**
* The id of the no-show 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 rateplanNoShowPoliciesByIdGet {
interface Params {
/**
* The id of the no-show 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 rateplanNoShowPoliciesByIdPatch {
interface Params {
/**
* The id of the no-show 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 rateplanNoShowPoliciesGet {
interface Params {
/**
* Filter no-show 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 rateplanNoShowPoliciesPost {
interface Params {
/**
* The definition of the no-show policy.
*/
body: CreateNoShowPolicyModel;
/**
* 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 NoShowPolicyService {
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 no-show policy
* Use this call to delete a no-show policy.<br>You must have this scope: 'setup.manage'.
* @param $params.id The id of the no-show 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.
*/
rateplanNoShowPoliciesByIdDelete($params: rateplanNoShowPoliciesByIdDelete.Params, observe?: 'body', reportProgress?: boolean): Observable;
rateplanNoShowPoliciesByIdDelete($params: rateplanNoShowPoliciesByIdDelete.Params, observe?: 'response', reportProgress?: boolean): Observable>;
rateplanNoShowPoliciesByIdDelete($params: rateplanNoShowPoliciesByIdDelete.Params, observe?: 'events', reportProgress?: boolean): Observable>;
/**
* Get a specific no-show policy.
* Get a specific no-show policy.<br>You must have at least one of these scopes: 'settings.read, setup.read, setup.manage'.
* @param $params.id The id of the no-show 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.
*/
rateplanNoShowPoliciesByIdGet($params: rateplanNoShowPoliciesByIdGet.Params, observe?: 'body', reportProgress?: boolean): Observable;
rateplanNoShowPoliciesByIdGet($params: rateplanNoShowPoliciesByIdGet.Params, observe?: 'response', reportProgress?: boolean): Observable>;
rateplanNoShowPoliciesByIdGet($params: rateplanNoShowPoliciesByIdGet.Params, observe?: 'events', reportProgress?: boolean): Observable>;
/**
* Allows to modify properties of a no-show policy
* Here is the list of operations that are currently allowed: - Replace name and description - 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 no-show 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.
*/
rateplanNoShowPoliciesByIdPatch($params: rateplanNoShowPoliciesByIdPatch.Params, observe?: 'body', reportProgress?: boolean): Observable;
rateplanNoShowPoliciesByIdPatch($params: rateplanNoShowPoliciesByIdPatch.Params, observe?: 'response', reportProgress?: boolean): Observable>;
rateplanNoShowPoliciesByIdPatch($params: rateplanNoShowPoliciesByIdPatch.Params, observe?: 'events', reportProgress?: boolean): Observable>;
/**
* Get all no-show policies.
* Get the list of no-show policies.<br>You must have at least one of these scopes: 'settings.read, setup.read, setup.manage'.
* @param $params.propertyId Filter no-show 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.
*/
rateplanNoShowPoliciesGet($params: rateplanNoShowPoliciesGet.Params, observe?: 'body', reportProgress?: boolean): Observable;
rateplanNoShowPoliciesGet($params: rateplanNoShowPoliciesGet.Params, observe?: 'response', reportProgress?: boolean): Observable>;
rateplanNoShowPoliciesGet($params: rateplanNoShowPoliciesGet.Params, observe?: 'events', reportProgress?: boolean): Observable>;
/**
* Create a no-show policy.
* Create a no-show policy.<br>You must have at least one of these scopes: 'settings.manage, setup.manage'.
* @param $params.body The definition of the no-show 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.
*/
rateplanNoShowPoliciesPost($params: rateplanNoShowPoliciesPost.Params, observe?: 'body', reportProgress?: boolean): Observable;
rateplanNoShowPoliciesPost($params: rateplanNoShowPoliciesPost.Params, observe?: 'response', reportProgress?: boolean): Observable>;
rateplanNoShowPoliciesPost($params: rateplanNoShowPoliciesPost.Params, observe?: 'events', reportProgress?: boolean): Observable>;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵprov: i0.ɵɵInjectableDeclaration;
}