VSN-1999 : Rectifying external api call related to establishment data retrieval in the context of prepared passengers mass importation.
Merge Request Description
Title
Integration of External Establishment Retrieval by UAI Code
Overview
This merge request introduces the capability to retrieve establishment data via an external admin service using the UAI code, and integrates this data into the mass importation workflow. It ensures that establishment metadata—particularly the establishment name—is properly fetched and persisted during import processes.
Scope of Changes
The changes cover:
- External admin service contract
- External call implementation
- Mass importation logic enhancement
Detailed Changes
1. External Service Contract Extension
- Added a new method signature in the admin external service.
- The method allows fetching establishment data using a UAI code.
- Establishes a clear contract for future external integrations related to establishments.
2. External Call Implementation
- Implemented the external admin call to retrieve establishment details by UAI code.
- Handles the communication with the external admin system.
- Ensures reliable establishment data retrieval for downstream usage.
3. Mass Importation Enhancement
- Updated the mass importation logic to persist the establishment name.
- The establishment name is now saved as part of the import process.
- Improves data completeness and traceability of imported records.
Benefits
- Enables dynamic retrieval of establishment data via UAI code
- Centralizes establishment data sourcing through the admin external service
- Improves data quality during mass importation
- Prepares the system for future establishment-related integrations
Impacted Areas
- Admin external service interface
- External service implementation layer
- Mass importation business logic
Backward Compatibility
- No breaking changes introduced
- Existing importation flows remain functional
- New functionality is additive and safely integrated
Conclusion
This merge request enhances the system by integrating an external admin call to fetch establishment data by UAI code and by ensuring that the retrieved establishment name is persisted during mass importation. The changes improve data accuracy, extensibility, and overall robustness of the import workflow.
Closes VSN-1999