XeroAPI/xero-node

AU Payroll: New 'REQUESTED' and 'REJECTED' values are missing from the LeavePeriodStatus type

haydn opened this issue · 2 comments

haydn commented

SDK:

  • Version 4.35.0

Describe the bug

Looks like the provided type for the LeavePeriodStatus status is missing the recently added REQUESTED and REJECTED values:

export declare enum LeavePeriodStatus {
    SCHEDULED,
    PROCESSED
}

To Reproduce

The body of the response from xero.payrollAUApi.getLeaveApplicationsV2() is typed as LeaveApplications, which contains LeaveApplication, which have LeavePeriod with a leavePeriodStatus field that's typed as LeavePeriodStatus.

Expected behavior

Should be this:

export declare enum LeavePeriodStatus {
    REQUESTED,
    REJECTED,
    SCHEDULED,
    PROCESSED
}

Screenshots

N/A

Additional context

N/A

PETOSS-312

Thanks for raising an issue, a ticket has been created to track your request