private IEnumerable<Payment> GetPaymentsByTransactionType(IEnumerable<Payment> payments, TransactionType[] types)
 {
     return payments.Where(x => types.Any(type => GetPaymentTransactionType(x) == type));
 }