The Brave Adventures of Lapitch by Ivana Brlić-Mažuranić (1971) — see its film and TV adaptations.
A shoemaker's apprentice runs away from his unreasonable master and embarks on a week's adventures with a dog and an orphan girl.