request Capabilities
suspend fun requestCapabilities(accountId: String, request: CapabilityRequests.RequestCapabilitiesRequest): Pair<List<CapabilityObjects.Capability>?, NetworkingError?>
Requests one or more capabilities for the given account.
Return
A pair containing the list of newly requested CapabilityObjects.Capability objects on success, or a NetworkingError on failure.
Parameters
account Id
The merchant account ID to request capabilities for.
request
The request body specifying which capabilities to enable.
fun requestCapabilities(accountId: String, request: CapabilityRequests.RequestCapabilitiesRequest, completionHandler: (List<CapabilityObjects.Capability>?, NetworkingError?) -> Unit)
Requests one or more capabilities for the given account and delivers the result via a callback.
Parameters
account Id
The merchant account ID to request capabilities for.
request
The request body specifying which capabilities to enable.
completion Handler
Invoked with the list of newly requested CapabilityObjects.Capability objects on success, or a NetworkingError on failure.