Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.24 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.24 KB

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