...
NAME: The name of a provider, used to distinguish provider in the admin panel
EMAIL: Additional field, useful to keep the provider's email address, not used in the integration logic itself
CODE: Used to link a specific provider to specific logic in code. More information is below, in a separate paragraph
ADDITIONAL CONFIGURATION: This section allows to set additional data for a specific provider, see below for more information
...
Any number of additional fields can be specified.
Field CODE
The requirements in the project can be very complicated and require highly complex custom logic.
For example:
Stock data is taken from several different places and need different parsing before it is added to Magento
The order should be sent in different formats to multiple systems/departments (management, marketing, shipping)
Prices, additional product information and translations of descriptions are taken from various systems and before importing into the database, should be properly prepared
In those cases, custom logic in the code is required.
The CODE field can be used to connect a specific provider with the appropriate fragment in the code. This field doesn't need to be unique, so several providers can use the same logic in the code.