/netframework-ecuador-identification

Validations for identifications of people and companies of Ecuador, an important requirement for electronic invoicing.

Primary LanguageC#MIT LicenseMIT

Net Framework Ecuador Identification

latest version Azure DevOps tests (branch) downloads GitHub license

Validations for identifications of people and companies of Ecuador, an important requirement for electronic invoicing.

Installation

You can install the package via nuget:

dotnet add package Luilliarcec.Identification.Ecuador

Usage

You can use it by following this example

using Luilliarcec.Identification.Ecuador;
// ...

namespace Test
{
    public class Foo
    {
        public void Save(string identification_number) 
        {
            string code;

            if ((code = Identification.ValidateAllTypeIdentification(identification_number)) != null) 
            {
                Console.WriteLine(code);
            }
        }
    }
}

The static class exposes the following methods.:

Methods Return Description
ValidateFinalCustomer string or null Validates the Ecuadorian Final Consumer
ValidatePersonalIdentification string or null Validates the Ecuadorian Identification Card
ValidateNaturalRuc string or null Validates the Ecuadorian RUC of Natural Person
ValidatePublicRuc string or null Validates the Ecuadorian RUC of Public Companies
ValidatePrivateRuc string or null Validates the Ecuadorian RUC of Private Companies
ValidateRuc string or null Validates the Ecuadorian RUC
ValidateIsNaturalPerson string or null Validate that the number belongs to natural persons
ValidateIsJuridicalPerson string or null Validate that the number belongs to juridical persons
ValidateAllTypeIdentification string or null Validate the number with all types of documents

Follow these tips and have a happy code.

Security

If you discover any security related issues, please email luilliarcec@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.