Generalized Pexider equation on a restricted domain