AccountsSdk

object AccountsSdk

To call the Accounts Sdk services directly.

Types

Link copied to clipboard
enum Features : Enum<AccountsSdk.Features>

Available SDK Features.

Functions

Link copied to clipboard
suspend fun createAddress(    sessionToken: String,     accountUuid: String,     data: AddressRequest): Response<AddressDetailsModel>
fun createAddress(    sessionToken: String,     accountUuid: String,     data: AddressRequest,     clientCallback: CreateAddressSdkCallback)

Headless call to create an address to the account.

Link copied to clipboard
fun createDossierByIntent(    parentActivity: Activity,     sessionToken: String,     externalId: String,     accountUuid: String,     primary: Boolean,     filesToCapture: Array<DocumentTypeModel>): Intent

Upload Dossier of documents to the account through Activity. Set callback DossierByIntentSdkCallback in AccountsSdk.setEventListener.

Link copied to clipboard
suspend fun deleteAddress(    sessionToken: String,     accountUuid: String,     addressUuid: String): Response<Any>
fun deleteAddress(    sessionToken: String,     accountUuid: String,     addressUuid: String,     clientCallback: DeleteAddressSdkCallback)

Headless call to delete an address from the account.

Link copied to clipboard
suspend fun deleteDossier(    sessionToken: String,     accountUuid: String,     dossierUuid: String): Response<Any>

Headless call to delete a dossier from the system.

fun deleteDossier(    sessionToken: String,     accountUuid: String,     dossierUuid: String,     clientCallback: DeleteDossierSdkCallback)

Headless call to delete a dossier from the account.

Link copied to clipboard
fun documentCaptureByIntent(parentActivity: Activity, filesToCapture: Array<DocumentTypeModel>): Intent

Document Capture through Activity. This will not upload any result. Set callback DocumentCaptureSdkCallback in AccountsSdk.setEventListener.

Link copied to clipboard
suspend fun getAccount(sessionToken: String, accountUuid: String): Response<AccountDetailsModel>
fun getAccount(    sessionToken: String,     accountUuid: String,     clientCallback: GetAccountSdkCallback)

Headless call to get an account.

Link copied to clipboard
suspend fun getDossier(    sessionToken: String,     accountUuid: String,     dossierUuid: String): Response<DossierFileDetailsModel>
fun getDossier(    sessionToken: String,     accountUuid: String,     dossierUuid: String,     clientCallback: GetDossierSdkCallback)

Headless call to get a dossier from the account, including the uploaded documents.

Link copied to clipboard
fun init()

Init the Sdk.

Link copied to clipboard
suspend fun listAddresses(sessionToken: String, accountUuid: String): Response<List<AddressDetailsModel>>
fun listAddresses(    sessionToken: String,     accountUuid: String,     clientCallback: ListAddressesSdkCallback)

Headless call to get a list of addresses from the account.

Link copied to clipboard
suspend fun listDossiers(sessionToken: String, accountUuid: String): Response<List<DossierDetailsModel>>
fun listDossiers(    sessionToken: String,     accountUuid: String,     clientCallback: ListDossiersSdkCallback)

Headless call to get a list of account dossiers, including all documents that have been uploaded to this account.

Link copied to clipboard
fun removeCustomization()

Removes the customization object for the Sdk views.

Link copied to clipboard
fun removeEventListener()

remove the handler for the Sdk's events.

Link copied to clipboard
fun replaceDossierByIntent(    parentActivity: Activity,     sessionToken: String,     accountUuid: String,     dossierUuid: String,     filesToCapture: Array<DocumentTypeModel>): Intent

Replaces an existing dossier in the account through Activity. Set callback DossierByIntentSdkCallback in AccountsSdk.setEventListener.

Link copied to clipboard
fun setCustomize(customize: AccountsCustomize)

Set the customization for the Sdk views.

Link copied to clipboard
fun setEventListener(listener: AccountsSdkCallback)

Set the handler for the Sdk's events.

Link copied to clipboard
suspend fun updateAccount(    sessionToken: String,     accountUuid: String,     data: AccountUpdateRequest): Response<AccountDetailsModel>
fun updateAccount(    sessionToken: String,     accountUuid: String,     data: AccountUpdateRequest,     clientCallback: UpdateAccountSdkCallback)

Headless call to update an account.

Link copied to clipboard
suspend fun updateAddress(    sessionToken: String,     accountUuid: String,     addressUuid: String,     data: AddressUpdateRequest): Response<AddressDetailsModel>
fun updateAddress(    sessionToken: String,     accountUuid: String,     addressUuid: String,     data: AddressUpdateRequest,     clientCallback: UpdateAddressSdkCallback)

Headless call to update an address in the account.

Link copied to clipboard
fun updateDossierByIntent(    parentActivity: Activity,     sessionToken: String,     externalId: String? = null,     accountUuid: String,     dossierUuid: String,     filesToCapture: Array<DocumentTypeModel>): Intent

Updates an existing dossier in the account through Activity. Set callback DossierByIntentSdkCallback in AccountsSdk.setEventListener.