Skip to content

Commit ff3b075

Browse files
Build for version - 8.0.0 | NI Category updates (#182)
Build for version - 8.0.0 | NI Category updates (#182)
1 parent 551ff6d commit ff3b075

37 files changed

+640
-60
lines changed

Diff for: docs/v1/accounting/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6339,7 +6339,7 @@
63396339
<nav id="scrollingNav">
63406340
<ul class="sidenav nav nav-list">
63416341
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6342-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>7.1.0</li>
6342+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>8.0.0</li>
63436343
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
63446344
<li data-group="Accounting" data-name="createAccount" class="">
63456345
<a href="#api-Accounting-createAccount">createAccount</a>

Diff for: docs/v1/appstore/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@
12411241
<nav id="scrollingNav">
12421242
<ul class="sidenav nav nav-list">
12431243
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1244-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>7.1.0</li>
1244+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>8.0.0</li>
12451245
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12461246
<li data-group="AppStore" data-name="getSubscription" class="">
12471247
<a href="#api-AppStore-getSubscription">getSubscription</a>

Diff for: docs/v1/assets/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@
13921392
<nav id="scrollingNav">
13931393
<ul class="sidenav nav nav-list">
13941394
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1395-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>7.1.0</li>
1395+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>8.0.0</li>
13961396
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13971397
<li data-group="Asset" data-name="createAsset" class="">
13981398
<a href="#api-Asset-createAsset">createAsset</a>

Diff for: docs/v1/files/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@
11701170
<nav id="scrollingNav">
11711171
<ul class="sidenav nav nav-list">
11721172
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1173-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>7.1.0</li>
1173+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>8.0.0</li>
11741174
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11751175
<li data-group="Files" data-name="createFileAssociation" class="">
11761176
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

Diff for: docs/v1/finance/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2716,7 +2716,7 @@
27162716
<nav id="scrollingNav">
27172717
<ul class="sidenav nav nav-list">
27182718
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2719-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>7.1.0</li>
2719+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>8.0.0</li>
27202720
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27212721
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27222722
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

Diff for: docs/v1/payroll-au/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3412,7 +3412,7 @@
34123412
<nav id="scrollingNav">
34133413
<ul class="sidenav nav nav-list">
34143414
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3415-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>7.1.0</li>
3415+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>8.0.0</li>
34163416
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
34173417
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
34183418
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>

Diff for: docs/v1/payroll-nz/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4087,7 +4087,7 @@
40874087
<nav id="scrollingNav">
40884088
<ul class="sidenav nav nav-list">
40894089
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
4090-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>7.1.0</li>
4090+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>8.0.0</li>
40914091
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
40924092
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
40934093
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

Diff for: docs/v1/payroll-uk/index.html

+92-7
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" : "",
@@ -3517,7 +3600,7 @@
35173600
<nav id="scrollingNav">
35183601
<ul class="sidenav nav nav-list">
35193602
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
3520-
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>7.1.0</li>
3603+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>8.0.0</li>
35213604
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
35223605
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
35233606
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
@@ -5846,6 +5929,8 @@ <h3>Usage and SDK Samples</h3>
58465929
employment = Employment(
58475930
payroll_calendar_id = "00000000-0000-0000-0000-000000000000",
58485931
start_date = start_date)
5932+
5933+
ni_categories = NICategories(
58495934

58505935
try:
58515936
api_response = api_instance.create_employment(xero_tenant_id, employee_id, employment, idempotency_key)
@@ -5976,7 +6061,7 @@ <h2>Parameters</h2>
59766061
"schema" : {
59776062
"$ref" : "#/components/schemas/Employment"
59786063
},
5979-
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"EmployeeNumber\": \"123ABC\", \"NICategory\": \"A\" }"
6064+
"example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"NICategories\": [ { \"NICategory\": \"A\", \"StartDate\": \"2020-05-01\" } ], \"EmployeeNumber\": \"123ABC\" }"
59806065
}
59816066
},
59826067
"required" : true

Diff for: docs/v1/projects/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@
14621462
<nav id="scrollingNav">
14631463
<ul class="sidenav nav nav-list">
14641464
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
1465-
<li class="nav-header" data-group="Project"><strong>VSN: </strong>7.1.0</li>
1465+
<li class="nav-header" data-group="Project"><strong>VSN: </strong>8.0.0</li>
14661466
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
14671467
<li data-group="Project" data-name="createProject" class="">
14681468
<a href="#api-Project-createProject">createProject</a>

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@ def read_file(filename):
4848
keywords="xero python sdk API oAuth",
4949
name="xero_python",
5050
packages=find_packages(include=["xero_python", "xero_python.*"]),
51-
version="7.1.0",
51+
version="8.0.0",
5252
)

