Update header

This commit is contained in:
Frede Hundewadt 2023-03-21 07:19:07 +01:00
parent 243989f3b4
commit a64271559d
7 changed files with 281 additions and 274 deletions

View file

@ -1,25 +1,25 @@
// *********************************************************************** // ***********************************************************************
// Assembly : FCS.Lib.Vies // Assembly : FCS.Lib.Vies
// Author : FH // Author : fhdk
// Created : 04-01-2022 // Created : 2023 01 19 10:41
// //
// Last Modified By : FH // Last Modified By: fhdk
// Last Modified On : 04-01-2022 // Last Modified On : 2023 03 14 09:16
// *********************************************************************** // ***********************************************************************
// <copyright file="ViesEntityModel.cs" company=""> // <copyright file="ViesEntityModel.cs" company="FCS">
// Copyright (C) 2022 FCS Frede's Computer Services. // Copyright (C) 2023-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as // it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the // published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version. // License, or (at your option) any later version.
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses] // along with this program. If not, see [https://www.gnu.org/licenses]
// </copyright> // </copyright>
// <summary></summary> // <summary></summary>
// *********************************************************************** // ***********************************************************************
@ -37,22 +37,27 @@ public class ViesEntityModel
/// Business entity's country code of origin /// Business entity's country code of origin
/// </summary> /// </summary>
public string CountryCode { get; set; } = ""; public string CountryCode { get; set; } = "";
/// <summary> /// <summary>
/// Business entity vat number /// Business entity vat number
/// </summary> /// </summary>
public string VatNumber { get; set; } = ""; public string VatNumber { get; set; } = "";
/// <summary> /// <summary>
/// Request date /// Request date
/// </summary> /// </summary>
public DateTime RequestDate { get; set; } public DateTime RequestDate { get; set; }
/// <summary> /// <summary>
/// Valid flag /// Valid flag
/// </summary> /// </summary>
public bool Valid { get; set; } public bool Valid { get; set; }
/// <summary> /// <summary>
/// Business entity name /// Business entity name
/// </summary> /// </summary>
public string Name { get; set; } = ""; public string Name { get; set; } = "";
/// <summary> /// <summary>
/// Business entity address /// Business entity address
/// </summary> /// </summary>

View file

