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.
11 lines (10 loc) • 545 B
TypeScript
import Account from '../models/Account';
import AccountPayload from '../payloads/AccountPayload';
import { IAccountParams } from '../interfaces';
export default interface IAccountsClient {
getList: (userId: string | number, accountParams?: IAccountParams) => Promise<Account[]>;
get: (id: string | number) => Promise<Account>;
create: (accountToCreate: AccountPayload) => Promise<Account>;
edit: (id: string | number, accountToUpdate: AccountPayload) => Promise<Account>;
delete: (id: string | number) => Promise<boolean>;
}