/** * Remove annotation(s) for a transaction. * * @param string $transactionId * @param string $keys * * @return \Psr\Http\Message\ResponseInterface */ public function removeAnnotationForTransaction($transactionId, $keys) { if (is_string($keys)) { $keys = [$keys]; } $keys = array_flip($keys); return $this->client->get('/transactions/' . $transactionId, ['body' => ['metadata' => $keys]]); }
/** * Get details about the current client. * * @return Response\Ping\WhoAmI */ public function whoAmI() { return $this->client->deserializeResponse($this->client->get('/ping/whoami'), Response\Ping\WhoAmI::class); }
/** * Get a list of accounts for the authorised user. * * @return Response\Accounts */ public function getAccounts() { return $this->client->deserializeResponse($this->client->get('/accounts'), Response\Accounts::class); }
/** * Get the balance for an account id. * * @param string $accountId * * @return Response\Balance */ public function getBalanceForAccountId($accountId) { return $this->client->deserializeResponse($this->client->get('/balance', ['query' => ['account_id' => $accountId]]), Response\Balance::class); }