Skip to content

Commit

Permalink
Use default callback url (#240)
Browse files Browse the repository at this point in the history
* Use default callback url

* use default partnerid
  • Loading branch information
vanshg authored Oct 30, 2023
1 parent dbecee1 commit 551cf3e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 11 deletions.
12 changes: 6 additions & 6 deletions lib/src/main/java/com/smileidentity/models/JobStatus.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,25 @@ data class SmartSelfieJobStatusResponse(

@Parcelize
@JsonClass(generateAdapter = true)
data class DocumentVerificationJobStatusResponse(
data class BiometricKycJobStatusResponse(
@Json(name = "timestamp") override val timestamp: String,
@Json(name = "job_complete") override val jobComplete: Boolean,
@Json(name = "job_success") override val jobSuccess: Boolean,
@Json(name = "code") override val code: String,
@Json(name = "result") override val result: DocumentVerificationJobResult?,
@Json(name = "history") override val history: List<DocumentVerificationJobResult.Entry>?,
@Json(name = "result") override val result: BiometricKycJobResult?,
@Json(name = "history") override val history: List<BiometricKycJobResult.Entry>?,
@Json(name = "image_links") override val imageLinks: ImageLinks?,
) : JobStatusResponse

@Parcelize
@JsonClass(generateAdapter = true)
data class BiometricKycJobStatusResponse(
data class DocumentVerificationJobStatusResponse(
@Json(name = "timestamp") override val timestamp: String,
@Json(name = "job_complete") override val jobComplete: Boolean,
@Json(name = "job_success") override val jobSuccess: Boolean,
@Json(name = "code") override val code: String,
@Json(name = "result") override val result: BiometricKycJobResult?,
@Json(name = "history") override val history: List<BiometricKycJobResult.Entry>?,
@Json(name = "result") override val result: DocumentVerificationJobResult?,
@Json(name = "history") override val history: List<DocumentVerificationJobResult.Entry>?,
@Json(name = "image_links") override val imageLinks: ImageLinks?,
) : JobStatusResponse

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class BiometricKycViewModel(
val authResponse = SmileID.api.authenticate(authRequest)

val prepUploadRequest = PrepUploadRequest(
callbackUrl = SmileID.callbackUrl,
partnerParams = authResponse.partnerParams,
signature = authResponse.signature,
timestamp = authResponse.timestamp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ class SelfieViewModel(
val authResponse = SmileID.api.authenticate(authRequest)

val prepUploadRequest = PrepUploadRequest(
callbackUrl = SmileID.callbackUrl,
partnerParams = authResponse.partnerParams,
signature = authResponse.signature,
timestamp = authResponse.timestamp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ internal abstract class OrchestratedDocumentViewModel<T : Parcelable>(
val authResponse = SmileID.api.authenticate(authRequest)

val prepUploadRequest = PrepUploadRequest(
callbackUrl = SmileID.callbackUrl,
partnerParams = authResponse.partnerParams,
signature = authResponse.signature,
timestamp = authResponse.timestamp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fun IdTypeSelectorAndFieldInputScreen(

!uiState.hasIdTypeSelectionBeenConfirmed -> IdSelectorScreen(
modifier = modifier,
onNext = { viewModel.onIdTypeConfirmed() },
onNext = viewModel::onIdTypeConfirmed,
)

else -> IdInputScreen(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ class IdTypeSelectorAndFieldInputViewModel(
)
val authResponse = SmileID.api.authenticate(authRequest)
val productsConfigRequest = ProductsConfigRequest(
partnerId = SmileID.config.partnerId,
timestamp = authResponse.timestamp,
signature = authResponse.signature,
)
Expand Down

0 comments on commit 551cf3e

Please sign in to comment.