![]() |
VOOZH | about |
dotnet add package Acontplus.Billing --version 1.1.6
NuGet\Install-Package Acontplus.Billing -Version 1.1.6
<PackageReference Include="Acontplus.Billing" Version="1.1.6" />
<PackageVersion Include="Acontplus.Billing" Version="1.1.6" />Directory.Packages.props
<PackageReference Include="Acontplus.Billing" />Project file
paket add Acontplus.Billing --version 1.1.6
#r "nuget: Acontplus.Billing, 1.1.6"
#:package Acontplus.Billing@1.1.6
#addin nuget:?package=Acontplus.Billing&version=1.1.6Install as a Cake Addin
#tool nuget:?package=Acontplus.Billing&version=1.1.6Install as a Cake Tool
A comprehensive .NET library for electronic invoicing and digital document handling in Ecuador, fully compliant with SRI (Servicio de Rentas Internas) normatives v2.32. Provides complete support for all electronic document types, XML generation, validation, parsing, and web service integration.
All 6 electronic document types according to SRI Ficha Técnica v2.32:
Install-Package Acontplus.Billing
dotnet add package Acontplus.Billing
<ItemGroup>
<PackageReference Include="Acontplus.Billing" Version="1.2.0" />
</ItemGroup>
// In Startup.cs or Program.cs
// Services are registered manually or through your DI container
// Example:
services.AddSingleton<ICedulaService, CedulaService>();
services.AddSingleton<IRucService, RucService>();
// Add other services as needed
{
"Billing": {
"Environment": "Development",
"ValidateBeforeSend": true,
"DefaultTimeoutSeconds": 30,
"DocumentStoragePath": "Documents",
"CompanyRuc": "0991234567001",
"CompanyLegalName": "ACME COMPANY S.A.",
"CompanyCommercialName": "ACME",
"EnableCaching": true,
"CacheDurationMinutes": 60,
"SriConnection": {
"BaseUrl": "https://celcer.sri.gob.ec/",
"TimeoutSeconds": 30,
"MaxRetryAttempts": 3,
"ValidateSslCertificate": true
}
}
}
public class IdentityValidator
{
private readonly ICedulaService _cedulaService;
public IdentityValidator(ICedulaService cedulaService) => _cedulaService = cedulaService;
public bool ValidateIdentity(string cedula) => _cedulaService.ValidateCedula(cedula);
}
public class InvoiceGenerator
{
private readonly IXmlService _xmlService;
public InvoiceGenerator(IXmlService xmlService) => _xmlService = xmlService;
public string GenerateInvoice(ComprobanteElectronico comprobante) => _xmlService.GenerateInvoiceXml(comprobante);
}
public class DocumentSender
{
private readonly ISriWebService _sriService;
public DocumentSender(ISriWebService sriService) => _sriService = sriService;
public async Task<ResponseSri> SendDocumentAsync(string xmlContent, string username, string password)
{
var token = await _sriService.AuthenticateAsync(username, password);
return await _sriService.SendDocumentAsync(xmlContent, token);
}
}
public class DocumentRenderer
{
private readonly IDocumentConverter _converter;
public DocumentRenderer(IDocumentConverter converter) => _converter = converter;
public string RenderDocument(string xmlContent) => _converter.ConvertToHtml(xmlContent);
}
using Acontplus.Billing.Constants;
// Access document type codes
DocumentTypes.Factura; // "01"
DocumentTypes.LiquidacionCompra; // "03"
DocumentTypes.NotaCredito; // "04"
DocumentTypes.NotaDebito; // "05"
DocumentTypes.GuiaRemision; // "06"
DocumentTypes.ComprobanteRetencion; // "07"
// Get document name
var name = DocumentTypes.GetDocumentName("01"); // "Factura"
// Validate document code
bool isValid = DocumentTypes.IsValidDocumentCode("01"); // true
ICedulaService, IRucService - Ecuadorian ID and RUC validation with checksum verificationIWebServiceSri - SRI web service authentication and document submissionIDocumentConverter - XML to HTML/PDF conversion for all document typesIXmlDocumentParser - Parse SRI-authorized XML documentsIAtsXmlService - Generate ATS (Anexo Transaccional Simplificado) XMLIElectronicDocumentService - High-level document managementIDocumentValidator - XSD schema validationAll document types include complete model classes:
ComprobanteElectronico - Base electronic document containerInfoFactura - Invoice informationInfoLiquidacionCompra - Purchase settlement informationInfoNotaCredito - Credit note informationInfoNotaDebito - Debit note information with motivosInfoGuiaRemision - Delivery guide informationInfoCompRetencion - Withholding informationDestinatario - Delivery guide recipients with detailsDocSustento - Supporting documents with retentions and reimbursementsWe welcome contributions! Please see our for details.
git clone https://github.com/acontplus/acontplus-dotnet-libs.git
cd acontplus-dotnet-libs
dotnet restore
dotnet build
This project is licensed under the MIT License - see the file for details.
Ivan Paz - @iferpaz7
Acontplus - Software solutions
Built with ❤️ for the .NET community
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.2 | 42 | 6/24/2026 |
| 1.3.1 | 52 | 6/24/2026 |
| 1.3.0 | 99 | 5/31/2026 |
| 1.2.5 | 115 | 5/17/2026 |
| 1.2.4 | 98 | 5/17/2026 |
| 1.2.3 | 110 | 5/3/2026 |
| 1.2.2 | 118 | 4/16/2026 |
| 1.2.0 | 124 | 3/23/2026 |
| 1.1.11 | 140 | 3/17/2026 |
| 1.1.10 | 122 | 3/8/2026 |
| 1.1.9 | 134 | 2/22/2026 |
| 1.1.8 | 156 | 1/16/2026 |
| 1.1.7 | 137 | 1/11/2026 |
| 1.1.6 | 227 | 12/25/2025 |
| 1.1.5 | 184 | 12/11/2025 |
| 1.1.4 | 203 | 12/5/2025 |
| 1.1.3 | 243 | 12/4/2025 |
| 1.1.2 | 239 | 12/3/2025 |
| 1.1.1 | 216 | 11/27/2025 |
Enhanced with cutting-edge C# features, comprehensive SRI integration, embedded XSD schemas, XML validation, token management, and enterprise-grade electronic invoicing capabilities for Ecuadorian compliance.