Skip to content

masterzdran/document-number-validator

Repository files navigation

DocumentNumber.Portugal document-number-validator

An set of libraries to validate the document number for a particular document and particular country.

Validators

  • Portugal NIF Number Validator
  • Portugal NISS Number Validator
  • Portugal Citizen Card Number Validator
  • Portugal NIB Validator
  • International Bank Account Number (IBAN) Validator
  • AmericanExpress Validator
  • Maestro Validator
  • MaestroUK Validator
  • Mastercard Validator
  • VISA Validator
  • VISAElectron Validator

Generators (for testing purposes)

  • Portugal NIF Number Generator
  • Portugal NISS Number Generator
  • Portugal Citizen Card Number Generator
  • AmericanExpress Generator
  • Maestro Generator
  • MaestroUK Generator
  • Mastercard Generator
  • VISA Generator
  • VISAElectron Generator
  • BankAccountNumber Generator

Changelog

Change log.

Usage

Check the unit tests projects, under /tests/ for usage,

    IDocumentNumberValidator visaPaymentCardValidator = new VisaPaymentCardValidator();
    var result = visaPaymentCardValidator.Validate(visacard);
      IDocumentNumberValidator validator = new NifValidator();
      bool validationResult = validator.Validate(nif);

Contributors

Attribution

Icons made by Pixel perfect from www.flaticon.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages