get Capability With
suspend fun getCapabilityWith(accountId: String, name: String): Pair<CapabilityObjects.Capability?, NetworkingError?>
Fetches a single capability by name for the given account.
Return
A pair containing the CapabilityObjects.Capability on success, or a NetworkingError on failure.
Parameters
account Id
The merchant account ID that owns the capability.
name
The name identifier of the capability to retrieve.
fun getCapabilityWith(accountId: String, name: String, completionHandler: (CapabilityObjects.Capability?, NetworkingError?) -> Unit)
Fetches a single capability by name for the given account and delivers the result via a callback.
Parameters
account Id
The merchant account ID that owns the capability.
name
The name identifier of the capability to retrieve.
completion Handler
Invoked with the CapabilityObjects.Capability on success, or a NetworkingError on failure.