She accepted my invitation to have dinner together.

Literal

She [topic-は] dinner [object-を] together [quotative-という] my invitation [object-を] accepted did-for-me.

という connects the quoted content ('let's have dinner together') to 招待 ('invitation'). 受け入れてくれた uses the benefactive くれた, framing her acceptance as a favor to the speaker.