Skip to content

Commit e03ee93

Browse files
chore!: remove deprecated NZ fields
BREAKING CHANGE: remove deprecated fields SickLeaveHoursToAccrueAnnually -> SickLeaveToAccrueAnnually, SickLeaveMaximumHoursToAccrue -> SickLeaveMaximumToAccrue, HoursAccruedAnnually -> UnitsAccruedAnnually These fields have been disconnected in the backend for some time so safe to remove update incorrect description for rateAccruedHourly on NZ employee leave type
1 parent b12343a commit e03ee93

File tree

1 file changed

+3
-42
lines changed

1 file changed

+3
-42
lines changed

xero-payroll-nz.yaml

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,22 +1565,6 @@ paths:
15651565
default: 25.89
15661566
is_money: true
15671567
object: employeeLeaveSetup
1568-
- sickLeaveHoursToAccrueAnnually:
1569-
key: sickLeaveHoursToAccrueAnnually
1570-
keyPascal: SickLeaveHoursToAccrueAnnually
1571-
keySnake: sick_leave_hours_to_accrue_annually
1572-
nonString: true
1573-
default: 100.0
1574-
is_money: true
1575-
object: employeeLeaveSetup
1576-
- sickLeaveMaximumHoursToAccrue:
1577-
key: sickLeaveMaximumHoursToAccrue
1578-
keyPascal: SickLeaveMaximumHoursToAccrue
1579-
keySnake: sick_leave_maximum_hours_to_accrue
1580-
is_money: true
1581-
nonString: true
1582-
default: 200.0
1583-
object: employeeLeaveSetup
15841568
- sickLeaveOpeningBalance:
15851569
key: sickLeaveOpeningBalance
15861570
keyPascal: SickLeaveOpeningBalance
@@ -1659,9 +1643,7 @@ paths:
16591643
holidayPayOpeningBalance: 10
16601644
annualLeaveOpeningBalance: 100
16611645
negativeAnnualLeaveBalancePaidAmount: null
1662-
sickLeaveHoursToAccrueAnnually: 20
16631646
sickLeaveToAccrueAnnually: 20
1664-
sickLeaveMaximumHoursToAccrue: null
16651647
sickLeaveMaximumToAccrue: null
16661648
sickLeaveOpeningBalance: 10
16671649
sickLeaveScheduleOfAccrual: OnAnniversaryDate
@@ -1682,7 +1664,6 @@ paths:
16821664
example:
16831665
holidayPayOpeningBalance: 10
16841666
annualLeaveOpeningBalance: 100
1685-
sickLeaveHoursToAccrueAnnually: 20
16861667
sickLeaveToAccrueAnnually: 20
16871668
sickLeaveOpeningBalance: 10
16881669
sickLeaveScheduleOfAccrual: OnAnniversaryDate
@@ -1728,7 +1709,6 @@ paths:
17281709
leaveTypes:
17291710
- leaveTypeID: 0441497f-5dc7-4cd3-a90d-f2e07e21b2a6
17301711
scheduleOfAccrual: PercentageOfGrossEarnings
1731-
hoursAccruedAnnually: 0
17321712
maximumToAccrue: 0
17331713
openingBalance: 0
17341714
rateAccruedHourly: null
@@ -1825,7 +1805,6 @@ paths:
18251805
leaveType:
18261806
leaveTypeID: 35da97ae-05b9-427f-9a98-69157ba42cec
18271807
scheduleOfAccrual: AnnuallyAfter6Months
1828-
hoursAccruedAnnually: 10
18291808
maximumToAccrue: 80
18301809
openingBalance: 100
18311810
rateAccruedHourly: null
@@ -1852,13 +1831,12 @@ paths:
18521831
example:
18531832
leaveTypeID: 35da97ae-05b9-427f-9a98-69157ba42cec
18541833
scheduleOfAccrual: AnnuallyAfter6Months
1855-
hoursAccruedAnnually: 10
18561834
unitsAccruedAnnually: 10
18571835
typeOfUnitsToAccrue: Hours
18581836
openingBalanceTypeOfUnits: Hours
18591837
maximumToAccrue: 80
18601838
openingBalance: 100
1861-
rateAccruedHourly: 3.5
1839+
rateAccruedHourly: null
18621840
/Employees/{EmployeeID}/PaymentMethods:
18631841
parameters:
18641842
- $ref: "#/components/parameters/requiredHeader"
@@ -6892,18 +6870,6 @@ components:
68926870
format: double
68936871
x-is-money: true
68946872
example: 10.0
6895-
sickLeaveHoursToAccrueAnnually:
6896-
description: Deprecated use SickLeaveToAccrueAnnually
6897-
type: number
6898-
format: double
6899-
x-is-money: true
6900-
example: 100.5
6901-
sickLeaveMaximumHoursToAccrue:
6902-
description: Deprecated use SickLeaveMaximumToAccrue
6903-
type: number
6904-
format: double
6905-
x-is-money: true
6906-
example: 200.5
69076873
SickLeaveToAccrueAnnually:
69086874
description: Number of units accrued annually for sick leave. The type of units is determined by the property "TypeOfUnitsToAccrue" on the "Sick Leave" leave type
69096875
type: number
@@ -6962,12 +6928,7 @@ components:
69626928
- OnAnniversaryDate
69636929
- PercentageOfGrossEarnings
69646930
- NoAccruals
6965-
hoursAccruedAnnually:
6966-
description: Deprecated use UnitsAccruedAnnually
6967-
type: number
6968-
format: double
6969-
x-is-money: true
6970-
UnitsAccruedAnnually:
6931+
unitsAccruedAnnually:
69716932
description: The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is "NoAccruals"
69726933
type: number
69736934
format: double
@@ -6989,7 +6950,7 @@ components:
69896950
description: The type of units for the opening balance
69906951
type: string
69916952
rateAccruedHourly:
6992-
description: The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is "OnHourWorked"
6953+
description: not supported in Payroll NZ
69936954
type: number
69946955
format: double
69956956
x-is-money: true

0 commit comments

Comments
 (0)