From e64594a89fbb9a13e71c0e8fd8d34ace53f0a577 Mon Sep 17 00:00:00 2001 From: Claudinei Cecilio Date: Wed, 4 Sep 2024 22:40:36 -0300 Subject: [PATCH] =?UTF-8?q?feat:Incluido=20mapeamento=20de=20propriedades?= =?UTF-8?q?=20faltantes=20do=20servi=C3=A7o=20de=20consulta=20de=20status;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Servicos/Status/retConsStatServ.cs | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/NFe.Classes/Servicos/Status/retConsStatServ.cs b/NFe.Classes/Servicos/Status/retConsStatServ.cs index 2c4edc57..dd06e121 100644 --- a/NFe.Classes/Servicos/Status/retConsStatServ.cs +++ b/NFe.Classes/Servicos/Status/retConsStatServ.cs @@ -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 { @@ -70,5 +72,41 @@ public class retConsStatServ : IRetornoServico /// FR07 - Código da UF que atendeu a solicitação /// public Estado cUF { get; set; } + + /// + /// FR08 - Data e hora de recebimento + /// + [XmlIgnore] + public DateTimeOffset dhRecbto { get; set; } + + [XmlElement(ElementName = "dhRecbto")] + public string ProxyDhRecbto + { + get { return dhRecbto.ParaDataHoraStringUtc(); } + set { dhRecbto = DateTimeOffset.Parse(value); } + } + + /// + /// FR09 - Tempo médio de resposta do serviço + /// + public int? tMed { get; set; } + + /// + /// FR10 - Data e hora de retorno do Web Service + /// + [XmlIgnore] + public DateTimeOffset? dhRetorno { get; set; } + + [XmlElement(ElementName = "dhRetorno")] + public string ProxydhRetorno + { + get { return dhRetorno.ParaDataHoraStringUtc(); } + set { dhRetorno = DateTimeOffset.Parse(value); } + } + + /// + /// FR11 - Informações adicionais para o Contribuinte + /// + public string? xObs { get; set; } } } \ No newline at end of file