While trying to list all Transactions for a certain Client I got this NullPointerException.
This occurs when Jackson tries to serialize the Transaction that contains a Refund, that again contains a Transaction which does not have a responseCode property set.
When Jackson tries to access the getResponseCodeDetail method, from the Refunded transaction, this null value is compared and Java throws an Exception when unboxing the Integer value.
There should be a null check before these if checks to fix this issue.