From 5fc3462b02d201987e76020d74695bd4087765fe Mon Sep 17 00:00:00 2001 From: lucasdepetrisd Date: Thu, 14 Mar 2024 22:30:40 -0300 Subject: [PATCH 1/2] fix: soluciono error al verificar el cuil en afip haciendo que siempre se utilice cuit --- .../Services/HelperServices/AutorizacionAfipHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application/Services/HelperServices/AutorizacionAfipHelpers.cs b/src/Application/Services/HelperServices/AutorizacionAfipHelpers.cs index 391be2a..a67f534 100644 --- a/src/Application/Services/HelperServices/AutorizacionAfipHelpers.cs +++ b/src/Application/Services/HelperServices/AutorizacionAfipHelpers.cs @@ -49,7 +49,7 @@ internal static (TipoDocumento tipo, long nro) ObtenerTipoYNumeroDocumento(strin return (tipoDocumento.ToLowerInvariant() switch { "cuit" => TipoDocumento.Cuit, - "cuil" => TipoDocumento.Cuil, + "cuil" => TipoDocumento.Cuit, _ => throw new ArgumentException("Tipo de Documento inválido."), }, parsedNumeroDocumento); From de9b54e629cadab52d8e017818c02bba6be37131 Mon Sep 17 00:00:00 2001 From: Lucas Depetris Date: Mon, 18 Mar 2024 17:15:35 -0300 Subject: [PATCH 2/2] Bump version to 1.9.1 --- src/WebAPI/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebAPI/Program.cs b/src/WebAPI/Program.cs index 2edf704..3571e09 100644 --- a/src/WebAPI/Program.cs +++ b/src/WebAPI/Program.cs @@ -14,7 +14,7 @@ builder.Services.AddSwaggerGen(c => { c.SwaggerDoc("Crud", new OpenApiInfo { Title = "La Tienda API: CRUD", Version = "v1.5", Description = $"Environment: {builder.Environment.EnvironmentName}" }); - c.SwaggerDoc("UseCases", new OpenApiInfo { Title = "La Tienda API: Casos de Uso", Version = "v1.9.0", Description = $"Environment: {builder.Environment.EnvironmentName}" }); + c.SwaggerDoc("UseCases", new OpenApiInfo { Title = "La Tienda API: Casos de Uso", Version = "v1.9.1", Description = $"Environment: {builder.Environment.EnvironmentName}" }); string[] methodsOrder = ["get", "post", "put", "patch", "delete", "options", "trace"]; c.OrderActionsBy((apiDesc) =>