I've got a central vacuum hose that has a broken 3way on-off-on rocker switch. It has 4 wires connected to it. I've seen several suitable replacement switches with varying numbers of pins, from 3 to 10. I'm unsure of which switch to buy (i.e. how many pins) and how to wire it.
It looks like a DPDT switch where they cut off one of the legs before soldering the board. Black is closed in either "on" position, and white is closed in only one of the "on" positions. Some DPDT switches have a center position which is all-disconnected, and I presume this switch has that feature, otherwise the black wiring would be utterly pointless.
If you want component switches, my usual places are Digi-key, Mouser, Newark, Galco and other electronics suppliers. They are relatively standardized most of the time. Trying to match a switch is a chore, but you might as well learn it. Numbers on the switch can help, but some may be on the bottom and require unsoldering it.
Soldering is not a huge job, but to un-solder, you're going to want a "snap" solder-sucker, solder wick, or both. It's all done from the solder side of the board. Don't heat it for too long or you'll cook the board, so if an attempt fails, move to a distant pad, or give it 2 minutes to cool off. When un-soldering is done well, the device wtill won't come out because each pin will still be stuck to the hole by a microscopic amount of solder, but nudging the pin sideways will cause it to release. If you're nudging hard enough to bend the pin, you haven't removed enough solder.