sunat_cpe_efact 0.1.0
sunat_cpe_efact: ^0.1.0 copied to clipboard
EFACT OSE/PSE adapter for SUNAT Electronic Invoicing (CPE) in pure Dart, supporting REST OAuth2 (XML/JSON) and SOAP 1.1 UBL 2.1.
sunat_cpe_efact #
Adaptador oficial de EFACT (OSE / PSE) para facturación electrónica SUNAT (Perú) en Dart 3 puro, implementando los contratos de sunat_cpe_core.
Características #
- Modo REST OAuth2 XML (
EfactIntegrationMode.restXml): Genera XML UBL 2.1, firma localmente con XAdES-BES, envía pormultipart/form-dataa/v1/documenty descarga el CDR en/v1/cdr/{ticket}(conautoPollInRestconfigurable). - Modo REST OAuth2 JSON (
EfactIntegrationMode.restJson): Transforma las entidades del Core a JSON UBL EFACT para firma en la nube (PSE). - Modo SOAP 1.1 (
EfactIntegrationMode.soapUbl): Integración directa conbillServicede EFACT (sendBill,sendSummary,getStatus,getStatusCdr) con cabecera WS-Security. - Interceptor OAuth2 (
EfactOAuth2Interceptor): Renovación automática de tokensBearercontra/oauth/token.