Tuesday, January 18, 2022
2 changes · master
Code cleanup and technical improvements
This update simplifies internal web interface code and related tests ahead of a future framework upgrade. It should not change day-to-day user behavior, but helps make the platform easier to maintain and modernize.
Delivery providers can now rely on common package and commodity information prepared in the base delivery module. This reduces duplicated provider-specific work and helps make shipping and commercial invoice data more consistent across carriers.
Original PR description
Each delivery provider, requires some information about the packages that need to be sent as well as about the commodities (for commecial invoices). Since this is needed by each provider, and the required values are very similar, these packages and commodities can be done one step ahead: in the base delivery module. These new `_get` functions return a list of custom objects containing the most important values concerning packages and commodities, and can be called directly from the child classes.