WithdrawalService

Interface for withdrawal operations.

Functions

Link copied to clipboard
abstract suspend fun confirm(withdrawalConfirm: WithdrawalConfirm): Withdrawal

Confirms a withdraw.

Link copied to clipboard
open fun confirmAsync(withdrawalConfirm: WithdrawalConfirm, cancellationSignal: CancellationSignal?, callback: WalletCallback<Withdrawal>)

Asynchronously confirms a withdraw.

Link copied to clipboard
abstract suspend fun create(withdrawalCreate: WithdrawalCreate): Withdrawal

Creates a withdraw.

Link copied to clipboard
open fun createAsync(withdrawalCreate: WithdrawalCreate, cancellationSignal: CancellationSignal?, callback: WalletCallback<Withdrawal>)

Asynchronously creates a withdraw.

Link copied to clipboard
abstract suspend fun get(withdrawalId: String): Withdrawal

Retrieves a specific withdraw.

Link copied to clipboard
abstract suspend fun getAll(getWithdrawalsParameters: GetWithdrawalsParameters? = null): WithdrawalList

Retrieves all withdraws. It returns the last 10 withdrawals by default.

Link copied to clipboard
open fun getAllAsync(getWithdrawalsParameters: GetWithdrawalsParameters?, cancellationSignal: CancellationSignal?, callback: WalletCallback<WithdrawalList>)

Asynchronously retrieves all withdraws. It returns the last 10 withdrawals by default.

Link copied to clipboard
open fun getAsync(id: String, cancellationSignal: CancellationSignal?, callback: WalletCallback<Withdrawal>)

Asynchronously retrieves a specific withdraw.

Link copied to clipboard
abstract suspend fun getOptions(): List<PaymentOptionDetails>

Retrieves withdraw options information.

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

Asynchronously retrieves withdraw options information.

Link copied to clipboard
abstract suspend fun preview(withdrawalRequest: WithdrawalRequest): Withdrawal

Retrieves a preview of a withdraw.

Link copied to clipboard
open fun previewAsync(withdrawalRequest: WithdrawalRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<Withdrawal>)

Asynchronously retrieves a preview of a withdraw.