Skip to content

Commit 005ef7d

Browse files
Build for version - 9.0.0 | NI category updates (#390)
Build for version - 9.0.0 | NI category updates (#390)
1 parent 414ead6 commit 005ef7d

26 files changed

+1439
-88
lines changed

docs/v2/accounting/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6338,7 +6338,7 @@
63386338
<nav id="scrollingNav">
63396339
<ul class="sidenav nav nav-list">
63406340
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6341-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>8.1.0</li>
6341+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>9.0.0</li>
63426342
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
63436343
<li data-group="Accounting" data-name="createAccount" class="">
63446344
<a href="#api-Accounting-createAccount">createAccount</a>

docs/v2/appstore/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,7 @@
12401240
<nav id="scrollingNav">
12411241
<ul class="sidenav nav nav-list">
12421242
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1243-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>8.1.0</li>
1243+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>9.0.0</li>
12441244
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12451245
<li data-group="AppStore" data-name="getSubscription" class="">
12461246
<a href="#api-AppStore-getSubscription">getSubscription</a>

docs/v2/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@
13911391
<nav id="scrollingNav">
13921392
<ul class="sidenav nav nav-list">
13931393
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1394-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>8.1.0</li>
1394+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>9.0.0</li>
13951395
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13961396
<li data-group="Asset" data-name="createAsset" class="">
13971397
<a href="#api-Asset-createAsset">createAsset</a>

docs/v2/files/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@
11691169
<nav id="scrollingNav">
11701170
<ul class="sidenav nav nav-list">
11711171
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1172-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>8.1.0</li>
1172+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>9.0.0</li>
11731173
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11741174
<li data-group="Files" data-name="createFileAssociation" class="">
11751175
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/v2/finance/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2715,7 +2715,7 @@
27152715
<nav id="scrollingNav">
27162716
<ul class="sidenav nav nav-list">
27172717
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2718-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>8.1.0</li>
2718+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>9.0.0</li>
27192719
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27202720
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27212721
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/v2/payroll_au/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3411,7 +3411,7 @@
34113411
<nav id="scrollingNav">
34123412
<ul class="sidenav nav nav-list">
34133413
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3414-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>8.1.0</li>
3414+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>9.0.0</li>
34153415
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34163416
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34173417
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>

docs/v2/payroll_nz/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4086,7 +4086,7 @@
40864086
<nav id="scrollingNav">
40874087
<ul class="sidenav nav nav-list">
40884088
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
4089-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>8.1.0</li>
4089+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>9.0.0</li>
40904090
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
40914091
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
40924092
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

docs/v2/payroll_uk/index.html

Lines changed: 92 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,16 @@
15951595
"format" : "date-time",
15961596
"x-is-datetime" : true
15971597
},
1598+
"niCategory" : {
1599+
"$ref" : "#/components/schemas/NICategoryLetter"
1600+
},
1601+
"niCategories" : {
1602+
"type" : "array",
1603+
"description" : "The employee's NI categories",
1604+
"items" : {
1605+
"$ref" : "#/components/schemas/NICategory"
1606+
}
1607+
},
15981608
"nationalInsuranceNumber" : {
15991609
"type" : "string",
16001610
"description" : "National insurance number of the employee",
@@ -2262,7 +2272,7 @@
22622272
};
22632273
defs["Employment"] = {
22642274
"title" : "",
2265-
"required" : [ "EmployeeNumber", "NICategory", "PayrollCalendarID", "StartDate" ],
2275+
"required" : [ "EmployeeNumber", "NICategories", "PayrollCalendarID", "StartDate" ],
22662276
"type" : "object",
22672277
"properties" : {
22682278
"payrollCalendarID" : {
@@ -2282,10 +2292,14 @@
22822292
"example" : "7"
22832293
},
22842294
"niCategory" : {
2285-
"type" : "string",
2286-
"description" : "The NI Category of the employee",
2287-
"example" : "A",
2288-
"enum" : [ "A", "B", "C", "F", "H", "I", "J", "L", "M", "S", "V", "X", "Z" ]
2295+
"$ref" : "#/components/schemas/NICategoryLetter"
2296+
},
2297+
"niCategories" : {
2298+
"type" : "array",
2299+
"description" : "The employee's NI categories",
2300+
"items" : {
2301+
"$ref" : "#/components/schemas/NICategory"
2302+
}
22892303
}
22902304
},
22912305
"description" : ""
@@ -2502,6 +2516,75 @@
25022516
}
25032517
},
25042518
"description" : ""
2519+
};
2520+
defs["NICategory"] = {
2521+
"title" : "",
2522+
"required" : [ "niCategory", "workplacePostcode" ],
2523+
"type" : "object",
2524+
"properties" : {
2525+
"startDate" : {
2526+
"type" : "string",
2527+
"description" : "The start date of the NI category (YYYY-MM-DD)",
2528+
"format" : "date",
2529+
"example" : "2024-12-02",
2530+
"x-is-date" : true
2531+
},
2532+
"niCategory" : {
2533+
"$ref" : "#/components/schemas/NICategoryLetter"
2534+
},
2535+
"niCategoryID" : {
2536+
"type" : "number",
2537+
"description" : "Xero unique identifier for the NI category",
2538+
"example" : 15
2539+
},
2540+
"dateFirstEmployedAsCivilian" : {
2541+
"type" : "string",
2542+
"description" : "The date in which the employee was first employed as a civilian (YYYY-MM-DD)",
2543+
"format" : "date",
2544+
"example" : "2024-12-02",
2545+
"x-is-date" : true
2546+
},
2547+
"workplacePostcode" : {
2548+
"type" : "string",
2549+
"description" : "The workplace postcode",
2550+
"example" : "SW1A 1AA"
2551+
}
2552+
},
2553+
"description" : "",
2554+
"oneOf" : [ {
2555+
"$ref" : "#/components/schemas/NICategory_oneOf"
2556+
}, {
2557+
"$ref" : "#/components/schemas/NICategory_oneOf_1"
2558+
} ]
2559+
};
2560+
defs["NICategoryLetter"] = {
2561+
"title" : "",
2562+
"type" : "string",
2563+
"description" : "The employee's NI Category letter.",
2564+
"example" : "I",
2565+
"enum" : [ "A", "B", "C", "D", "E", "F", "H", "I", "J", "K", "L", "M", "N", "S", "V", "X", "Z" ]
2566+
};
2567+
defs["NICategory_oneOf"] = {
2568+
"title" : "",
2569+
"required" : [ "workplacePostcode" ],
2570+
"properties" : {
2571+
"niCategory" : {
2572+
"type" : "string",
2573+
"enum" : [ "F", "I", "L", "S", "N", "E", "D", "K" ]
2574+
}
2575+
},
2576+
"description" : ""
2577+
};
2578+
defs["NICategory_oneOf_1"] = {
2579+
"title" : "",
2580+
"required" : [ "dateFirstEmployedAsCivilian" ],
2581+
"properties" : {
2582+
"niCategory" : {
2583+
"type" : "string",
2584+
"enum" : [ "V" ]
2585+
}
2586+
},
2587+
"description" : ""
25052588
};
25062589
defs["Pagination"] = {
25072590
"title" : "",
@@ -3516,7 +3599,7 @@
35163599
<nav id="scrollingNav">
35173600
<ul class="sidenav nav nav-list">
35183601
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
3519-
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>8.1.0</li>
3602+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>9.0.0</li>
35203603
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
35213604
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
35223605
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
@@ -5803,6 +5886,8 @@ <h3>Usage and SDK Samples</h3>
58035886
$employment->setPayrollCalendarID('00000000-0000-0000-0000-000000000000');
58045887
$employment->setStartDate($startDate);
58055888

5889+
$niCategories = new XeroAPI\XeroPHP\Models\PayrollUk\NICategories;
5890+
58065891
try {
58075892
$result = $apiInstance->createEmployment($xeroTenantId, $employeeID, $employment, $idempotencyKey);
58085893
} catch (Exception $e) {
@@ -5934,7 +6019,7 @@ <h2>Parameters</h2>
59346019
"schema" : {
59356020
"$ref" : "#/components/schemas/Employment"
59366021
},
5937-
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"EmployeeNumber\": \"123ABC\", \"NICategory\": \"A\" }"
6022+
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"NICategories\": [ { \"NICategory\": \"A\", \"StartDate\": \"2020-05-01\" } ], \"EmployeeNumber\": \"123ABC\" }"
59386023
}
59396024
},
59406025
"required" : true

