UNPKG

@phasesdk/api-client-for-economic

Version:

e-conomic REST API Library for Node.js is a powerful tool designed to simplify integration with the e-conomic platform for developers building Node.js applications. With this library, developers can effortlessly leverage the full functionality of the e-co

33 lines (32 loc) 963 B
import { HttpResponse } from "../../types/Http.type"; import RestApi from "../RestApi"; import { AuthToken } from "../../types/Economic.type"; import { EconomicResponse, Pagination } from "../../types/Economic.type"; export type ICurrency = { name: string; code: string; isoNumber: string; self: string; }; export default class Currency extends RestApi { /** * @constructor */ constructor(props: AuthToken); /** * Get collection of accounts. * @see https://restdocs.e-conomic.com/#get-accounts * * @param {number} offset * @param {number} limit * @returns {Promise<HttpResponse>} */ get(offset?: number, limit?: number): Promise<HttpResponse<EconomicResponse<ICurrency[], Pagination, any>>>; /** * Get currency by code * * @param {string} code * @returns */ getFor(code: string): Promise<HttpResponse<EconomicResponse<ICurrency[], Pagination, any>>>; }