Skip to content

Commit

Permalink
fix: set document step
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiankrein committed Sep 20, 2024
1 parent 7d80d1f commit af0f292
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions caf-src/android/CombateAFraudeModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,22 @@ public void documentDetector(String mobileToken, String documentType) {
DocumentDetector.Builder documentDetectorBuilder = new DocumentDetector.Builder(mobileToken);

if (documentType.equals("CNH")) {
documentDetectorBuilder.setDocumentSteps(new DocumentDetectorStep[]{
documentDetectorBuilder.setDocumentCaptureFlow(new DocumentDetectorStep[]{
new DocumentDetectorStep(Document.CNH_FRONT),
new DocumentDetectorStep(Document.CNH_BACK)
});
} else if (documentType.equals("RG")) {
documentDetectorBuilder.setDocumentSteps(new DocumentDetectorStep[]{
documentDetectorBuilder.setDocumentCaptureFlow(new DocumentDetectorStep[]{
new DocumentDetectorStep(Document.RG_FRONT),
new DocumentDetectorStep(Document.RG_BACK)
});
} else if (documentType.equals("RNE")) {
documentDetectorBuilder.setDocumentSteps(new DocumentDetectorStep[]{
documentDetectorBuilder.setDocumentCaptureFlow(new DocumentDetectorStep[]{
new DocumentDetectorStep(Document.RNE_FRONT),
new DocumentDetectorStep(Document.RNE_BACK)
});
} else if (documentType.equals("CRLV")) {
documentDetectorBuilder.setDocumentSteps(new DocumentDetectorStep[]{
documentDetectorBuilder.setDocumentCaptureFlow(new DocumentDetectorStep[]{
new DocumentDetectorStep(Document.CRLV)
});
}
Expand Down

0 comments on commit af0f292

Please sign in to comment.