Andy you gave the dealer the whole bike. They only took the wheel the default is not your responsibility. New bike time. And sale of goods act merchantable quality. Dose it do what you expect?
A dead rear light needs replacing and isn't enough on its own to return the bike but no electric drive...