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) 1.06 kB
import RestApi from "../../modules/RestApi"; import { AuthToken, EconomicResponse, Pagination } from "../../types/Economic.type"; import { HttpResponse } from "../../types/Http.type"; export type VatZone = { vatZoneNumber: number; self: string; name: string; enabledForSupplier: boolean; enabledForCustomer: boolean; }; export type VatZoneInfo = Pick<VatZone, "vatZoneNumber" | "self">; export default class VatZones extends RestApi { /** * @constructor */ constructor(props: AuthToken); /** * fetch a collection of all vat zones. * * @see https://restdocs.e-conomic.com/#get-vat-zones * @returns {Promise<HttpResponse>} * */ getVatZones(offset?: number, limit?: number): Promise<HttpResponse<EconomicResponse<VatZone[], Pagination, any>>>; /** * Fetch a specific vat type. * * @see https://restdocs.e-conomic.com/#get-vat-zones-vatzonenumber * */ getVatZone(vatZoneNumber: number): Promise<HttpResponse<VatZone>>; }