import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { ExecutionBankModel } from '../model/execution'; import { ExecutionListBankModel } from '../model/executionList'; import { PostExecutionBankModel } from '../model/postExecution'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class ExecutionsService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Create Execution * Creates an execution. ## Create a plan execution | State | Description | |-------|-------------| | storing | The Platform is storing the execution details in our private store | | executing | The Platform is executing the plan | | completed | The Platform has successfully completed the plan execution | | failed | The Platform was not able to successfully complete the plan execution | ## Failure codes | Code | Description | |------|-------------| | invalid_counterparty | The payout failed due to an invalid or rejected counterparty | | invalid_destination_account | The payout failed due to an invalid, closed, or blocked destination account | Required scope: **executions:execute** * @param postExecutionBankModel * @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. */ createExecution(postExecutionBankModel: PostExecutionBankModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createExecution(postExecutionBankModel: PostExecutionBankModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createExecution(postExecutionBankModel: PostExecutionBankModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get Execution * Retrieves a execution. Required scope: **executions:read** * @param executionGuid Identifier for the payment instruction. * @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. */ getExecution(executionGuid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getExecution(executionGuid: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getExecution(executionGuid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get executions list * Retrieves a listing of executions. Records are sorted by creation date in descending order. Required scope: **executions:read** * @param page The page index to retrieve. * @param perPage The number of entities per page to return. * @param guid Comma separated execution_guids to list executions for. * @param planGuid Comma separated plan_guids to list executions for. * @param bankGuid Comma separated bank_guids to list executions for. * @param customerGuid Comma separated customer_guids to list executions for. * @param type Comma separated types to list executions for. * @param state Comma separated states to list executions for. * @param sourceAccountGuid Comma separated source account guids to list executions for. * @param destinationAccountGuid Comma separated destination account guids to list executions for. * @param createdAtGte Created at start date-time inclusive lower bound, ISO8601. * @param createdAtLt Created at end date-time exclusive upper bound, ISO8601. * @param updatedAtGte Updated at start date-time inclusive lower bound, ISO8601. * @param updatedAtLt Updated at end date-time exclusive upper bound, ISO8601. * @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. */ listExecutions(page?: string, perPage?: string, guid?: string, planGuid?: string, bankGuid?: string, customerGuid?: string, type?: string, state?: string, sourceAccountGuid?: string, destinationAccountGuid?: string, createdAtGte?: string, createdAtLt?: string, updatedAtGte?: string, updatedAtLt?: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; listExecutions(page?: string, perPage?: string, guid?: string, planGuid?: string, bankGuid?: string, customerGuid?: string, type?: string, state?: string, sourceAccountGuid?: string, destinationAccountGuid?: string, createdAtGte?: string, createdAtLt?: string, updatedAtGte?: string, updatedAtLt?: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; listExecutions(page?: string, perPage?: string, guid?: string, planGuid?: string, bankGuid?: string, customerGuid?: string, type?: string, state?: string, sourceAccountGuid?: string, destinationAccountGuid?: string, createdAtGte?: string, createdAtLt?: string, updatedAtGte?: string, updatedAtLt?: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }