Trade credit in a monetary economy