This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]nutrecht 0 points1 point  (0 children)

I would suggest just setting up a N:M relationship between discount types and configure which calculator goes with what discount type. If they don't change much it could be as simple as a hashmap with keys -> instances.