refactor revenue method for merchant_repository