Architecture: SAP Commerce Integration
This section describes how the SAP Commerce integration module fits into the Archibald ecosystem.
High-Level Architecture
The SAP Commerce integration acts as a concrete implementation layer for the universal commerce features of Archibald. It provides the adapters and providers that bridge the gap between generic framework interfaces and the specific requirements of the SAP Commerce OCC APIs.
Connection with Other Areas
- BFF (Backend for Frontend): The integration provides
Providers(e.g.,CommerceProductProvider) that are registered in the server-side modules. These providers handle the actual HTTP requests to the OCC APIs, including header management and authentication. - Data Mapping: A crucial part of this sub-module is the mapping logic. It transforms the often complex and nested OCC responses into the clean, standardized TypeScript interfaces used by the Archibald frontend.
- Authentication: It integrates with the
@archibald/authpackage to ensure that requests are properly signed with OAuth tokens for both registered and anonymous users.