Non-equilibrium thermodynamics of a discontinuity surface