get Capabilities
suspend fun getCapabilities(accountId: String): Pair<CapabilityResponses.ListCapabilitiesResponse?, NetworkingError?>
Fetches all capabilities for the given account.
Return
A pair containing the list response on success, or a NetworkingError on failure.
Parameters
account Id
The merchant account ID to retrieve capabilities for.
fun getCapabilities(accountId: String, completionHandler: (CapabilityResponses.ListCapabilitiesResponse?, NetworkingError?) -> Unit)
Fetches all capabilities for the given account and delivers the result via a callback.
Parameters
account Id
The merchant account ID to retrieve capabilities for.
completion Handler
Invoked with the list response on success, or a NetworkingError on failure.