@NonNull
private static Map<String, Object> hashMapFromBankAccount(
@Nullable UidProvider provider,
@NonNull Context context,
@NonNull BankAccount bankAccount) {
Map<String, Object> tokenParams = new HashMap<>();
Map<String, Object> accountParams = new HashMap<>();
accountParams.put("country", bankAccount.getCountryCode());
accountParams.put("currency", bankAccount.getCurrency());
accountParams.put("account_number", bankAccount.getAccountNumber());
accountParams.put("routing_number",
StripeTextUtils.nullIfBlank(bankAccount.getRoutingNumber()));
accountParams.put("account_holder_name",
StripeTextUtils.nullIfBlank(bankAccount.getAccountHolderName()));
accountParams.put("account_holder_type",
StripeTextUtils.nullIfBlank(bankAccount.getAccountHolderType()));
removeNullAndEmptyParams(accountParams);
tokenParams.put(Token.TYPE_BANK_ACCOUNT, accountParams);
addUidParams(provider, context, tokenParams);
return tokenParams;
}