docs/v2/projects/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@
14611461
<nav id="scrollingNav">
14621462
<ul class="sidenav nav nav-list">
14631463
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
1464-
<li class="nav-header" data-group="Project"><strong>VSN: </strong>8.1.0</li>
1464+
<li class="nav-header" data-group="Project"><strong>VSN: </strong>9.0.0</li>
14651465
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
14661466
<li data-group="Project" data-name="createProject" class="">
14671467
<a href="#api-Project-createProject">createProject</a>

lib/Api/AccountingApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/AppStoreApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* These endpoints are for Xero Partners to interact with the App Store Billing platform
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/AssetApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/FilesApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* These endpoints are specific to Xero Files API
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/FinanceApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/IdentityApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* These endpoints are related to managing authentication tokens and identity for Xero API
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/PayrollAuApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* This is the Xero Payroll API for orgs in Australia region.
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/PayrollNzApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* This is the Xero Payroll API for orgs in the NZ region.
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/PayrollUkApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* This is the Xero Payroll API for orgs in the UK region.
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Api/ProjectApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* This is the Xero Projects API
1616
*
17-
* OpenAPI spec version: 7.1.0
17+
* OpenAPI spec version: 8.0.0
1818
* Contact: api@xero.com
1919
* Generated by: https://openapi-generator.tech
2020
* OpenAPI Generator version: 5.4.0

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,8 @@ public static function toDebugReport()
696696
$report = 'PHP SDK (XeroAPI\XeroPHP) Debug Report:' . PHP_EOL;
697697
$report .= ' OS: ' . php_uname() . PHP_EOL;
698698
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
699-
$report .= ' OpenAPI Spec Version: 7.1.0' . PHP_EOL;
700-
$report .= ' SDK Package Version: 8.1.0' . PHP_EOL;
699+
$report .= ' OpenAPI Spec Version: 8.0.0' . PHP_EOL;
700+
$report .= ' SDK Package Version: 9.0.0' . PHP_EOL;
701701
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
702702

703703
return $report;

0 commit comments

Comments
 (0)