The detriment caused by the breach of an obligation to pay money only, is deemed to be the amount due by the terms of the obligation, with interest thereon.
(Enacted 1872.)