diff --git a/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/DocScanConstants.java b/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/DocScanConstants.java index 1bf0e5fc..9ae74306 100644 --- a/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/DocScanConstants.java +++ b/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/DocScanConstants.java @@ -87,7 +87,7 @@ private DocScanConstants() { } public static final String GBP = "GBP"; - public static final String EAGER = "EAGER"; + public static final String EARLY = "EARLY"; public static final String JUST_IN_TIME = "JUST_IN_TIME"; public static final String ON = "ON"; diff --git a/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java b/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java index d7ad1541..776b9d51 100644 --- a/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java +++ b/yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java @@ -426,7 +426,7 @@ public Builder withAllowHandoff(boolean allowHandoff) { } /** - * Sets the {@link AttemptsConfiguration} for the session + * Sets the {@link AttemptsConfiguration} for any Text Extractions Tasks * * @param attemptsConfiguration the configuration for retries * @return the builder @@ -437,7 +437,7 @@ public Builder withAttemptsConfiguration(AttemptsConfiguration attemptsConfigura } /** - * Sets the brand ID to be used for the session + * Sets the brand ID used for customising the UI * * @param brandId the brand ID * @return the builder @@ -448,7 +448,7 @@ public Builder withBrandId(String brandId) { } /** - * Sets the Biometric Consent Flow for the session + * Sets the Biometric Consent Flow to be applied in the UI * * @param biometricConsentFlow the biometric consent flow * @return the builder @@ -459,16 +459,16 @@ public Builder withBiometricConsentFlow(String biometricConsentFlow) { } /** - * Sets the biometric consent flow to EAGER for the session + * Sets the biometric consent flow to EARLY * * @return the builder */ - public Builder withBiometricConsentFlowEager() { - return withBiometricConsentFlow(DocScanConstants.EAGER); + public Builder withBiometricConsentFlowEarly() { + return withBiometricConsentFlow(DocScanConstants.EARLY); } /** - * Sets the biometric consent flow to JUST_IN_TIME for the session + * Sets the biometric consent flow to JUST_IN_TIME * * @return the builder */ diff --git a/yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java b/yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java index 24dba45d..94500ad4 100644 --- a/yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java +++ b/yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java @@ -91,12 +91,12 @@ public void shouldBuildSimpleSdkConfigWithCameraAndUpload() { } @Test - public void shouldBuildSimpleSdkConfigWithBiometricConsentFlowEager() { + public void shouldBuildSimpleSdkConfigWithBiometricConsentFlowEarly() { SdkConfig result = SdkConfig.builder() - .withBiometricConsentFlowEager() + .withBiometricConsentFlowEarly() .build(); - assertThat(result.getBiometricConsentFlow(), is("EAGER")); + assertThat(result.getBiometricConsentFlow(), is("EARLY")); } @Test