import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AuthorizationRefreshRequest } from '../model/authorizationRefreshRequest'; import { CommitAuthorizationModel } from '../model/commitAuthorizationModel'; import { FailAuthorizationRequest } from '../model/failAuthorizationRequest'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare namespace bookingAuthorizationActionsByAuthorizationIdCancelPut { interface Params { /** * The identifier of the authorization */ authorizationId: 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 bookingAuthorizationActionsByAuthorizationIdCommitPut { interface Params { /** * The identifier of the authorization */ authorizationId: string; /** * The details related to the authorization to commit */ body: CommitAuthorizationModel; /** * 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 bookingAuthorizationActionsByAuthorizationIdFailPut { interface Params { /** * The identifier of the authorization */ authorizationId: string; /** * The details related to the authorization to fail/expire */ body: FailAuthorizationRequest; /** * 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 bookingAuthorizationActionsByAuthorizationIdRefreshPut { interface Params { /** * The identifier of the authorization */ authorizationId: string; /** * The definition of the authorization refresh request */ body: AuthorizationRefreshRequest; /** * 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 class AuthorizationActionsService { 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; /** * Cancels the authorization * <br>You must have this scope: 'authorizations.manage'. * @param $params.authorizationId The identifier of the authorization * @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. */ bookingAuthorizationActionsByAuthorizationIdCancelPut($params: bookingAuthorizationActionsByAuthorizationIdCancelPut.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingAuthorizationActionsByAuthorizationIdCancelPut($params: bookingAuthorizationActionsByAuthorizationIdCancelPut.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingAuthorizationActionsByAuthorizationIdCancelPut($params: bookingAuthorizationActionsByAuthorizationIdCancelPut.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Sets the authorization to success * <br>You must have this scope: 'payments.admin'. * @param $params.authorizationId The identifier of the authorization * @param $params.body The details related to the authorization to commit * @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. */ bookingAuthorizationActionsByAuthorizationIdCommitPut($params: bookingAuthorizationActionsByAuthorizationIdCommitPut.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingAuthorizationActionsByAuthorizationIdCommitPut($params: bookingAuthorizationActionsByAuthorizationIdCommitPut.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingAuthorizationActionsByAuthorizationIdCommitPut($params: bookingAuthorizationActionsByAuthorizationIdCommitPut.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Fails the authorization * <br>You must have this scope: 'payments.admin'. * @param $params.authorizationId The identifier of the authorization * @param $params.body The details related to the authorization to fail/expire * @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. */ bookingAuthorizationActionsByAuthorizationIdFailPut($params: bookingAuthorizationActionsByAuthorizationIdFailPut.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingAuthorizationActionsByAuthorizationIdFailPut($params: bookingAuthorizationActionsByAuthorizationIdFailPut.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingAuthorizationActionsByAuthorizationIdFailPut($params: bookingAuthorizationActionsByAuthorizationIdFailPut.Params, observe?: 'events', reportProgress?: boolean): Observable>; /** * Updates the requested amount and extends the expiry date of the authorization * Allows to top up the authorization and renew expiry date. The top-up amount is specified in the payload and needs to be greater than the original amount. If the amount specified is the same as the original one, the authorization is renewed and changes its expiry date. If the amount specified is less than the original one, the authorization is adjusted down.<br>You must have this scope: 'authorizations.manage'. * @param $params.authorizationId The identifier of the authorization * @param $params.body The definition of the authorization refresh request * @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. */ bookingAuthorizationActionsByAuthorizationIdRefreshPut($params: bookingAuthorizationActionsByAuthorizationIdRefreshPut.Params, observe?: 'body', reportProgress?: boolean): Observable; bookingAuthorizationActionsByAuthorizationIdRefreshPut($params: bookingAuthorizationActionsByAuthorizationIdRefreshPut.Params, observe?: 'response', reportProgress?: boolean): Observable>; bookingAuthorizationActionsByAuthorizationIdRefreshPut($params: bookingAuthorizationActionsByAuthorizationIdRefreshPut.Params, observe?: 'events', reportProgress?: boolean): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }