Skip to content

NZP-5516 Update tests to remove usage of deprecated NZ API fields#426

Merged
the-chris-mitchell merged 4 commits into
XeroAPI:masterfrom
Xero-Chris-Lelievre:NZP-5516
Nov 25, 2025
Merged

NZP-5516 Update tests to remove usage of deprecated NZ API fields#426
the-chris-mitchell merged 4 commits into
XeroAPI:masterfrom
Xero-Chris-Lelievre:NZP-5516

Conversation

@Xero-Chris-Lelievre

Copy link
Copy Markdown
Contributor

Allows this PR against the open api spec to build
XeroAPI/Xero-OpenAPI#779

assertThat(response.getLeaveType().getLeaveTypeID(), is(equalTo(UUID.fromString("35da97ae-05b9-427f-9a98-69157ba42cec"))));
assertThat(response.getLeaveType().getScheduleOfAccrual(), is(equalTo(com.xero.models.payrollnz.EmployeeLeaveType.ScheduleOfAccrualEnum.ANNUALLYAFTER6MONTHS)));
assertThat(response.getLeaveType().getHoursAccruedAnnually(), is(equalTo(10.0)));
assertThat(response.getLeaveType().getUnitsAccruedAnnually(), is(equalTo(0.0)));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Author: the unitsAccruedAnnually has a value of 0 in the sdk, hence the value update
https://github.com/XeroAPI/Xero-OpenAPI/blob/b12343a7010ef138f893b1ae28662875db276cea/xero-payroll-nz.yaml#L1828

@the-chris-mitchell
the-chris-mitchell force-pushed the NZP-5516 branch 2 times, most recently from 64781e8 to 8c69786 Compare November 25, 2025 02:04
@the-chris-mitchell
the-chris-mitchell merged commit 8fccdb5 into XeroAPI:master Nov 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants