refactors the models for merchant, saq, and scan