Validations for identifications of people and companies of Ecuador, an important requirement for electronic invoicing.
You can install the package via nuget:
dotnet add package Luilliarcec.Identification.Ecuador
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.
If you discover any security related issues, please email luilliarcec@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.