Skip to content

Commit 08b4ff0

Browse files
author
sangeet-joy_xero
committed
build from codegen latest
1 parent 9d6e30c commit 08b4ff0

2 files changed

Lines changed: 19 additions & 11 deletions

File tree

docs/v4/payroll-uk/index.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@
22702270
};
22712271
defs["Employment"] = {
22722272
"title" : "",
2273-
"required" : [ "EmployeeNumber", "NICategories", "PayrollCalendarID", "StartDate" ],
2273+
"required" : [ "employeeNumber", "niCategories", "payrollCalendarID", "startDate" ],
22742274
"type" : "object",
22752275
"properties" : {
22762276
"payrollCalendarID" : {
@@ -4614,7 +4614,7 @@ <h2>Parameters</h2>
46144614
"title" : "Mr",
46154615
"firstName" : "Mike",
46164616
"lastName" : "Fancy",
4617-
"dateOfBirth" : "1999-01-01T00:00:00",
4617+
"dateOfBirth" : "1999-01-01T00:00:00Z",
46184618
"gender" : "M",
46194619
"email" : "mike@starkindustries.com",
46204620
"isOffPayrollWorker" : false,
@@ -6163,7 +6163,16 @@ <h2>Parameters</h2>
61636163
"schema" : {
61646164
"$ref" : "#/components/schemas/Employment"
61656165
},
6166-
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"NICategories\": [ { \"NICategory\": \"A\", \"StartDate\": \"2020-05-01\" } ], \"EmployeeNumber\": \"123ABC\" }"
6166+
"example" : {
6167+
"payrollCalendarID" : "cdfb8371-0b21-4b8a-8903-1024df6c391e",
6168+
"startDate" : "2024-04-01",
6169+
"niCategories" : [ {
6170+
"niCategory" : "I",
6171+
"startDate" : "2020-05-01",
6172+
"workplacePostcode" : "SW1A 1AA"
6173+
} ],
6174+
"employeeNumber" : "123ABC"
6175+
}
61676176
}
61686177
},
61696178
"required" : true
@@ -13578,7 +13587,7 @@ <h2>Parameters</h2>
1357813587
"title" : "Mr.",
1357913588
"firstName" : "TestDataUK",
1358013589
"lastName" : "Tester",
13581-
"dateOfBirth" : "1992-11-22T00:00:00",
13590+
"dateOfBirth" : "1992-11-22T00:00:00Z",
1358213591
"gender" : "M",
1358313592
"email" : "tester@gmail.com",
1358413593
"phoneNumber" : "0400123456",

src/main/java/com/xero/models/payrolluk/Employment.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ public Employment payrollCalendarID(UUID payrollCalendarID) {
5454
*
5555
* @return payrollCalendarID
5656
*/
57-
@ApiModelProperty(value = "Xero unique identifier for the payroll calendar of the employee")
57+
@ApiModelProperty(
58+
required = true,
59+
value = "Xero unique identifier for the payroll calendar of the employee")
5860
/**
5961
* Xero unique identifier for the payroll calendar of the employee
6062
*
@@ -89,7 +91,7 @@ public Employment startDate(LocalDate startDate) {
8991
*
9092
* @return startDate
9193
*/
92-
@ApiModelProperty(value = "Start date of the employment (YYYY-MM-DD)")
94+
@ApiModelProperty(required = true, value = "Start date of the employment (YYYY-MM-DD)")
9395
/**
9496
* Start date of the employment (YYYY-MM-DD)
9597
*
@@ -124,7 +126,7 @@ public Employment employeeNumber(String employeeNumber) {
124126
*
125127
* @return employeeNumber
126128
*/
127-
@ApiModelProperty(example = "7", value = "The employment number of the employee")
129+
@ApiModelProperty(example = "7", required = true, value = "The employment number of the employee")
128130
/**
129131
* The employment number of the employee
130132
*
@@ -196,9 +198,6 @@ public Employment niCategories(List<NICategory> niCategories) {
196198
* @return Employment
197199
*/
198200
public Employment addNiCategoriesItem(NICategory niCategoriesItem) {
199-
if (this.niCategories == null) {
200-
this.niCategories = new ArrayList<NICategory>();
201-
}
202201
this.niCategories.add(niCategoriesItem);
203202
return this;
204203
}
@@ -208,7 +207,7 @@ public Employment addNiCategoriesItem(NICategory niCategoriesItem) {
208207
*
209208
* @return niCategories
210209
*/
211-
@ApiModelProperty(value = "The employee's NI categories")
210+
@ApiModelProperty(required = true, value = "The employee's NI categories")
212211
/**
213212
* The employee&#39;s NI categories
214213
*

0 commit comments

Comments
 (0)