Calculator Service
Component Detail
Service Layer
low complexity
backend
1
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Backend service that exposes a REST endpoint for retrieving the current benefit configuration (mileage rates, course credit values, organizational benefit rules) scoped to a specific organization. Allows org admins to update rates without requiring a mobile app release. Returns versioned config payloads consumed by the mobile cache layer.
calculator-service
Responsibilities
- Serve GET /api/v1/organizations/:orgId/benefit-config endpoint with current rates
- Validate and persist admin-submitted benefit rate updates
- Version benefit configurations so stale mobile caches can detect updates
- Enforce organization-scoped access control on all config reads and writes
Interfaces
getBenefitConfig(orgId: string) → BenefitConfig
updateBenefitConfig(orgId: string, config: BenefitConfigUpdate) → BenefitConfig
getBenefitConfigVersion(orgId: string) → ConfigVersion