update headers

This commit is contained in:
Frede Hundewadt 2023-03-21 07:20:58 +01:00
parent cee66f9052
commit cb06ebcd73
9 changed files with 339 additions and 305 deletions

View file

@ -1,13 +1,13 @@
// ***********************************************************************
// Assembly : FCS.Lib.BrReg
// Author : FH
// Created : 04-06-2022
// Author : fhdk
// Created : 2022 12 17 13:33
//
// Last Modified By : FH
// Last Modified On : 04-06-2022
// Last Modified By: fhdk
// Last Modified On : 2023 03 14 09:16
// ***********************************************************************
// <copyright file="BrAddressModel.cs" company="">
// Copyright (C) 2022 FCS Frede's Computer Services.
// <copyright file="BrAddressModel.cs" company="FCS">
// Copyright (C) 2022-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@ -37,26 +37,32 @@ public class BrAddressModel
/// entity country
/// </summary>
public string Land { get; set; } = "";
/// <summary>
/// entity country code
/// </summary>
public string Landkode { get; set; } = "";
/// <summary>
/// entity zip code
/// </summary>
public string Postnummer { get; set; } = "";
/// <summary>
/// entity postal name
/// </summary>
public string Poststed { get; set; } = "";
/// <summary>
/// entity address
/// </summary>
public List<string> Adresse { get; set; } = new();
/// <summary>
/// entity municipal
/// </summary>
public string Kommune { get; set; } = "";
/// <summary>
/// entity municipal identification
/// </summary>

View file

@ -1,13 +1,13 @@
// ***********************************************************************
// Assembly : FCS.Lib.BrReg
// Author : FH
// Created : 04-06-2022
// Author : fhdk
// Created : 2022 12 17 13:33
//
// Last Modified By : FH
// Last Modified On : 04-06-2022
// Last Modified By: fhdk
// Last Modified On : 2023 03 14 09:16
// ***********************************************************************
// <copyright file="BrCompanyModel.cs" company="">
// Copyright (C) 2022 FCS Frede's Computer Services.
// <copyright file="BrCompanyModel.cs" company="FCS">
// Copyright (C) 2022-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@ -24,8 +24,8 @@
// <summary></summary>
// ***********************************************************************
namespace FCS.Lib.BrReg
{
namespace FCS.Lib.BrReg;
/// <summary>
///
/// </summary>
@ -35,38 +35,44 @@ namespace FCS.Lib.BrReg
/// Entity vat number
/// </summary>
public string Organisasjonsnummer { get; set; } = "";
/// <summary>
/// Entity name
/// </summary>
public string Navn { get; set; } = "";
/// <summary>
/// Entity deletion date
/// </summary>
public string Slettedato { get; set; } = "";
/// <summary>
/// Entity business type
/// </summary>
public BrCompanyTypeModel Organisasjonsform { get; set; } = new();
/// <summary>
/// entity postal address
/// </summary>
public BrAddressModel Postadresse { get; set; } = new();
/// <summary>
/// entity business address
/// </summary>
public BrAddressModel Forretningsadresse { get; set; } = new();
/// <summary>
/// entity out-of-business flag
/// </summary>
public bool Konkurs { get; set; }
/// <summary>
/// entity to be closed flag
/// </summary>
public bool UnderAvvikling { get; set; }
/// <summary>
/// entity to be force closed
/// </summary>
public bool UnderTvangsavviklingEllerTvangsopplosning { get; set; }
}
}

View file

@ -1,13 +1,13 @@
// ***********************************************************************
// Assembly : FCS.Lib.BrReg
// Author : FH
// Created : 04-06-2022
// Author : fhdk
// Created : 2022 12 17 13:33
//
// Last Modified By : FH
// Last Modified On : 04-06-2022
// Last Modified By: fhdk
// Last Modified On : 2023 03 14 09:16
// ***********************************************************************
// <copyright file="BrCompanyTypeModel.cs" company="">
// Copyright (C) 2022 FCS Frede's Computer Services.
// <copyright file="BrCompanyTypeModel.cs" company="FCS">
// Copyright (C) 2022-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@ -23,6 +23,7 @@
// </copyright>
// <summary></summary>
// ***********************************************************************
namespace FCS.Lib.BrReg;
/// <summary>
@ -34,10 +35,12 @@ public class BrCompanyTypeModel
/// BrReg business code
/// </summary>
public string Kode { get; set; } = "";
/// <summary>
/// BrReg description
/// </summary>
public string Beskrivelse { get; set; } = "";
/// <summary>
/// BrReg discontinued
/// </summary>

View file

