22 * Xero Payroll UK
33 * This is the Xero Payroll API for orgs in the UK region.
44 *
5- * The version of the OpenAPI document: 2.10.0
5+ * The version of the OpenAPI document: 2.10.1
6677 *
88 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -105,7 +105,7 @@ public class PayrollUkApi {
105105 private ApiClient apiClient ;
106106 private static PayrollUkApi instance = null ;
107107 private String userAgent = "Default" ;
108- private String version = "4.8.0 " ;
108+ private String version = "4.8.1 " ;
109109 static final Logger logger = LoggerFactory .getLogger (PayrollUkApi .class );
110110
111111 /** PayrollUkApi */
@@ -4957,21 +4957,18 @@ public HttpResponse getEmployeeTaxForHttpResponse(
49574957 * <p><b>400</b> - validation error for a bad request
49584958 *
49594959 * @param xeroTenantId Xero identifier for Tenant
4960- * @param firstName Filter by first name
4961- * @param lastName Filter by last name
4960+ * @param filter Filter by first name and/or lastname
49624961 * @param page Page number which specifies the set of records to retrieve. By default the number
49634962 * of the records per set is 100.
49644963 * @param accessToken Authorization token for user set in header of each request
49654964 * @return Employees
49664965 * @throws IOException if an error occurs while attempting to invoke the API *
49674966 */
49684967 public Employees getEmployees (
4969- String accessToken , String xeroTenantId , String firstName , String lastName , Integer page )
4970- throws IOException {
4968+ String accessToken , String xeroTenantId , String filter , Integer page ) throws IOException {
49714969 try {
49724970 TypeReference <Employees > typeRef = new TypeReference <Employees >() {};
4973- HttpResponse response =
4974- getEmployeesForHttpResponse (accessToken , xeroTenantId , firstName , lastName , page );
4971+ HttpResponse response = getEmployeesForHttpResponse (accessToken , xeroTenantId , filter , page );
49754972 return apiClient .getObjectMapper ().readValue (response .getContent (), typeRef );
49764973 } catch (HttpResponseException e ) {
49774974 if (logger .isDebugEnabled ()) {
@@ -5003,17 +5000,15 @@ public Employees getEmployees(
50035000 * <p><b>400</b> - validation error for a bad request
50045001 *
50055002 * @param xeroTenantId Xero identifier for Tenant
5006- * @param firstName Filter by first name
5007- * @param lastName Filter by last name
5003+ * @param filter Filter by first name and/or lastname
50085004 * @param page Page number which specifies the set of records to retrieve. By default the number
50095005 * of the records per set is 100.
50105006 * @param accessToken Authorization token for user set in header of each request
50115007 * @return HttpResponse
50125008 * @throws IOException if an error occurs while attempting to invoke the API
50135009 */
50145010 public HttpResponse getEmployeesForHttpResponse (
5015- String accessToken , String xeroTenantId , String firstName , String lastName , Integer page )
5016- throws IOException {
5011+ String accessToken , String xeroTenantId , String filter , Integer page ) throws IOException {
50175012 // verify the required parameter 'xeroTenantId' is set
50185013 if (xeroTenantId == null ) {
50195014 throw new IllegalArgumentException (
@@ -5028,20 +5023,9 @@ public HttpResponse getEmployeesForHttpResponse(
50285023 headers .setAccept ("application/json" );
50295024 headers .setUserAgent (this .getUserAgent ());
50305025 UriBuilder uriBuilder = UriBuilder .fromUri (apiClient .getBasePath () + "/Employees" );
5031- if (firstName != null ) {
5032- String key = "firstName" ;
5033- Object value = firstName ;
5034- if (value instanceof Collection ) {
5035- uriBuilder = uriBuilder .queryParam (key , ((Collection ) value ).toArray ());
5036- } else if (value instanceof Object []) {
5037- uriBuilder = uriBuilder .queryParam (key , (Object []) value );
5038- } else {
5039- uriBuilder = uriBuilder .queryParam (key , value );
5040- }
5041- }
5042- if (lastName != null ) {
5043- String key = "lastName" ;
5044- Object value = lastName ;
5026+ if (filter != null ) {
5027+ String key = "filter" ;
5028+ Object value = filter ;
50455029 if (value instanceof Collection ) {
50465030 uriBuilder = uriBuilder .queryParam (key , ((Collection ) value ).toArray ());
50475031 } else if (value instanceof Object []) {
@@ -6402,30 +6386,16 @@ public HttpResponse getTimesheetForHttpResponse(
64026386 * @param xeroTenantId Xero identifier for Tenant
64036387 * @param page Page number which specifies the set of records to retrieve. By default the number
64046388 * of the records per set is 100.
6405- * @param employeeId By default get Timesheets will return the timesheets for all employees in an
6406- * organization. You can add GET
6407- * https://…/timesheets?filter=employeeId=={EmployeeID} to get only the
6408- * timesheets of a particular employee.
6409- * @param payrollCalendarId By default get Timesheets will return all the timesheets for an
6410- * organization. You can add GET
6411- * https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter
6412- * the timesheets by payroll calendar id
6389+ * @param filter Filter by first name and/or lastname
64136390 * @param accessToken Authorization token for user set in header of each request
64146391 * @return Timesheets
64156392 * @throws IOException if an error occurs while attempting to invoke the API *
64166393 */
64176394 public Timesheets getTimesheets (
6418- String accessToken ,
6419- String xeroTenantId ,
6420- Integer page ,
6421- UUID employeeId ,
6422- UUID payrollCalendarId )
6423- throws IOException {
6395+ String accessToken , String xeroTenantId , Integer page , String filter ) throws IOException {
64246396 try {
64256397 TypeReference <Timesheets > typeRef = new TypeReference <Timesheets >() {};
6426- HttpResponse response =
6427- getTimesheetsForHttpResponse (
6428- accessToken , xeroTenantId , page , employeeId , payrollCalendarId );
6398+ HttpResponse response = getTimesheetsForHttpResponse (accessToken , xeroTenantId , page , filter );
64296399 return apiClient .getObjectMapper ().readValue (response .getContent (), typeRef );
64306400 } catch (HttpResponseException e ) {
64316401 if (logger .isDebugEnabled ()) {
@@ -6457,25 +6427,13 @@ public Timesheets getTimesheets(
64576427 * @param xeroTenantId Xero identifier for Tenant
64586428 * @param page Page number which specifies the set of records to retrieve. By default the number
64596429 * of the records per set is 100.
6460- * @param employeeId By default get Timesheets will return the timesheets for all employees in an
6461- * organization. You can add GET
6462- * https://…/timesheets?filter=employeeId=={EmployeeID} to get only the
6463- * timesheets of a particular employee.
6464- * @param payrollCalendarId By default get Timesheets will return all the timesheets for an
6465- * organization. You can add GET
6466- * https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter
6467- * the timesheets by payroll calendar id
6430+ * @param filter Filter by first name and/or lastname
64686431 * @param accessToken Authorization token for user set in header of each request
64696432 * @return HttpResponse
64706433 * @throws IOException if an error occurs while attempting to invoke the API
64716434 */
64726435 public HttpResponse getTimesheetsForHttpResponse (
6473- String accessToken ,
6474- String xeroTenantId ,
6475- Integer page ,
6476- UUID employeeId ,
6477- UUID payrollCalendarId )
6478- throws IOException {
6436+ String accessToken , String xeroTenantId , Integer page , String filter ) throws IOException {
64796437 // verify the required parameter 'xeroTenantId' is set
64806438 if (xeroTenantId == null ) {
64816439 throw new IllegalArgumentException (
@@ -6501,20 +6459,9 @@ public HttpResponse getTimesheetsForHttpResponse(
65016459 uriBuilder = uriBuilder .queryParam (key , value );
65026460 }
65036461 }
6504- if (employeeId != null ) {
6505- String key = "employeeId" ;
6506- Object value = employeeId ;
6507- if (value instanceof Collection ) {
6508- uriBuilder = uriBuilder .queryParam (key , ((Collection ) value ).toArray ());
6509- } else if (value instanceof Object []) {
6510- uriBuilder = uriBuilder .queryParam (key , (Object []) value );
6511- } else {
6512- uriBuilder = uriBuilder .queryParam (key , value );
6513- }
6514- }
6515- if (payrollCalendarId != null ) {
6516- String key = "payrollCalendarId" ;
6517- Object value = payrollCalendarId ;
6462+ if (filter != null ) {
6463+ String key = "filter" ;
6464+ Object value = filter ;
65186465 if (value instanceof Collection ) {
65196466 uriBuilder = uriBuilder .queryParam (key , ((Collection ) value ).toArray ());
65206467 } else if (value instanceof Object []) {
0 commit comments