update headers
This commit is contained in:
parent
cee66f9052
commit
cb06ebcd73
9 changed files with 339 additions and 305 deletions
|
@ -1,13 +1,13 @@
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// Assembly : FCS.Lib.BrReg
|
// Assembly : FCS.Lib.BrReg
|
||||||
// Author : FH
|
// Author : fhdk
|
||||||
// Created : 04-06-2022
|
// Created : 2022 12 17 13:33
|
||||||
//
|
//
|
||||||
// Last Modified By : FH
|
// Last Modified By: fhdk
|
||||||
// Last Modified On : 04-06-2022
|
// Last Modified On : 2023 03 14 09:16
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// <copyright file="BrAddressModel.cs" company="">
|
// <copyright file="BrAddressModel.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
|
||||||
|
@ -37,26 +37,32 @@ public class BrAddressModel
|
||||||
/// entity country
|
/// entity country
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Land { get; set; } = "";
|
public string Land { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity country code
|
/// entity country code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Landkode { get; set; } = "";
|
public string Landkode { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity zip code
|
/// entity zip code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Postnummer { get; set; } = "";
|
public string Postnummer { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity postal name
|
/// entity postal name
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Poststed { get; set; } = "";
|
public string Poststed { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity address
|
/// entity address
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<string> Adresse { get; set; } = new();
|
public List<string> Adresse { get; set; } = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity municipal
|
/// entity municipal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Kommune { get; set; } = "";
|
public string Kommune { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity municipal identification
|
/// entity municipal identification
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// Assembly : FCS.Lib.BrReg
|
// Assembly : FCS.Lib.BrReg
|
||||||
// Author : FH
|
// Author : fhdk
|
||||||
// Created : 04-06-2022
|
// Created : 2022 12 17 13:33
|
||||||
//
|
//
|
||||||
// Last Modified By : FH
|
// Last Modified By: fhdk
|
||||||
// Last Modified On : 04-06-2022
|
// Last Modified On : 2023 03 14 09:16
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// <copyright file="BrCompanyModel.cs" company="">
|
// <copyright file="BrCompanyModel.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
|
||||||
|
@ -24,8 +24,8 @@
|
||||||
// <summary></summary>
|
// <summary></summary>
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
|
|
||||||
namespace FCS.Lib.BrReg
|
namespace FCS.Lib.BrReg;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -35,38 +35,44 @@ namespace FCS.Lib.BrReg
|
||||||
/// Entity vat number
|
/// Entity vat number
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Organisasjonsnummer { get; set; } = "";
|
public string Organisasjonsnummer { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Entity name
|
/// Entity name
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Navn { get; set; } = "";
|
public string Navn { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Entity deletion date
|
/// Entity deletion date
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Slettedato { get; set; } = "";
|
public string Slettedato { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Entity business type
|
/// Entity business type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public BrCompanyTypeModel Organisasjonsform { get; set; } = new();
|
public BrCompanyTypeModel Organisasjonsform { get; set; } = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity postal address
|
/// entity postal address
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public BrAddressModel Postadresse { get; set; } = new();
|
public BrAddressModel Postadresse { get; set; } = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity business address
|
/// entity business address
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public BrAddressModel Forretningsadresse { get; set; } = new();
|
public BrAddressModel Forretningsadresse { get; set; } = new();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity out-of-business flag
|
/// entity out-of-business flag
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool Konkurs { get; set; }
|
public bool Konkurs { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity to be closed flag
|
/// entity to be closed flag
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool UnderAvvikling { get; set; }
|
public bool UnderAvvikling { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// entity to be force closed
|
/// entity to be force closed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool UnderTvangsavviklingEllerTvangsopplosning { get; set; }
|
public bool UnderTvangsavviklingEllerTvangsopplosning { get; set; }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -1,13 +1,13 @@
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// Assembly : FCS.Lib.BrReg
|
// Assembly : FCS.Lib.BrReg
|
||||||
// Author : FH
|
// Author : fhdk
|
||||||
// Created : 04-06-2022
|
// Created : 2022 12 17 13:33
|
||||||
//
|
//
|
||||||
// Last Modified By : FH
|
// Last Modified By: fhdk
|
||||||
// Last Modified On : 04-06-2022
|
// Last Modified On : 2023 03 14 09:16
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// <copyright file="BrCompanyTypeModel.cs" company="">
|
// <copyright file="BrCompanyTypeModel.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
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
// </copyright>
|
// </copyright>
|
||||||
// <summary></summary>
|
// <summary></summary>
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
|
|
||||||
namespace FCS.Lib.BrReg;
|
namespace FCS.Lib.BrReg;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -34,10 +35,12 @@ public class BrCompanyTypeModel
|
||||||
/// BrReg business code
|
/// BrReg business code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Kode { get; set; } = "";
|
public string Kode { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// BrReg description
|
/// BrReg description
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Beskrivelse { get; set; } = "";
|
public string Beskrivelse { get; set; } = "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// BrReg discontinued
|
/// BrReg discontinued
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// Assembly : FCS.Lib.Virk
|
// Assembly : FCS.Lib.BrReg
|
||||||
// Author : FH
|
// Author : fhdk
|
||||||
// Created : 02-21-2022
|
// Created : 2022 12 17 13:33
|
||||||
//
|
//
|
||||||
// Last Modified By : FH
|
// Last Modified By: fhdk
|
||||||
// Last Modified On : 04-06-2022
|
// Last Modified On : 2023 03 14 09:16
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// <copyright file="BrHttpRequest.cs" company="FCS">
|
// <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
|
// 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
|
||||||
|
@ -27,8 +27,8 @@
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace FCS.Lib.BrReg
|
namespace FCS.Lib.BrReg;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class BrHttpRequest
|
/// Class BrHttpRequest
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -58,5 +58,3 @@ namespace FCS.Lib.BrReg
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
|
@ -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>
|
/// <summary>
|
||||||
/// BrRegQuery
|
/// BrRegQuery
|
||||||
|
@ -9,5 +35,4 @@ public class BrRegQuery
|
||||||
/// Vat number
|
/// Vat number
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VatNumber { get; set; }
|
public string VatNumber { get; set; }
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,13 +1,13 @@
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// Assembly : FCS.Lib.Virk
|
// Assembly : FCS.Lib.BrReg
|
||||||
// Author : FH
|
// Author : fhdk
|
||||||
// Created : 02-21-2022
|
// Created : 2022 12 17 13:33
|
||||||
//
|
//
|
||||||
// Last Modified By : FH
|
// Last Modified By: fhdk
|
||||||
// Last Modified On : 04-06-2022
|
// Last Modified On : 2023 03 14 09:16
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// <copyright file="BrResponseParser.cs" company="FCS">
|
// <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
|
// 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
|
||||||
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace FCS.Lib.BrReg
|
namespace FCS.Lib.BrReg;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class BrResponseParser
|
/// Class BrResponseParser
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -43,4 +43,3 @@ namespace FCS.Lib.BrReg
|
||||||
return JsonConvert.DeserializeObject<BrCompanyModel>(responseData);
|
return JsonConvert.DeserializeObject<BrCompanyModel>(responseData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
|
@ -1,13 +1,13 @@
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// Assembly : FCS.Lib.Virk
|
// Assembly : FCS.Lib.BrReg
|
||||||
// Author : FH
|
// Author : fhdk
|
||||||
// Created : 02-21-2022
|
// Created : 2022 12 17 13:33
|
||||||
//
|
//
|
||||||
// Last Modified By : FH
|
// Last Modified By: fhdk
|
||||||
// Last Modified On : 04-06-2022
|
// Last Modified On : 2023 03 14 09:16
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// <copyright file="BrResponseView.cs" company="FCS">
|
// <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
|
// 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
|
||||||
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
|
||||||
namespace FCS.Lib.BrReg
|
namespace FCS.Lib.BrReg;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class BrResponseView
|
/// Class BrResponseView
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -37,13 +37,14 @@ namespace FCS.Lib.BrReg
|
||||||
/// http response status code
|
/// http response status code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public HttpStatusCode Code { get; set; }
|
public HttpStatusCode Code { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Flag indicating success
|
/// Flag indicating success
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool IsSuccessStatusCode { get; set; }
|
public bool IsSuccessStatusCode { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Response message
|
/// Response message
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Message { get; set; } = "";
|
public string Message { get; set; } = "";
|
||||||
}
|
}
|
||||||
}
|
|
|
@ -1,13 +1,13 @@
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// Assembly : FCS.Lib.Virk
|
// Assembly : FCS.Lib.BrReg
|
||||||
// Author : FH
|
// Author : fhdk
|
||||||
// Created : 02-21-2022
|
// Created : 2022 12 17 13:33
|
||||||
//
|
//
|
||||||
// Last Modified By : FH
|
// Last Modified By: fhdk
|
||||||
// Last Modified On : 04-06-2022
|
// Last Modified On : 2023 03 14 09:16
|
||||||
// ***********************************************************************
|
// ***********************************************************************
|
||||||
// <copyright file="BrVatInfoMapper.cs" company="FCS">
|
// <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
|
// 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
|
||||||
|
@ -28,14 +28,13 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using FCS.Lib.Common;
|
using FCS.Lib.Common;
|
||||||
|
|
||||||
namespace FCS.Lib.BrReg
|
namespace FCS.Lib.BrReg;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Class BrVatInfoMapper
|
/// Class BrVatInfoMapper
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class BrVatInfoMapper
|
public class BrVatInfoMapper
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Map BrCompanyModel to CRM
|
/// Map BrCompanyModel to CRM
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -90,12 +89,10 @@ namespace FCS.Lib.BrReg
|
||||||
public VatStateInfo MapBrVatState(BrCompanyModel brCompany)
|
public VatStateInfo MapBrVatState(BrCompanyModel brCompany)
|
||||||
{
|
{
|
||||||
if (brCompany == null)
|
if (brCompany == null)
|
||||||
{
|
|
||||||
return new VatStateInfo
|
return new VatStateInfo
|
||||||
{
|
{
|
||||||
RequestDate = DateTime.Now
|
RequestDate = DateTime.Now
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
var c = new VatStateInfo
|
var c = new VatStateInfo
|
||||||
{
|
{
|
||||||
|
@ -120,4 +117,3 @@ namespace FCS.Lib.BrReg
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
|
@ -17,5 +17,5 @@ using System.Runtime.InteropServices;
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
[assembly: Guid("8D850197-78DB-4D16-A91F-E5BB6E8880A7")]
|
[assembly: Guid("8D850197-78DB-4D16-A91F-E5BB6E8880A7")]
|
||||||
|
|
||||||
[assembly: AssemblyVersion("1.0.23023.0820")]
|
[assembly: AssemblyVersion("1.0.23077.1334")]
|
||||||
[assembly: AssemblyFileVersion("1.0.23023.0820")]
|
[assembly: AssemblyFileVersion("1.0.23077.1334")]
|
Loading…
Reference in a new issue