JDK 1.8 or greater
- Gradle
Add jCenter repository on your build.gradle, and add implementation of dokument.
repositories {
jcenter()
}
dependencies {
implementation 'br.eng.r2a.dokument:core:{dokument_version}'
}
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"))
- 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
- CPF -