I am building some middleware between our ERP and a cloud based online store. We have multiple business divisions who will use this cloud based ERP, however each business stores their attributes (such as product related attributes) in different fields in the ERP. Because of this, I can't have a standard method of grabbing the data from the ERP. They may map to the same destination fields but they won't come from the same place.
What is the best way to build this in a way that I can have different configurations for different business divisions?
I'm thinking the best way to approach this might be to have an
AbstractProductTransformer that has the common attributes, and then have the business division specific implementations such as
Business2ProductTransformer that implements
I would then have a factory method that would return an
Is this the best approach?