11using System . Collections . Generic ;
22using System . ComponentModel . DataAnnotations ;
3+ using System . Text . Json . Serialization ;
34
45namespace PayrollEngine . Client . Model ;
56
@@ -8,85 +9,111 @@ public class Case : ModelBase, ICase, INameObject
89{
910 /// <inheritdoc/>
1011 [ Required ]
12+ [ JsonPropertyOrder ( 100 ) ]
1113 public CaseType CaseType { get ; set ; }
1214
1315 /// <summary>The case name</summary>
1416 [ Required ]
1517 [ StringLength ( 128 ) ]
18+ [ JsonPropertyOrder ( 101 ) ]
1619 public string Name { get ; set ; }
1720
1821 /// <inheritdoc/>
22+ [ JsonPropertyOrder ( 102 ) ]
1923 public Dictionary < string , string > NameLocalizations { get ; set ; }
2024
2125 /// <inheritdoc/>
26+ [ JsonPropertyOrder ( 103 ) ]
2227 public List < string > NameSynonyms { get ; set ; }
2328
2429 /// <inheritdoc/>
30+ [ JsonPropertyOrder ( 104 ) ]
2531 public string Description { get ; set ; }
2632
2733 /// <inheritdoc/>
34+ [ JsonPropertyOrder ( 105 ) ]
2835 public Dictionary < string , string > DescriptionLocalizations { get ; set ; }
2936
3037 /// <inheritdoc/>
38+ [ JsonPropertyOrder ( 106 ) ]
3139 public string DefaultReason { get ; set ; }
3240
3341 /// <inheritdoc/>
42+ [ JsonPropertyOrder ( 107 ) ]
3443 public Dictionary < string , string > DefaultReasonLocalizations { get ; set ; }
3544
3645 /// <inheritdoc/>
46+ [ JsonPropertyOrder ( 108 ) ]
3747 public string BaseCase { get ; set ; }
3848
3949 /// <inheritdoc/>
50+ [ JsonPropertyOrder ( 109 ) ]
4051 public List < CaseFieldReference > BaseCaseFields { get ; set ; }
4152
4253 /// <inheritdoc/>
54+ [ JsonPropertyOrder ( 110 ) ]
4355 public OverrideType OverrideType { get ; set ; }
4456
4557 /// <inheritdoc/>
58+ [ JsonPropertyOrder ( 111 ) ]
4659 public CaseCancellationType CancellationType { get ; set ; }
4760
4861 /// <inheritdoc/>
62+ [ JsonPropertyOrder ( 112 ) ]
4963 public bool Hidden { get ; set ; }
5064
5165 /// <inheritdoc/>
66+ [ JsonPropertyOrder ( 113 ) ]
5267 public string AvailableExpression { get ; set ; }
5368
5469 /// <inheritdoc/>
70+ [ JsonPropertyOrder ( 114 ) ]
5571 public string AvailableExpressionFile { get ; set ; }
5672
5773 /// <inheritdoc/>
74+ [ JsonPropertyOrder ( 115 ) ]
5875 public string BuildExpression { get ; set ; }
5976
6077 /// <inheritdoc/>
78+ [ JsonPropertyOrder ( 116 ) ]
6179 public string BuildExpressionFile { get ; set ; }
6280
6381 /// <inheritdoc/>
82+ [ JsonPropertyOrder ( 117 ) ]
6483 public string ValidateExpression { get ; set ; }
6584
6685 /// <inheritdoc/>
86+ [ JsonPropertyOrder ( 118 ) ]
6787 public string ValidateExpressionFile { get ; set ; }
6888
6989 /// <inheritdoc/>
70- public List < string > Lookups { get ; set ; }
71-
72- /// <inheritdoc/>
73- public List < CaseSlot > Slots { get ; set ; }
74-
75- /// <inheritdoc/>
90+ [ JsonPropertyOrder ( 119 ) ]
7691 public List < string > AvailableActions { get ; set ; }
7792
7893 /// <inheritdoc/>
94+ [ JsonPropertyOrder ( 120 ) ]
7995 public List < string > BuildActions { get ; set ; }
8096
8197 /// <inheritdoc/>
98+ [ JsonPropertyOrder ( 121 ) ]
8299 public List < string > ValidateActions { get ; set ; }
83100
84101 /// <inheritdoc/>
85- public Dictionary < string , object > Attributes { get ; set ; }
102+ [ JsonPropertyOrder ( 122 ) ]
103+ public List < string > Lookups { get ; set ; }
104+
105+ /// <inheritdoc/>
106+ [ JsonPropertyOrder ( 123 ) ]
107+ public List < CaseSlot > Slots { get ; set ; }
86108
87109 /// <inheritdoc/>
110+ [ JsonPropertyOrder ( 124 ) ]
88111 public List < string > Clusters { get ; set ; }
89112
113+ /// <inheritdoc/>
114+ [ JsonPropertyOrder ( 125 ) ]
115+ public Dictionary < string , object > Attributes { get ; set ; }
116+
90117 /// <summary>Initializes a new instance</summary>
91118 public Case ( )
92119 {
0 commit comments