Skip to content

Commit 71b055c

Browse files
committed
NZP-4591 add fields and alterations for HPA to schemas
1 parent 34213f6 commit 71b055c

File tree

1 file changed

+50
-6
lines changed

1 file changed

+50
-6
lines changed

xero-payroll-nz.yaml

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6838,12 +6838,21 @@ components:
68386838
type: number
68396839
format: double
68406840
x-is-money: true
6841+
numberOfUnitsTaken:
6842+
description: The number of units taken for the leave
6843+
type: number
6844+
format: double
6845+
typeOfUnits:
6846+
description: The type of units paid for the leave
6847+
type: string
6848+
typeOfUnitsTaken:
6849+
description: The type of units taken for the leave
6850+
type: string
68416851
periodStatus:
6842-
description: Period Status
6852+
description: Status of leave. "Estimated"
68436853
type: string
68446854
enum:
6845-
- Approved
6846-
- Completed
6855+
- Estimated
68476856
EmployeeLeaveBalances:
68486857
type: object
68496858
properties:
@@ -7108,13 +7117,25 @@ components:
71087117
x-is-money: true
71097118
example: 10.0
71107119
sickLeaveHoursToAccrueAnnually:
7111-
description: Number of hours accrued annually for sick leave. Multiply the number of days they're entitled to by the hours worked per day
7120+
description: Deprecated use SickLeaveToAccrueAnnually
71127121
type: number
71137122
format: double
71147123
x-is-money: true
71157124
example: 100.5
71167125
sickLeaveMaximumHoursToAccrue:
7117-
description: Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day
7126+
description: Deprecated use SickLeaveMaximumToAccrue
7127+
type: number
7128+
format: double
7129+
x-is-money: true
7130+
example: 200.5
7131+
SickLeaveToAccrueAnnually:
7132+
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
7133+
type: number
7134+
format: double
7135+
x-is-money: true
7136+
example: 100.5
7137+
SickLeaveMaximumToAccrue:
7138+
description: Maximum number of units accrued annually for sick leave. The type of units is determined by the property "TypeOfUnitsToAccrue" on the "Sick Leave" leave type
71187139
type: number
71197140
format: double
71207141
x-is-money: true
@@ -7135,6 +7156,12 @@ components:
71357156
format: date
71367157
example: 2020-01-19
71377158
x-is-date: true
7159+
AnnualLeaveAnniversaryDate:
7160+
description: The first date the employee will accrue Annual Leave, this is typically 12 months from their start date
7161+
type: string
7162+
format: date
7163+
example: 2020-01-19
7164+
x-is-date: true
71387165
EmployeeLeaveTypeObject:
71397166
type: object
71407167
properties:
@@ -7160,10 +7187,18 @@ components:
71607187
- PercentageOfGrossEarnings
71617188
- NoAccruals
71627189
hoursAccruedAnnually:
7163-
description: The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is "OnHourWorked"
7190+
description: Deprecated use UnitsAccruedAnnually
71647191
type: number
71657192
format: double
71667193
x-is-money: true
7194+
UnitsAccruedAnnually:
7195+
description: The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is "NoAccruals"
7196+
type: number
7197+
format: double
7198+
x-is-money: true
7199+
typeOfUnitsToAccrue:
7200+
description: The type of units accrued for the leave annually
7201+
type: string
71677202
maximumToAccrue:
71687203
description: The maximum number of hours that can be accrued for the leave
71697204
type: number
@@ -7174,6 +7209,9 @@ components:
71747209
type: number
71757210
format: double
71767211
x-is-money: true
7212+
openingBalanceTypeOfUnits:
7213+
description: The type of units for the opening balance
7214+
type: string
71777215
rateAccruedHourly:
71787216
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"
71797217
type: number
@@ -7642,6 +7680,12 @@ components:
76427680
isActive:
76437681
description: Shows whether the leave type is active or not
76447682
type: boolean
7683+
typeOfUnits:
7684+
description: The type of units to be paid for the leave type
7685+
type: string
7686+
typeOfUnitsToAccrue:
7687+
description: The type of units to be accrued for the leave type
7688+
type: string
76457689
Reimbursements:
76467690
type: object
76477691
properties:

0 commit comments

Comments
 (0)