Skip to content

Commit 613ada1

Browse files
author
sangeet-joy_xero
committed
latest from codegen
1 parent e0aa4eb commit 613ada1

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

docs/payroll-uk/index.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@
22722272
};
22732273
defs["Employment"] = {
22742274
"title" : "",
2275-
"required" : [ "EmployeeNumber", "NICategories", "PayrollCalendarID", "StartDate" ],
2275+
"required" : [ "employeeNumber", "niCategories", "payrollCalendarID", "startDate" ],
22762276
"type" : "object",
22772277
"properties" : {
22782278
"payrollCalendarID" : {
@@ -4558,7 +4558,7 @@ <h2>Parameters</h2>
45584558
"title" : "Mr",
45594559
"firstName" : "Mike",
45604560
"lastName" : "Fancy",
4561-
"dateOfBirth" : "1999-01-01T00:00:00",
4561+
"dateOfBirth" : "1999-01-01T00:00:00Z",
45624562
"gender" : "M",
45634563
"email" : "[email protected]",
45644564
"isOffPayrollWorker" : false,
@@ -6003,7 +6003,16 @@ <h2>Parameters</h2>
60036003
"schema" : {
60046004
"$ref" : "#/components/schemas/Employment"
60056005
},
6006-
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"NICategories\": [ { \"NICategory\": \"A\", \"StartDate\": \"2020-05-01\" } ], \"EmployeeNumber\": \"123ABC\" }"
6006+
"example" : {
6007+
"payrollCalendarID" : "cdfb8371-0b21-4b8a-8903-1024df6c391e",
6008+
"startDate" : "2024-04-01",
6009+
"niCategories" : [ {
6010+
"niCategory" : "I",
6011+
"startDate" : "2020-05-01",
6012+
"workplacePostcode" : "SW1A 1AA"
6013+
} ],
6014+
"employeeNumber" : "123ABC"
6015+
}
60076016
}
60086017
},
60096018
"required" : true
@@ -12723,7 +12732,7 @@ <h2>Parameters</h2>
1272312732
"title" : "Mr.",
1272412733
"firstName" : "TestDataUK",
1272512734
"lastName" : "Tester",
12726-
"dateOfBirth" : "1992-11-22T00:00:00",
12735+
"dateOfBirth" : "1992-11-22T00:00:00Z",
1272712736
"gender" : "M",
1272812737
"email" : "[email protected]",
1272912738
"phoneNumber" : "0400123456",

src/gen/model/payroll-uk/employment.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ export class Employment {
55
/**
66
* Xero unique identifier for the payroll calendar of the employee
77
*/
8-
'payrollCalendarID'?: string;
8+
'payrollCalendarID': string;
99
/**
1010
* Start date of the employment (YYYY-MM-DD)
1111
*/
12-
'startDate'?: string;
12+
'startDate': string;
1313
/**
1414
* The employment number of the employee
1515
*/
16-
'employeeNumber'?: string;
16+
'employeeNumber': string;
1717
'niCategory'?: NICategoryLetter;
1818
/**
1919
* The employee\'s NI categories
2020
*/
21-
'niCategories'?: Array<NICategory>;
21+
'niCategories': Array<NICategory>;
2222

2323
static discriminator: string | undefined = undefined;
2424

0 commit comments

Comments
 (0)