Skip to content

Commit

Permalink
Removing double function
Browse files Browse the repository at this point in the history
  • Loading branch information
angerits committed Mar 18, 2015
1 parent b06bd76 commit 7418d4f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions figo/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
*
Expand Down

0 comments on commit 7418d4f

Please sign in to comment.