Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotfix/SS-451 #142

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -835,8 +835,8 @@ Generar PDF

<br>Este método genera y obtiene un PDF en base64 a partir de un documento XML timbrado y una plantilla. Puede ser consumido ingresando tu usuario y contraseña así como tambien ingresando solo el token. Este método recibe los siguientes parámetros:

* Url servicios SW
* Url API
* Url servicios SW
* Logo Base64 (opcional)
* Template ID
* XML timbrado
Expand All @@ -857,7 +857,7 @@ namespace ExampleSDK
{
try
{
Pdf pdf = new Pdf("https://services.test.sw.com.mx","https://api.test.sw.com.mx","user", "password");
Pdf pdf = new Pdf("https://api.test.sw.com.mx","https://services.test.sw.com.mx","user", "password");
string xml = Encoding.UTF8.GetString(File.ReadAllBytes("file.xml"));
var pdfResult = pdf.GenerarPdf(xml,"/9j/4AAQSk...",TemplatesId.cfdi40);
//Devuleve el pdf en formato Base64
Expand All @@ -871,7 +871,7 @@ namespace ExampleSDK
//Puedes solicitar customizar tu propia plantilla para agregar datos adicionales que no vengan incluidos en el xml
try
{
Pdf pdf = new Pdf("https://services.test.sw.com.mx","https://api.test.sw.com.mx",Token);
Pdf pdf = new Pdf("https://api.test.sw.com.mx","https://services.test.sw.com.mx",Token);
string xml = Encoding.UTF8.GetString(File.ReadAllBytes("file.xml"));
Dictionary<string, string> extras = new Dictionary<string, string>() { { "DATOSEXTRA", "Entregar de 9am a 6pm" } };
var pdfResult = pdf.GenerarPdf(xml,"/9j/4AAQSk...","templateIdCustom", extras);
Expand All @@ -886,7 +886,7 @@ namespace ExampleSDK
try
{
//Puedes enviar el xml convertido en Base64
Pdf pdf = new Pdf("https://services.test.sw.com.mx","https://api.test.sw.com.mx",Token);
Pdf pdf = new Pdf("https://api.test.sw.com.mx","https://services.test.sw.com.mx",Token);
Dictionary<string, string> extras = new Dictionary<string, string>() { { "DATOSEXTRA", "Entregar de 9am a 6pm" } };
var pdfResult = pdf.GenerarPdf(xml,"/9j/4AAQSk...","templateIdCustom", extras, null, true);
//Devuleve el pdf en formato Base64
Expand Down
4 changes: 2 additions & 2 deletions SW-sdk-45/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.19.14")]
[assembly: AssemblyFileVersion("0.0.19.14")]
[assembly: AssemblyVersion("0.0.19.15")]
[assembly: AssemblyFileVersion("0.0.19.15")]
4 changes: 2 additions & 2 deletions SW-sdk/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.19.14")]
[assembly: AssemblyFileVersion("0.0.19.14")]
[assembly: AssemblyVersion("0.0.19.15")]
[assembly: AssemblyFileVersion("0.0.19.15")]