Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/sdk99_removeBankPin'
Browse files Browse the repository at this point in the history
  • Loading branch information
javaes committed Nov 1, 2018
2 parents a418ed8 + 209b682 commit 08402a3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/main/java/me/figo/FigoSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -918,12 +918,14 @@ public Bank updateBank(Bank bank) throws FigoException, IOException {
*
* @param bankId
* ID of the bank whose pin should be removed
* @return
*
* @exception FigoException Base class for all figoExceptions
* @exception IOException IOException
*/
public void removeBankPin(String bankId) throws FigoException, IOException {
this.queryApi("/rest/banks/" + bankId + "/remove_pin", null, "POST", null);
public Bank removeBankPin(String bankId) throws FigoException, IOException {
Bank bankResponse = (Bank) this.queryApi("/rest/banks/" + bankId + "/remove_pin", null, "POST", null);
return bankResponse;
}

/**
Expand All @@ -935,8 +937,9 @@ public void removeBankPin(String bankId) throws FigoException, IOException {
* @exception FigoException Base class for all figoExceptions
* @exception IOException IOException
*/
public void removeBankPin(Bank bank) throws FigoException, IOException {
removeBankPin(bank.getBankId());
public Bank removeBankPin(Bank bank) throws FigoException, IOException {
Bank bankResponse = (Bank) removeBankPin(bank.getBankId());
return bankResponse;
}

/**
Expand Down

0 comments on commit 08402a3

Please sign in to comment.