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

30 lines (29 loc) 921 B
import RestApi from "../../modules/RestApi"; import { AuthToken, EconomicResponse, Pagination } from "../../types/Economic.type"; import { HttpResponse } from "../../types/Http.type"; export type VatType = { vatTypeNumber: number; name: string; self: string; }; export default class VatTypes extends RestApi { /** * @constructor */ constructor(props: AuthToken); /** * fetch a collection of all vat types. * * @see https://restdocs.e-conomic.com/#get-vat-types * @returns {Promise<HttpResponse>} * */ getVatTypes(offset?: number, limit?: number): Promise<HttpResponse<EconomicResponse<VatType[], Pagination, any>>>; /** * Fetch a specific vat type. * * @see https://restdocs.e-conomic.com/#get-vat-types-vattypeid * */ getVatType(vatTypeNumber: number): Promise<HttpResponse<VatType>>; }