diff --git a/figo/Session.php b/figo/Session.php index 60c6e88..0d46f67 100644 --- a/figo/Session.php +++ b/figo/Session.php @@ -192,6 +192,18 @@ public function get_transactions($account_id = null, $since = null, $count = 100 return $result; } + /** + * Retrieve a specific transaction + * + * @param string ID of the account on which the transaction occured + * @param string ID of the transaction to be retrieved + * @return Transaction a `Transaction` object representing the transaction to be retrieved + */ + public function get_transaction($account_id, $transaction_id) { + $response = $this->query_api("/rest/accounts/".$account_id."/transactions/".$transaction_id); + return (is_null($response) ? null : new Transaction($this, $response)); + } + /** * Retrieve a specific bank * @@ -227,18 +239,6 @@ public function remove_bank_pin($bank_or_id) { } } - /** - * Request a single transaction - * - * @param string account ID - * @param string transaction ID - * @return Transaction transaction object - */ - public function get_transaction($account_id, $transation_id) { - $response = $this->query_api("/rest/accounts/".$account_id."/transactions/".$transation_id); - return (is_null($response) ? null : new Transaction($this, $response)); - } - /** * Request the URL a user should open in the web browser to start the synchronization process *