@ -1,13 +1,13 @@
// ***********************************************************************
// Assembly : FCS.Lib.Virk
// Author : FH
// Created : 02-21-2022
// Assembly : FCS.Lib.BrReg
// Author : fhdk
// Created : 2022 12 17 13:33
//
// Last Modified By : FH
// Last Modified On : 04-06-2022
// Last Modified By: fhdk
// Last Modified On : 2023 03 14 09:16
// ***********************************************************************
// <copyright file="BrHttpRequest.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
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@ -27,8 +27,8 @@
using System.Net.Http;
using System.Threading.Tasks;
namespace FCS.Lib.BrReg
{
namespace FCS.Lib.BrReg;
/// <summary>
/// Class BrHttpRequest
/// </summary>
@ -58,5 +58,3 @@ namespace FCS.Lib.BrReg
};
}
}
}

View file

@ -1,4 +1,30 @@
namespace FCS.Lib.BrReg;
// ***********************************************************************
// Assembly : FCS.Lib.BrReg
// Author : fhdk
// Created : 2022 12 17 13:33
//
// Last Modified By: fhdk
// Last Modified On : 2023 03 14 09:16
// ***********************************************************************
// <copyright file="BrRegQuery.cs" company="FCS">
// Copyright (C) 2022-2023 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// 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]
// </copyright>
// <summary></summary>
// ***********************************************************************
namespace FCS.Lib.BrReg;
/// <summary>
/// BrRegQuery
@ -9,5 +35,4 @@ public class BrRegQuery
/// Vat number
/// </summary>
public string VatNumber { get; set; }
}

View file

@ -1,13 +1,13 @@
// ***********************************************************************
// Assembly : FCS.Lib.Virk
// Author : FH
// Created : 02-21-2022
// Assembly : FCS.Lib.BrReg
// Author : fhdk
// Created : 2022 12 17 13:33
//
// Last Modified By : FH
// Last Modified On : 04-06-2022
// Last Modified By: fhdk
// Last Modified On : 2023 03 14 09:16
// ***********************************************************************
// <copyright file="BrResponseParser.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
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@ -26,8 +26,8 @@
using Newtonsoft.Json;
namespace FCS.Lib.BrReg
{
namespace FCS.Lib.BrReg;
/// <summary>
/// Class BrResponseParser
/// </summary>
@ -43,4 +43,3 @@ namespace FCS.Lib.BrReg
return JsonConvert.DeserializeObject<BrCompanyModel>(responseData);
}
}
}

View file

@ -1,13 +1,13 @@
// ***********************************************************************
// Assembly : FCS.Lib.Virk
// Author : FH
// Created : 02-21-2022
// Assembly : FCS.Lib.BrReg
// Author : fhdk
// Created : 2022 12 17 13:33
//
// Last Modified By : FH
// Last Modified On : 04-06-2022
// Last Modified By: fhdk
// Last Modified On : 2023 03 14 09:16
// ***********************************************************************
// <copyright file="BrResponseView.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
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@ -26,8 +26,8 @@
using System.Net;
namespace FCS.Lib.BrReg
{
namespace FCS.Lib.BrReg;
/// <summary>
/// Class BrResponseView
/// </summary>
@ -37,13 +37,14 @@ namespace FCS.Lib.BrReg
/// http response status code
/// </summary>
public HttpStatusCode Code { get; set; }
/// <summary>
/// Flag indicating success
/// </summary>
public bool IsSuccessStatusCode { get; set; }
/// <summary>
/// Response message
/// </summary>
public string Message { get; set; } = "";
}
}

View file

@ -1,13 +1,13 @@
// ***********************************************************************
// Assembly : FCS.Lib.Virk
// Author : FH
// Created : 02-21-2022
// Assembly : FCS.Lib.BrReg
// Author : fhdk
// Created : 2022 12 17 13:33
//
// Last Modified By : FH
// Last Modified On : 04-06-2022
// Last Modified By: fhdk
// Last Modified On : 2023 03 14 09:16
// ***********************************************************************
// <copyright file="BrVatInfoMapper.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
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
@ -28,14 +28,13 @@ using System;
using System.Collections.Generic;
using FCS.Lib.Common;
namespace FCS.Lib.BrReg
{
namespace FCS.Lib.BrReg;
/// <summary>
/// Class BrVatInfoMapper
/// </summary>
public class BrVatInfoMapper
{
/// <summary>
/// Map BrCompanyModel to CRM
/// </summary>
@ -90,12 +89,10 @@ namespace FCS.Lib.BrReg
public VatStateInfo MapBrVatState(BrCompanyModel brCompany)
{
if (brCompany == null)
{
return new VatStateInfo
{
RequestDate = DateTime.Now
};
}
var c = new VatStateInfo
{
@ -120,4 +117,3 @@ namespace FCS.Lib.BrReg
return c;
}
}
}

View file

@ -17,5 +17,5 @@ using System.Runtime.InteropServices;
[assembly: ComVisible(false)]
[assembly: Guid("8D850197-78DB-4D16-A91F-E5BB6E8880A7")]
[assembly: AssemblyVersion("1.0.23023.0820")]
[assembly: AssemblyFileVersion("1.0.23023.0820")]
[assembly: AssemblyVersion("1.0.23077.1334")]
[assembly: AssemblyFileVersion("1.0.23077.1334")]