adding transactiondetails class and method to return json