Skip to content

develr/dokument-validate

Repository files navigation

Dokument Validate

Download codecov

Requirements

JDK 1.8 or greater

How to use

  • Gradle

Add jCenter repository on your build.gradle, and add implementation of dokument.

repositories {
   jcenter()
}


dependencies {
  implementation 'br.eng.r2a.dokument:core:{dokument_version}'
}

How to use

To use this library, you must instanciate the class DokumentValidator, passing the document value and one of Documents objects.

  val dokument = DokumentValidator("123123123", CPF)
  print(dokument.validate())

or:

  val dokument = DokumentValidator(CPF)
  print(dokument.validate("123123123"))

List of current supported documents by countries

  • Brazil
    • CPF - br.eng.r2a.dokument.documents.brazil.CPF
    • CNPJ - br.eng.r2a.dokument.documents.brazil.CNPJ
    • PIS - br.eng.r2a.dokument.documents.brazil.PIS

About

Kotlin implementation for documents validations

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages