confirm Phone Verification
suspend fun confirmPhoneVerification(accountId: String, verificationId: String, request: AccountRequests.ConfirmPhoneVerificationRequest): Pair<AccountObjects.PhoneVerification?, NetworkingError?>
Confirms a phone verification using the code sent to the account holder.
Return
A pair of the confirmed AccountObjects.PhoneVerification and any NetworkingError.
Parameters
account Id
The ID of the account.
verification Id
The ID of the pending phone verification.
request
The confirmation payload containing the one-time code.
fun confirmPhoneVerification(accountId: String, verificationId: String, request: AccountRequests.ConfirmPhoneVerificationRequest, completionHandler: (AccountObjects.PhoneVerification?, NetworkingError?) -> Unit)
Confirms a phone verification using the code sent to the account holder.
Parameters
account Id
The ID of the account.
verification Id
The ID of the pending phone verification.
request
The confirmation payload containing the one-time code.
completion Handler
Called with the confirmed AccountObjects.PhoneVerification or a NetworkingError.