Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class AmlAddress {
@JsonProperty("country")
private final String country;

public AmlAddress(String postCode, String country) {
private AmlAddress(String postCode, String country) {
this.postCode = postCode;
this.country = country;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class AmlProfile {
@JsonProperty("address")
private final AmlAddress amlAddress;

AmlProfile(String givenNames, String familyName, String ssn, AmlAddress amlAddress) {
private AmlProfile(String givenNames, String familyName, String ssn, AmlAddress amlAddress) {
this.givenNames = givenNames;
this.familyName = familyName;
this.ssn = ssn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class ImportTokenPayload {
@JsonProperty("ttl")
private Integer ttl;

ImportTokenPayload(Integer ttl) {
private ImportTokenPayload(Integer ttl) {
this.ttl = ttl;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class NotificationConfig {
@JsonProperty("topics")
private final List<String> topics;

NotificationConfig(String authToken, String authType, String endpoint, List<String> topics) {
private NotificationConfig(String authToken, String authType, String endpoint, List<String> topics) {
this.authToken = authToken;
this.authType = authType;
this.endpoint = endpoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class SdkConfig {
@JsonProperty("suppressed_screens")
private final List<String> suppressedScreens;

SdkConfig(String allowedCaptureMethods,
private SdkConfig(String allowedCaptureMethods,
String primaryColour,
String primaryColourDarkMode,
String secondaryColour,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class SessionSpec {
@JsonProperty("required_share_codes")
private final List<RequiredShareCodePayload> requiredShareCodes;

SessionSpec(Integer clientSessionTokenTtl,
private SessionSpec(Integer clientSessionTokenTtl,
Integer resourcesTtl,
ImportTokenPayload importToken,
String userTrackingId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class SubjectPayload {
@JsonProperty("subject_id")
private final String subjectId;

SubjectPayload(String subjectId) {
private SubjectPayload(String subjectId) {
this.subjectId = subjectId;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class RequestedCustomAccountWatchlistAdvancedCaConfig extends RequestedWa
@JsonProperty("client_ref")
private final String clientRef;

RequestedCustomAccountWatchlistAdvancedCaConfig(Boolean removeDeceased,
private RequestedCustomAccountWatchlistAdvancedCaConfig(Boolean removeDeceased,
Boolean shareUrl,
RequestedCaSources sources,
RequestedCaMatchingStrategy matchingStrategy,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class RequestedDocumentAuthenticityCheck extends RequestedCheck<Requested

private final RequestedDocumentAuthenticityConfig config;

RequestedDocumentAuthenticityCheck(RequestedDocumentAuthenticityConfig config) {
private RequestedDocumentAuthenticityCheck(RequestedDocumentAuthenticityConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class RequestedDocumentSchemeValidityCheck extends RequestedCheck<Request

private final RequestedDocumentSchemeValidityConfig config;

RequestedDocumentSchemeValidityCheck(RequestedDocumentSchemeValidityConfig config) {
private RequestedDocumentSchemeValidityCheck(RequestedDocumentSchemeValidityConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class RequestedFaceMatchCheck extends RequestedCheck<RequestedFaceMatchCo

private final RequestedFaceMatchConfig config;

RequestedFaceMatchCheck(RequestedFaceMatchConfig config) {
private RequestedFaceMatchCheck(RequestedFaceMatchConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class RequestedIbvVisualReviewCheck extends RequestedCheck<RequestedIbvVi

private final RequestedIbvVisualReviewConfig config;

RequestedIbvVisualReviewCheck(RequestedIbvVisualReviewConfig config) {
private RequestedIbvVisualReviewCheck(RequestedIbvVisualReviewConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class RequestedIdDocumentComparisonCheck extends RequestedCheck<Requested

private final RequestedIdDocumentComparisonConfig config;

RequestedIdDocumentComparisonCheck(RequestedIdDocumentComparisonConfig config) {
private RequestedIdDocumentComparisonCheck(RequestedIdDocumentComparisonConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class RequestedLivenessCheck extends RequestedCheck<RequestedLivenessConf

private final RequestedLivenessConfig config;

RequestedLivenessCheck(RequestedLivenessConfig config) {
private RequestedLivenessCheck(RequestedLivenessConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class RequestedProfileDocumentMatchCheck extends RequestedCheck<Requested

private final RequestedProfileDocumentMatchConfig config;

RequestedProfileDocumentMatchCheck(RequestedProfileDocumentMatchConfig config) {
private RequestedProfileDocumentMatchCheck(RequestedProfileDocumentMatchConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class RequestedThirdPartyIdentityCheck extends RequestedCheck<RequestedTh

private final RequestedThirdPartyIdentityConfig config;

RequestedThirdPartyIdentityCheck(RequestedThirdPartyIdentityConfig config) {
private RequestedThirdPartyIdentityCheck(RequestedThirdPartyIdentityConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class RequestedWatchlistAdvancedCaCheck extends RequestedCheck<RequestedW

private final RequestedWatchlistAdvancedCaConfig config;

RequestedWatchlistAdvancedCaCheck(RequestedWatchlistAdvancedCaConfig config) {
private RequestedWatchlistAdvancedCaCheck(RequestedWatchlistAdvancedCaConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class RequestedWatchlistScreeningCheck extends RequestedCheck<RequestedWa

private final RequestedWatchlistScreeningConfig config;

RequestedWatchlistScreeningCheck(RequestedWatchlistScreeningConfig config) {
private RequestedWatchlistScreeningCheck(RequestedWatchlistScreeningConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class RequestedWatchlistScreeningConfig implements RequestedCheckConfig {
@JsonProperty("categories")
private final List<String> categories;

RequestedWatchlistScreeningConfig(List<String> categories) {
private RequestedWatchlistScreeningConfig(List<String> categories) {
this.categories = categories;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class RequestedYotiAccountWatchlistAdvancedCaConfig extends RequestedWatchlistAdvancedCaConfig {

RequestedYotiAccountWatchlistAdvancedCaConfig(Boolean removeDeceased,
private RequestedYotiAccountWatchlistAdvancedCaConfig(Boolean removeDeceased,
Boolean shareUrl,
RequestedCaSources sources,
RequestedCaMatchingStrategy matchingStrategy) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class RequestedFuzzyMatchingStrategy extends RequestedCaMatchingStrategy
@JsonProperty("fuzziness")
private final Double fuzziness;

RequestedFuzzyMatchingStrategy(Double fuzziness) {
private RequestedFuzzyMatchingStrategy(Double fuzziness) {
this.fuzziness = fuzziness;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class RequestedSearchProfileSources extends RequestedCaSources {
@JsonProperty("search_profile")
private final String searchProfile;

RequestedSearchProfileSources(String searchProfile) {
private RequestedSearchProfileSources(String searchProfile) {
this.searchProfile = searchProfile;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class RequestedTypeListSources extends RequestedCaSources {
@JsonProperty("types")
private final List<String> types;

RequestedTypeListSources(List<String> types) {
private RequestedTypeListSources(List<String> types) {
this.types = types;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class DocumentRestrictionsFilter extends DocumentFilter {
@JsonProperty("documents")
private final List<DocumentRestriction> documents;

DocumentRestrictionsFilter(String inclusion, List<DocumentRestriction> documents, Boolean allowNonLatinDocuments, Boolean allowExpiredDocuments) {
private DocumentRestrictionsFilter(String inclusion, List<DocumentRestriction> documents, Boolean allowNonLatinDocuments, Boolean allowExpiredDocuments) {
super(DocScanConstants.DOCUMENT_RESTRICTIONS, allowNonLatinDocuments, allowExpiredDocuments);
this.inclusion = inclusion;
this.documents = documents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class OrthogonalRestrictionsFilter extends DocumentFilter {
@JsonProperty("type_restriction")
private final TypeRestriction typeRestriction;

OrthogonalRestrictionsFilter(CountryRestriction countryRestriction, TypeRestriction typeRestriction, Boolean allowNonLatinDocuments, Boolean allowExpiredDocuments) {
private OrthogonalRestrictionsFilter(CountryRestriction countryRestriction, TypeRestriction typeRestriction, Boolean allowNonLatinDocuments, Boolean allowExpiredDocuments) {
super(DocScanConstants.ORTHOGONAL_RESTRICTIONS, allowNonLatinDocuments, allowExpiredDocuments);
this.countryRestriction = countryRestriction;
this.typeRestriction = typeRestriction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class RequiredIdDocument extends RequiredDocument {
@JsonProperty("filter")
private final DocumentFilter filter;

RequiredIdDocument(DocumentFilter filter) {
private RequiredIdDocument(DocumentFilter filter) {
this.filter = filter;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class RequiredSupplementaryDocument extends RequiredDocument {
@JsonProperty("country_codes")
private final List<String> countryCodes;

RequiredSupplementaryDocument(Objective objective, List<String> documentTypes, List<String> countryCodes) {
private RequiredSupplementaryDocument(Objective objective, List<String> documentTypes, List<String> countryCodes) {
this.objective = objective;
this.documentTypes = documentTypes;
this.countryCodes = countryCodes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class IdentityProfileRequirementsPayload {
@JsonProperty("scheme")
private final IdentityProfileSchemePayload scheme;

IdentityProfileRequirementsPayload(String trustFramework, IdentityProfileSchemePayload scheme) {
private IdentityProfileRequirementsPayload(String trustFramework, IdentityProfileSchemePayload scheme) {
this.trustFramework = trustFramework;
this.scheme = scheme;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class IdentityProfileSchemePayload {
@JsonProperty("objective")
private final String objective;

IdentityProfileSchemePayload(String type, String objective) {
private IdentityProfileSchemePayload(String type, String objective) {
this.type = type;
this.objective = objective;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class ProofOfAddressObjective extends Objective {

ProofOfAddressObjective() {
private ProofOfAddressObjective() {
super(DocScanConstants.PROOF_OF_ADDRESS);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class RequestedIdDocTextExtractionTask extends RequestedTask<RequestedIdD

private final RequestedIdDocTextExtractionTaskConfig config;

RequestedIdDocTextExtractionTask(RequestedIdDocTextExtractionTaskConfig config) {
private RequestedIdDocTextExtractionTask(RequestedIdDocTextExtractionTaskConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class RequestedSupplementaryDocTextExtractionTask extends RequestedTask<R
@JsonProperty("config")
private final RequestedSupplementaryDocTextExtractionTaskConfig config;

RequestedSupplementaryDocTextExtractionTask(RequestedSupplementaryDocTextExtractionTaskConfig config) {
private RequestedSupplementaryDocTextExtractionTask(RequestedSupplementaryDocTextExtractionTaskConfig config) {
this.config = config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ public void factoryShouldReturnValidAmlProfile() {

@Test
public void shouldReturnAmlAddress() {
AmlAddress amlAddress = new AmlAddress(SOME_POSTCODE, SOME_COUNTRY);
AmlAddress amlAddress = AmlAddress.builder()
.withPostCode(SOME_POSTCODE)
.withCountry(SOME_COUNTRY)
.build();

assertNotNull(amlAddress);
assertThat(amlAddress.getPostCode(), is(SOME_POSTCODE));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ResponseConfig {
@JsonProperty("check_reports")
private SandboxCheckReports checkReports;

ResponseConfig(SandboxTaskResults taskResults, SandboxCheckReports checkReports) {
private ResponseConfig(SandboxTaskResults taskResults, SandboxCheckReports checkReports) {
this.taskResults = taskResults;
this.checkReports = checkReports;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class SandboxCheckReports {
@JsonProperty("async_report_delay")
private final Integer asyncReportDelay;

SandboxCheckReports(List<SandboxDocumentTextDataCheck> documentTextDataChecks,
private SandboxCheckReports(List<SandboxDocumentTextDataCheck> documentTextDataChecks,
List<SandboxDocumentAuthenticityCheck> documentAuthenticityChecks,
List<SandboxLivenessCheck> livenessChecks,
List<SandboxDocumentFaceMatchCheck> documentFaceMatchChecks,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class SandboxDocumentFilter {
@JsonProperty("country_codes")
private final List<String> countryCodes;

SandboxDocumentFilter(List<String> documentTypes, List<String> countryCodes) {
private SandboxDocumentFilter(List<String> documentTypes, List<String> countryCodes) {
this.documentTypes = documentTypes;
this.countryCodes = countryCodes;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SandboxTaskResults {
@JsonProperty(DocScanConstants.SUPPLEMENTARY_DOCUMENT_TEXT_DATA_EXTRACTION)
private final List<SandboxSupplementaryDocTextDataExtractionTask> supplementaryTextDataExtractionTasks;

SandboxTaskResults(List<SandboxDocumentTextDataExtractionTask> documentTextDataExtractionTasks,
private SandboxTaskResults(List<SandboxDocumentTextDataExtractionTask> documentTextDataExtractionTasks,
List<SandboxSupplementaryDocTextDataExtractionTask> supplementaryTextDataExtractionTasks) {
this.documentTextDataExtractionTasks = documentTextDataExtractionTasks;
this.supplementaryTextDataExtractionTasks = supplementaryTextDataExtractionTasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class SandboxDocumentAuthenticityCheck extends SandboxDocumentCheck {

SandboxDocumentAuthenticityCheck(SandboxCheckResult result, SandboxDocumentFilter documentFilter) {
private SandboxDocumentAuthenticityCheck(SandboxCheckResult result, SandboxDocumentFilter documentFilter) {
super(result, documentFilter);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class SandboxDocumentFaceMatchCheck extends SandboxDocumentCheck {

SandboxDocumentFaceMatchCheck(SandboxCheckResult result, SandboxDocumentFilter documentFilter) {
private SandboxDocumentFaceMatchCheck(SandboxCheckResult result, SandboxDocumentFilter documentFilter) {
super(result, documentFilter);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SandboxDocumentTextDataCheck extends SandboxDocumentCheck {

SandboxDocumentTextDataCheck(SandboxDocumentTextDataCheckResult result, SandboxDocumentFilter documentFilter) {
private SandboxDocumentTextDataCheck(SandboxDocumentTextDataCheckResult result, SandboxDocumentFilter documentFilter) {
super(result, documentFilter);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class SandboxFaceComparisonCheck extends SandboxCheck {

SandboxFaceComparisonCheck(SandboxCheckResult result) {
private SandboxFaceComparisonCheck(SandboxCheckResult result) {
super(result);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class SandboxIdDocumentComparisonCheck extends SandboxCheck {
@JsonProperty("secondary_document_filter")
private final SandboxDocumentFilter secondaryDocumentFilter;

SandboxIdDocumentComparisonCheck(SandboxCheckResult result, SandboxDocumentFilter secondaryDocumentFilter) {
private SandboxIdDocumentComparisonCheck(SandboxCheckResult result, SandboxDocumentFilter secondaryDocumentFilter) {
super(result);
this.secondaryDocumentFilter = secondaryDocumentFilter;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

public class SandboxSupplementaryDocumentTextDataCheck extends SandboxDocumentCheck {

SandboxSupplementaryDocumentTextDataCheck(SandboxSupplementaryDocumentTextDataCheckResult result, SandboxDocumentFilter documentFilter) {
private SandboxSupplementaryDocumentTextDataCheck(SandboxSupplementaryDocumentTextDataCheckResult result, SandboxDocumentFilter documentFilter) {
super(result, documentFilter);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

public class SandboxSynecticsIdentityFraudCheck extends SandboxCheck {

SandboxSynecticsIdentityFraudCheck(SandboxCheckResult result) {
private SandboxSynecticsIdentityFraudCheck(SandboxCheckResult result) {
super(result);
}

Expand Down
Loading
Loading