UNPKG

falcotura-atv-sdk

Version:

Librería (SDK) de Javascript/NodeJS para acceder al API de Administración Tributaria Virtual (ATV) del Ministerio de Hacienda.

36 lines (35 loc) 905 B
import { PersonProps } from '@src/ATV/core/Person'; import { InvoiceDocumentContainer } from '@src/types/facturaInterfaces'; import { Method } from 'axios'; export type DocumentTypes = 'FE'; type CommandData = { clave: string; fecha: string; emisor: { tipoIdentificacion: PersonProps['identifier']['type']; numeroIdentificacion: string; }; receptor?: { tipoIdentificacion: PersonProps['identifier']['type']; numeroIdentificacion: string; }; comprobanteXml: string; consecutivoReceptor?: string; }; export type Command = { url: string; method: Method; data: CommandData; headers: { Authorization: string; 'Content-Type': string; }; }; export type CreateAndSendDocumentResponse = { command: Command; extraData: { xml: string; document: InvoiceDocumentContainer; }; }; export {};