import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CounterpartyBankModel } from '../model/counterparty'; import { CounterpartyListBankModel } from '../model/counterpartyList'; import { PostCounterpartyBankModel } from '../model/postCounterparty'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; export declare class CounterpartiesService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; encoder: HttpParameterCodec; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); private addToHttpParams; private addToHttpParamsRecursive; /** * Create Counterparty * Creates a counterparty. ## Counterparty Type Counterparty resources are an abstraction for real world individuals and businesses that are not directly on the Cybrid Platform. ## State | State | Description | |-------|-------------| | storing | The Platform is storing the counterparty details in our private store | | unverified | The Platform has not yet verified the counterparty\'s identity | | verified | The Platform has verified the counterparty\'s identity | | rejected | The Platform was not able to successfully verify the counterparty\'s identity | Required scope: **counterparties:execute** * @param postCounterpartyBankModel * @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. */ createCounterparty(postCounterpartyBankModel: PostCounterpartyBankModel, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; createCounterparty(postCounterpartyBankModel: PostCounterpartyBankModel, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; createCounterparty(postCounterpartyBankModel: PostCounterpartyBankModel, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get Counterparty * Retrieves a counterparty. Required scope: **counterparties:read** Optional scope: **counterparties:pii:read**. * @param counterpartyGuid Identifier for the counterparty. * @param includePii Include PII in the response (requires **counterparties:pii:read** scope). * @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. */ getCounterparty(counterpartyGuid: string, includePii?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; getCounterparty(counterpartyGuid: string, includePii?: boolean, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; getCounterparty(counterpartyGuid: string, includePii?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; /** * Get counterparties list * Retrieves a listing of counterparties. Records are sorted by creation date in descending order. Required scope: **counterparties:read** Optional scope: **counterparties:pii:read**. * @param page * @param perPage * @param type Comma separated types to list counterparties for. * @param bankGuid Comma separated bank_guids to list counterparties for. * @param customerGuid Comma separated customer_guids to list counterparties for. * @param guid Comma separated counterparty_guids to list counterparties for. * @param label Comma separated labels to list counterparties for. * @param includePii Include PII in the response (requires **counterparties:pii:read** scope). * @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. */ listCounterparties(page?: string, perPage?: string, type?: string, bankGuid?: string, customerGuid?: string, guid?: string, label?: string, includePii?: boolean, observe?: 'body', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable; listCounterparties(page?: string, perPage?: string, type?: string, bankGuid?: string, customerGuid?: string, guid?: string, label?: string, includePii?: boolean, observe?: 'response', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; listCounterparties(page?: string, perPage?: string, type?: string, bankGuid?: string, customerGuid?: string, guid?: string, label?: string, includePii?: boolean, observe?: 'events', reportProgress?: boolean, options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; }): Observable>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }