/**
  * 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 transaction history for the account id.
  *
  * @param string $accountId
  *
  * @return Response\Transactions
  */
 public function getTransactionsForAccountId($accountId)
 {
     return $this->client->deserializeResponse($this->client->get('/transactions', ['query' => ['account_id' => $accountId]]), Response\Transactions::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);
 }