Phonon-mediated pairing correlations in the generalized Hubbard model