disable Capability With
suspend fun disableCapabilityWith(accountId: String, name: String): Pair<CapabilityObjects.Capability?, NetworkingError?>
Disables a single capability by name for the given account.
Return
A pair containing the updated 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 disable.
fun disableCapabilityWith(accountId: String, name: String, completionHandler: (CapabilityObjects.Capability?, NetworkingError?) -> Unit)
Disables 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 disable.
completion Handler
Invoked with the updated CapabilityObjects.Capability on success, or a NetworkingError on failure.