@ -1,79 +1,80 @@
// *********************************************************************** // ***********************************************************************
// Assembly : FCS.Lib.Vies // Assembly : FCS.Lib.Vies
// Author : FH // Author : fhdk
// Created : 04-01-2022 // Created : 2022 12 17 13:33
// //
// Last Modified By : FH // Last Modified By: fhdk
// Last Modified On : 04-01-2022 // Last Modified On : 2023 03 14 09:16
// *********************************************************************** // ***********************************************************************
// <copyright file="ViesHttpRequest.cs" company=""> // <copyright file="ViesHttpRequest.cs" company="FCS">
// Copyright (C) 2022 FCS Frede's Computer Services. // Copyright (C) 2022-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as // it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the // published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version. // License, or (at your option) any later version.
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses] // along with this program. If not, see [https://www.gnu.org/licenses]
// </copyright> // </copyright>
// <summary></summary> // <summary></summary>
// *********************************************************************** // ***********************************************************************
using System.Net.Http; using System.Net.Http;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace FCS.Lib.Vies namespace FCS.Lib.Vies;
/// <summary>
/// http request to vies registrar
/// </summary>
public class ViesHttpRequest
{ {
/// <summary> /// <summary>
/// http request to vies registrar /// Async http request to vies registrar
/// </summary> /// </summary>
public class ViesHttpRequest /// <param name="endpoint"></param>
/// <param name="countryCode"></param>
/// <param name="vatNumber"></param>
/// <param name="userAgent"></param>
/// <returns>Vies Response View model</returns>
/// <see cref="ViesResponseView"/>
/// <remarks>Service http://ec.europa.eu/taxation_customs/vies/services/checkVatService</remarks>
public async Task<ViesResponseView> GetResponseAsync(string endpoint, string countryCode, string vatNumber,
string userAgent)
{ {
/// <summary> var xml = new StringBuilder();
/// Async http request to vies registrar xml.Append(
/// </summary> "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:ec.europa.eu:taxud:vies:services:checkVat:types\">");
/// <param name="endpoint"></param> xml.Append("<soapenv:Header/>");
/// <param name="countryCode"></param> xml.Append("<soapenv:Body>");
/// <param name="vatNumber"></param> xml.Append("<urn:checkVat>");
/// <param name="userAgent"></param> xml.Append($"<urn:countryCode>{countryCode.ToUpperInvariant()}</urn:countryCode>");
/// <returns>Vies Response View model</returns> xml.Append($"<urn:vatNumber>{vatNumber}</urn:vatNumber>");
/// <see cref="ViesResponseView"/> xml.Append("</urn:checkVat>");
/// <remarks>Service http://ec.europa.eu/taxation_customs/vies/services/checkVatService</remarks> xml.Append("</soapenv:Body>");
public async Task<ViesResponseView> GetResponseAsync(string endpoint, string countryCode, string vatNumber, string userAgent) xml.Append("</soapenv:Envelope>");
using var content = new StringContent(xml.ToString(), Encoding.UTF8, "text/xml");
using var client = new HttpClient();
using var viesRequest = new HttpRequestMessage(HttpMethod.Post, endpoint);
viesRequest.Headers.Add("SOAPAction", "");
viesRequest.Headers.Add("User-Agent", userAgent);
viesRequest.Content = content;
var response = await client.SendAsync(viesRequest).ConfigureAwait(true);
var xmlResult = await response.Content.ReadAsStringAsync().ConfigureAwait(true);
return new ViesResponseView
{ {
Code = response.StatusCode,
var xml = new StringBuilder(); IsSuccessStatusCode = response.IsSuccessStatusCode,
xml.Append($"<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:urn=\"urn:ec.europa.eu:taxud:vies:services:checkVat:types\">"); Message = xmlResult
xml.Append($"<soapenv:Header/>"); };
xml.Append($"<soapenv:Body>");
xml.Append($"<urn:checkVat>");
xml.Append($"<urn:countryCode>{countryCode.ToUpperInvariant()}</urn:countryCode>");
xml.Append($"<urn:vatNumber>{vatNumber}</urn:vatNumber>");
xml.Append($"</urn:checkVat>");
xml.Append($"</soapenv:Body>");
xml.Append($"</soapenv:Envelope>");
using var content = new StringContent(xml.ToString(), Encoding.UTF8, "text/xml");
using var client = new HttpClient();
using var viesRequest = new HttpRequestMessage(HttpMethod.Post, endpoint);
viesRequest.Headers.Add("SOAPAction", "");
viesRequest.Headers.Add("User-Agent", userAgent);
viesRequest.Content = content;
var response = await client.SendAsync(viesRequest).ConfigureAwait(true);
var xmlResult = await response.Content.ReadAsStringAsync().ConfigureAwait(true);
return new ViesResponseView
{
Code = response.StatusCode,
IsSuccessStatusCode = response.IsSuccessStatusCode,
Message = xmlResult
};
}
} }
} }

View file

@ -1,28 +1,29 @@
// *********************************************************************** // ***********************************************************************
// Assembly : FCS.Lib.Vies // Assembly : FCS.Lib.Vies
// Author : FH // Author : fhdk
// Created : 04-01-2022 // Created : 2023 01 19 10:41
// //
// Last Modified By : FH // Last Modified By: fhdk
// Last Modified On : 04-01-2022 // Last Modified On : 2023 03 14 09:16
// *********************************************************************** // ***********************************************************************
// <copyright file="ViesQuery.cs" company=""> // <copyright file="ViesQuery.cs" company="FCS">
// Copyright (C) 2022 FCS Frede's Computer Services. // Copyright (C) 2023-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as // it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the // published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version. // License, or (at your option) any later version.
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses] // along with this program. If not, see [https://www.gnu.org/licenses]
// </copyright> // </copyright>
// <summary></summary> // <summary></summary>
// *********************************************************************** // ***********************************************************************
namespace FCS.Lib.Vies; namespace FCS.Lib.Vies;
/// <summary> /// <summary>

View file

@ -1,25 +1,25 @@
// *********************************************************************** // ***********************************************************************
// Assembly : FCS.Lib.Vies // Assembly : FCS.Lib.Vies
// Author : FH // Author : fhdk
// Created : 04-01-2022 // Created : 2022 12 17 13:33
// //
// Last Modified By : FH // Last Modified By: fhdk
// Last Modified On : 04-01-2022 // Last Modified On : 2023 03 14 09:16
// *********************************************************************** // ***********************************************************************
// <copyright file="ViesQueryValidator.cs" company=""> // <copyright file="ViesQueryValidator.cs" company="FCS">
// Copyright (C) 2022 FCS Frede's Computer Services. // Copyright (C) 2022-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as // it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the // published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version. // License, or (at your option) any later version.
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses] // along with this program. If not, see [https://www.gnu.org/licenses]
// </copyright> // </copyright>
// <summary></summary> // <summary></summary>
// *********************************************************************** // ***********************************************************************

View file

