Data Layer low complexity mobile
0
Dependencies
2
Dependents
0
Entities
0
Integrations

Description

Data access layer responsible for retrieving and locally caching the advantage calculator configuration from the backend REST API. Handles HTTP requests to the benefit configuration endpoint and maps response payloads to domain models used by the calculation service.

Feature: Peer Mentor Advantage Calculator

advantage-config-repository

Responsibilities

  • Perform HTTP GET requests to the benefit configuration endpoint
  • Cache configuration responses in local storage for offline access
  • Map API response payloads to BenefitConfig domain models
  • Invalidate cache on organization change

Interfaces

fetchBenefitConfig(String organizationId)
saveCachedConfig(BenefitConfig config)
loadCachedConfig(String organizationId)
clearCache()

Relationships

Dependents (2)

Components that depend on this component