UNPKG

investec-openapi

Version:

A JavaScript/TypeScript wrapper to get up and running fast with Investec's Open API for programmable banking.

18 lines (17 loc) 911 B
import { Config, GetAccountBalanceRequest, GetAccountBalanceResponse, GetAccountTransactionsRequest, GetAccountTransactionsResponse, GetAccountsResponse } from './interfaces'; declare class InvestecOpenAPI { private proxyUrl?; private clientId?; private secret?; private accessToken?; private accessTokenExpiry; private errorCallback; configure({ proxyUrl, clientId, secret, errorCallback }: Config): void; getAccounts(): Promise<GetAccountsResponse | undefined>; getAccountBalance({ accountId, }: GetAccountBalanceRequest): Promise<GetAccountBalanceResponse | undefined>; getAccountTransactions({ accountId, fromDate, toDate, }: GetAccountTransactionsRequest): Promise<GetAccountTransactionsResponse | undefined>; private handleException; private getAccessToken; } declare const investecOpenAPI: InvestecOpenAPI; export default investecOpenAPI;