getCapabilityWith

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

accountId

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

accountId

The merchant account ID that owns the capability.

name

The name identifier of the capability to retrieve.

completionHandler

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