UNPKG

envio-comprobantes-sri

Version:

Envia comprobantes electronicos al SRI (Ecuador). Recibe un objeto JSON. Lo convierte a XML, lo firma, lo envía al servicio web del SRI y devuelve la respuesta.

22 lines (21 loc) 874 B
import { CODIGO_ERROR_SRI } from "../Structures/Utils/ErroresSRI"; import XMLHandler from "../Utils/xml-handler"; type WebServiceStep = "Subir_XML" | "Autorizar_XML"; export default function parseWebServiceResponse(response_xml: string, step: WebServiceStep, xml_envelope?: string): XMLHandler; export declare class WebServiceSRIError extends Error { document_status: "DEVUELTA" | "NO AUTORIZADO"; error_list: { code: CODIGO_ERROR_SRI; message: string; additional_info: string; }[]; step: WebServiceStep; raw_response: string; raw_request?: string; constructor(document_status: "DEVUELTA" | "NO AUTORIZADO", error_list: { code: CODIGO_ERROR_SRI; message: string; additional_info: string; }[], step: WebServiceStep, raw_response: string, raw_request?: string); } export {};