stripe / stripe-java

Java library for the Stripe API.

Home Page:https://stripe.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Access to ABA fields in FinancialAddress object

dansharky opened this issue · comments

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

@dansharky Thanks for the report! It's on our list to add support for it, we'll circle back on this issue once it's done but it might take a while