I'd quibble with that definition of "metonymy." I think you provided the definition of "synechdoche," which is a rather specific form of metonymy.
When someone says, "The White House announced a new policy," that's metonymy, but it's not using a part to refer to the whole.