Update a Bank account

You can update the Bank account after it was created using its UID. This will trigger a validation if data except accountHolder is modified.

BankAccountRequest accountReq = new BankAccountRequest()
    .accountHolder("John Hancock")
    .accountNumber("1111-2222")
    .sortCode("1222")
    .iban("GB0000000000000")
    .bic("BICCODE")
    .countryIsoCode2("GB");

BankAccount account = gateway.bankAccount().update("account_uid", "customer_uid", accountReq);