diff --git a/Wonky.Client/HttpRepository/CompanyHttpRepository.cs b/Wonky.Client/HttpRepository/CompanyHttpRepository.cs index aa94207e..1139b4a7 100644 --- a/Wonky.Client/HttpRepository/CompanyHttpRepository.cs +++ b/Wonky.Client/HttpRepository/CompanyHttpRepository.cs @@ -64,7 +64,7 @@ public class CompanyHttpRepository : ICompanyHttpRepository ["searchColumn"] = pagingParameters.SearchColumn, ["orderBy"] = pagingParameters.OrderBy, ["isHidden"] = pagingParameters.IsHidden.ToString(), - ["hasFolder"] = pagingParameters.HasFolded.ToString() + ["hasFolded"] = pagingParameters.HasFolded.ToString() }; var response = await _client.GetAsync(QueryHelpers.AddQueryString($"{_apiConfig.CrmCompanies}/page", queryString)); diff --git a/Wonky.Client/Pages/CompanyView.razor.cs b/Wonky.Client/Pages/CompanyView.razor.cs index 5a54ab47..7e462fd8 100644 --- a/Wonky.Client/Pages/CompanyView.razor.cs +++ b/Wonky.Client/Pages/CompanyView.razor.cs @@ -60,7 +60,7 @@ public partial class CompanyView : IDisposable { VisitState = DateTime.Now >= theBad ? "the-bad" : "the-good"; } - ValidCvr = string.IsNullOrEmpty(CompanyDto.VatNumber) || CompanyDto.VatNumber.Length <= 2; + ValidCvr = string.IsNullOrEmpty(CompanyDto.VatNumber) || CompanyDto.VatNumber.Length <= 8; } /// diff --git a/Wonky.Entity/Models/VirkLifeCycle.cs b/Wonky.Entity/Models/VatLifeCycle.cs similarity index 83% rename from Wonky.Entity/Models/VirkLifeCycle.cs rename to Wonky.Entity/Models/VatLifeCycle.cs index d82acfff..ba94b0e5 100644 --- a/Wonky.Entity/Models/VirkLifeCycle.cs +++ b/Wonky.Entity/Models/VatLifeCycle.cs @@ -1,6 +1,6 @@ namespace Wonky.Entity.Models; -public class VirkLifeCycle +public class VatLifeCycle { public string LastUpdate { get; set; } = ""; public TimeFrame TimeFrame { get; set; } = new(); diff --git a/Wonky.Entity/Models/VirkState.cs b/Wonky.Entity/Models/VatRegState.cs similarity index 97% rename from Wonky.Entity/Models/VirkState.cs rename to Wonky.Entity/Models/VatRegState.cs index 4370dcdd..c8252a43 100644 --- a/Wonky.Entity/Models/VirkState.cs +++ b/Wonky.Entity/Models/VatRegState.cs @@ -14,7 +14,7 @@ // namespace Wonky.Entity.Models; -public class VirkState +public class VatRegState { public string State { get; set; } = "UKENDT"; public string LastUpdate { get; set; } = ""; diff --git a/Wonky.Entity/Models/VirkRegInfo.cs b/Wonky.Entity/Models/VirkRegInfo.cs index 1797503b..70968ab2 100644 --- a/Wonky.Entity/Models/VirkRegInfo.cs +++ b/Wonky.Entity/Models/VirkRegInfo.cs @@ -25,6 +25,7 @@ public class VirkRegInfo public string Address { get; set; } = ""; public string City { get; set; } = ""; public string ZipCode { get; set; } = ""; - public List States { get; set; } = new (); - public List LifeCycles { get; set; } = new (); + public List States { get; set; } = new (); + public List LifeCycles { get; set; } = new (); + public string RequestDate { get; set; } = "" ; } \ No newline at end of file