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 hamcrest.version from 2.2 to 3.0 #477

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
bfcc6eb
Bump hamcrest.version from 2.2 to 3.0
dependabot[bot] Oct 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
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.yoti.api.client.docs.session.create.check.RequestedCheck;
import com.yoti.api.client.docs.session.create.filters.RequiredDocument;
@@ -62,7 +61,7 @@ public class SessionSpec {
private final AdvancedIdentityProfileRequirementsPayload advancedIdentityProfileRequirements;

@JsonProperty(Property.SUBJECT)
private final IdentityProfileSubjectPayload subject;
private final SubjectPayload subject;

@JsonProperty(Property.RESOURCES)
private final ResourceCreationContainer resources;
@@ -83,7 +82,7 @@ public class SessionSpec {
IbvOptions ibvOptions,
ZonedDateTime sessionDeadline,
IdentityProfileRequirementsPayload identityProfile,
IdentityProfileSubjectPayload subject,
SubjectPayload subject,
ResourceCreationContainer resources,
Boolean createIdentityProfilePreview,
AdvancedIdentityProfileRequirementsPayload advancedIdentityProfileRequirements) {
@@ -233,7 +232,7 @@ public IdentityProfileRequirementsPayload getIdentityProfile() {
*
* @return subject
*/
public IdentityProfileSubjectPayload getSubject() {
public SubjectPayload getSubject() {
return subject;
}

@@ -280,7 +279,7 @@ public static class Builder {
private ZonedDateTime sessionDeadline;
private IdentityProfileRequirementsPayload identityProfile;
private AdvancedIdentityProfileRequirementsPayload advancedIdentityProfileRequirementsPayload;
private IdentityProfileSubjectPayload subject;
private SubjectPayload subject;
private ResourceCreationContainer resources;
private Boolean createIdentityProfilePreview;

@@ -440,7 +439,7 @@ public Builder withIdentityProfile(IdentityProfileRequirementsPayload identityPr
* @param subject the subject
* @return the Builder
*/
public Builder withSubject(IdentityProfileSubjectPayload subject) {
public Builder withSubject(SubjectPayload subject) {
this.subject = subject;
return this;
}
Original file line number Diff line number Diff line change
@@ -2,12 +2,12 @@

import com.fasterxml.jackson.annotation.JsonProperty;

public class IdentityProfileSubjectPayload {
public class SubjectPayload {

@JsonProperty("subject_id")
private final String subjectId;

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

@@ -36,8 +36,8 @@ public Builder withSubjectId(String subjectId) {
return this;
}

public IdentityProfileSubjectPayload build() {
return new IdentityProfileSubjectPayload(subjectId);
public SubjectPayload build() {
return new SubjectPayload(subjectId);
}

}
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ public class SessionSpecTest {
@Mock ResourceCreationContainer resourceCreationContainerMock;
@Mock ImportTokenPayload importTokenMock;
@Mock IdentityProfileRequirementsPayload identityProfileRequirementsPayloadMock;
@Mock IdentityProfileSubjectPayload identityProfileSubjectPayloadMock;
@Mock SubjectPayload subjectPayloadMock;

@Test
public void shouldBuildWithMinimalConfiguration() {
@@ -218,10 +218,10 @@ public void withIdentityProfile_shouldSetTheIdentityProfile() {
@Test
public void withSubject_shouldSetTheSubject() {
SessionSpec result = SessionSpec.builder()
.withSubject(identityProfileSubjectPayloadMock)
.withSubject(subjectPayloadMock)
.build();

assertThat(result.getSubject(), is(identityProfileSubjectPayloadMock));
assertThat(result.getSubject(), is(subjectPayloadMock));
}

@Test