I have a problem which is as follows.
We are starting to accept corporate cards in our Kiosks, The corporate cards authorization algorithm/routines will be different for companies. We would like to have a design in place which will help us to add a new algorithm/routines to the existing system with minimum coding whenever a company approaches us with their algorithm/routines.
Thanks in advance,
Joe.
Take a look at the Strategy design pattern
Guess this would be the closest to what you are trying to achieve!
You will need a CardStrategyBase class with standard methods to handle the work.
Then, Card1Strategy class, Card2Strategy class,… etc. Will have the actual algorithm implementation specific to each card type. All stuff common to all card types can go into the CardStrategyBase class.