-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Balanced::Debit.source sometimes returns a Hash #158
Comments
@taylorbrooks that is odd. Can I see the output of the funding instrument that's represented by the hash? i suspect there's something odd about the bank account/card e.g. it has been deleted and the client library is having trouble figuring out the type. |
{
"routing_number"=>"063115194",
"bank_name"=>"REGIONS BANK",
"_type"=>"bank_account",
"name"=>"E***a V**a",
"_uris"=>{},
"type"=>"checking",
"meta"=>{},
"account_number"=>"xxxxxxxxx0132",
"fingerprint"=>"a629871d5a4b3788e8f687d4eae10589c4a1bca8826082b3c12b2ca7cef1e3a7",
"can_debit"=>true
} |
Thanks. It is indeed a deleted funding instrument. It looks like the code requires a URI in order to determine the object type. Balanced needs to return URIs for all resources even if they have been deleted. This needs to be implemented in the API before we can fix it in the client libraries. I suspect the 1.1 revision will not be susceptible to this since it returns resources in a collection so this is only going to effect 1.0 clients. |
Ok, got it.
|
|
I'm trying to find failed debits originating from a Bank Account. Like so:
The problem here is that the debit
source
class is sometimes:Why would it return a hash? Shouldn't it always return either a Card or BankAccount object? I'm using 0.7.4 version of the gem.
The text was updated successfully, but these errors were encountered: