@@ -104,6 +104,30 @@ public class TimeRule
104104 [ System . Text . Json . Serialization . JsonPropertyName ( "onwork_flex_time" ) ]
105105 public int ? OnWorkFlexTime { get ; set ; }
106106 }
107+
108+ public class BiWeekly
109+ {
110+ /// <summary>
111+ /// 获取或设置是否开启大小周。
112+ /// </summary>
113+ [ Newtonsoft . Json . JsonProperty ( "enable_weekday_recurrence" ) ]
114+ [ System . Text . Json . Serialization . JsonPropertyName ( "enable_weekday_recurrence" ) ]
115+ public bool ? EnableWeekdayRecurrence { get ; set ; }
116+
117+ /// <summary>
118+ /// 获取或设置奇数周次序号列表。
119+ /// </summary>
120+ [ Newtonsoft . Json . JsonProperty ( "odd_workdays" ) ]
121+ [ System . Text . Json . Serialization . JsonPropertyName ( "odd_workdays" ) ]
122+ public IList < int > ? OddWorkdayList { get ; set ; }
123+
124+ /// <summary>
125+ /// 获取或设置偶数周次序号列表。
126+ /// </summary>
127+ [ Newtonsoft . Json . JsonProperty ( "even_workdays" ) ]
128+ [ System . Text . Json . Serialization . JsonPropertyName ( "even_workdays" ) ]
129+ public IList < int > ? EvenWorkdayList { get ; set ; }
130+ }
107131 }
108132
109133 /// <summary>
@@ -161,6 +185,13 @@ public class TimeRule
161185 [ Newtonsoft . Json . JsonProperty ( "late_rule" ) ]
162186 [ System . Text . Json . Serialization . JsonPropertyName ( "late_rule" ) ]
163187 public Types . LateRule ? LateRule { get ; set ; }
188+
189+ /// <summary>
190+ /// 获取或设置大小周信息。
191+ /// </summary>
192+ [ Newtonsoft . Json . JsonProperty ( "biweekly" ) ]
193+ [ System . Text . Json . Serialization . JsonPropertyName ( "biweekly" ) ]
194+ public Types . BiWeekly ? BiWeekly { get ; set ; }
164195 }
165196
166197 public class CheckinTime
@@ -716,6 +747,44 @@ public class Vacation
716747 [ System . Text . Json . Serialization . JsonPropertyName ( "vacation" ) ]
717748 public Types . Vacation ? Vacation { get ; set ; }
718749 }
750+
751+ public class TimeUnitConfig
752+ {
753+ /// <summary>
754+ /// 获取或设置加班单位类型。
755+ /// </summary>
756+ [ Newtonsoft . Json . JsonProperty ( "ot_time_unit" ) ]
757+ [ System . Text . Json . Serialization . JsonPropertyName ( "ot_time_unit" ) ]
758+ public int ? OvertimeTimeUnit { get ; set ; }
759+
760+ /// <summary>
761+ /// 获取或设置每天时长(单位:秒)。
762+ /// </summary>
763+ [ Newtonsoft . Json . JsonProperty ( "perday_duration_secs" ) ]
764+ [ System . Text . Json . Serialization . JsonPropertyName ( "perday_duration_secs" ) ]
765+ public int ? DurationSecondsPerDay { get ; set ; }
766+
767+ /// <summary>
768+ /// 获取或设置舍入方式。
769+ /// </summary>
770+ [ Newtonsoft . Json . JsonProperty ( "rounding_method" ) ]
771+ [ System . Text . Json . Serialization . JsonPropertyName ( "rounding_method" ) ]
772+ public int ? RoundingMethod { get ; set ; }
773+
774+ /// <summary>
775+ /// 获取或设置舍入保留小数位数。
776+ /// </summary>
777+ [ Newtonsoft . Json . JsonProperty ( "rounding_precision" ) ]
778+ [ System . Text . Json . Serialization . JsonPropertyName ( "rounding_precision" ) ]
779+ public int ? RoundingPrecision { get ; set ; }
780+
781+ /// <summary>
782+ /// 获取或设置舍入时取整步长。
783+ /// </summary>
784+ [ Newtonsoft . Json . JsonProperty ( "step_size" ) ]
785+ [ System . Text . Json . Serialization . JsonPropertyName ( "step_size" ) ]
786+ public int ? StepSize { get ; set ; }
787+ }
719788 }
720789
721790 /// <summary>
@@ -738,6 +807,13 @@ public class Vacation
738807 [ Newtonsoft . Json . JsonProperty ( "holidayconf" ) ]
739808 [ System . Text . Json . Serialization . JsonPropertyName ( "holidayconf" ) ]
740809 public Types . Configuration ? HolidayConfiguration { get ; set ; }
810+
811+ /// <summary>
812+ /// 获取或设置加班单位配置信息。
813+ /// </summary>
814+ [ Newtonsoft . Json . JsonProperty ( "time_unit_config" ) ]
815+ [ System . Text . Json . Serialization . JsonPropertyName ( "time_unit_config" ) ]
816+ public Types . TimeUnitConfig ? TimeUnitConfig { get ; set ; }
741817 }
742818
743819 public class RecheckinReminder
0 commit comments