disableCapabilityWith

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

accountId

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

accountId

The merchant account ID that owns the capability.

name

The name identifier of the capability to disable.

completionHandler

Invoked with the updated CapabilityObjects.Capability on success, or a NetworkingError on failure.