AlAccounts

public final class AlAccounts

SDK Initialization object.

  • AlAccounts object instance.

    Declaration

    Swift

    public static let shared: AlAccounts
  • Futures object instance.

    Declaration

    Swift

    public private(set) lazy var combine: Futures { get set }
  • Async object instance.

    Declaration

    Swift

    public private(set) lazy var async: Async { get set }

Accounts

  • Lists the accounts details, in their current status.

    Declaration

    Swift

    public func listAccounts(
        token: String,
        query: AccountsQuery? = nil,
        delegate: AccountsDelegate)

    Parameters

    token

    The token to authenticate the SDK.

    query

    The query.

    delegate

    The delegate to receive SDK updates.

  • Gets the account details, in its current status.

    Declaration

    Swift

    public func getAccount(
        token: String,
        accountUuid: String,
        delegate: AccountsDelegate)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    delegate

    The delegate to receive SDK updates.

  • Updates an existing account in the system.

    Note

    If you want to clean a nullable field set the value as an empty String instead of nil. Setting nil will have no effect on the actual value of the field.

    Declaration

    Swift

    public func updateAccount(
        token: String,
        accountUuid: String,
        data: AccountUpdateRequest,
        delegate: AccountsDelegate)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    data

    The user data to update an account.

    delegate

    The delegate to receive SDK updates.

Accounts Address

  • 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,
        delegate: AccountAddressesDelegate)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    delegate

    The delegate to receive SDK updates.

  • Creates an address and adds it to the account.

    Declaration

    Swift

    public func createAddress(
        token: String,
        accountUuid: String,
        data: AccountAddressRequest,
        delegate: AccountAddressesDelegate)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    data

    User data to create new account.

    delegate

    The delegate to receive SDK updates.

  • Updates an existing address in the account.

    Declaration

    Swift

    public func updateAddress(
        token: String,
        accountUuid: String,
        addressUuid: String,
        data: AccountAddressRequest,
        delegate: AccountAddressesDelegate)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    addressUuid

    The address uuid value.

    data

    Address data to update an address.

    delegate

    The delegate to receive SDK updates.

  • Delete user address.

    Declaration

    Swift

    public func deleteAddress(
        token: String,
        accountUuid: String,
        addressUuid: String,
        delegate: AccountAddressesDelegate)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    addressUuid

    The address uuid value.

    delegate

    The delegate to receive SDK updates.

Dossiers

Accounts

  • Lists the accounts details, in their current status.

    Declaration

    Swift

    func listAccounts(
        token: String,
        query: AccountsQuery? = nil,
        completion: @escaping (Result<[Account], EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    query

    The query.

    completion

    Called when the call was completed.

  • Gets the account details, in its current status.

    Declaration

    Swift

    func getAccount(
        token: String,
        accountUuid: String,
        completion: @escaping (Result<Account, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The account uuid value.

    completion

    Called when the call was completed.

  • Updates an existing account in the system.

    Note

    If you want to clean a nullable field set the value as an empty String instead of nil. Setting nil will have no effect on the actual value of the field.

    Declaration

    Swift

    func updateAccount(
        token: String,
        accountUuid: String,
        data: AccountUpdateRequest,
        completion: @escaping (Result<Account, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    data

    The user data to update an account.

    completion

    Called when the call was completed.

Accounts Address

  • Gets the list of addresses associated with the account. The primary address is used for Identity Verification processes.

    Declaration

    Swift

    func listAddresses(
        token: String,
        accountUuid: String,
        completion: @escaping (Result<[AccountAddress], EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    completion

    Called when the call was completed.

  • Creates an address and adds it to the account.

    Declaration

    Swift

    func createAddress(
        token: String,
        accountUuid: String,
        data: AccountAddressRequest,
        completion: @escaping (Result<AccountAddress, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    data

    User data to create new account.

    completion

    Called when the call was completed.

  • Updates an existing address in the account.

    Declaration

    Swift

    func updateAddress(
        token: String,
        accountUuid: String,
        addressUuid: String,
        data: AccountAddressRequest,
        completion: @escaping (Result<AccountAddress, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    addressUuid

    The address uuid value.

    data

    Address data to update an address.

    completion

    Called when the call was completed.

  • Deletes an address from the account.

    Declaration

    Swift

    func deleteAddress(
        token: String,
        accountUuid: String,
        addressUuid: String,
        completion: @escaping (Result<Bool, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    addressUuid

    The address uuid value.

    completion

    Called when the call was completed.

Dossiers

  • Create an account dossier.

    Declaration

    Swift

    func createDossier(
        token: String,
        accountUuid: String,
        data: AccountDossierRequest,
        completion: @escaping (Result<AccountDossier, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    data

    The data to create an account dossier.

    completion

    Called when the call was completed.

  • Update an account dossier.

    Declaration

    Swift

    func updateDossier(
        token: String,
        accountUuid: String,
        dossierUuid: String,
        data: AccountDossierUpdateRequest,
        completion: @escaping (Result<AccountDossier, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    dossierUuid

    The account dossier uuid value.

    data

    The data to update an account dossier.

    completion

    Called when the call was completed.

  • Replace an account dossier.

    Declaration

    Swift

    func replaceDossier(
        token: String,
        accountUuid: String,
        dossierUuid: String,
        data: AccountDossierUpdateRequest,
        completion: @escaping (Result<AccountDossier, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    dossierUuid

    The account dossier uuid value.

    data

    The data to replace an account dossier.

    completion

    Called when the call was completed.

  • Gets a specific dossier from the account, including the uploaded documents.

    Declaration

    Swift

    func getDossier(
        token: String,
        accountUuid: String,
        dossierUuid: String,
        completion: @escaping (Result<AccountDossier, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    dossierUuid

    The dossier uuid value.

    completion

    Called when the call was completed.

  • Gets the account dossiers, including all documents that have been uploaded to this account.

    Declaration

    Swift

    func listDossiers(
        token: String,
        accountUuid: String,
        completion: @escaping (Result<[AccountDossier], EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    completion

    Called when the call was completed.

  • Deletes a dossier from the system.

    Declaration

    Swift

    func deleteDossier(
        token: String,
        accountUuid: String,
        dossierUuid: String,
        completion: @escaping (Result<Bool, EventError>) -> Void)

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    dossierUuid

    The dossier uuid value.

    completion

    Called when the call was completed.

  • Combine bindings.

    See more

    Declaration

    Swift

    public class Futures