Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
KycDomain.cs
2{
6 public enum KycFlowState
7 {
8 Form,
9 Summary,
10 EditingFromSummary,
11 RejectedSummary,
12 PendingSummary
13 }
14
21 public sealed record KycNavigationSnapshot(int CurrentPageIndex, int AnchorPageIndex, KycFlowState State);
22
29 public sealed record KycFieldState(string Id, bool IsValid, string? Value);
30
37 public sealed record KycPageState(string Id, bool IsVisible, IReadOnlyList<KycFieldState> FieldStates);
38
45 public sealed record KycProcessState(IReadOnlyList<KycPageState> Pages, KycNavigationSnapshot Navigation, bool ApplicationSent)
46 {
50 public IEnumerable<int> VisiblePageIndices => this.Pages.Select((p,i) => (p,i)).Where(t => t.p.IsVisible).Select(t => t.i);
51 }
52}
sealed record KycProcessState(IReadOnlyList< KycPageState > Pages, KycNavigationSnapshot Navigation, bool ApplicationSent)
Root aggregate-like snapshot passed through pure functions.
Definition: KycDomain.cs:45
KycFlowState
High-level flow states for the KYC process UI.
Definition: KycDomain.cs:7
sealed record KycPageState(string Id, bool IsVisible, IReadOnlyList< KycFieldState > FieldStates)
Immutable page state abstraction for domain calculations (validation, navigation decisions).
sealed record KycFieldState(string Id, bool IsValid, string? Value)
Immutable field state used by pure domain operations.
sealed record KycNavigationSnapshot(int CurrentPageIndex, int AnchorPageIndex, KycFlowState State)
Navigation snapshot capturing minimal mutable UI navigation state.