Class DocumentRestrictionsFilter.Builder
java.lang.Object
com.yoti.api.client.docs.session.create.filters.DocumentRestrictionsFilter.Builder
- Enclosing class:
- DocumentRestrictionsFilter
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets the inclusion not to allow documents listed inDocumentRestrictionSets the inclusion to allow documents listed inDocumentRestrictionwithAllowExpiredDocuments(boolean allowExpiredDocuments) Sets the flag to allow/disallow expired documentswithAllowNonLatinDocuments(boolean allowNonLatinDocuments) Sets the flag to allow/disallow non latin documentswithDocumentRestriction(DocumentRestriction documentRestriction) Sets the document restrictions by providedDocumentRestrictionwithDocumentRestriction(List<String> countryCodes, List<String> documentTypes) Sets the document restrictions by country codes and document types
-
Method Details
-
forWhitelist
Sets the inclusion to allow documents listed inDocumentRestriction- Returns:
- the builder
-
forBlacklist
Sets the inclusion not to allow documents listed inDocumentRestriction- Returns:
- the builder
-
withDocumentRestriction
public DocumentRestrictionsFilter.Builder withDocumentRestriction(List<String> countryCodes, List<String> documentTypes) Sets the document restrictions by country codes and document types- Parameters:
countryCodes- the list of country codesdocumentTypes- the list of document types- Returns:
- the builder
-
withDocumentRestriction
public DocumentRestrictionsFilter.Builder withDocumentRestriction(DocumentRestriction documentRestriction) Sets the document restrictions by providedDocumentRestriction- Parameters:
documentRestriction- theDocumentRestriction- Returns:
- the builder
-
withAllowNonLatinDocuments
public DocumentRestrictionsFilter.Builder withAllowNonLatinDocuments(boolean allowNonLatinDocuments) Sets the flag to allow/disallow non latin documents- Parameters:
allowNonLatinDocuments- the flag- Returns:
- the builder
-
withAllowExpiredDocuments
Sets the flag to allow/disallow expired documents- Parameters:
allowExpiredDocuments- the flag- Returns:
- the builder
-
build
-