diff --git a/README.md b/README.md index 976dbb9..0a80116 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # eFacturacionColombia_V2.Firma (C#) -[![version](https://img.shields.io/badge/version-2.1-blue.svg)](#) [![build](https://img.shields.io/badge/build-passing-brightgreen.svg)](#) +[![version](https://img.shields.io/badge/version-2.2-blue.svg)](#) [![build](https://img.shields.io/badge/build-passing-brightgreen.svg)](#) @@ -35,7 +35,7 @@ var fecha = DateTime.Now; var archivoXml = new FileInfo("path/to/unsigned-invoice.xml"); var facturaFirmada = firma.FirmarFactura(archivoXml, fecha); // guardar xml firmado -File.WriteAllBytes(facturaFirmada, "path/to/signed-invoice.xml"); +File.WriteAllBytes("path/to/signed-invoice.xml", facturaFirmada); // nota de crédito, variante 2: @@ -43,7 +43,7 @@ File.WriteAllBytes(facturaFirmada, "path/to/signed-invoice.xml"); var contenidoXml = File.ReadAllText("path/to/unsigned-credit-note.xml"); var notaCreditoFirmada = firma.FirmarNotaCredito(contenidoXml, fecha); // guardar xml firmado -File.WriteAllBytes(notaCreditoFirmada, "path/to/signed-credit-note.xml"); +File.WriteAllBytes("path/to/signed-credit-note.xml", notaCreditoFirmada); // nota de débito, variante 3: diff --git a/README.pdf b/README.pdf new file mode 100644 index 0000000..74fad9d Binary files /dev/null and b/README.pdf differ diff --git a/eFacturacionColombia_V2.Firma/FirmaElectronica.cs b/eFacturacionColombia_V2.Firma/FirmaElectronica.cs index 895125b..17925b8 100644 --- a/eFacturacionColombia_V2.Firma/FirmaElectronica.cs +++ b/eFacturacionColombia_V2.Firma/FirmaElectronica.cs @@ -136,7 +136,7 @@ public byte[] FirmarEvento(byte[] bytesXml, DateTime fecha) xpathExpression.Namespaces.Add("sts", "dian:gov:co:facturaelectronica:Structures-2-1"); xpathExpression.Namespaces.Add("xades", "http://uri.etsi.org/01903/v1.3.2#"); xpathExpression.Namespaces.Add("xades141", "http://uri.etsi.org/01903/v1.4.1#"); - xpathExpression.XPathExpression = "/fe:ApplicationResponse/ext:UBLExtensions/ext:UBLExtension[1]/ext:ExtensionContent"; + xpathExpression.XPathExpression = "/fe:ApplicationResponse/ext:UBLExtensions/ext:UBLExtension[2]/ext:ExtensionContent"; return FirmarDocumento(bytesXml, fecha, xpathExpression); } diff --git a/eFacturacionColombia_V2.Firma/Properties/AssemblyInfo.cs b/eFacturacionColombia_V2.Firma/Properties/AssemblyInfo.cs index 4fb0a24..94fb2fd 100644 --- a/eFacturacionColombia_V2.Firma/Properties/AssemblyInfo.cs +++ b/eFacturacionColombia_V2.Firma/Properties/AssemblyInfo.cs @@ -8,9 +8,9 @@ [assembly: AssemblyTitle("eFacturacionColombia_V2.Firma")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Miguel Anderson Huertas")] +[assembly: AssemblyCompany("Miguel Huertas ")] [assembly: AssemblyProduct("eFacturacionColombia_V2.Firma")] -[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -32,5 +32,5 @@ // Puede especificar todos los valores o usar los números de compilación y de revisión predeterminados // mediante el carácter "*", como se muestra a continuación: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.1.0.0")] -[assembly: AssemblyFileVersion("2.1.0.0")] +[assembly: AssemblyVersion("2.2.0.0")] +[assembly: AssemblyFileVersion("2.2.0.0")] diff --git a/eFacturacionColombia_V2.Firma/RolFirmante.cs b/eFacturacionColombia_V2.Firma/RolFirmante.cs index a2d65ed..86ccfc6 100644 --- a/eFacturacionColombia_V2.Firma/RolFirmante.cs +++ b/eFacturacionColombia_V2.Firma/RolFirmante.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - + namespace eFacturacionColombia_V2.Firma { public enum RolFirmante @@ -11,4 +6,4 @@ public enum RolFirmante EMISOR, PROVEEDOR_TECNOLOGICO } -} +} \ No newline at end of file diff --git a/packages/BouncyCastle.1.8.5/.signature.p7s b/packages/BouncyCastle.1.8.5/.signature.p7s new file mode 100644 index 0000000..378adca Binary files /dev/null and b/packages/BouncyCastle.1.8.5/.signature.p7s differ diff --git a/packages/BouncyCastle.1.8.5/BouncyCastle.1.8.5.nupkg b/packages/BouncyCastle.1.8.5/BouncyCastle.1.8.5.nupkg new file mode 100644 index 0000000..f6d7c2a Binary files /dev/null and b/packages/BouncyCastle.1.8.5/BouncyCastle.1.8.5.nupkg differ diff --git a/packages/BouncyCastle.1.8.5/README.md b/packages/BouncyCastle.1.8.5/README.md new file mode 100644 index 0000000..270d9cc --- /dev/null +++ b/packages/BouncyCastle.1.8.5/README.md @@ -0,0 +1,30 @@ +# The Bouncy Castle Crypto Package For C Sharp + +The Bouncy Castle Crypto package is a C\# implementation of cryptographic algorithms and protocols, it was developed by the Legion of the Bouncy Castle, a registered Australian Charity, with a little help! The Legion, and the latest goings on with this package, can be found at [http://www.bouncycastle.org](http://www.bouncycastle.org). In addition to providing basic cryptography algorithms, the package also provides support for CMS, TSP, X.509 certificate generation and a variety of other standards such as OpenPGP. + +The Legion also gratefully acknowledges the contributions made to this package by others (see [here](http://www.bouncycastle.org/csharp/contributors.html) for the current list). If you would like to contribute to our efforts please feel free to get in touch with us or visit our [donations page](https://www.bouncycastle.org/donate), sponsor some specific work, or purchase a support contract through [Crypto Workshop](http://www.cryptoworkshop.com). + +Except where otherwise stated, this software is distributed under a license based on the MIT X Consortium license. To view the license, [see here](http://www.bouncycastle.org/licence.html). The OpenPGP library also includes a modified BZIP2 library which is licensed under the [Apache Software License, Version 2.0](http://www.apache.org/licenses/). + +**Note**: this source tree is not the FIPS version of the APIs - if you are interested in our FIPS version please contact us directly at [office@bouncycastle.org](mailto:office@bouncycastle.org). + +## Mailing Lists + +For those who are interested, there are 2 mailing lists for participation in this project. To subscribe use the links below and include the word subscribe in the message body. (To unsubscribe, replace **subscribe** with **unsubscribe** in the message body) + +* [announce-crypto-csharp-request@bouncycastle.org](mailto:announce-crypto-csharp-request@bouncycastle.org) + This mailing list is for new release announcements only, general subscribers cannot post to it. +* [dev-crypto-csharp-request@bouncycastle.org](mailto:dev-crypto-csharp-request@bouncycastle.org) + This mailing list is for discussion of development of the package. This includes bugs, comments, requests for enhancements, questions about use or operation. + +**NOTE:**You need to be subscribed to send mail to the above mailing list. + +## Feedback + +If you want to provide feedback directly to the members of **The Legion** then please use [feedback-crypto@bouncycastle.org](mailto:feedback-crypto@bouncycastle.org), if you want to help this project survive please consider [donating](https://www.bouncycastle.org/donate). + +For bug reporting/requests you can report issues here on github, via feedback-crypto if required, and we also have a [Jira issue tracker](http://www.bouncycastle.org/jira). We will accept pull requests based on this repository as well. + +## Finally + +Enjoy! diff --git a/packages/BouncyCastle.1.8.5/lib/BouncyCastle.Crypto.dll b/packages/BouncyCastle.1.8.5/lib/BouncyCastle.Crypto.dll new file mode 100644 index 0000000..05036dd Binary files /dev/null and b/packages/BouncyCastle.1.8.5/lib/BouncyCastle.Crypto.dll differ