Skip to content

Commit 1c07134

Browse files
committed
SDK-2309: [MB] The biometric_consent_flow is EARLY not EAGER
1 parent 5123a0b commit 1c07134

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

yoti-sdk-api/src/main/java/com/yoti/api/client/docs/DocScanConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private DocScanConstants() { }
8787

8888
public static final String GBP = "GBP";
8989

90-
public static final String EAGER = "EAGER";
90+
public static final String EARLY = "EARLY";
9191
public static final String JUST_IN_TIME = "JUST_IN_TIME";
9292

9393
public static final String ON = "ON";

yoti-sdk-api/src/main/java/com/yoti/api/client/docs/session/create/SdkConfig.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public Builder withAllowHandoff(boolean allowHandoff) {
426426
}
427427

428428
/**
429-
* Sets the {@link AttemptsConfiguration} for the session
429+
* Sets the {@link AttemptsConfiguration} for any Text Extractions Tasks
430430
*
431431
* @param attemptsConfiguration the configuration for retries
432432
* @return the builder
@@ -437,7 +437,7 @@ public Builder withAttemptsConfiguration(AttemptsConfiguration attemptsConfigura
437437
}
438438

439439
/**
440-
* Sets the brand ID to be used for the session
440+
* Sets the brand ID used for customising the UI
441441
*
442442
* @param brandId the brand ID
443443
* @return the builder
@@ -448,7 +448,7 @@ public Builder withBrandId(String brandId) {
448448
}
449449

450450
/**
451-
* Sets the Biometric Consent Flow for the session
451+
* Sets the Biometric Consent Flow to be applied in the UI
452452
*
453453
* @param biometricConsentFlow the biometric consent flow
454454
* @return the builder
@@ -459,16 +459,16 @@ public Builder withBiometricConsentFlow(String biometricConsentFlow) {
459459
}
460460

461461
/**
462-
* Sets the biometric consent flow to EAGER for the session
462+
* Sets the biometric consent flow to EARLY
463463
*
464464
* @return the builder
465465
*/
466-
public Builder withBiometricConsentFlowEager() {
467-
return withBiometricConsentFlow(DocScanConstants.EAGER);
466+
public Builder withBiometricConsentFlowEarly() {
467+
return withBiometricConsentFlow(DocScanConstants.EARLY);
468468
}
469469

470470
/**
471-
* Sets the biometric consent flow to JUST_IN_TIME for the session
471+
* Sets the biometric consent flow to JUST_IN_TIME
472472
*
473473
* @return the builder
474474
*/

yoti-sdk-api/src/test/java/com/yoti/api/client/docs/session/create/SdkConfigTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ public void shouldBuildSimpleSdkConfigWithCameraAndUpload() {
9191
}
9292

9393
@Test
94-
public void shouldBuildSimpleSdkConfigWithBiometricConsentFlowEager() {
94+
public void shouldBuildSimpleSdkConfigWithBiometricConsentFlowEarly() {
9595
SdkConfig result = SdkConfig.builder()
96-
.withBiometricConsentFlowEager()
96+
.withBiometricConsentFlowEarly()
9797
.build();
9898

99-
assertThat(result.getBiometricConsentFlow(), is("EAGER"));
99+
assertThat(result.getBiometricConsentFlow(), is("EARLY"));
100100
}
101101

102102
@Test

0 commit comments

Comments
 (0)