AlAccounts
public final class AlAccounts : Sendable
SDK Initialization object.
-
AlAccountsobject instance.Declaration
Swift
public static let shared: AlAccounts
-
listAccounts(token:Asynchronousquery: ) Lists the accounts details, in their current status.
Declaration
Swift
public func listAccounts( token: String, query: AccountsQuery? = nil ) async throws(ALEventError) -> [Account]Parameters
tokenThe token to authenticate the SDK.
queryThe query.
Return Value
An
Accountlist. -
getAccount(token:AsynchronousaccountUuid: ) -
updateAccount(token:AsynchronousaccountUuid: data: ) Updates an existing account in the system.
Note
If you want to clean a nullable field set the value as an emptyStringinstead ofnil. Settingnilwill have no effect on the actual value of the field.Declaration
Swift
public func updateAccount( token: String, accountUuid: String, data: AccountUpdateRequest ) async throws(ALEventError) -> AccountParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
dataThe user data to update an account.
Return Value
An
Account.
-
listAddresses(token:AsynchronousaccountUuid: ) Gets the list of addresses associated with the account. The primary address is used for Identity Verification processes.
Declaration
Swift
public func listAddresses( token: String, accountUuid: String ) async throws(ALEventError) -> [AccountAddress]Parameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
Return Value
An
AccountAddresslist. -
createAddress(token:AsynchronousaccountUuid: data: ) Creates an address and adds it to the account.
Declaration
Swift
public func createAddress( token: String, accountUuid: String, data: AccountAddressRequest ) async throws(ALEventError) -> AccountAddressParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
dataUser data to create new account.
Return Value
An
AccountAddress. -
updateAddress(token:AsynchronousaccountUuid: addressUuid: data: ) Updates an existing address in the account.
Declaration
Swift
public func updateAddress( token: String, accountUuid: String, addressUuid: String, data: AccountAddressRequest ) async throws(ALEventError) -> AccountAddressParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
addressUuidThe address uuid value.
dataAddress data to update an address.
Return Value
An
AccountAddress. -
deleteAddress(token:AsynchronousaccountUuid: addressUuid: ) Delete user address.
Declaration
Swift
public func deleteAddress( token: String, accountUuid: String, addressUuid: String ) async throws(ALEventError)Parameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
addressUuidThe address uuid value.
-
createDossier(token:AsynchronousaccountUuid: data: ) Create an account dossier.
Declaration
Swift
public func createDossier( token: String, accountUuid: String, data: AccountDossierRequest ) async throws(ALEventError) -> AccountDossierParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
dataThe data to create an account dossier.
Return Value
An
AccountDossier. -
updateDossier(token:AsynchronousaccountUuid: dossierUuid: data: ) Update an account dossier.
Declaration
Swift
public func updateDossier( token: String, accountUuid: String, dossierUuid: String, data: AccountDossierUpdateRequest ) async throws(ALEventError) -> AccountDossierParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
dossierUuidThe account dossier uuid value.
dataThe data to update an account dossier.
Return Value
An
AccountDossier. -
replaceDossier(token:AsynchronousaccountUuid: dossierUuid: data: ) Replace an account dossier.
Declaration
Swift
public func replaceDossier( token: String, accountUuid: String, dossierUuid: String, data: AccountDossierUpdateRequest ) async throws(ALEventError) -> AccountDossierParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
dossierUuidThe account dossier uuid value.
dataThe data to replace an account dossier.
Return Value
An
AccountDossier. -
getDossier(token:AsynchronousaccountUuid: dossierUuid: ) Gets a specific dossier from the account, including the uploaded documents.
Declaration
Swift
public func getDossier( token: String, accountUuid: String, dossierUuid: String ) async throws(ALEventError) -> AccountDossierParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
dossierUuidThe dossier uuid value.
Return Value
An
AccountDossier. -
listDossiers(token:AsynchronousaccountUuid: ) Gets the account dossiers, including all documents that have been uploaded to this account.
Declaration
Swift
public func listDossiers( token: String, accountUuid: String ) async throws(ALEventError) -> [AccountDossier]Parameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
Return Value
An
AccountDossierlist. -
deleteDossier(token:AsynchronousaccountUuid: dossierUuid: ) Deletes a dossier from the system.
Declaration
Swift
public func deleteDossier( token: String, accountUuid: String, dossierUuid: String ) async throws(ALEventError)Parameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
dossierUuidThe dossier uuid value.
-
UI.
See moreDeclaration
Swift
final class UserInterface : Sendable -
UIobject instance.Declaration
Swift
static let userInterface: UserInterface
View on GitHub