I got the vacuum for $10, and I salvaged the power cable from another vacuum I got for free.

I soldered the connections, and I used the appropriate amount of flux. I also used shrink tubes