Who is responsible when you barely open your car door and someone hits it shut in a parking lot?

Probably both parties. Sounds like neither one of them was paying attention.