Service Layer medium complexity mobile
1
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Fetches and caches the organization-specific benefit category configuration stored as JSON in the PostgreSQL database. Provides the calculation engine with valuation formulas, category definitions, and display labels configured by the organization administrator through the admin panel.

Feature: Peer Mentor Advantage Calculator

benefit-config-service

Responsibilities

  • Fetch benefit category configuration from REST API for the active organization
  • Cache configuration locally to minimize network requests
  • Parse JSON configuration into typed BenefitConfig models
  • Expose configuration to the calculation service

Interfaces

getBenefitConfig(String organizationId)
refreshConfig()
getCachedConfig()
parseBenefitConfigJson(Map<String, dynamic> json)

Relationships

Dependencies (1)

Components this component depends on

Dependents (1)

Components that depend on this component