Add 'delivered_amount' to Transaction JSON (RIPD-643):

The synthetic field 'delivered_amount' can be used to determine the exact
amount delivered by a Payment without having to check the DeliveredAmount
field, if present, or the Amount field otherwise.

The field is only returned when metadata is available and the data is not
returned in binary format.
[FOLD] Unindent and small cleanups