Walter.Vat 2023.11.13.1117

Prefix Reserved
dotnet add package Walter.Vat --version 2023.11.13.1117
                    
NuGet\Install-Package Walter.Vat -Version 2023.11.13.1117
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Walter.Vat" Version="2023.11.13.1117" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Walter.Vat" Version="2023.11.13.1117" />
                    
Directory.Packages.props
<PackageReference Include="Walter.Vat" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Walter.Vat --version 2023.11.13.1117
                    
#r "nuget: Walter.Vat, 2023.11.13.1117"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Walter.Vat@2023.11.13.1117
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Walter.Vat&version=2023.11.13.1117
                    
Install as a Cake Addin
#tool nuget:?package=Walter.Vat&version=2023.11.13.1117
                    
Install as a Cake Tool

About this package

Allows you to query the VAT interface for the European union or the united kingdom


var vies = await Walter.Vat.EuropeanVatInformationQuery.GetAsync("LU12345678").ConfigureAwait(false);

You can do UK VAT validation (even after brexit) using UK as county code and the 9 or 12 number VAT ID


var vies = await Walter.Vat.EuropeanVatInformationQuery.GetAsync("UK123456789").ConfigureAwait(false);

You could integrate this in a controller using the Walter.Bom NuGet package testing if a country is in the EU


