platform-core/modules/serviceCenter/context.py
ValueOn AG 4a60086c80
Some checks failed
Deploy Plattform-Core (Int) / test (push) Failing after 15s
Deploy Plattform-Core (Int) / deploy (push) Has been skipped
cp adapted to 2026 poweron
2026-06-09 09:53:31 +02:00

25 lines
771 B
Python

# 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