Skip to content

Commit c47ddb8

Browse files
committed
feat: add fields to leave objects for NZ holidays act
1 parent 34213f6 commit c47ddb8

File tree

1 file changed

+53
-7
lines changed

1 file changed

+53
-7
lines changed

xero-payroll-nz.yaml

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6838,12 +6838,23 @@ 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
68436853
type: string
68446854
enum:
68456855
- Approved
68466856
- Completed
6857+
- Estimated
68476858
EmployeeLeaveBalances:
68486859
type: object
68496860
properties:
@@ -7108,13 +7119,25 @@ components:
71087119
x-is-money: true
71097120
example: 10.0
71107121
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
7122+
description: Deprecated use SickLeaveToAccrueAnnually
71127123
type: number
71137124
format: double
71147125
x-is-money: true
71157126
example: 100.5
71167127
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
7128+
description: Deprecated use SickLeaveMaximumToAccrue
7129+
type: number
7130+
format: double
7131+
x-is-money: true
7132+
example: 200.5
7133+
SickLeaveToAccrueAnnually:
7134+
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
7135+
type: number
7136+
format: double
7137+
x-is-money: true
7138+
example: 100.5
7139+
SickLeaveMaximumToAccrue:
7140+
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
71187141
type: number
71197142
format: double
71207143
x-is-money: true
@@ -7130,7 +7153,13 @@ components:
71307153
type: string
71317154
example: OnAnniversaryDate
71327155
SickLeaveAnniversaryDate:
7133-
description: If Sick Leave Schedule of Accrual is "OnAnniversaryDate", this is the date when entitled to Sick Leave
7156+
description: If Sick Leave Schedule of Accrual is "OnAnniversaryDate", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date
7157+
type: string
7158+
format: date
7159+
example: 2020-01-19
7160+
x-is-date: true
7161+
AnnualLeaveAnniversaryDate:
7162+
description: The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date
71347163
type: string
71357164
format: date
71367165
example: 2020-01-19
@@ -7160,20 +7189,31 @@ components:
71607189
- PercentageOfGrossEarnings
71617190
- NoAccruals
71627191
hoursAccruedAnnually:
7163-
description: The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is "OnHourWorked"
7192+
description: Deprecated use UnitsAccruedAnnually
7193+
type: number
7194+
format: double
7195+
x-is-money: true
7196+
UnitsAccruedAnnually:
7197+
description: The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is "NoAccruals"
71647198
type: number
71657199
format: double
71667200
x-is-money: true
7201+
typeOfUnitsToAccrue:
7202+
description: The type of units accrued for the leave annually
7203+
type: string
71677204
maximumToAccrue:
7168-
description: The maximum number of hours that can be accrued for the leave
7205+
description: The maximum number of units that can be accrued for the leave
71697206
type: number
71707207
format: double
71717208
x-is-money: true
71727209
openingBalance:
7173-
description: The initial number of hours assigned when the leave was added to the employee
7210+
description: The initial number of units assigned when the leave was added to the employee
71747211
type: number
71757212
format: double
71767213
x-is-money: true
7214+
openingBalanceTypeOfUnits:
7215+
description: The type of units for the opening balance
7216+
type: string
71777217
rateAccruedHourly:
71787218
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"
71797219
type: number
@@ -7642,6 +7682,12 @@ components:
76427682
isActive:
76437683
description: Shows whether the leave type is active or not
76447684
type: boolean
7685+
typeOfUnits:
7686+
description: The type of units to be paid for the leave type
7687+
type: string
7688+
typeOfUnitsToAccrue:
7689+
description: The type of units to be accrued for the leave type
7690+
type: string
76457691
Reimbursements:
76467692
type: object
76477693
properties:

0 commit comments

Comments
 (0)