A parafermionic generalization of the Jaynes–Cummings model