diff --git a/CHANGELOG.md b/CHANGELOG.md index 474d2f55d..5d91fb897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ ## Unreleased +## 10.0.3 + +## 10.0.2 + +### Added +- Added `allowNewEnroll` on SmartSelfie, BiometricKYC, DocV and EnhancedDocV + ## 10.0.1 ### Fixed diff --git a/lib/src/androidTest/java/com/smileidentity/compose/document/OrchestratedDocumentVerificationScreenTest.kt b/lib/src/androidTest/java/com/smileidentity/compose/document/OrchestratedDocumentVerificationScreenTest.kt index ce9fcef0a..1c1180384 100644 --- a/lib/src/androidTest/java/com/smileidentity/compose/document/OrchestratedDocumentVerificationScreenTest.kt +++ b/lib/src/androidTest/java/com/smileidentity/compose/document/OrchestratedDocumentVerificationScreenTest.kt @@ -25,6 +25,7 @@ class OrchestratedDocumentVerificationScreenTest { jobType = JobType.DocumentVerification, userId = randomUserId(), jobId = randomUserId(), + allowNewEnroll = false, countryCode = "254", documentType = "NATIONAL_ID", captureBothSides = false, @@ -48,6 +49,7 @@ class OrchestratedDocumentVerificationScreenTest { jobType = JobType.DocumentVerification, userId = randomUserId(), jobId = randomUserId(), + allowNewEnroll = false, countryCode = "254", documentType = "NATIONAL_ID", captureBothSides = false, diff --git a/lib/src/main/java/com/smileidentity/compose/SmileIDExt.kt b/lib/src/main/java/com/smileidentity/compose/SmileIDExt.kt index 9493f09dc..1dd59587d 100644 --- a/lib/src/main/java/com/smileidentity/compose/SmileIDExt.kt +++ b/lib/src/main/java/com/smileidentity/compose/SmileIDExt.kt @@ -46,6 +46,7 @@ import java.net.URL * @param jobId The job ID to associate with the SmartSelfieā„¢ Enrollment. Most often, this * will correspond to a unique Job ID within your own system. If not provided, a random job ID * will be generated. + * @param allowNewEnroll Allows a partner to enroll the same user id again * @param allowAgentMode Whether to allow Agent Mode or not. If allowed, a switch will be * displayed allowing toggling between the back camera and front camera. If not allowed, only the * front camera will be used. @@ -63,6 +64,7 @@ fun SmileID.SmartSelfieEnrollment( modifier: Modifier = Modifier, userId: String = rememberSaveable { randomUserId() }, jobId: String = rememberSaveable { randomJobId() }, + allowNewEnroll: Boolean = false, allowAgentMode: Boolean = false, showAttribution: Boolean = true, showInstructions: Boolean = true, @@ -76,6 +78,7 @@ fun SmileID.SmartSelfieEnrollment( modifier = modifier, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, isEnroll = true, allowAgentMode = allowAgentMode, showAttribution = showAttribution, @@ -114,6 +117,7 @@ fun SmileID.SmartSelfieAuthentication( userId: String, modifier: Modifier = Modifier, jobId: String = rememberSaveable { randomJobId() }, + allowNewEnroll: Boolean = false, allowAgentMode: Boolean = false, showAttribution: Boolean = true, showInstructions: Boolean = true, @@ -127,6 +131,7 @@ fun SmileID.SmartSelfieAuthentication( modifier = modifier, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, isEnroll = false, allowAgentMode = allowAgentMode, showAttribution = showAttribution, @@ -181,6 +186,7 @@ fun SmileID.DocumentVerification( bypassSelfieCaptureWithFile: File? = null, userId: String = rememberSaveable { randomUserId() }, jobId: String = rememberSaveable { randomJobId() }, + allowNewEnroll: Boolean = false, showAttribution: Boolean = true, allowAgentMode: Boolean = false, allowGalleryUpload: Boolean = false, @@ -208,6 +214,7 @@ fun SmileID.DocumentVerification( jobType = JobType.DocumentVerification, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, countryCode = countryCode, documentType = documentType, captureBothSides = captureBothSides, @@ -262,6 +269,7 @@ fun SmileID.EnhancedDocumentVerificationScreen( idAspectRatio: Float? = null, userId: String = rememberSaveable { randomUserId() }, jobId: String = rememberSaveable { randomJobId() }, + allowNewEnroll: Boolean = false, showAttribution: Boolean = true, allowAgentMode: Boolean = false, allowGalleryUpload: Boolean = false, @@ -289,6 +297,7 @@ fun SmileID.EnhancedDocumentVerificationScreen( jobType = JobType.EnhancedDocumentVerification, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, countryCode = countryCode, documentType = documentType, captureBothSides = captureBothSides, @@ -330,6 +339,7 @@ fun SmileID.BiometricKYC( modifier: Modifier = Modifier, userId: String = rememberSaveable { randomUserId() }, jobId: String = rememberSaveable { randomJobId() }, + allowNewEnroll: Boolean = false, allowAgentMode: Boolean = false, showAttribution: Boolean = true, showInstructions: Boolean = true, @@ -344,6 +354,7 @@ fun SmileID.BiometricKYC( idInfo = idInfo, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, allowAgentMode = allowAgentMode, showAttribution = showAttribution, showInstructions = showInstructions, diff --git a/lib/src/main/java/com/smileidentity/compose/biometric/OrchestratedBiometricKYCScreen.kt b/lib/src/main/java/com/smileidentity/compose/biometric/OrchestratedBiometricKYCScreen.kt index 431d0178b..a00f08116 100644 --- a/lib/src/main/java/com/smileidentity/compose/biometric/OrchestratedBiometricKYCScreen.kt +++ b/lib/src/main/java/com/smileidentity/compose/biometric/OrchestratedBiometricKYCScreen.kt @@ -33,6 +33,7 @@ fun OrchestratedBiometricKYCScreen( modifier: Modifier = Modifier, userId: String = rememberSaveable { randomUserId() }, jobId: String = rememberSaveable { randomJobId() }, + allowNewEnroll: Boolean = false, allowAgentMode: Boolean = false, showAttribution: Boolean = true, showInstructions: Boolean = true, @@ -43,6 +44,7 @@ fun OrchestratedBiometricKYCScreen( idInfo = idInfo, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, extraPartnerParams = extraPartnerParams, ) }, diff --git a/lib/src/main/java/com/smileidentity/compose/selfie/OrchestratedSelfieCaptureScreen.kt b/lib/src/main/java/com/smileidentity/compose/selfie/OrchestratedSelfieCaptureScreen.kt index 1b101436f..8bc38bf8c 100644 --- a/lib/src/main/java/com/smileidentity/compose/selfie/OrchestratedSelfieCaptureScreen.kt +++ b/lib/src/main/java/com/smileidentity/compose/selfie/OrchestratedSelfieCaptureScreen.kt @@ -40,6 +40,7 @@ internal fun OrchestratedSelfieCaptureScreen( modifier: Modifier = Modifier, userId: String = rememberSaveable { randomUserId() }, jobId: String = rememberSaveable { randomJobId() }, + allowNewEnroll: Boolean = false, isEnroll: Boolean = true, allowAgentMode: Boolean = false, skipApiSubmission: Boolean = false, @@ -52,6 +53,7 @@ internal fun OrchestratedSelfieCaptureScreen( isEnroll = isEnroll, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, skipApiSubmission = skipApiSubmission, extraPartnerParams = extraPartnerParams, ) diff --git a/lib/src/main/java/com/smileidentity/compose/selfie/SelfieCaptureScreen.kt b/lib/src/main/java/com/smileidentity/compose/selfie/SelfieCaptureScreen.kt index f44614481..3ac939185 100644 --- a/lib/src/main/java/com/smileidentity/compose/selfie/SelfieCaptureScreen.kt +++ b/lib/src/main/java/com/smileidentity/compose/selfie/SelfieCaptureScreen.kt @@ -56,11 +56,20 @@ import com.ujizin.camposer.state.rememberImageAnalyzer internal fun SelfieCaptureScreen( userId: String = rememberSaveable { randomUserId() }, jobId: String = rememberSaveable { randomJobId() }, + allowNewEnroll: Boolean = false, isEnroll: Boolean = true, allowAgentMode: Boolean = true, skipApiSubmission: Boolean = false, viewModel: SelfieViewModel = viewModel( - factory = viewModelFactory { SelfieViewModel(isEnroll, userId, jobId, skipApiSubmission) }, + factory = viewModelFactory { + SelfieViewModel( + isEnroll = isEnroll, + userId = userId, + jobId = jobId, + allowNewEnroll = allowNewEnroll, + skipApiSubmission = skipApiSubmission, + ) + }, ), ) { val uiState = viewModel.uiState.collectAsStateWithLifecycle().value diff --git a/lib/src/main/java/com/smileidentity/fragment/BiometricKYCFragment.kt b/lib/src/main/java/com/smileidentity/fragment/BiometricKYCFragment.kt index b90436412..8c29a98e2 100644 --- a/lib/src/main/java/com/smileidentity/fragment/BiometricKYCFragment.kt +++ b/lib/src/main/java/com/smileidentity/fragment/BiometricKYCFragment.kt @@ -75,6 +75,7 @@ class BiometricKYCFragment : Fragment() { @DrawableRes partnerIcon: Int, userId: String = randomUserId(), jobId: String = randomJobId(), + allowNewEnroll: Boolean = false, allowAgentMode: Boolean = false, showAttribution: Boolean = true, showInstructions: Boolean = true, @@ -84,6 +85,7 @@ class BiometricKYCFragment : Fragment() { this.idInfo = idInfo this.userId = userId this.jobId = jobId + this.allowNewEnroll = allowNewEnroll this.allowAgentMode = allowAgentMode this.showAttribution = showAttribution this.showInstructions = showInstructions @@ -109,6 +111,7 @@ class BiometricKYCFragment : Fragment() { idInfo = args.idInfo, userId = args.userId, jobId = args.jobId, + allowNewEnroll = args.allowNewEnroll, allowAgentMode = args.allowAgentMode, showAttribution = args.showAttribution, showInstructions = args.showInstructions, @@ -136,6 +139,11 @@ private var Bundle.jobId: String get() = getString(KEY_JOB_ID)!! set(value) = putString(KEY_JOB_ID, value) +private const val KEY_ALLOW_NEW_ENROLL = "allowNewEnroll" +private var Bundle.allowNewEnroll: Boolean + get() = getBoolean(KEY_ALLOW_NEW_ENROLL) + set(value) = putBoolean(KEY_ALLOW_NEW_ENROLL, value) + private const val KEY_SHOW_ATTRIBUTION = "showAttribution" private var Bundle.showAttribution: Boolean get() = getBoolean(KEY_SHOW_ATTRIBUTION) diff --git a/lib/src/main/java/com/smileidentity/fragment/DocumentVerificationFragment.kt b/lib/src/main/java/com/smileidentity/fragment/DocumentVerificationFragment.kt index e19479ea7..97d186685 100644 --- a/lib/src/main/java/com/smileidentity/fragment/DocumentVerificationFragment.kt +++ b/lib/src/main/java/com/smileidentity/fragment/DocumentVerificationFragment.kt @@ -71,6 +71,7 @@ class DocumentVerificationFragment : Fragment() { documentType: String? = null, userId: String = randomUserId(), jobId: String = randomJobId(), + allowNewEnroll: Boolean = false, showAttribution: Boolean = true, allowAgentMode: Boolean = false, allowGalleryUpload: Boolean = false, diff --git a/lib/src/main/java/com/smileidentity/fragment/EnhancedDocumentVerificationFragment.kt b/lib/src/main/java/com/smileidentity/fragment/EnhancedDocumentVerificationFragment.kt index d3df155a3..2a55b59c2 100644 --- a/lib/src/main/java/com/smileidentity/fragment/EnhancedDocumentVerificationFragment.kt +++ b/lib/src/main/java/com/smileidentity/fragment/EnhancedDocumentVerificationFragment.kt @@ -70,6 +70,7 @@ class EnhancedDocumentVerificationFragment : Fragment() { documentType: String? = null, userId: String = randomUserId(), jobId: String = randomJobId(), + allowNewEnroll: Boolean = false, showAttribution: Boolean = true, allowAgentMode: Boolean = false, allowGalleryUpload: Boolean = false, @@ -81,6 +82,7 @@ class EnhancedDocumentVerificationFragment : Fragment() { arguments = Bundle().apply { this.userId = userId this.jobId = jobId + this.allowNewEnroll = allowNewEnroll this.showAttribution = showAttribution this.allowAgentMode = allowAgentMode this.allowGalleryUpload = allowGalleryUpload @@ -113,6 +115,7 @@ class EnhancedDocumentVerificationFragment : Fragment() { documentType = args.documentType, userId = args.userId, jobId = args.jobId, + allowNewEnroll = args.allowNewEnroll, showAttribution = args.showAttribution, allowAgentMode = args.allowAgentMode, allowGalleryUpload = args.allowGalleryUpload, @@ -137,6 +140,11 @@ private var Bundle.jobId: String get() = getString(KEY_JOB_ID)!! set(value) = putString(KEY_JOB_ID, value) +private const val KEY_ALLOW_NEW_ENROLL = "allowNewEnroll" +private var Bundle.allowNewEnroll: Boolean + get() = getBoolean(KEY_ALLOW_NEW_ENROLL) + set(value) = putBoolean(KEY_ALLOW_NEW_ENROLL, value) + private const val KEY_SHOW_ATTRIBUTION = "showAttribution" private var Bundle.showAttribution: Boolean get() = getBoolean(KEY_SHOW_ATTRIBUTION) diff --git a/lib/src/main/java/com/smileidentity/fragment/SmartSelfieAuthenticationFragment.kt b/lib/src/main/java/com/smileidentity/fragment/SmartSelfieAuthenticationFragment.kt index 42b92998f..2d58ec382 100644 --- a/lib/src/main/java/com/smileidentity/fragment/SmartSelfieAuthenticationFragment.kt +++ b/lib/src/main/java/com/smileidentity/fragment/SmartSelfieAuthenticationFragment.kt @@ -80,6 +80,7 @@ class SmartSelfieAuthenticationFragment : Fragment() { fun newInstance( userId: String = randomUserId(), jobId: String = randomJobId(), + allowNewEnroll: Boolean = false, allowAgentMode: Boolean = false, showAttribution: Boolean = true, showInstructions: Boolean = true, @@ -88,6 +89,7 @@ class SmartSelfieAuthenticationFragment : Fragment() { arguments = Bundle().apply { this.userId = userId this.jobId = jobId + this.allowNewEnroll = allowNewEnroll this.allowAgentMode = allowAgentMode this.showAttribution = showAttribution this.showInstructions = showInstructions @@ -112,6 +114,7 @@ class SmartSelfieAuthenticationFragment : Fragment() { SmileID.SmartSelfieAuthentication( userId = args.userId, jobId = args.jobId, + allowNewEnroll = args.allowNewEnroll, allowAgentMode = args.allowAgentMode, showAttribution = args.showAttribution, showInstructions = args.showInstructions, @@ -139,6 +142,11 @@ private var Bundle.jobId: String get() = getString(KEY_JOB_ID)!! set(value) = putString(KEY_JOB_ID, value) +private const val KEY_ALLOW_NEW_ENROLL = "allowNewEnroll" +private var Bundle.allowNewEnroll: Boolean + get() = getBoolean(KEY_ALLOW_NEW_ENROLL) + set(value) = putBoolean(KEY_ALLOW_NEW_ENROLL, value) + private const val KEY_SHOW_ATTRIBUTION = "showAttribution" private var Bundle.showAttribution: Boolean get() = getBoolean(KEY_SHOW_ATTRIBUTION) diff --git a/lib/src/main/java/com/smileidentity/fragment/SmartSelfieEnrollmentFragment.kt b/lib/src/main/java/com/smileidentity/fragment/SmartSelfieEnrollmentFragment.kt index b6e329d28..dc9387b59 100644 --- a/lib/src/main/java/com/smileidentity/fragment/SmartSelfieEnrollmentFragment.kt +++ b/lib/src/main/java/com/smileidentity/fragment/SmartSelfieEnrollmentFragment.kt @@ -82,6 +82,7 @@ class SmartSelfieEnrollmentFragment : Fragment() { fun newInstance( userId: String = randomUserId(), jobId: String = randomJobId(), + allowNewEnroll: Boolean = false, allowAgentMode: Boolean = false, showAttribution: Boolean = true, showInstructions: Boolean = true, @@ -90,6 +91,7 @@ class SmartSelfieEnrollmentFragment : Fragment() { arguments = Bundle().apply { this.userId = userId this.jobId = jobId + this.allowNewEnroll = allowNewEnroll this.allowAgentMode = allowAgentMode this.showAttribution = showAttribution this.showInstructions = showInstructions @@ -114,6 +116,7 @@ class SmartSelfieEnrollmentFragment : Fragment() { SmileID.SmartSelfieEnrollment( userId = args.userId, jobId = args.jobId, + allowNewEnroll = args.allowNewEnroll, allowAgentMode = args.allowAgentMode, showAttribution = args.showAttribution, showInstructions = args.showInstructions, @@ -141,6 +144,11 @@ private var Bundle.jobId: String get() = getString(KEY_JOB_ID)!! set(value) = putString(KEY_JOB_ID, value) +private const val KEY_ALLOW_NEW_ENROLL = "allowNewEnroll" +private var Bundle.allowNewEnroll: Boolean + get() = getBoolean(KEY_ALLOW_NEW_ENROLL) + set(value) = putBoolean(KEY_ALLOW_NEW_ENROLL, value) + private const val KEY_SHOW_ATTRIBUTION = "showAttribution" private var Bundle.showAttribution: Boolean get() = getBoolean(KEY_SHOW_ATTRIBUTION) diff --git a/lib/src/main/java/com/smileidentity/models/PrepUpload.kt b/lib/src/main/java/com/smileidentity/models/PrepUpload.kt index 0fb15cd23..1c64535df 100644 --- a/lib/src/main/java/com/smileidentity/models/PrepUpload.kt +++ b/lib/src/main/java/com/smileidentity/models/PrepUpload.kt @@ -13,6 +13,8 @@ data class PrepUploadRequest( @Json(name = "partner_params") val partnerParams: PartnerParams, // Callback URL *must* be defined either within your Partner Portal or here @Json(name = "callback_url") val callbackUrl: String? = SmileID.callbackUrl, + // TODO - Michael will change this to a boolean + @Json(name = "allow_new_enroll") val allowNewEnroll: String, @Json(name = "smile_client_id") val partnerId: String = SmileID.config.partnerId, @Json(name = "source_sdk") val sourceSdk: String = "android", @Json(name = "source_sdk_version") val sourceSdkVersion: String = BuildConfig.VERSION_NAME, diff --git a/lib/src/main/java/com/smileidentity/viewmodel/BiometricKycViewModel.kt b/lib/src/main/java/com/smileidentity/viewmodel/BiometricKycViewModel.kt index 89b4feb10..ba0402204 100644 --- a/lib/src/main/java/com/smileidentity/viewmodel/BiometricKycViewModel.kt +++ b/lib/src/main/java/com/smileidentity/viewmodel/BiometricKycViewModel.kt @@ -33,6 +33,7 @@ class BiometricKycViewModel( private val idInfo: IdInfo, private val userId: String, private val jobId: String, + private val allowNewEnroll: Boolean, private val extraPartnerParams: ImmutableMap = persistentMapOf(), ) : ViewModel() { private val _uiState = MutableStateFlow(BiometricKycUiState()) @@ -66,6 +67,8 @@ class BiometricKycViewModel( val prepUploadRequest = PrepUploadRequest( partnerParams = authResponse.partnerParams.copy(extras = extraPartnerParams), + // TODO : Michael will change this to boolean + allowNewEnroll = allowNewEnroll.toString(), signature = authResponse.signature, timestamp = authResponse.timestamp, ) diff --git a/lib/src/main/java/com/smileidentity/viewmodel/SelfieViewModel.kt b/lib/src/main/java/com/smileidentity/viewmodel/SelfieViewModel.kt index 9096a5d60..89218fb04 100644 --- a/lib/src/main/java/com/smileidentity/viewmodel/SelfieViewModel.kt +++ b/lib/src/main/java/com/smileidentity/viewmodel/SelfieViewModel.kt @@ -81,6 +81,7 @@ class SelfieViewModel( private val isEnroll: Boolean, private val userId: String, private val jobId: String, + private val allowNewEnroll: Boolean, private val skipApiSubmission: Boolean, private val extraPartnerParams: ImmutableMap = persistentMapOf(), ) : ViewModel() { @@ -278,6 +279,8 @@ class SelfieViewModel( val prepUploadRequest = PrepUploadRequest( partnerParams = authResponse.partnerParams.copy(extras = extraPartnerParams), + // TODO : Michael will change this to boolean + allowNewEnroll = allowNewEnroll.toString(), signature = authResponse.signature, timestamp = authResponse.timestamp, ) diff --git a/lib/src/main/java/com/smileidentity/viewmodel/document/OrchestratedDocumentViewModel.kt b/lib/src/main/java/com/smileidentity/viewmodel/document/OrchestratedDocumentViewModel.kt index df2c74461..1e86920af 100644 --- a/lib/src/main/java/com/smileidentity/viewmodel/document/OrchestratedDocumentViewModel.kt +++ b/lib/src/main/java/com/smileidentity/viewmodel/document/OrchestratedDocumentViewModel.kt @@ -46,6 +46,7 @@ internal abstract class OrchestratedDocumentViewModel( private val jobType: JobType, private val userId: String, private val jobId: String, + private val allowNewEnroll: Boolean, private val countryCode: String, private val documentType: String? = null, private val captureBothSides: Boolean, @@ -129,6 +130,8 @@ internal abstract class OrchestratedDocumentViewModel( val prepUploadRequest = PrepUploadRequest( partnerParams = authResponse.partnerParams.copy(extras = extraPartnerParams), + // TODO : Michael will change this to boolean + allowNewEnroll = allowNewEnroll.toString(), signature = authResponse.signature, timestamp = authResponse.timestamp, ) @@ -212,6 +215,7 @@ internal class DocumentVerificationViewModel( jobType: JobType = JobType.DocumentVerification, userId: String, jobId: String, + allowNewEnroll: Boolean, countryCode: String, documentType: String? = null, captureBothSides: Boolean, @@ -221,6 +225,7 @@ internal class DocumentVerificationViewModel( jobType = jobType, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, countryCode = countryCode, documentType = documentType, captureBothSides = captureBothSides, @@ -253,6 +258,7 @@ internal class EnhancedDocumentVerificationViewModel( jobType: JobType = JobType.EnhancedDocumentVerification, userId: String, jobId: String, + allowNewEnroll: Boolean, countryCode: String, documentType: String? = null, captureBothSides: Boolean, @@ -263,6 +269,7 @@ internal class EnhancedDocumentVerificationViewModel( jobType = jobType, userId = userId, jobId = jobId, + allowNewEnroll = allowNewEnroll, countryCode = countryCode, documentType = documentType, captureBothSides = captureBothSides, diff --git a/lib/src/test/java/com/smileidentity/viewmodel/SelfieViewModelTest.kt b/lib/src/test/java/com/smileidentity/viewmodel/SelfieViewModelTest.kt index c906e43aa..808f9c5fd 100644 --- a/lib/src/test/java/com/smileidentity/viewmodel/SelfieViewModelTest.kt +++ b/lib/src/test/java/com/smileidentity/viewmodel/SelfieViewModelTest.kt @@ -23,7 +23,13 @@ class SelfieViewModelTest { @Before fun setup() { Dispatchers.setMain(Dispatchers.Unconfined) - subject = SelfieViewModel(true, randomUserId(), randomJobId(), false) + subject = SelfieViewModel( + isEnroll = true, + userId = randomUserId(), + jobId = randomJobId(), + allowNewEnroll = false, + skipApiSubmission = false, + ) } @After diff --git a/lib/src/test/java/com/smileidentity/viewmodel/document/DocumentViewModelTest.kt b/lib/src/test/java/com/smileidentity/viewmodel/document/DocumentViewModelTest.kt index cd7e5e2b3..053d2c315 100644 --- a/lib/src/test/java/com/smileidentity/viewmodel/document/DocumentViewModelTest.kt +++ b/lib/src/test/java/com/smileidentity/viewmodel/document/DocumentViewModelTest.kt @@ -49,6 +49,7 @@ class DocumentViewModelTest { jobType = JobType.DocumentVerification, userId = randomUserId(), jobId = randomJobId(), + allowNewEnroll = false, countryCode = "KE", documentType = "ID_CARD", selfieFile = selfieFile, diff --git a/lib/src/test/java/com/smileidentity/viewmodel/document/EnhancedDocumentVerificationViewModelTest.kt b/lib/src/test/java/com/smileidentity/viewmodel/document/EnhancedDocumentVerificationViewModelTest.kt index ac33c0949..9910f542f 100644 --- a/lib/src/test/java/com/smileidentity/viewmodel/document/EnhancedDocumentVerificationViewModelTest.kt +++ b/lib/src/test/java/com/smileidentity/viewmodel/document/EnhancedDocumentVerificationViewModelTest.kt @@ -49,6 +49,7 @@ class EnhancedDocumentVerificationViewModelTest { jobType = JobType.EnhancedDocumentVerification, userId = randomUserId(), jobId = randomJobId(), + allowNewEnroll = false, countryCode = "KE", documentType = "ID_CARD", selfieFile = selfieFile,