From 9cefaf6b3d99ed1ce07e3b94bff96d324bd3232c Mon Sep 17 00:00:00 2001 From: abdallahbeshi Date: Wed, 26 Jun 2024 13:15:59 +0200 Subject: [PATCH] fixed tests --- .../Dto/Invoice.cs | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/Hungary/Mews.Fiscalizations.Hungary/Dto/Invoice.cs b/src/Hungary/Mews.Fiscalizations.Hungary/Dto/Invoice.cs index ffb55da9..7bd4ffaf 100644 --- a/src/Hungary/Mews.Fiscalizations.Hungary/Dto/Invoice.cs +++ b/src/Hungary/Mews.Fiscalizations.Hungary/Dto/Invoice.cs @@ -6153,7 +6153,7 @@ public enum RequestStatusType public class QueryTaxpayerResponseType : BasicOnlineInvoiceResponseType { - private DateTime infoDateField; + private DateTime? infoDateField; private bool infoDateFieldSpecified; @@ -6163,17 +6163,14 @@ public class QueryTaxpayerResponseType : BasicOnlineInvoiceResponseType private TaxpayerDataType taxpayerDataField; - /// - public DateTime infoDate + [XmlIgnore] + public DateTime? infoDate { get; set; } + + [XmlElement("infoDate")] + public string InfoDateString { - get - { - return infoDateField; - } - set - { - infoDateField = value; - } + get => infoDate?.ToString(); + set => infoDate = !string.IsNullOrEmpty(value) ? DateTime.Parse(value) : null; } ///