The electronic payments framework is designed to be extended, and when we dive into this framework, we can see that a lot of thought went into its design.
The first part of the problem that the designers faced was how to construct a specialized class that exports the required format. Since Dynamics AX is a global ERP solution, there can be many of these formats.
A common solution would be to use an enum, with an element for each format. We could use this enum within the user interface to configure which format to use, and also within code in order to construct the appropriate class. This is how the
PurchLineType constructs its various specialized classes.
The problem is that this would require a ...