[HttpPost]
[ValidateAntiForgeryToken]
public async Task<IActionResult> ProcessOrder(Order model)
{
    if (!ModelState.IsValid)
        return View(model);

    if (model.Country.IsInTheEuropeanUnion())
    {
        var vies = await Walter.Vat.EuropeanVatInformationQuery.GetAsync(model.VATNumber).ConfigureAwait(false);
        if (!vies.IsValid || !vies.CompanyName.Equals(model.CompanyName, StringComparison.OrdinalIgnoreCase))
        {
            if (!vies.IsValid)
            {
                if (vies.Exception is null)
                {
                    _logger?.Lazy().LogWarning(vies.Exception, "Query European VAT failed with a for {vat} in {country}", model.VATNumber, model.Country);
                }
                else
                {
                    _logger?.Lazy().LogWarning(vies.Exception, "Query European VAT failed with a {exception} exception error {message}", vies.Exception.GetType().Name, vies.Exception.Message);
                }

                ModelState.AddModelError(nameof(model.VATNumber), "The VAT number is not valid");
            }

            if (!vies.CompanyName.Equals(model.CompanyName, StringComparison.OrdinalIgnoreCase))
            {
                ModelState.AddModelError(nameof(model.VATNumber), $"The VAT ID provided is belongs to another company than the one you specified, did you enter the wrong ID?");
                if (vies.CompanyName.Contains(model.CompanyName, StringComparison.OrdinalIgnoreCase))
                {
                    ModelState.AddModelError(nameof(model.CompanyName), $"The VAT number provided is belongs to {vies.CompanyName}, this sounds like {model.CompanyName} but you should update it to avoid complications.");
                }
                else
                {
                    ModelState.AddModelError(nameof(model.CompanyName), $"The VAT number provided is belongs to {vies.CompanyName} did you provide the wrong name?");
                }
            }

            return View(model);
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2023.11.13.1117 1,178 11/13/2023
2023.10.26.1502 191 10/29/2023
2023.10.22.845 198 10/22/2023
2023.10.12.1926 199 10/12/2023
2023.9.14.812 216 9/14/2023
2023.9.7.1748 229 9/7/2023
2023.9.7.1241 185 9/7/2023
2023.9.6.1001 201 9/6/2023
2023.9.5.1246 229 9/5/2023
2023.9.5.1032 203 9/5/2023
2023.8.31.1522 225 8/31/2023
2023.8.29.1040 235 8/29/2023
2023.8.17.901 233 8/17/2023
2023.8.9.1314 222 8/9/2023
2023.8.2.750 274 8/2/2023
2023.7.12.830 260 7/12/2023
2023.7.5.1419 257 7/6/2023
2023.6.14.1628 244 6/14/2023
2023.6.11.1304 247 6/11/2023
2023.5.30.1640 272 5/30/2023
2023.5.4.1552 280 5/4/2023
2023.5.1.1524 308 5/1/2023
2023.4.29.910 298 4/29/2023
2023.4.12.1236 321 4/12/2023
2023.3.22.1456 366 3/22/2023
2023.3.14.1356 336 3/14/2023
2023.3.1.810 357 3/1/2023
2023.2.25.11857 370 2/25/2023
2023.2.22.27 399 2/22/2023
2023.2.15.1413 385 2/15/2023
2023.2.11.1628 394 2/11/2023
2023.1.11.534 458 1/11/2023
2022.12.30.711 481 12/30/2022
2022.12.15.1108 440 12/15/2022
2022.12.14.648 413 12/14/2022
2022.11.27.1059 458 11/27/2022
2022.11.21.338 506 11/21/2022
2022.11.14.1819 479 11/14/2022
2022.11.13.917 499 11/14/2022
2022.10.31.740 506 11/1/2022
2022.10.15.652 579 10/15/2022
2022.10.1.810 566 10/1/2022
2022.9.26.1444 583 9/26/2022
2022.9.14.1508 641 9/14/2022
2022.9.14.809 666 9/14/2022
2022.9.8.1009 594 9/8/2022
2022.8.20.1007 600 8/20/2022
2022.8.1.1 705 7/31/2022
2022.7.1300 657 7/1/2022
2022.7.31.1016 576 7/31/2022
2022.7.15.841 586 7/15/2022
2022.6.21.647 611 6/21/2022
2022.5.18.638 593 5/19/2022
2022.5.16.853 618 5/19/2022
2022.5.16.816 628 5/16/2022
2022.5.4.1010 608 5/4/2022
2022.4.10.947 662 4/10/2022
2022.4.10.925 621 4/10/2022
2022.4.10.828 668 4/10/2022
2022.4.1.1545 680 4/1/2022
2022.3.31.823 646 3/31/2022
2022.3.26.1103 655 3/26/2022
2022.3.26.820 581 3/26/2022
2022.3.25.840 616 3/26/2022
2022.3.24.1701 636 3/25/2022
2022.2.16.1131 662 2/17/2022
2022.2.16.834 674 2/17/2022
2022.2.5.1114 663 2/5/2022
2022.1.17.1158 662 1/17/2022
2022.1.10.1505 677 1/10/2022
2022.1.10.537 483 1/10/2022
2022.1.5.1139 468 1/8/2022
2021.12.28.1452 523 12/28/2021
2021.12.16.812 529 12/16/2021
2021.11.23.1528 6,734 11/24/2021
2021.11.21.925 464 11/22/2021
2021.11.19.847 555 11/19/2021
2021.11.18.1824 498 11/16/2021
2021.11.10.852 487 11/10/2021
2021.11.9.2021 520 11/9/2021
2021.11.8.2109 527 11/9/2021
2021.11.8.1612 509 11/8/2021
2021.11.7.1021 486 11/8/2021
2021.11.3.1612 496 11/4/2021
2021.11.1.1102 548 11/1/2021
2021.10.25.1206 587 10/25/2021
2021.10.23.1310 540 10/25/2021
2021.10.19.1522 555 10/19/2021
2021.10.16.1325 553 10/18/2021
2021.10.6.1546 845 10/6/2021
2021.10.5.1450 562 10/5/2021
2021.10.4.1155 593 10/5/2021
2021.10.4.807 559 10/5/2021
2021.10.1.753 539 10/1/2021
2021.9.29.1127 544 9/29/2021
2021.9.27.1005 574 9/28/2021
2021.9.26.1913 563 9/26/2021
2021.9.19.1015 576 9/19/2021
2021.9.17.1702 545 9/17/2021
2021.9.17.1449 562 9/17/2021
2021.9.13.1600 549 9/13/2021
2021.9.12.1100 550 9/13/2021
2021.9.11.2004 591 9/11/2021
2021.9.9.1110 571 9/9/2021
2021.9.7.1901 591 9/8/2021
2021.9.6.1518 566 9/7/2021
2021.9.4.1124 535 9/4/2021
2021.9.2.708 570 9/4/2021
2021.9.0.1259 541 9/2/2021
2021.8.2100 538 8/23/2021
2021.8.22.900 525 8/22/2021
2021.8.18.1500 531 8/18/2021
2021.8.18.930 545 8/18/2021
2021.8.14.1600 514 8/16/2021
2021.8.14.829 521 8/14/2021
2021.8.8.1612 544 8/8/2021
2021.8.8.1138 515 8/8/2021
2021.8.6.1044 582 8/6/2021
2021.8.4.1355 574 8/5/2021
2021.7.30.2118 605 7/31/2021
2021.7.27.926 549 7/28/2021
2021.7.23.931 506 7/26/2021
2021.7.22.1456 546 7/23/2021
2021.7.15.1547 545 7/15/2021
2021.7.13.812 594 7/13/2021
2021.7.8.1527 680 7/10/2021
2021.7.5.1649 562 7/5/2021
2021.6.29.1453 610 6/30/2021
2021.6.26.1753 602 6/27/2021
2021.6.25.1849 566 6/25/2021
2021.6.24.1518 581 6/24/2021
2021.6.20.729 581 6/20/2021
2021.6.15.2006 560 6/15/2021
2021.6.14.2025 571 6/15/2021
2021.6.13.2035 563 6/14/2021
2021.6.12.1154 536 6/13/2021
2021.6.9.1120 538 6/9/2021
2021.6.7.2103 513 6/7/2021
2021.6.3.1509 619 6/3/2021
2021.5.31.1533 631 5/31/2021
2021.5.31.1415 592 5/31/2021
2021.5.25.1732 576 5/25/2021
2021.5.24.1128 608 5/24/2021
2021.5.24.1019 558 5/24/2021
2021.5.12.1054 555 5/12/2021
2021.5.12.637 536 5/12/2021
2021.5.10.1442 532 5/11/2021
2021.5.8.1226 543 5/8/2021
2021.5.6.2037 634 5/6/2021
2021.5.5.1901 576 5/6/2021
2021.5.3.1621 534 5/4/2021
2021.5.1.905 592 5/1/2021
2021.4.28.1511 537 4/28/2021
2021.4.20.1520 545 4/21/2021
2021.4.16.738 552 4/21/2021
2021.4.14.1216 534 4/16/2021
2021.4.9.1538 558 4/13/2021
2021.4.8.947 585 4/13/2021
2021.4.6.1235 547 4/6/2021
2021.4.5.1653 585 4/5/2021
2021.4.1.913 562 4/1/2021
2021.3.31.2003 577 4/1/2021
2021.3.18.1622 569 3/18/2021
2021.3.3.1259 606 3/3/2021
2021.3.2.1415 562 3/2/2021
2021.3.1.11 609 2/28/2021
2021.3.1.1 577 2/27/2021
2021.3.1 565 2/27/2021
2021.2.23.6 604 2/23/2021
2021.2.21.1 600 2/21/2021
2021.2.20.1 626 2/20/2021
2021.2.19.2 569 2/19/2021
2021.2.18.6 568 2/19/2021
2021.2.17.1 596 2/17/2021
2021.2.16.1 577 2/16/2021
2021.2.15.3 578 2/15/2021
2021.2.15.1 580 2/14/2021
2021.2.14.3 556 2/14/2021
2021.2.12.6 534 2/12/2021
2021.2.12.2 558 2/12/2021
2021.2.11.1 600 2/11/2021
2021.2.10.1 584 2/10/2021
2021.2.8.1 561 2/9/2021
2021.2.7.1 599 2/6/2021
2020.12.27.6 666 12/27/2020
2020.12.27.1 641 12/27/2020
2020.12.26.7 656 12/27/2020
2020.12.26.5 600 12/27/2020
2020.12.26.3 643 12/27/2020
2020.12.19.1 751 12/19/2020
2020.12.16.1 616 12/16/2020
2020.12.15.1 606 12/15/2020
2020.12.14.5 645 12/14/2020
2020.12.14.4 649 12/14/2020
2020.12.14.3 648 12/14/2020
2020.12.5 705 12/5/2020
2020.12.4.1 618 12/4/2020
2020.12.4 646 12/4/2020
2020.12.2.3 707 12/2/2020
2020.12.1 666 12/1/2020
2020.11.28 682 11/28/2020
2020.11.27.2 664 11/27/2020
2020.11.25.1 633 11/25/2020
2020.11.22.3 893 11/23/2020
2020.11.20.1 696 11/21/2020
2020.11.19.3 637 11/19/2020
2020.11.18.1 695 11/18/2020
2020.11.15.1 668 11/15/2020
2020.11.11.1 667 11/11/2020
2020.11.8.1 9,446 11/8/2020
2020.11.5.1 594 11/5/2020
2020.11.3.1 641 11/3/2020
2020.10.30.1 712 11/1/2020
2020.10.15.3 655 10/15/2020
2020.10.15.2 638 10/15/2020
2020.10.14.1 663 10/14/2020
2020.10.13.1 631 10/13/2020
2020.10.12.2 720 10/12/2020
2020.10.12.1 644 10/12/2020
2020.10.10.1 791 10/10/2020
2020.10.9.6 626 10/9/2020
2020.10.9.5 651 10/9/2020
2020.10.9.2 663 10/9/2020
2020.10.9.1 637 10/9/2020
2020.10.6.8 706 10/7/2020
2020.10.6.7 709 10/7/2020
2020.10.6.6 669 10/7/2020
2020.10.6.5 700 10/7/2020
2020.10.6.4 666 10/7/2020
2020.10.6.3 712 10/7/2020
2020.10.6.1 666 10/7/2020
2020.10.5.1 679 10/6/2020
2020.10.1.3 602 10/1/2020
2020.10.1.2 667 10/1/2020
2020.10.1.1 638 10/1/2020
2020.9.29.10 692 9/29/2020
2020.9.29.9 719 9/29/2020
2020.9.28.1 657 9/28/2020
2020.9.25.1 821 9/26/2020
2020.9.24.2 687 9/24/2020
2020.9.17.2 666 9/17/2020
2020.9.16 714 9/16/2020
2020.9.15 721 9/16/2020
2020.9.14 697 9/14/2020

Major releases that add functionality other than optimization and minor bug fixing
     12 October 2023
- Build using SDK-7.0.402 and SDK-6.0.415
- Update Package references
     
     
     14 September 2023
- SDK 7.0.401/SDK 6.0.414
- Update to new NuGet Packages
     
     12 July 2023
     - Update to SDK SP 6.0.412. and 7.0.306
     - Update package references
     
14 June 2023
- Update due to SDK Update 7.0.304, and 6.0.410

5 May 2023
- Update due to new Obfuscation tool update

12 April 2023
- Update to a new .net 7.0.5 SDK release

14 Mar 2023
- Update NuGet package refferences

22 Feb 2023
- Axel Imani Release (Go live)

15 February 2023
- Update to .net 6.0.406  and 7.0.3

11 January 2023
- update to 7.0.2, 6.0.13 SDK and build tools for 17.4.4

14 December 2022
- Update to .Net SDK 3.1.426, 6.0.404 and 7.0.101

7 December 2022
- re-enable support for .net standard 2.1

14 November migrate to .net 6 and 7

15 November 2022
- Update NuGet package references

1 October 2022
- Update build with new SDK
- Update code sign certificates

14 September 2022
- Update to include new package 6.0.X and Microsoft CVE-2022-38013

02 September 2022
- Please make sure to update servers using this packages due to a security bug in .net
> System.Security.Cryptography.Xml      4.5.0      Moderate   https://github.com/advisories/GHSA-2m65-m22p-9wjw
     > System.Text.Encodings.Web             4.5.0      Critical   https://github.com/advisories/GHSA-ghhp-997w-qr28

15 June 2022
- Update to support .net 6.0.7 and 3.1.27
- Update package references

21 June 2022
- Update package references
- at native support for .net 6

4 May 2022
- Update NuGet References

15 March 2022
- update to 6.0.3


16 December 2021
- Update to .Net SDK update 14 December for .NET CORE 3.1.416, and .NET 5.0.404 and 6.0.101

9 November 2021
- Fix package dependency on vulnerable packages from Microsoft by upgrading vulnerable packages

8 November 2021
- Update to .Net NuGet packages .NET 6.0.0, .NET 5.0.403 and core 3.1.415

11 October 2021
- CodeSign the binaries as well as the NuGet package for executing in a trust-platform
- Add support for VAT lookup in Scotland,Norther island and England via country code GeoLocation.UnitedKingdom

19 September
- Update NuGet packages release for .Net 5.0.10

8 Aug 2021
- update to .NET 6.0 SDK (v6.0.100-preview.6)

30 June 2021
- Add .Net 6.0 binaries to the nuget package

15 June 2021
- Update to .Net Core 3.1.17 and .Net 5.0.8 SDK

09 June 2021
- Update to .Net SDK 5.0.301 and 3.1.410

07 June 2021
- Update NuGet Package references

25 May 2021
- Update after .net package updates

12 April 2021
- Update to new code base after .net security violation fix

05 April 2021
- update package references
- Add support for .Net Standard 2.0

22 March 2021
- Performance update

05 March 2021
- Update package reference
- Making it easier to integrate in Walter.Web.Firewall module

19  February 2021
- Add support for 32 bit
- Add AditLog storing the last 50 records

12 February 2021
- Framework extension changes
- Update package references

25 January 2021
- Update package references

02 January 2021
- Updated terms and conditions to REL. 2021.01.02

29 December 2020
- Update package references

19-20 December 2020
- Update package references

14 December 2020
- Update package references

11 December 2020
- Update package references
- Compile with Language version 9.0

04 December 2020
-Update package references

22 November 2020
- Update compiler hints improving .net Core 3.1 and .Net 5.0 compiled binaries

11 November 2020
- Update packages and support .Net 5.0

14 October 2020
- Update to .net core 3.1.4

05 October 2020
- Update NuGet Package References
- Update EULA

26 September 2020
- Add json constructor for ViesReply for easy json serialization

17 September 2020
- Add Exception to View response dataset documenting the reason of a failure without raising it

15 September 2020
- updated documentation
https://firewallapi.asp-waf.com/?topic=html/T-Walter.Vat.EuropeanVatInformationQuery.htm
14 September 2020 initial release