Setting GetTranactionData - take TransactionItem by files pdf and excel

It’s mean i must change the data type of variable TransactionItem to DataRow ?