LibFacturaElectronicaDIAN 1.0.1

dotnet add package LibFacturaElectronicaDIAN --version 1.0.1                
NuGet\Install-Package LibFacturaElectronicaDIAN -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LibFacturaElectronicaDIAN" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LibFacturaElectronicaDIAN --version 1.0.1                
#r "nuget: LibFacturaElectronicaDIAN, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LibFacturaElectronicaDIAN as a Cake Addin
#addin nuget:?package=LibFacturaElectronicaDIAN&version=1.0.1

// Install LibFacturaElectronicaDIAN as a Cake Tool
#tool nuget:?package=LibFacturaElectronicaDIAN&version=1.0.1                

LibFacturaElectronicaDIAN

LibFacturaElectronicaDIAN

LibFacturaElectronicaDIAN es una librer�a .NET que sirve como cliente de consumo para el servicio web de Factura Electr�nica de la DIAN (Direcci�n de Impuestos y Aduanas Nacionales de Colombia).

Caracter�sticas

  • Env�o de facturas electr�nicas a la DIAN.
  • Consulta del estado de las facturas enviadas.
  • Manejo de certificados digitales para la firma de documentos.
  • Generaci�n de XML conforme a los est�ndares de la DIAN.

Requisitos

  • .NET 8 o superior.
  • Certificado digital emitido por una entidad certificadora autorizada.
  • Conexi�n a internet para el env�o y consulta de facturas.

Instalaci�n

Para instalar la librer�a, puedes usar NuGet Package Manager:

dotnet add package LibFacturaElectronicaDIAN --version 1.0.0

Uso

A continuaci�n se muestra un ejemplo b�sico de c�mo utilizar la librer�a para enviar una factura electr�nica:

public class Class1
{

    private static DianClient _client;
    private static X509Certificate2 _certificate;
    private static string _url;
    public static void Main(string[] args)
    {
        try
        {
            string certPath = "cert.pfx";
            string certPassword = "password";
            _certificate = new X509Certificate2(certPath, certPassword);
            _url = "https://vpfe-hab.dian.gov.co/WcfDianCustomerServices.svc?wsdl";
            _client = new DianClient(_certificate, _url);
            var response = _client.GetStatus("trackId");
            Console.WriteLine(response.StatusMessage);
        }
        catch(DianException e)
        {
            Console.WriteLine(e.Message);
        }
    }
}

Contribuciones

Las contribuciones son bienvenidas. Por favor, abre un issue o env�a un pull request para mejorar la librer�a.

Licencia

Este proyecto est� licenciado bajo la Licencia MIT. Consulta el archivo LICENSE para m�s detalles.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 86 1/19/2025

- Implemenetación de código base.
 - Implementación de Métodos de consulta.
 - GetStatus
 - GetStatusZip
 - GetStatusEvent
 - GetNumberingRange
 - GetXmlByDocumentKey
 - GetReferenceNotes
 - Implementación de Excepciones.
 Se espera en la siguiente versión implementar los métodos de envío de documentos.