I have a friend who bought the wrong Minecraft version (Bedrock Edition).
Can you somehow swap the versions now?
No as far as I don't know
Nope you can't. And when it comes to something other than a PC, there's nothing else anyway
No. You should think about that beforehand. Maybe you can talk to Mojang Studios or Microsoft if it wasn't that long ago (30 minutes).
You have the right of return within 2 weeks
It doesn't really work that way, but you can request a refund and / or say your friend bought the wrong version…