Skip to content

Access to ABA fields in FinancialAddress object #1658

Open
@dansharky

Description

Is your feature request related to a problem? Please describe.

Hello,
currently one can access IBAN object contained in FinancialAddress:

var iban = financialAddress.getIban();
var bic = iban.getBic(); 

However, if I want to access ABA fields eg. account_number, routing_number and etc.
I still have to get those fields from the json object:

JsonArray financialAdresses = paymentIntent.getRawJsonObject()
.getAsJsonObject("next_action")
.getAsJsonObject("display_bank_transfer_instructions")
.getAsJsonArray("financial_addresses");

JsonObject aba = financialAdresses.get(0).getAsJsonObject();

Describe the solution you'd like

It would be great to access ABA object and its fields in the same way as IBAN:

var aba = financialAddress.getAba();
var accountNumber = aba.getAccountNumber(); 

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions