# Copyright (c) 2026 PowerOn AG # All rights reserved. """ Service Center Context. Minimal context passed to services: user, mandate, feature instance, workflow. """ from dataclasses import dataclass from typing import Any, Optional from modules.datamodels.datamodelUam import User @dataclass class ServiceCenterContext: """Context for service resolution: user, mandate, feature instance, optional workflow.""" user: User mandateId: Optional[str] = None featureInstanceId: Optional[str] = None workflowId: Optional[str] = None workflow: Any = None requireNeutralization: Optional[bool] = None # When workflow is absent (e.g. workspace agent), billing/UI still need feature code for transactions. featureCode: Optional[str] = None