@ -1,25 +1,25 @@
// *********************************************************************** // ***********************************************************************
// Assembly : FCS.Lib.Vies // Assembly : FCS.Lib.Vies
// Author : FH // Author : fhdk
// Created : 04-01-2022 // Created : 2023 01 19 10:41
// //
// Last Modified By : FH // Last Modified By: fhdk
// Last Modified On : 04-01-2022 // Last Modified On : 2023 03 14 09:16
// *********************************************************************** // ***********************************************************************
// <copyright file="ViesResultParser.cs" company=""> // <copyright file="ViesResponseParser.cs" company="FCS">
// Copyright (C) 2022 FCS Frede's Computer Services. // Copyright (C) 2023-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as // it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the // published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version. // License, or (at your option) any later version.
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses] // along with this program. If not, see [https://www.gnu.org/licenses]
// </copyright> // </copyright>
// <summary></summary> // <summary></summary>
// *********************************************************************** // ***********************************************************************
@ -46,7 +46,7 @@ public class ViesResponseParser
var xml = XDocument.Parse(responseData); var xml = XDocument.Parse(responseData);
var x = xml.Descendants().Where(c => c.Name.LocalName == "checkVatResponse") var x = xml.Descendants().Where(c => c.Name.LocalName == "checkVatResponse")
.Select(x => new ViesEntityModel() .Select(x => new ViesEntityModel
{ {
CountryCode = (string)x.Element(x.Name.Namespace + "countryCode"), CountryCode = (string)x.Element(x.Name.Namespace + "countryCode"),
VatNumber = (string)x.Element(x.Name.Namespace + "vatNumber"), VatNumber = (string)x.Element(x.Name.Namespace + "vatNumber"),

View file

@ -1,28 +1,29 @@
// *********************************************************************** // ***********************************************************************
// Assembly : FCS.Lib.Vies // Assembly : FCS.Lib.Vies
// Author : FH // Author : fhdk
// Created : 04-01-2022 // Created : 2022 12 17 13:33
// //
// Last Modified By : FH // Last Modified By: fhdk
// Last Modified On : 04-01-2022 // Last Modified On : 2023 03 14 09:16
// *********************************************************************** // ***********************************************************************
// <copyright file="ViesResponseView.cs" company=""> // <copyright file="ViesResponseView.cs" company="FCS">
// Copyright (C) 2022 FCS Frede's Computer Services. // Copyright (C) 2022-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as // it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the // published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version. // License, or (at your option) any later version.
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses] // along with this program. If not, see [https://www.gnu.org/licenses]
// </copyright> // </copyright>
// <summary></summary> // <summary></summary>
// *********************************************************************** // ***********************************************************************
using System.Net; using System.Net;
namespace FCS.Lib.Vies; namespace FCS.Lib.Vies;
@ -36,10 +37,12 @@ public class ViesResponseView
/// http request status code /// http request status code
/// </summary> /// </summary>
public HttpStatusCode Code { get; set; } public HttpStatusCode Code { get; set; }
/// <summary> /// <summary>
/// boolean indicating success /// boolean indicating success
/// </summary> /// </summary>
public bool IsSuccessStatusCode { get; set; } public bool IsSuccessStatusCode { get; set; }
/// <summary> /// <summary>
/// response message /// response message
/// </summary> /// </summary>

View file

@ -1,139 +1,136 @@
// *********************************************************************** // ***********************************************************************
// Assembly : FCS.Lib.Virk // Assembly : FCS.Lib.Vies
// Author : FH // Author : fhdk
// Created : 02-21-2022 // Created : 2023 02 02 11:05
// //
// Last Modified By : FH // Last Modified By: fhdk
// Last Modified On : 02-24-2022 // Last Modified On : 2023 03 14 09:16
// *********************************************************************** // ***********************************************************************
// <copyright file="VrCvrMapper.cs" company="FCS"> // <copyright file="ViesVatInfoMapper.cs" company="FCS">
// Copyright (C) 2022 FCS Frede's Computer Services. // Copyright (C) 2023-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
// it under the terms of the Affero GNU General Public License as // it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the // published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version. // License, or (at your option) any later version.
// //
// This program is distributed in the hope that it will be useful, // This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// Affero GNU General Public License for more details. // GNU Affero General Public License for more details.
// //
// You should have received a copy of the Affero GNU General Public License // You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html] // along with this program. If not, see [https://www.gnu.org/licenses]
// </copyright> // </copyright>
// <summary></summary> // <summary></summary>
// *********************************************************************** // ***********************************************************************
using System; using System;
using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.Linq.Expressions;
using FCS.Lib.Common; using FCS.Lib.Common;
namespace FCS.Lib.Vies namespace FCS.Lib.Vies;
/// <summary>
/// Vies vat info mapper
/// </summary>
public class ViesVatInfoMapper
{ {
/// <summary> /// <summary>
/// Vies vat info mapper /// map vies response to Crm
/// </summary> /// </summary>
public class ViesVatInfoMapper /// <param name="viesEntity"></param>
/// <returns>Vat Info Data Transfer Object</returns>
/// <see cref="VatInfoDto"/>
/// <see cref="ViesEntityModel"/>
/// <see cref="VatState"/>
/// <see cref="TimeFrame"/>
public VatInfoDto MapViesVatInfoDto(ViesEntityModel viesEntity)
{ {
/// <summary> var addressBlock = viesEntity.Address.Split('\n');
/// map vies response to Crm var coName = "";
/// </summary> var address = "";
/// <param name="viesEntity"></param> var zip = "";
/// <returns>Vat Info Data Transfer Object</returns> var city = "";
/// <see cref="VatInfoDto"/> var i = 0;
/// <see cref="ViesEntityModel"/> if (viesEntity.CountryCode == "SE" && addressBlock.Length > 0)
/// <see cref="VatState"/>
/// <see cref="TimeFrame"/>
public VatInfoDto MapViesVatInfoDto(ViesEntityModel viesEntity)
{ {
var addressBlock = viesEntity.Address.Split('\n'); if (addressBlock.Length > 1)
var coName = "";
var address = "";
var zip = "";
var city = "";
var i = 0;
if (viesEntity.CountryCode == "SE" && addressBlock.Length > 0)
{ {
if (addressBlock.Length > 1) coName = addressBlock[i];
{ i++;
coName = addressBlock[i];
i++;
}
try
{
address = addressBlock[i].Normalize();
}
catch
{
address = "fejl";
}
if (addressBlock.Length > 2)
{
i++;
zip = addressBlock[i].Normalize().Substring(0, 6).Replace(" ", "");
city = addressBlock[i].Normalize().Substring(7).Trim();
}
}
else
{
if (addressBlock.Length > 1)
{
coName = addressBlock[i].Normalize();
i++;
}
try
{
address = addressBlock[i].Normalize();
}
catch
{
address = "fejl";
}
if (addressBlock.Length > 1)
{
i++;
zip = addressBlock[i].Substring(0, 5).Replace(" ", "");
city = addressBlock[i].Substring(5).Trim();
}
} }
// generate return object try
var c = new VatInfoDto
{ {
Name = viesEntity.Name.Normalize(), address = addressBlock[i].Normalize();
Address = address, }
VatNumber = viesEntity.VatNumber, catch
City = city, {
ZipCode = zip, address = "fejl";
RequestDate = DateTime.Now.ToString(CultureInfo.InvariantCulture) }
};
c.States.Add(new VatState if (addressBlock.Length > 2)
{ {
State = viesEntity.Valid ? "NORMAL" : "LUKKET", i++;
LastUpdate = $"{viesEntity.RequestDate:yyyy-MM-dd}", zip = addressBlock[i].Normalize().Substring(0, 6).Replace(" ", "");
TimeFrame = new TimeFrame city = addressBlock[i].Normalize().Substring(7).Trim();
{ }
EndDate = "NA",
StartDate = "NA"
}
});
c.LifeCycles.Add(new LifeCycle
{
LastUpdate = $"{viesEntity.RequestDate:yyyy-MM-dd}",
TimeFrame = new TimeFrame
{
StartDate = "NN",
EndDate = "NN"
}
});
return c;
} }
else
{
if (addressBlock.Length > 1)
{
coName = addressBlock[i].Normalize();
i++;
}
try
{
address = addressBlock[i].Normalize();
}
catch
{
address = "fejl";
}
if (addressBlock.Length > 1)
{
i++;
zip = addressBlock[i].Substring(0, 5).Replace(" ", "");
city = addressBlock[i].Substring(5).Trim();
}
}
// generate return object
var c = new VatInfoDto
{
Name = viesEntity.Name.Normalize(),
Address = address,
VatNumber = viesEntity.VatNumber,
City = city,
ZipCode = zip,
RequestDate = DateTime.Now.ToString(CultureInfo.InvariantCulture)
};
c.States.Add(new VatState
{
State = viesEntity.Valid ? "NORMAL" : "LUKKET",
LastUpdate = $"{viesEntity.RequestDate:yyyy-MM-dd}",
TimeFrame = new TimeFrame
{
EndDate = "NA",
StartDate = "NA"
}
});
c.LifeCycles.Add(new LifeCycle
{
LastUpdate = $"{viesEntity.RequestDate:yyyy-MM-dd}",
TimeFrame = new TimeFrame
{
StartDate = "NN",
EndDate = "NN"
}
});
return c;
} }
} }