import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
import { Observable } from 'rxjs';
import { CommitPaymentAccountRequest } from '../model/commitPaymentAccountRequest';
import { FailPaymentAccountRequest } from '../model/failPaymentAccountRequest';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
export declare namespace bookingPaymentAccountActionsByPaymentAccountIdCancelPut {
interface Params {
/**
* The identifier of the payment account to cancel
*/
paymentAccountId: 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 bookingPaymentAccountActionsByPaymentAccountIdCommitPut {
interface Params {
/**
* The identifier of the payment account
*/
paymentAccountId: string;
/**
* The details related to the payment account to commit
*/
body: CommitPaymentAccountRequest;
/**
* 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 bookingPaymentAccountActionsByPaymentAccountIdExpirePaymentLinkPut {
interface Params {
/**
* The identifier of the payment account with the payment link to expire
*/
paymentAccountId: 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 bookingPaymentAccountActionsByPaymentAccountIdFailPut {
interface Params {
/**
* The identifier of the payment account
*/
paymentAccountId: string;
/**
* The details related to the payment account to fail
*/
body: FailPaymentAccountRequest;
/**
* 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 PaymentAccountActionsService {
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;
/**
* Disables the recurring payment account authorization with the payment provider and updates the status to Canceled
* <br>You must have this scope: 'payments.admin'.
* @param $params.paymentAccountId The identifier of the payment account to cancel
* @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.
*/
bookingPaymentAccountActionsByPaymentAccountIdCancelPut($params: bookingPaymentAccountActionsByPaymentAccountIdCancelPut.Params, observe?: 'body', reportProgress?: boolean): Observable;
bookingPaymentAccountActionsByPaymentAccountIdCancelPut($params: bookingPaymentAccountActionsByPaymentAccountIdCancelPut.Params, observe?: 'response', reportProgress?: boolean): Observable>;
bookingPaymentAccountActionsByPaymentAccountIdCancelPut($params: bookingPaymentAccountActionsByPaymentAccountIdCancelPut.Params, observe?: 'events', reportProgress?: boolean): Observable>;
/**
* Sets payment account to success
* <br>You must have this scope: 'payments.admin'.
* @param $params.paymentAccountId The identifier of the payment account
* @param $params.body The details related to the payment account 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.
*/
bookingPaymentAccountActionsByPaymentAccountIdCommitPut($params: bookingPaymentAccountActionsByPaymentAccountIdCommitPut.Params, observe?: 'body', reportProgress?: boolean): Observable;
bookingPaymentAccountActionsByPaymentAccountIdCommitPut($params: bookingPaymentAccountActionsByPaymentAccountIdCommitPut.Params, observe?: 'response', reportProgress?: boolean): Observable>;
bookingPaymentAccountActionsByPaymentAccountIdCommitPut($params: bookingPaymentAccountActionsByPaymentAccountIdCommitPut.Params, observe?: 'events', reportProgress?: boolean): Observable>;
/**
* Expires the pending payment link with the payment provider and updates the status to Expired
* <br>You must have this scope: 'payments.admin'.
* @param $params.paymentAccountId The identifier of the payment account with the payment link to 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.
*/
bookingPaymentAccountActionsByPaymentAccountIdExpirePaymentLinkPut($params: bookingPaymentAccountActionsByPaymentAccountIdExpirePaymentLinkPut.Params, observe?: 'body', reportProgress?: boolean): Observable;
bookingPaymentAccountActionsByPaymentAccountIdExpirePaymentLinkPut($params: bookingPaymentAccountActionsByPaymentAccountIdExpirePaymentLinkPut.Params, observe?: 'response', reportProgress?: boolean): Observable>;
bookingPaymentAccountActionsByPaymentAccountIdExpirePaymentLinkPut($params: bookingPaymentAccountActionsByPaymentAccountIdExpirePaymentLinkPut.Params, observe?: 'events', reportProgress?: boolean): Observable>;
/**
* Sets payment account to failed
* <br>You must have this scope: 'payments.admin'.
* @param $params.paymentAccountId The identifier of the payment account
* @param $params.body The details related to the payment account to fail
* @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.
*/
bookingPaymentAccountActionsByPaymentAccountIdFailPut($params: bookingPaymentAccountActionsByPaymentAccountIdFailPut.Params, observe?: 'body', reportProgress?: boolean): Observable;
bookingPaymentAccountActionsByPaymentAccountIdFailPut($params: bookingPaymentAccountActionsByPaymentAccountIdFailPut.Params, observe?: 'response', reportProgress?: boolean): Observable>;
bookingPaymentAccountActionsByPaymentAccountIdFailPut($params: bookingPaymentAccountActionsByPaymentAccountIdFailPut.Params, observe?: 'events', reportProgress?: boolean): Observable>;
static ɵfac: i0.ɵɵFactoryDeclaration;
static ɵprov: i0.ɵɵInjectableDeclaration;
}