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.
13 lines (12 loc) • 431 B
TypeScript
import Client from './Client';
import { ICreditsClient } from '../interfaces';
import { Credit, CreditBalance } from '../models';
export default class CreditsClient extends Client implements ICreditsClient {
private _path;
private processListResponse;
getList(userId: number | string, cursor?: number): Promise<{
data: Credit[];
totalBalance: CreditBalance;
nextCursor: number | null;
}>;
}