Skip to content

Commit 53dd495

Browse files
committed
fixes java unit tests
1 parent da1c76c commit 53dd495

1 file changed

Lines changed: 46 additions & 60 deletions

File tree

xero-payroll-uk.yaml

Lines changed: 46 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ paths:
6262
- employeeID: aad6b292-7b94-408b-93f6-e489867e3fb0
6363
firstName: Jack
6464
lastName: Allan
65-
dateOfBirth: '1987-12-23T00:00:00'
65+
dateOfBirth: 1987-12-23T00:00:00Z
6666
gender: M
6767
email: null
6868
phoneNumber: null
@@ -76,12 +76,11 @@ paths:
7676
payrollCalendarID: 216d80e6-af55-47b1-b718-9457c3f5d2fe
7777
updatedDateUTC: 2020-02-13T16:23:31
7878
createdDateUTC: 2020-02-10T10:00:24
79-
endDate: null
8079
isOffPayrollWorker: false
8180
- employeeID: 67e545d4-e8a6-4f98-9f63-85c2383dfe12
8281
firstName: Charlotte
8382
lastName: Danes
84-
dateOfBirth: 1993-10-24T00:00:00
83+
dateOfBirth: 1993-10-24T00:00:00Z
8584
gender: F
8685
email: null
8786
phoneNumber: null
@@ -95,12 +94,11 @@ paths:
9594
payrollCalendarID: 5e813d9e-949c-461f-8a89-e9ee8955a254
9695
updatedDateUTC: 2020-02-13T16:48:51
9796
createdDateUTC: 2020-02-13T16:32:12
98-
endDate: null
9997
isOffPayrollWorker: false
10098
- employeeID: eb4a0c3b-b0d6-440d-bccc-348b7dc92321
10199
firstName: Chelsea
102100
lastName: Serati
103-
dateOfBirth: 1976-02-16T00:00:00
101+
dateOfBirth: 1976-02-16T00:00:00Z
104102
gender: F
105103
email: null
106104
phoneNumber: null
@@ -114,7 +112,6 @@ paths:
114112
payrollCalendarID: d45bc68f-59d6-4000-929d-1058dcfa79e1
115113
updatedDateUTC: 2020-02-13T16:53:12
116114
createdDateUTC: 2020-02-13T16:46:41
117-
endDate: null
118115
isOffPayrollWorker: false
119116
"400":
120117
description: validation error for a bad request
@@ -234,7 +231,7 @@ paths:
234231
title: Mr
235232
firstName: Mike
236233
lastName: Fancy
237-
dateOfBirth: 1999-01-01T00:00:00
234+
dateOfBirth: 1999-01-01
238235
gender: M
239236
email: mike@starkindustries.com
240237
phoneNumber: null
@@ -248,11 +245,10 @@ paths:
248245
countryName: UNITED KINGDOM
249246
postCode: MK9 1EB
250247
payrollCalendarID: null
251-
updatedDateUTC: 2020-03-25T03:12:10
252-
createdDateUTC: 2020-03-25T03:12:10
248+
updatedDateUTC: '2020-03-25T03:12:10Z'
249+
createdDateUTC: '2020-03-25T03:12:10Z'
253250
niCategory: null
254251
employeeNumber: null
255-
endDate: null
256252
"400":
257253
description: validation error for a bad request
258254
content:
@@ -269,7 +265,7 @@ paths:
269265
title: Mr
270266
firstName: Mike
271267
lastName: Fancy
272-
dateOfBirth: 1999-01-01T00:00:00
268+
dateOfBirth: 1999-01-01T00:00:00Z
273269
gender: M
274270
email: mike@starkindustries.com
275271
isOffPayrollWorker: false
@@ -313,13 +309,12 @@ paths:
313309
dateTimeUTC: '2018-04-09T05:15:18.1011141'
314310
httpStatusCode: OK
315311
pagination: null
316-
problem: null
317312
employee:
318313
employeeID: d17e008e-3381-45c0-b50c-2fab7757e503
319314
title: Mr.
320315
firstName: Edgar
321316
lastName: Allan Po
322-
dateOfBirth: '1985-03-24T00:00:00'
317+
dateOfBirth: '1985-03-24'
323318
gender: M
324319
email: tester1@gmail.com
325320
phoneNumber: '0400123456'
@@ -332,18 +327,18 @@ paths:
332327
countryName: UNITED KINGDOM
333328
postCode: MK9 1EB
334329
payrollCalendarID: 216d80e6-af55-47b1-b718-9457c3f5d2fe
335-
updatedDateUTC: '2017-05-12T10:00:24'
336-
createdDateUTC: '2017-05-12T10:00:24'
330+
updatedDateUTC: '2017-05-12T10:00:24Z'
331+
createdDateUTC: '2017-05-12T10:00:24Z'
337332
niCategories:
338-
- startDate: '2020-05-01T00:00:00'
339-
niCategory: A
340-
- startDate:
333+
- startDate: '2020-05-01'
334+
niCategory: I
335+
workplacePostcode: SW1A 1AA
336+
- startDate: '2020-05-02'
341337
niCategory: F
342338
niCategoryID: 1
343-
dateFirstEmployedAsCivilian:
339+
dateFirstEmployedAsCivilian: '2020-05-01'
344340
workplacePostcode: SW1A 1AA
345341
employeeNumber: '2'
346-
endDate: null
347342
put:
348343
security:
349344
- OAuth2:
@@ -465,7 +460,7 @@ paths:
465460
title: Mr
466461
firstName: Mike
467462
lastName: Johnllsbkrhwopson
468-
dateOfBirth: 1999-01-01T00:00:00
463+
dateOfBirth: 1999-01-01
469464
gender: M
470465
email: 84044@starkindustries.com
471466
phoneNumber: "0400123456"
@@ -481,7 +476,6 @@ paths:
481476
payrollCalendarID: 216d80e6-af55-47b1-b718-9457c3f5d2fe
482477
updatedDateUTC: "2020-03-25T17:03:50Z"
483478
createdDateUTC: "2020-02-10T10:00:24Z"
484-
endDate: null
485479
"400":
486480
description: validation error for a bad request
487481
content:
@@ -498,7 +492,7 @@ paths:
498492
title: Mr.
499493
firstName: TestDataUK
500494
lastName: Tester
501-
dateOfBirth: 1992-11-22T00:00:00
495+
dateOfBirth: 1992-11-22T00:00:00Z
502496
gender: M
503497
email: tester@gmail.com
504498
phoneNumber: "0400123456"
@@ -582,28 +576,23 @@ paths:
582576
application/json:
583577
schema:
584578
$ref: '#/components/schemas/EmploymentObject'
585-
example: '{
586-
"id": "0160a355-1e6d-4fdc-9532-c0857feaa515",
587-
"providerName": "provider-name",
588-
"dateTimeUTC": "2020-03-26T18:09:11.6235442",
589-
"httpStatusCode": "OK",
590-
"pagination": null,
591-
"problem": null,
592-
"employment": {
593-
"payrollCalendarID": "216d80e6-af55-47b1-b718-9457c3f5d2fe",
594-
"startDate": "2020-04-01T00:00:00",
595-
"niCategories": [
596-
{
597-
"niCategory": "A",
598-
"startDate": "2020-05-01",
599-
"niCategoryID": 594,
600-
"dateFirstEmployedAsCivilian": null,
601-
"workplacePostcode": null
602-
}
603-
],
604-
"employeeNumber": "123ABC"
605-
}
606-
}'
579+
example:
580+
id: 0160a355-1e6d-4fdc-9532-c0857feaa515
581+
providerName: provider-name
582+
dateTimeUTC: '2020-03-26T18:09:11.6235442'
583+
httpStatusCode: OK
584+
pagination:
585+
problem:
586+
employment:
587+
payrollCalendarID: 216d80e6-af55-47b1-b718-9457c3f5d2fe
588+
startDate: '2020-04-01T00:00:00'
589+
niCategories:
590+
- niCategory: I
591+
startDate: '2020-05-01'
592+
niCategoryID: 594
593+
dateFirstEmployedAsCivilian: '2020-05-01'
594+
workplacePostcode: SW1A 1AA
595+
employeeNumber: 123ABC
607596
'400':
608597
description: validation error for a bad request
609598
content:
@@ -616,17 +605,14 @@ paths:
616605
application/json:
617606
schema:
618607
$ref: '#/components/schemas/Employment'
619-
example: '{
620-
"PayrollCalendarID": "216d80e6-af55-47b1-b718-9457c3f5d2fe",
621-
"StartDate": "2020-04-01",
622-
"NICategories": [
623-
{
624-
"NICategory": "A",
625-
"StartDate": "2020-05-01"
626-
}
627-
],
628-
"EmployeeNumber": "123ABC"
629-
}'
608+
example:
609+
payrollCalendarID: cdfb8371-0b21-4b8a-8903-1024df6c391e
610+
startDate: '2024-04-01'
611+
niCategories:
612+
- niCategory: I
613+
startDate: '2020-05-01'
614+
workplacePostcode: SW1A 1AA
615+
employeeNumber: 123ABC
630616
/Employees/{EmployeeID}/Tax:
631617
parameters:
632618
- $ref: '#/components/parameters/requiredHeader'
@@ -5783,10 +5769,10 @@ components:
57835769
Employment:
57845770
type: object
57855771
required:
5786-
- PayrollCalendarID
5787-
- StartDate
5788-
- EmployeeNumber
5789-
- NICategories
5772+
- payrollCalendarID
5773+
- startDate
5774+
- employeeNumber
5775+
- niCategories
57905776
properties:
57915777
payrollCalendarID:
57925778
description: Xero unique identifier for the payroll calendar of the employee

0 commit comments

Comments
 (0)