Skip to content

Commit 079b80f

Browse files
author
sangeet-joy_xero
committed
latest from codegen
1 parent be39f52 commit 079b80f

File tree

2 files changed

+33
-12
lines changed

2 files changed

+33
-12
lines changed

docs/v2/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" : {
@@ -4591,7 +4591,7 @@ <h2>Parameters</h2>
45914591
"title" : "Mr",
45924592
"firstName" : "Mike",
45934593
"lastName" : "Fancy",
4594-
"dateOfBirth" : "1999-01-01T00:00:00",
4594+
"dateOfBirth" : "1999-01-01T00:00:00Z",
45954595
"gender" : "M",
45964596
"email" : "mike@starkindustries.com",
45974597
"isOffPayrollWorker" : false,
@@ -6091,7 +6091,16 @@ <h2>Parameters</h2>
60916091
"schema" : {
60926092
"$ref" : "#/components/schemas/Employment"
60936093
},
6094-
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"NICategories\": [ { \"NICategory\": \"A\", \"StartDate\": \"2020-05-01\" } ], \"EmployeeNumber\": \"123ABC\" }"
6094+
"example" : {
6095+
"payrollCalendarID" : "cdfb8371-0b21-4b8a-8903-1024df6c391e",
6096+
"startDate" : "2024-04-01",
6097+
"niCategories" : [ {
6098+
"niCategory" : "I",
6099+
"startDate" : "2020-05-01",
6100+
"workplacePostcode" : "SW1A 1AA"
6101+
} ],
6102+
"employeeNumber" : "123ABC"
6103+
}
60956104
}
60966105
},
60976106
"required" : true
@@ -13211,7 +13220,7 @@ <h2>Parameters</h2>
1321113220
"title" : "Mr.",
1321213221
"firstName" : "TestDataUK",
1321313222
"lastName" : "Tester",
13214-
"dateOfBirth" : "1992-11-22T00:00:00",
13223+
"dateOfBirth" : "1992-11-22T00:00:00Z",
1321513224
"gender" : "M",
1321613225
"email" : "tester@gmail.com",
1321713226
"phoneNumber" : "0400123456",

lib/Models/PayrollUk/Employment.php

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,18 @@ public function listInvalidProperties()
214214
{
215215
$invalidProperties = [];
216216

217+
if ($this->container['payroll_calendar_id'] === null) {
218+
$invalidProperties[] = "'payroll_calendar_id' can't be null";
219+
}
220+
if ($this->container['start_date'] === null) {
221+
$invalidProperties[] = "'start_date' can't be null";
222+
}
223+
if ($this->container['employee_number'] === null) {
224+
$invalidProperties[] = "'employee_number' can't be null";
225+
}
226+
if ($this->container['ni_categories'] === null) {
227+
$invalidProperties[] = "'ni_categories' can't be null";
228+
}
217229
return $invalidProperties;
218230
}
219231

@@ -232,7 +244,7 @@ public function valid()
232244
/**
233245
* Gets payroll_calendar_id
234246
*
235-
* @return string|null
247+
* @return string
236248
*/
237249
public function getPayrollCalendarId()
238250
{
@@ -242,7 +254,7 @@ public function getPayrollCalendarId()
242254
/**
243255
* Sets payroll_calendar_id
244256
*
245-
* @param string|null $payroll_calendar_id Xero unique identifier for the payroll calendar of the employee
257+
* @param string $payroll_calendar_id Xero unique identifier for the payroll calendar of the employee
246258
*
247259
* @return $this
248260
*/
@@ -259,7 +271,7 @@ public function setPayrollCalendarId($payroll_calendar_id)
259271
/**
260272
* Gets start_date
261273
*
262-
* @return \DateTime|null
274+
* @return \DateTime
263275
*/
264276
public function getStartDate()
265277
{
@@ -269,7 +281,7 @@ public function getStartDate()
269281
/**
270282
* Sets start_date
271283
*
272-
* @param \DateTime|null $start_date Start date of the employment (YYYY-MM-DD)
284+
* @param \DateTime $start_date Start date of the employment (YYYY-MM-DD)
273285
*
274286
* @return $this
275287
*/
@@ -286,7 +298,7 @@ public function setStartDate($start_date)
286298
/**
287299
* Gets employee_number
288300
*
289-
* @return string|null
301+
* @return string
290302
*/
291303
public function getEmployeeNumber()
292304
{
@@ -296,7 +308,7 @@ public function getEmployeeNumber()
296308
/**
297309
* Sets employee_number
298310
*
299-
* @param string|null $employee_number The employment number of the employee
311+
* @param string $employee_number The employment number of the employee
300312
*
301313
* @return $this
302314
*/
@@ -340,7 +352,7 @@ public function setNiCategory($ni_category)
340352
/**
341353
* Gets ni_categories
342354
*
343-
* @return \XeroAPI\XeroPHP\Models\PayrollUk\NICategory[]|null
355+
* @return \XeroAPI\XeroPHP\Models\PayrollUk\NICategory[]
344356
*/
345357
public function getNiCategories()
346358
{
@@ -350,7 +362,7 @@ public function getNiCategories()
350362
/**
351363
* Sets ni_categories
352364
*
353-
* @param \XeroAPI\XeroPHP\Models\PayrollUk\NICategory[]|null $ni_categories The employee's NI categories
365+
* @param \XeroAPI\XeroPHP\Models\PayrollUk\NICategory[] $ni_categories The employee's NI categories
354366
*
355367
* @return $this
356368
*/

0 commit comments

Comments
 (0)