Heat oil in a heavy pot over medium. Cook onion, carrots and celery for 8 minutes until beginning to soften.
Stir in garlic and thyme for 30 seconds, then add bay leaf and broth.
Bring to a boil, reduce to a gentle simmer, cover partially and cook 15 to 20 minutes until carrots are nearly tender.
Mash 1 can of drained beans with a little hot broth, then stir the mash and the remaining whole beans into the pot.
Stir in fully cooked ham and pepper and simmer 8 to 12 minutes until the soup is hot and the vegetables are tender.
Remove bay leaf, stir in vinegar, taste before adding any salt and rest 10 minutes. Add optional parsley.