import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { PlanBankModel } from '../model/plan'; import { PlanListBankModel } from '../model/planList'; import { PostPlanBankModel } from '../model/postPlan'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class PlansService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Create Plan * Creates a plan. ## Create a plan Plans can be created for a Bank or a Customer. To create plan for your Bank, omit the `customer_guid` parameter in the request body. To create plans for your Customers, include the `customer_guid` parameter in the request body. | State | Description | |-------|-------------| | storing | The Platform is storing the plan details in our private store | | planning | The Platform is currently building the plan | | completed | The Platform has successfully completed the plan | | failed | The Platform was not able to successfully complete the plan | Required scope: **plans:execute** * @param postPlanBankModel * @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. */ createPlan(postPlanBankModel: PostPlanBankModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createPlan(postPlanBankModel: PostPlanBankModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createPlan(postPlanBankModel: PostPlanBankModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get Plan * Retrieves a plan. Required scope: **plans:read** * @param planGuid 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. */ getPlan(planGuid: string, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getPlan(planGuid: string, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getPlan(planGuid: string, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get plans list * Retrieves a listing of plans. Records are sorted by creation date in descending order. Required scope: **plans:read** * @param page The page index to retrieve. * @param perPage The number of entities per page to return. * @param guid Comma separated plan_guids to list plans for. * @param bankGuid Comma separated bank_guids to list plans for. * @param customerGuid Comma separated customer_guids to list plans for. * @param type Comma separated types to list plans for. * @param state Comma separated states to list plans for. * @param sourceAccountGuid Comma separated source account guids to list plans for. * @param destinationAccountGuid Comma separated destination account guids to list plans 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. */ listPlans(page?: string, perPage?: string, guid?: 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; listPlans(page?: string, perPage?: string, guid?: 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>; listPlans(page?: string, perPage?: string, guid?: 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; }