Skip to content

Commit

Permalink
Merge pull request #36 from neicecilio/feature/consStatServ
Browse files Browse the repository at this point in the history
feat:Incluído mapeamento de propriedades faltantes do serviço de consulta de status de serviço da Sefaz
  • Loading branch information
danilobreda authored Sep 7, 2024
2 parents 5953100 + e64594a commit 694e523
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions NFe.Classes/Servicos/Status/retConsStatServ.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
/* http://www.zeusautomacao.com.br/ */
/* Rua Comendador Francisco josé da Cunha, 111 - Itabaiana - SE - 49500-000 */
/********************************************************************************/
using System;
using System.Xml.Serialization;
using DFe.Classes.Entidades;
using DFe.Classes.Flags;
using DFe.Utils;

namespace NFe.Classes.Servicos.Status
{
Expand Down Expand Up @@ -70,5 +72,41 @@ public class retConsStatServ : IRetornoServico
/// FR07 - Código da UF que atendeu a solicitação
/// </summary>
public Estado cUF { get; set; }

/// <summary>
/// FR08 - Data e hora de recebimento
/// </summary>
[XmlIgnore]
public DateTimeOffset dhRecbto { get; set; }

[XmlElement(ElementName = "dhRecbto")]
public string ProxyDhRecbto
{
get { return dhRecbto.ParaDataHoraStringUtc(); }
set { dhRecbto = DateTimeOffset.Parse(value); }
}

/// <summary>
/// FR09 - Tempo médio de resposta do serviço
/// </summary>
public int? tMed { get; set; }

/// <summary>
/// FR10 - Data e hora de retorno do Web Service
/// </summary>
[XmlIgnore]
public DateTimeOffset? dhRetorno { get; set; }

[XmlElement(ElementName = "dhRetorno")]
public string ProxydhRetorno
{
get { return dhRetorno.ParaDataHoraStringUtc(); }
set { dhRetorno = DateTimeOffset.Parse(value); }
}

/// <summary>
/// FR11 - Informações adicionais para o Contribuinte
/// </summary>
public string? xObs { get; set; }

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check warning on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check warning on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.

Check failure on line 110 in NFe.Classes/Servicos/Status/retConsStatServ.cs

View workflow job for this annotation

GitHub Actions / build (windows-2022)

Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.
}
}

0 comments on commit 694e523

Please sign in to comment.