searchAccounts

suspend fun searchAccounts(email: String? = null, externalId: String? = null, type: AccountObjects.AccountType? = null, status: AccountObjects.AccountStatus? = null, createdBefore: String? = null, createdAfter: String? = null): Pair<AccountResponses.SearchAccountsResponse?, NetworkingError?>

Searches for accounts matching the given criteria.

Return

A pair of the AccountResponses.SearchAccountsResponse and any NetworkingError.

Parameters

email

Filter by email address.

externalId

Filter by merchant-assigned external ID.

type

Filter by account type.

status

Filter by account status.

createdBefore

ISO-8601 timestamp; return accounts created before this time.

createdAfter

ISO-8601 timestamp; return accounts created after this time.


fun searchAccounts(email: String? = null, externalId: String? = null, type: AccountObjects.AccountType? = null, status: AccountObjects.AccountStatus? = null, createdBefore: String? = null, createdAfter: String? = null, completionHandler: (AccountResponses.SearchAccountsResponse?, NetworkingError?) -> Unit)

Searches for accounts matching the given criteria.

Parameters

email

Filter by email address.

externalId

Filter by merchant-assigned external ID.

type

Filter by account type.

status

Filter by account status.

createdBefore

ISO-8601 timestamp; return accounts created before this time.

createdAfter

ISO-8601 timestamp; return accounts created after this time.

completionHandler