Skip to content

Commit

Permalink
feat: SDK method to create GB bank account
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Müller committed Apr 4, 2019
1 parent 13c6a60 commit bbc933e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion MangoPay/ApiBankAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,18 @@ public function GetTransactions($bankAccountId, & $pagination = null, $filter =
* @param string|null $idempotencyKey
* @return \MangoPay\BankAccount
*/
public function Create($bankAccount, $idempotencyKey = null)
public function CreateIBAN($bankAccount, $idempotencyKey = null)
{
return $this->CreateObject('users_createbankaccounts_iban', $bankAccount, '\MangoPay\BankAccount', $bankAccount->UserId, null, $idempotencyKey);
}

/**
* @param $bankAccount
* @param null $idempotencyKey
* @return object
*/
public function CreateGB($bankAccount, $idempotencyKey = null)
{
return $this->CreateObject('users_createbankaccounts_gb', $bankAccount, '\MangoPay\BankAccount', $bankAccount->UserId, null, $idempotencyKey);
}
}

0 comments on commit bbc933e

Please sign in to comment.