A Generalization of the Lundberg Condition in the Sparre Andersen Model and Some Applications