@facturacr/atv-sdk
Version:
Librería (SDK) de Javascript/NodeJS para acceder al API de Administración Tributaria Virtual (ATV) del Ministerio de Hacienda.
37 lines (31 loc) • 684 B
text/typescript
import { InvoiceDocumentContainer } from '@src/types/facturaInterfaces';
import { Method } from 'axios'
export type DocumentTypes = 'FE'
export type Command = {
url: string;
method: Method;
data: {
clave: string;
fecha: string;
emisor: {
tipoIdentificacion: string;
numeroIdentificacion: string;
};
receptor: {
tipoIdentificacion: string;
numeroIdentificacion: string;
};
comprobanteXml: string;
};
headers: {
Authorization: string;
'Content-Type': string;
};
}
export type CreateAndSendDocumentResponse = {
command: Command;
extraData: {
xml: string;
document: InvoiceDocumentContainer;
};
}