You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The transactions endpoint returns holds, debits, refunds, and debits. You can't filter out specific objects because there is no field to filter on. If balanced added something akin to "object": "debit" it would solve this problem.
The text was updated successfully, but these errors were encountered:
There are a few reasons why this is particularly useful:
For static clients, it allows the mapping to objects in java/.NET pretty trivial as it's just a registry lookup instead of a matching/type mapping on the URI scheme. Since those languages have very limited dynamic abilities, this makes it much easier to program for those languages. See http://john-sheehan.com/post/18688963163/dont-build-the-best-rest-api-build-the-best-http-api
Right now, our clients use the information in the URIs to map them to objects, this trivializes the casts to objects and avoids brittleness in our clients.
It allows discoveries and polymorphism via objects in a pretty standard manner.
However, I'm proposing another addition for type casting, which is _uris or _uri_types. For example, if we had an invoices endpoint that gave a convenient "failed_debits" link that pre-constructed the query parameter, it would be impossible to figure out the type that would come back from that URI. This will allow us to construct the right object from URIs.
This is the core problem from #13.
The transactions endpoint returns holds, debits, refunds, and debits. You can't filter out specific objects because there is no field to filter on. If balanced added something akin to
"object": "debit"
it would solve this problem.The text was updated successfully, but these errors were encountered: