search Accounts
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.
external Id
Filter by merchant-assigned external ID.
type
Filter by account type.
status
Filter by account status.
created Before
ISO-8601 timestamp; return accounts created before this time.
created After
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.
external Id
Filter by merchant-assigned external ID.
type
Filter by account type.
status
Filter by account status.
created Before
ISO-8601 timestamp; return accounts created before this time.
created After
ISO-8601 timestamp; return accounts created after this time.
completion Handler
Called with the AccountResponses.SearchAccountsResponse or a NetworkingError.