ProfileService

interface ProfileService

Service class for managing user related operations.

Functions

Link copied to clipboard
abstract suspend fun addAccount(addAccountRequest: AddAccountRequest): Account

Creates a new customer account.

Link copied to clipboard
open fun addAccountAsync(addAccountRequest: AddAccountRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<Account>)

Asynchronously creates a new customer account.

Link copied to clipboard
abstract suspend fun getAccounts(): List<Account>

Retrieves customer accounts.

Link copied to clipboard
open fun getAccountsAsync(cancellationSignal: CancellationSignal?, callback: WalletCallback<List<Account>>)

Asynchronously retrieves customer accounts.

Link copied to clipboard
abstract suspend fun getProfile(includes: List<ProfileIncludes> = emptyList()): CustomerInfo

Retrieves customer information.

Link copied to clipboard
open fun getProfileAsync(includes: List<ProfileIncludes>, cancellationSignal: CancellationSignal?, callback: WalletCallback<CustomerInfo>)

Asynchronously retrieves customer information.

Link copied to clipboard
abstract suspend fun getSingleAccount(accountId: String): Account

Retrieves customer account.

Link copied to clipboard
open fun getSingleAccountAsync(accountId: String, cancellationSignal: CancellationSignal?, callback: WalletCallback<Account>)

Asynchronously retrieves customer account.

Link copied to clipboard
abstract suspend fun updateProfile(request: UpdateCustomerRequest): CustomerInfo

Update customer personal information.

Link copied to clipboard
open fun updateProfileAsync(request: UpdateCustomerRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<CustomerInfo>)

Asynchronously updates customer personal information.