Thankfully I've never experienced anything quiet the same as this. I've been deliberately mis-gendered on a couple of occasions but I've let those pass me by. However as time has gone by I've resolved that in future I'm going to politely say something along the lines of. "Excuse me, but I would consider it a great kindness if you'd please address me the same way as you'd address any female customer.

If as in the O.P. there's a further rudeness then I'd ask to speak to the manager. I certainly wouldn't be seeking the dismissal of the employee. I'd request that they're better trained to politely deal with those who undertake a different lifestyle. To treat all equally. Retribution only furthers hate.