From 7b078dc03a5c5e40948cd7ef6437ea53f057d661 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Thu, 19 Jun 2025 15:24:12 +0530 Subject: [PATCH 1/3] Build for version - 9.0.0 --- docs/v1/accounting/index.html | 2 +- docs/v1/appstore/index.html | 4 +-- docs/v1/files/index.html | 25 +++++++++++++++++-- docs/v1/payroll-uk/index.html | 4 +-- xero_python/accounting/models/user.py | 1 + xero_python/appstore/docs/Product.md | 2 +- xero_python/appstore/models/product.py | 12 ++++++--- xero_python/file/api/files_api.py | 5 ++++ xero_python/file/docs/FilesApi.md | 8 +++--- .../employee_statutory_leave_balance.py | 1 + .../employee_statutory_leave_summary.py | 1 + 11 files changed, 51 insertions(+), 14 deletions(-) diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index 6926cc27..fece6d68 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -6220,7 +6220,7 @@ "OrganisationRole" : { "type" : "string", "description" : "User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)", - "enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN" ] + "enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED" ] } }, "description" : "", diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index 1de19353..736b49f9 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -976,8 +976,8 @@ }, "type" : { "type" : "string", - "description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n", - "enum" : [ "FIXED", "PER_SEAT", "METERED" ] + "description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n* SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature\n", + "enum" : [ "FIXED", "PER_SEAT", "METERED", "SIMPLE" ] }, "usageUnit" : { "type" : "string", diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index 2a1b6391..4639ded4 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -2741,10 +2741,11 @@

Usage and SDK Samples

def accounting_get_files(): api_instance = FilesApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' - sort = 'CreatedDateUTC DESC' + sort = 'CreatedDateUTC' + direction = 'ASC' try: - api_response = api_instance.get_files(xero_tenant_id, pagesize, page, sort) + api_response = api_instance.get_files(xero_tenant_id, pagesize, page, sort, direction) print(api_response) except AccountingBadRequestException as e: print("Exception when calling FilesApi->getFiles: %s\n" % e) @@ -2859,6 +2860,26 @@

Parameters

+ + + direction + + + +
+
+
+ + String + + +
+sort direction +
+
+
+
+ diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index 1298eec5..3f471636 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -1954,7 +1954,7 @@ "leaveType" : { "type" : "string", "description" : "The type of statutory leave", - "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ] + "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ] }, "balanceRemaining" : { "type" : "number", @@ -2002,7 +2002,7 @@ "type" : { "type" : "string", "description" : "The category of statutory leave", - "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ] + "enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ] }, "startDate" : { "type" : "string", diff --git a/xero_python/accounting/models/user.py b/xero_python/accounting/models/user.py index ac870fc4..0e42c95d 100644 --- a/xero_python/accounting/models/user.py +++ b/xero_python/accounting/models/user.py @@ -251,6 +251,7 @@ def organisation_role(self, organisation_role): "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", + "REMOVED", "None", ] # noqa: E501 diff --git a/xero_python/appstore/docs/Product.md b/xero_python/appstore/docs/Product.md index 085bd56e..7019a83f 100644 --- a/xero_python/appstore/docs/Product.md +++ b/xero_python/appstore/docs/Product.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **id** | **str** | The unique identifier for the product | [optional] **name** | **str** | The name of the product | [optional] **seat_unit** | **str** | The unit of the per seat product. e.g. \"user\", \"organisation\", \"SMS\", etc | [optional] -**type** | **str** | The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product | [optional] +**type** | **str** | The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature | [optional] **usage_unit** | **str** | The unit of the usage product. e.g. \"user\", \"minutes\", \"SMS\", etc | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/xero_python/appstore/models/product.py b/xero_python/appstore/models/product.py index 84d49556..a52b5f77 100644 --- a/xero_python/appstore/models/product.py +++ b/xero_python/appstore/models/product.py @@ -141,7 +141,7 @@ def seat_unit(self, seat_unit): def type(self): """Gets the type of this Product. # noqa: E501 - The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product # noqa: E501 + The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature # noqa: E501 :return: The type of this Product. # noqa: E501 :rtype: str @@ -152,12 +152,18 @@ def type(self): def type(self, type): """Sets the type of this Product. - The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product # noqa: E501 + The pricing model of the product: * FIXED: Customers are charged a fixed amount for each billing period * PER_SEAT: Customers are charged based on the number of units they purchase * METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature # noqa: E501 :param type: The type of this Product. # noqa: E501 :type: str """ - allowed_values = ["FIXED", "PER_SEAT", "METERED", "None"] # noqa: E501 + allowed_values = [ + "FIXED", + "PER_SEAT", + "METERED", + "SIMPLE", + "None", + ] # noqa: E501 if type: if type not in allowed_values: diff --git a/xero_python/file/api/files_api.py b/xero_python/file/api/files_api.py index 0e9036af..baa10128 100644 --- a/xero_python/file/api/files_api.py +++ b/xero_python/file/api/files_api.py @@ -885,6 +885,7 @@ def get_files( pagesize=empty, page=empty, sort=empty, + direction=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -895,6 +896,7 @@ def get_files( :param int pagesize: pass an optional page size value :param int page: number of records to skip for pagination :param str sort: values to sort by + :param str direction: sort direction :param bool _return_http_data_only: return received data only :param bool _preload_content: load received data in models :param bool _request_timeout: maximum wait time for response @@ -936,6 +938,9 @@ def get_files( if sort is not empty: query_params.append(("sort", sort)) + if direction is not empty: + query_params.append(("direction", direction)) + header_params = { "xero-tenant-id": xero_tenant_id, } diff --git a/xero_python/file/docs/FilesApi.md b/xero_python/file/docs/FilesApi.md index d3eeee1f..afb82c92 100644 --- a/xero_python/file/docs/FilesApi.md +++ b/xero_python/file/docs/FilesApi.md @@ -686,7 +686,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_files** -> Files get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort) +> Files get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort, direction=direction) Retrieves files @@ -719,10 +719,11 @@ api_instance = FilesApi(api_client) xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant pagesize = 50 # int | pass an optional page size value (optional) page = 2 # int | number of records to skip for pagination (optional) -sort = 'CreatedDateUTC DESC' # str | values to sort by (optional) +sort = 'CreatedDateUTC' # str | values to sort by (optional) +direction = 'ASC' # str | sort direction (optional) try: # Retrieves files - api_response = api_instance.get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort) + api_response = api_instance.get_files(xero_tenant_id, pagesize=pagesize, page=page, sort=sort, direction=direction) pprint(api_response) except ApiException as e: print("Exception when calling FilesApi->get_files: %s\n" % e) @@ -736,6 +737,7 @@ Name | Type | Description | Notes **pagesize** | **int**| pass an optional page size value | [optional] **page** | **int**| number of records to skip for pagination | [optional] **sort** | **str**| values to sort by | [optional] + **direction** | **str**| sort direction | [optional] ### Return type diff --git a/xero_python/payrolluk/models/employee_statutory_leave_balance.py b/xero_python/payrolluk/models/employee_statutory_leave_balance.py index e3d810a7..a0cb0812 100644 --- a/xero_python/payrolluk/models/employee_statutory_leave_balance.py +++ b/xero_python/payrolluk/models/employee_statutory_leave_balance.py @@ -81,6 +81,7 @@ def leave_type(self, leave_type): "Paternity", "Sharedparental", "Bereavement", + "NeonatalCare", "None", ] # noqa: E501 diff --git a/xero_python/payrolluk/models/employee_statutory_leave_summary.py b/xero_python/payrolluk/models/employee_statutory_leave_summary.py index 220babcd..4f9c809b 100644 --- a/xero_python/payrolluk/models/employee_statutory_leave_summary.py +++ b/xero_python/payrolluk/models/employee_statutory_leave_summary.py @@ -158,6 +158,7 @@ def type(self, type): "Paternity", "Sharedparental", "Bereavement", + "NeonatalCare", "None", ] # noqa: E501 From 4a431c8d5b32d6732a3c8e1b6237f514662868aa Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Fri, 20 Jun 2025 13:30:38 +0530 Subject: [PATCH 2/3] Updated the version --- docs/v1/accounting/index.html | 2 +- docs/v1/appstore/index.html | 2 +- docs/v1/assets/index.html | 2 +- docs/v1/files/index.html | 2 +- docs/v1/finance/index.html | 2 +- docs/v1/payroll-au/index.html | 2 +- docs/v1/payroll-nz/index.html | 2 +- docs/v1/payroll-uk/index.html | 2 +- docs/v1/projects/index.html | 2 +- setup.py | 2 +- xero_python/__init__.py | 2 +- xero_python/docs/README.md | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index fece6d68..57427972 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -6339,7 +6339,7 @@