Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump com.google.protobuf:protobuf-java from 3.25.3 to 4.29.0 #481

Open
wants to merge 40 commits into
base: DEVELOPMENT
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
75746c6
SDK: Bump DEVELOPMENT version to 3.10.0-SNAPSHOT
MrBurtyyy Jul 10, 2024
4244aef
SDK-2437: Add support for setting sandbox response configuration for …
MrBurtyyy Jul 10, 2024
d5da728
SDK-2445: [AB] Add text-extraction task recommendation to the GET ses…
MrBurtyyy Aug 12, 2024
528dbd1
SDK-2467: [AB] Allow the brand ID to be set at session creation (as p…
MrBurtyyy Aug 9, 2024
e5c0b03
SDK-2309: Add support for setting biometric consent flow for a session
MrBurtyyy Sep 23, 2024
26b71ed
SDK-2340: Allow Relying Business to configure if expanded document fi…
MrBurtyyy Sep 23, 2024
364d037
SDK-2340: Add missing javadoc comments / add missing test
bucky-boy Sep 23, 2024
721a8cf
SDK-2486: Add support for primary colour dark mode to be set at sdk c…
Sep 22, 2024
ec18bef
SDK-2486: Add support for dark mode to be set at sdk config creation
Sep 22, 2024
e1224a6
SDK-2486: Amended Java Doc comments / helper methods should always us…
bucky-boy Sep 23, 2024
8b913d3
Merge pull request #456 from getyoti/SDK-2486
artem-yoti Sep 23, 2024
e5a6e86
NA: Straighten out a unit test
bucky-boy Sep 23, 2024
c2f3552
NA: UTs can just use assertThrows instead of try-catch
bucky-boy Sep 23, 2024
537c4e7
SDK-2339: Allow the Relying Business to retrieve expanded document fi…
MrBurtyyy Sep 23, 2024
1538ee0
NA: Standardise structure of UTs in DocScanServiceTest
bucky-boy Sep 23, 2024
bddc4a5
SDK-2493: Add new helper methods for session notifications
MrBurtyyy Sep 23, 2024
6ecb704
SDK-2521: Support detected document_type in IDV Sandbox SDK
bucky-boy Sep 23, 2024
6649c24
SDK-2507: Allow the Relying Business to set response delay for tasks …
MrBurtyyy Sep 24, 2024
234f730
SDK-2478: Allow the Relying Business to retrieve tracked devices for …
MrBurtyyy Sep 24, 2024
7f531f2
SDK-2478: Allow the Relying Business to delete tracked device metadat…
MrBurtyyy Sep 24, 2024
6279ca6
NA: Drop unhelpful tests on GetSessionResult
bucky-boy Sep 24, 2024
8c2a1bc
NA: Make remaining tests in GetSessionResultCheckTest a little more h…
bucky-boy Sep 24, 2024
9cd130e
NA: Consolidate remaining tests in GetSessionResultCheckTest
bucky-boy Sep 24, 2024
9bd58a7
NA: We don't need the UTs to test jackson for us
bucky-boy Sep 24, 2024
a7b674d
NA: Consolidate tests for GetSessionResultTest
bucky-boy Sep 24, 2024
fad292c
NA: Straighten out ResourceContainerTest
bucky-boy Sep 24, 2024
5123a0b
SDK-2528: Helper method for finding the Resources that belong to a Check
bucky-boy Sep 24, 2024
1c07134
SDK-2309: [MB] The biometric_consent_flow is EARLY not EAGER
bucky-boy Sep 25, 2024
703d501
Release 3.10.0: Update example project to show new properties
MrBurtyyy Sep 26, 2024
7e5a121
DEVELOPMENT: Bump version to 4.0.0-SNAPSHOT
MrBurtyyy Sep 27, 2024
81d5b99
SDK-2531: Update SessionSpec to use strongly typed object for Identit…
MrBurtyyy Sep 27, 2024
6e85c96
SDK-2532: Update SessionSpec to use strongly typed object for Identit…
MrBurtyyy Sep 27, 2024
7ae7fd5
SDK-2533: Change IdentityProfileResponse to use a stronly typed objec…
MrBurtyyy Sep 27, 2024
f751604
SDK-2532: Rename IdentityProfileSubjectPayload -> SubjectPayload
MrBurtyyy Sep 27, 2024
84992e3
NA: Inline JSON property name in IDV classes
MrBurtyyy Sep 27, 2024
0b634d1
NA: Optimize imports
MrBurtyyy Sep 27, 2024
85e526a
Bump org.apache.commons:commons-lang3 from 3.13.0 to 3.17.0
dependabot[bot] Sep 27, 2024
19baae6
Bump slf4j.version from 2.0.9 to 2.0.16
dependabot[bot] Sep 30, 2024
8be82c5
NA: Update README with breaking changes in 4.0.0
MrBurtyyy Sep 30, 2024
c6324bb
Bump com.google.protobuf:protobuf-java from 3.25.3 to 4.29.0
dependabot[bot] Dec 1, 2024
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
Prev Previous commit
Next Next commit
SDK-2507: Allow the Relying Business to set response delay for tasks …
…and Liveness checks in the sandbox
MrBurtyyy committed Sep 24, 2024
commit 6649c24b6b6ebd3b70b6d081161acd12ac3699c4
Original file line number Diff line number Diff line change
@@ -7,9 +7,13 @@ public class SandboxLivenessCheck extends SandboxCheck {
@JsonProperty("liveness_type")
private final String livenessType;

SandboxLivenessCheck(SandboxCheckResult result, String livenessType) {
@JsonProperty("response_delay")
private final Integer responseDelay;

SandboxLivenessCheck(SandboxCheckResult result, String livenessType, Integer responseDelay) {
super(result);
this.livenessType = livenessType;
this.responseDelay = responseDelay;
}

public static SandboxZoomLivenessCheckBuilder forZoomLiveness() {
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
package com.yoti.api.client.sandbox.docs.request.check;

import static com.yoti.api.client.spi.remote.util.Validation.notNull;
import static com.yoti.validation.Validation.notNull;

import com.yoti.api.client.docs.DocScanConstants;
import com.yoti.api.client.sandbox.docs.request.check.report.SandboxCheckReport;

public class SandboxStaticLivenessCheckBuilder extends SandboxCheck.Builder<SandboxStaticLivenessCheckBuilder> {

SandboxStaticLivenessCheckBuilder() {
private Integer responseDelay;

SandboxStaticLivenessCheckBuilder() {}

public SandboxStaticLivenessCheckBuilder withResponseDelay(Integer responseDelay) {
this.responseDelay = responseDelay;
return this;
}

@Override
@@ -22,7 +28,7 @@ public SandboxLivenessCheck build() {
SandboxCheckReport report = new SandboxCheckReport(recommendation, breakdown);
SandboxCheckResult result = new SandboxCheckResult(report);

return new SandboxLivenessCheck(result, DocScanConstants.STATIC);
return new SandboxLivenessCheck(result, DocScanConstants.STATIC, responseDelay);
}

}
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
package com.yoti.api.client.sandbox.docs.request.check;

import static com.yoti.api.client.spi.remote.util.Validation.notNull;
import static com.yoti.validation.Validation.notNull;

import com.yoti.api.client.docs.DocScanConstants;
import com.yoti.api.client.sandbox.docs.request.check.report.SandboxCheckReport;

public class SandboxZoomLivenessCheckBuilder extends SandboxCheck.Builder<SandboxZoomLivenessCheckBuilder> {

SandboxZoomLivenessCheckBuilder() {
}
private Integer responseDelay;

SandboxZoomLivenessCheckBuilder() {}

@Override
protected SandboxZoomLivenessCheckBuilder self() {
return this;
}

public SandboxZoomLivenessCheckBuilder withResponseDelay(Integer responseDelay) {
this.responseDelay = responseDelay;
return this;
}

@Override
public SandboxLivenessCheck build() {
notNull(recommendation, "recommendation");

SandboxCheckReport report = new SandboxCheckReport(recommendation, breakdown);
SandboxCheckResult result = new SandboxCheckResult(report);

return new SandboxLivenessCheck(result, DocScanConstants.ZOOM);
return new SandboxLivenessCheck(result, DocScanConstants.ZOOM, responseDelay);
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.yoti.api.client.sandbox.docs.request.task;

import static com.yoti.api.client.spi.remote.util.Validation.notNull;
import static com.yoti.validation.Validation.notNull;

import java.util.Base64;
import java.util.HashMap;
@@ -20,9 +20,13 @@ public class SandboxDocumentTextDataExtractionTask {
@JsonProperty("document_filter")
private final SandboxDocumentFilter documentFilter;

SandboxDocumentTextDataExtractionTask(SandboxDocumentTextDataExtractionTaskResult result, SandboxDocumentFilter documentFilter) {
@JsonProperty("response_delay")
private final Integer responseDelay;

SandboxDocumentTextDataExtractionTask(SandboxDocumentTextDataExtractionTaskResult result, SandboxDocumentFilter documentFilter, Integer responseDelay) {
this.result = result;
this.documentFilter = documentFilter;
this.responseDelay = responseDelay;
}

public static Builder builder() {
@@ -37,6 +41,10 @@ public SandboxDocumentFilter getDocumentFilter() {
return documentFilter;
}

public Integer getResponseDelay() {
return responseDelay;
}

/**
* Builder for {@link SandboxDocumentTextDataExtractionTask}
*/
@@ -48,9 +56,9 @@ public static class Builder {
private String detectedCountry;
private String detectedDocumentType;
private SandboxTextExtractionTaskRecommendation recommendation;
private Integer responseDelay;

private Builder() {
}
private Builder() {}

public Builder withDocumentField(String key, Object value) {
if (documentFields == null) {
@@ -93,13 +101,18 @@ public Builder withRecommendation(SandboxTextExtractionTaskRecommendation recomm
return this;
}

public Builder withResponseDelay(Integer responseDelay) {
this.responseDelay = responseDelay;
return this;
}

public SandboxDocumentTextDataExtractionTask build() {
SandboxDocumentTextDataExtractionTaskResult result = new SandboxDocumentTextDataExtractionTaskResult(documentFields,
documentIdPhoto,
detectedCountry,
detectedDocumentType,
recommendation);
return new SandboxDocumentTextDataExtractionTask(result, documentFilter);
return new SandboxDocumentTextDataExtractionTask(result, documentFilter, responseDelay);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.yoti.api.client.sandbox.docs.request.task;

import static com.yoti.api.client.spi.remote.util.Validation.notNull;
import static com.yoti.validation.Validation.notNull;

import java.util.HashMap;
import java.util.Map;
@@ -19,9 +19,15 @@ public class SandboxSupplementaryDocTextDataExtractionTask {
@JsonProperty("document_filter")
private final SandboxDocumentFilter documentFilter;

SandboxSupplementaryDocTextDataExtractionTask(SandboxSupplementaryDocTextDataExtractionTaskResult result, SandboxDocumentFilter documentFilter) {
@JsonProperty("response_delay")
private final Integer responseDelay;

SandboxSupplementaryDocTextDataExtractionTask(SandboxSupplementaryDocTextDataExtractionTaskResult result,
SandboxDocumentFilter documentFilter,
Integer responseDelay) {
this.result = result;
this.documentFilter = documentFilter;
this.responseDelay = responseDelay;
}

public static Builder builder() {
@@ -36,6 +42,10 @@ public SandboxDocumentFilter getDocumentFilter() {
return documentFilter;
}

public Integer getResponseDelay() {
return responseDelay;
}

/**
* Builder for {@link SandboxSupplementaryDocTextDataExtractionTask}
*/
@@ -45,6 +55,7 @@ public static class Builder {
private SandboxDocumentFilter documentFilter;
private String detectedCountry;
private SandboxTextExtractionTaskRecommendation recommendation;
private Integer responseDelay;

private Builder() {}

@@ -78,10 +89,15 @@ public Builder withRecommendation(SandboxTextExtractionTaskRecommendation recomm
return this;
}

public Builder withResponseDelay(Integer responseDelay) {
this.responseDelay = responseDelay;
return this;
}

public SandboxSupplementaryDocTextDataExtractionTask build() {
SandboxSupplementaryDocTextDataExtractionTaskResult result = new SandboxSupplementaryDocTextDataExtractionTaskResult(documentFields,
detectedCountry, recommendation);
return new SandboxSupplementaryDocTextDataExtractionTask(result, documentFilter);
return new SandboxSupplementaryDocTextDataExtractionTask(result, documentFilter, responseDelay);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -96,4 +96,13 @@ public void builder_shouldAllowRecommendation() {
assertThat(result.getResult().getRecommendation(), is(recommendationMock));
}

@Test
public void builder_shouldSetResponseDelay() {
SandboxDocumentTextDataExtractionTask result = SandboxDocumentTextDataExtractionTask.builder()
.withResponseDelay(10)
.build();

assertThat(result.getResponseDelay(), is(10));
}

}
Original file line number Diff line number Diff line change
@@ -81,4 +81,13 @@ public void builder_shouldAllowRecommendation() {
assertThat(result.getResult().getRecommendation(), is(recommendationMock));
}

}
@Test
public void builder_shouldSetResponseDelay() {
SandboxSupplementaryDocTextDataExtractionTask result = SandboxSupplementaryDocTextDataExtractionTask.builder()
.withResponseDelay(10)
.build();

assertThat(result.getResponseDelay(), is(10));
}

}