open-banking-pfm-sdk
Version:
The Open Banking PFM SDK uses Client classes and with **Promises** to get responses from the Open Banking PFM API in an easier way and structured as data models.
16 lines (15 loc) • 592 B
TypeScript
import { Consent, ConsentDetail } from '../models';
import { IConsentsClient } from '../interfaces';
import Client from './Client';
import { StatusConsent, TypeConsent } from 'enums/Consents.enum';
export default class ConsentsClient extends Client implements IConsentsClient {
private _path;
private _consents;
private processResponse;
get(id: string | number): Promise<ConsentDetail>;
delete(id: string | number): Promise<boolean>;
getList(userId: number | string, filter?: {
type?: TypeConsent;
status?: StatusConsent;
}): Promise<Consent[]>;
}