Skip to content

Commit 84771c9

Browse files
author
Jani Giannoudis
committed
updated version to 0.9.0-beta.4
1 parent fa832c3 commit 84771c9

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

Client.Test/Case/CaseCustomTest.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,17 @@ protected T GetCasePeriodValue<T>(string caseFieldName)
113113

114114
/// <summary>Get case raw values</summary>
115115
/// <param name="caseFieldName">The case field name</param>
116+
/// <param name="regulationDate">The regulation date (default: UTC now)</param>
117+
/// <param name="evaluationDate">The evaluation date (default: value date)</param>
116118
/// <param name="caseSlot">The case slot</param>
117119
/// <returns>The case raw values</returns>
118-
protected List<CaseFieldValue> GetCaseValues(string caseFieldName, string caseSlot = null)
120+
protected List<CaseFieldValue> GetCaseValues(string caseFieldName, DateTime? regulationDate = null,
121+
DateTime? evaluationDate = null, string caseSlot = null)
119122
{
120123
var period = Context.EvaluationPeriod;
121124
var caseValues = new PayrollService(HttpClient).GetCaseValuesAsync(
122125
new(Tenant.Id, Payroll.Id), period.Start, period.End,
123-
[caseFieldName], Employee?.Id, caseSlot).Result;
126+
[caseFieldName], Employee?.Id, regulationDate, evaluationDate, caseSlot).Result;
124127
return caseValues;
125128
}
126129

Client.Test/PayrollEngine.CaseTest.schema.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,20 @@
11071107
"description": "The cancellation date",
11081108
"format": "date-time"
11091109
},
1110+
"reason": {
1111+
"type": [
1112+
"null",
1113+
"string"
1114+
],
1115+
"description": "The change reason"
1116+
},
1117+
"forecast": {
1118+
"type": [
1119+
"null",
1120+
"string"
1121+
],
1122+
"description": "The change forecast"
1123+
},
11101124
"fields": {
11111125
"type": [
11121126
"array",

Client.Test/PayrollEngine.Client.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Microsoft.CodeAnalysis.Compilers" Version="4.13.0" />
20-
<PackageReference Include="PayrollEngine.Client.Core" Version="0.9.0-beta.3" />
20+
<PackageReference Include="PayrollEngine.Client.Core" Version="0.9.0-beta.4" />
2121
</ItemGroup>
2222

2323
<!-- include xml documention files and json schemas to the nuget package -->

Client.Test/PayrollEngine.Client.Test.xml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>0.9.0-beta.3</Version>
5+
<Version>0.9.0-beta.4</Version>
66
<FileVersion>0.9.0</FileVersion>
77
<InformationalVersion></InformationalVersion>
88
<Authors>Jani Giannoudis</Authors>

0 commit comments

Comments
 (0)