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.

17 lines (16 loc) 758 B
import Transaction from '../models/Transaction'; import TransactionPayload from '../payloads/TransactionPayload'; import IListOptions from './IListOptions'; export default interface ITransactionsClient { getList: (accountIds: number[] | number, listOptions?: IListOptions) => Promise<{ data: Transaction[]; currentPage: number; totalPages: number; totalItems: number; }>; get: (id: string | number) => Promise<Transaction>; create: (transactionToCreate: TransactionPayload) => Promise<Transaction>; edit: (id: string | number, transactionToUpdate: TransactionPayload) => Promise<Transaction>; delete: (id: string | number) => Promise<boolean>; deleteAll: (accountId: number) => Promise<boolean>; }