UNPKG

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.

15 lines (14 loc) 691 B
import { IAccountsClient, IAccountParams } from '../interfaces'; import Account from '../models/Account'; import AccountPayload from '../payloads/AccountPayload'; import Client from './Client'; export default class AccountsClient extends Client implements IAccountsClient { private _path; private processListResponse; private processResponse; 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>; }