-
Notifications
You must be signed in to change notification settings - Fork 924
Polymorphic types #28
Copy link
Copy link
Closed
Labels
Description
At @balanced, we have an endpoint, transactions, that returns polymorphic types of Credit, Debit, Hold, Refund, and Reversal . The transactions endpoint returns these objects in order of creation.
How would the payload structure look like?
{
'transactions': [
{
'debit': {
'id': 'WDxxxxx',
'uri': '/v1/holds/WDxxxxx',
'created_at': '2013-04-02',
},
},
{
'hold': {
'id': 'HLxxxxx',
'uri': '/v1/holds/HLxxxxx',
'created_at': '2013-04-01',
},
},
]
}Is this the right way?
Reactions are currently unavailable