Diff for: xero_python/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """Xero Developer API"""
44
__email__ = "[email protected]"
5-
__version__ = "7.1.0"
5+
__version__ = "8.0.0"

Diff for: xero_python/accounting/api/accounting_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/appstore/api/app_store_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/assets/api/asset_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ These endpoints are related to managing authentication tokens and identity for X
33

44
The `xero_python` package is automatically generated by the [XeroAPI SDK 2.0 Codegen](https://github.com/xero-github/xeroapi-sdk-codegen) project:
55

6-
- API version: 7.1.0
7-
- Package version: 7.1.0
6+
- API version: 8.0.0
7+
- Package version: 8.0.0
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99
For more information, please visit [https://developer.xero.com](https://developer.xero.com)
1010

Diff for: xero_python/file/api/files_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/finance/api/finance_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/identity/api/identity_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/payrollau/api/payroll_au_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/payrollnz/api/payroll_nz_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/payrolluk/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@
9696
from xero_python.payrolluk.models.leave_type import LeaveType
9797
from xero_python.payrolluk.models.leave_type_object import LeaveTypeObject
9898
from xero_python.payrolluk.models.leave_types import LeaveTypes
99+
from xero_python.payrolluk.models.ni_category import NICategory
100+
from xero_python.payrolluk.models.ni_category_letter import NICategoryLetter
101+
from xero_python.payrolluk.models.ni_category_one_of import NICategoryOneOf
102+
from xero_python.payrolluk.models.ni_category_one_of1 import NICategoryOneOf1
99103
from xero_python.payrolluk.models.pagination import Pagination
100104
from xero_python.payrolluk.models.pay_run import PayRun
101105
from xero_python.payrolluk.models.pay_run_calendar import PayRunCalendar

Diff for: xero_python/payrolluk/api/payroll_uk_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"""
2222

2323
"""
24-
OpenAPI spec version: 7.1.0
24+
OpenAPI spec version: 8.0.0
2525
"""
2626

2727

Diff for: xero_python/payrolluk/docs/Employee.md

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Name | Type | Description | Notes
1717
**payroll_calendar_id** | **str** | Xero unique identifier for the payroll calendar of the employee | [optional]
1818
**updated_date_utc** | **datetime** | UTC timestamp of last update to the employee | [optional]
1919
**created_date_utc** | **datetime** | UTC timestamp when the employee was created in Xero | [optional]
20+
**ni_category** | [**NICategoryLetter**](NICategoryLetter.md) | | [optional]
21+
**ni_categories** | [**list[NICategory]**](NICategory.md) | The employee&#39;s NI categories | [optional]
2022
**national_insurance_number** | **str** | National insurance number of the employee | [optional]
2123
**is_off_payroll_worker** | **bool** | Whether the employee is an off payroll worker | [optional]
2224

Diff for: xero_python/payrolluk/docs/Employment.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Name | Type | Description | Notes
66
**payroll_calendar_id** | **str** | Xero unique identifier for the payroll calendar of the employee | [optional]
77
**start_date** | **date** | Start date of the employment (YYYY-MM-DD) | [optional]
88
**employee_number** | **str** | The employment number of the employee | [optional]
9-
**ni_category** | **str** | The NI Category of the employee | [optional]
9+
**ni_category** | [**NICategoryLetter**](NICategoryLetter.md) | | [optional]
10+
**ni_categories** | [**list[NICategory]**](NICategory.md) | The employee&#39;s NI categories | [optional]
1011

1112
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1213

Diff for: xero_python/payrolluk/docs/NICategory.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# NICategory
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**start_date** | **date** | The start date of the NI category (YYYY-MM-DD) | [optional]
7+
**ni_category** | [**NICategoryLetter**](NICategoryLetter.md) | |
8+
**ni_category_id** | **float** | Xero unique identifier for the NI category | [optional]
9+
**date_first_employed_as_civilian** | **date** | The date in which the employee was first employed as a civilian (YYYY-MM-DD) | [optional]
10+
**workplace_postcode** | **str** | The workplace postcode |
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

Diff for: xero_python/payrolluk/docs/NICategoryLetter.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# NICategoryLetter
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
7+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8+
9+

Diff for: xero_python/payrolluk/docs/NICategoryOneOf.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# NICategoryOneOf
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**ni_category** | **str** | | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

0 commit comments

Comments
 (0)