Ejemplo n.º 1
0
        private static void Main(/*string[] args*/)
        {
            var ls          = new ConsoleLogger();
            var viesService = new ViesService(ls);
            var checkVat    = viesService.CheckVatAsync("BE", "0459415853").Result;

            if (checkVat.Failure)
            {
                Console.WriteLine(checkVat.ErrorMessage);
            }
            else
            {
                var viesRes = checkVat.Data;
                Console.WriteLine(viesRes.Valid);
                Console.WriteLine(viesRes.CountryCode);
                Console.WriteLine(viesRes.VatNumber);
                Console.WriteLine(viesRes.Name);
                Console.WriteLine(viesRes.Address);
            }
        }
Ejemplo n.º 2
0
 private static async Task Main(string[] args) =>
 //_ = await Vies.Core.Services.ViesService.GetInstance().CheckVatAsync(countryCode: "PL", vatNumber: "5731029185");
 _ = await ViesService.GetInstance().CheckVatApproxAsync("PL", "5731029185", "PL", "5731029185");