diff --git a/BrAddressModel.cs b/BrAddressModel.cs
index f1d591d..ecd8d31 100644
--- a/BrAddressModel.cs
+++ b/BrAddressModel.cs
@@ -28,13 +28,37 @@ using System.Collections.Generic;
namespace FCS.Lib.BrReg;
+///
+///
+///
public class BrAddressModel
{
+ ///
+ /// entity country
+ ///
public string Land { get; set; } = "";
+ ///
+ /// entity country code
+ ///
public string Landkode { get; set; } = "";
+ ///
+ /// entity zip code
+ ///
public string Postnummer { get; set; } = "";
+ ///
+ /// entity postal name
+ ///
public string Poststed { get; set; } = "";
+ ///
+ /// entity address
+ ///
public List Adresse { get; set; } = new();
+ ///
+ /// entity municipal
+ ///
public string Kommune { get; set; } = "";
+ ///
+ /// entity municipal identification
+ ///
public string Kommunenummer { get; set; } = "";
}
\ No newline at end of file
diff --git a/BrCompanyModel.cs b/BrCompanyModel.cs
index f64d730..4a0b8f4 100644
--- a/BrCompanyModel.cs
+++ b/BrCompanyModel.cs
@@ -26,16 +26,46 @@
namespace FCS.Lib.BrReg
{
+ ///
+ ///
+ ///
public class BrCompanyModel
{
+ ///
+ /// Entity vat number
+ ///
public string Organisasjonsnummer { get; set; } = "";
+ ///
+ /// Entity name
+ ///
public string Navn { get; set; } = "";
+ ///
+ /// Entity deletion date
+ ///
public string Slettedato { get; set; } = "";
+ ///
+ /// Entity business type
+ ///
public BrCompanyTypeModel Organisasjonsform { get; set; } = new();
+ ///
+ /// entity postal address
+ ///
public BrAddressModel Postadresse { get; set; } = new();
+ ///
+ /// entity business address
+ ///
public BrAddressModel Forretningsadresse { get; set; } = new();
+ ///
+ /// entity out-of-business flag
+ ///
public bool Konkurs { get; set; }
+ ///
+ /// entity to be closed flag
+ ///
public bool UnderAvvikling { get; set; }
+ ///
+ /// entity to be force closed
+ ///
public bool UnderTvangsavviklingEllerTvangsopplosning { get; set; }
}
diff --git a/BrCompanyTypeModel.cs b/BrCompanyTypeModel.cs
index 81dcb6f..ecd4785 100644
--- a/BrCompanyTypeModel.cs
+++ b/BrCompanyTypeModel.cs
@@ -25,9 +25,21 @@
// ***********************************************************************
namespace FCS.Lib.BrReg;
+///
+/// Class BrCompanyTypeModel
+///
public class BrCompanyTypeModel
{
+ ///
+ /// BrReg business code
+ ///
public string Kode { get; set; } = "";
+ ///
+ /// BrReg description
+ ///
public string Beskrivelse { get; set; } = "";
+ ///
+ /// BrReg discontinued
+ ///
public string Utgaatt { get; set; } = "";
}
\ No newline at end of file
diff --git a/BrHttpRequest.cs b/BrHttpRequest.cs
index 00b6761..da38e79 100644
--- a/BrHttpRequest.cs
+++ b/BrHttpRequest.cs
@@ -29,8 +29,17 @@ using System.Threading.Tasks;
namespace FCS.Lib.BrReg
{
+ ///
+ /// Class BrHttpRequest
+ ///
public class BrHttpRequest
{
+ ///
+ /// Async http request
+ ///
+ ///
+ ///
+ ///
public async Task GetResponseAsync(string endpoint, string userAgent)
{
using var client = new HttpClient();
diff --git a/BrRegQuery.cs b/BrRegQuery.cs
index 6cd96ab..e1233f9 100644
--- a/BrRegQuery.cs
+++ b/BrRegQuery.cs
@@ -1,7 +1,13 @@
namespace FCS.Lib.BrReg;
+///
+/// BrRegQuery
+///
public class BrRegQuery
{
+ ///
+ /// Vat number
+ ///
public string VatNumber { get; set; }
}
\ No newline at end of file
diff --git a/BrResponseParser.cs b/BrResponseParser.cs
index 27fd89b..7b16526 100644
--- a/BrResponseParser.cs
+++ b/BrResponseParser.cs
@@ -28,8 +28,16 @@ using Newtonsoft.Json;
namespace FCS.Lib.BrReg
{
+ ///
+ /// Class BrResponseParser
+ ///
public class BrResponseParser
{
+ ///
+ /// Parse response to BrCompanyModel
+ ///
+ ///
+ ///
public BrCompanyModel ParseBrResponse(string responseData)
{
return JsonConvert.DeserializeObject(responseData);
diff --git a/BrResponseView.cs b/BrResponseView.cs
index b8575a0..6b5b7c2 100644
--- a/BrResponseView.cs
+++ b/BrResponseView.cs
@@ -28,10 +28,22 @@ using System.Net;
namespace FCS.Lib.BrReg
{
+ ///
+ /// Class BrResponseView
+ ///
public class BrResponseView
{
+ ///
+ /// http response status code
+ ///
public HttpStatusCode Code { get; set; }
+ ///
+ /// Flag indicating success
+ ///
public bool IsSuccessStatusCode { get; set; }
+ ///
+ /// Response message
+ ///
public string Message { get; set; } = "";
}
}
\ No newline at end of file
diff --git a/BrVatInfoMapper.cs b/BrVatInfoMapper.cs
index 51bb9d7..ea86307 100644
--- a/BrVatInfoMapper.cs
+++ b/BrVatInfoMapper.cs
@@ -30,9 +30,21 @@ using FCS.Lib.Common;
namespace FCS.Lib.BrReg
{
+ ///
+ /// Class BrVatInfoMapper
+ ///
public class BrVatInfoMapper
{
+ ///
+ /// Map BrCompanyModel to CRM
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
public VatInfoDto MapBrToCrm(BrCompanyModel brCompany)
{
return new VatInfoDto
@@ -69,6 +81,12 @@ namespace FCS.Lib.BrReg
}
};
}
+
+ ///
+ /// Map BrCompanyModel to VatStateInfo
+ ///
+ ///
+ ///
public VatStateInfo MapBrVatState(BrCompanyModel brCompany)
{
if (brCompany == null)
diff --git a/FCS.Lib.BrReg.csproj b/FCS.Lib.BrReg.csproj
index c9658d3..b4a84e5 100644
--- a/FCS.Lib.BrReg.csproj
+++ b/FCS.Lib.BrReg.csproj
@@ -24,6 +24,7 @@
DEBUG;TRACE
prompt
4
+ bin\Debug\FCS.Lib.BrReg.xml
pdbonly