diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index b51a69d4..e22cfd89 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -6008,7 +6008,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods createAccount diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index d94ee2e9..eb3da6bd 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -1133,7 +1133,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods getSubscription diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html index 5e8b6440..b49ed55a 100644 --- a/docs/v1/assets/index.html +++ b/docs/v1/assets/index.html @@ -1392,7 +1392,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods createAsset diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index 07d90377..4a247f56 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -1155,7 +1155,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods createFileAssociation diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html index 8f218463..75d72013 100644 --- a/docs/v1/finance/index.html +++ b/docs/v1/finance/index.html @@ -2706,7 +2706,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods getAccountingActivityAccountUsage diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html index da08c385..8ae97e6e 100644 --- a/docs/v1/payroll-au/index.html +++ b/docs/v1/payroll-au/index.html @@ -3254,7 +3254,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods createEmployee diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html index 2b7ed50c..9b9d35ee 100644 --- a/docs/v1/payroll-nz/index.html +++ b/docs/v1/payroll-nz/index.html @@ -3838,7 +3838,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods approveTimesheet diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index c48ab96e..2b599bc5 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -3510,7 +3510,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods approveTimesheet diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html index fec049f6..1537cbfb 100644 --- a/docs/v1/projects/index.html +++ b/docs/v1/projects/index.html @@ -1468,7 +1468,7 @@ SDK: - VSN: 1.17.0 + VSN: 1.18.0 Methods createProject diff --git a/setup.py b/setup.py index daa68ede..e71b729e 100644 --- a/setup.py +++ b/setup.py @@ -48,5 +48,5 @@ def read_file(filename): keywords="xero python sdk API oAuth", name="xero_python", packages=find_packages(include=["xero_python", "xero_python.*"]), - version="1.17.0", + version="1.18.0", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index e587afa5..9ffb6d51 100644 --- a/xero_python/__init__.py +++ b/xero_python/__init__.py @@ -2,4 +2,4 @@ __author__ = """Xero Developer API""" __email__ = "api@xero.com" -__version__ = "1.17.0" +__version__ = "1.18.0" diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index 5b00a107..db20e42d 100644 --- a/xero_python/accounting/api/accounting_api.py +++ b/xero_python/accounting/api/accounting_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/accounting/docs/AccountingApi.md b/xero_python/accounting/docs/AccountingApi.md index a7feb7e2..5ba97ca7 100644 --- a/xero_python/accounting/docs/AccountingApi.md +++ b/xero_python/accounting/docs/AccountingApi.md @@ -6774,7 +6774,7 @@ i_ds = ['"00000000-0000-0000-0000-000000000000"'] # list[str] | Filter page = 1 # int | e.g. page=1 - Up to 100 contacts will be returned in a single API call. (optional) include_archived = true # bool | e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response (optional) summary_only = False # bool | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (optional) (default to False) -search_term = 'searchTerm=Joe Bloggs' # str | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional) +search_term = 'Joe Bloggs' # str | Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields. (optional) try: # Retrieves all contacts in a Xero organisation api_response = api_instance.get_contacts(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, i_ds=i_ds, page=page, include_archived=include_archived, summary_only=summary_only, search_term=search_term) diff --git a/xero_python/accounting/models/organisation.py b/xero_python/accounting/models/organisation.py index 47a68ae2..0bf4b17f 100644 --- a/xero_python/accounting/models/organisation.py +++ b/xero_python/accounting/models/organisation.py @@ -980,6 +980,7 @@ def _class(self, _class): "GST_CASHBOOK", "NON_GST_CASHBOOK", "ULTIMATE", + "LITE", "None", ] # noqa: E501 diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index 06c110de..0a7d4625 100644 --- a/xero_python/appstore/api/app_store_api.py +++ b/xero_python/appstore/api/app_store_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 4436b586..813ced62 100644 --- a/xero_python/assets/api/asset_api.py +++ b/xero_python/assets/api/asset_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index 228be5d1..0d953ed4 100644 --- a/xero_python/docs/README.md +++ b/xero_python/docs/README.md @@ -3,8 +3,8 @@ These endpoints are related to managing authentication tokens and identity for X The `xero_python` package is automatically generated by the [XeroAPI SDK 2.0 Codegen](https://github.com/xero-github/xeroapi-sdk-codegen) project: -- API version: 2.25.0 -- Package version: 1.17.0 +- API version: 2.27.0 +- Package version: 1.18.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://developer.xero.com](https://developer.xero.com) diff --git a/xero_python/file/api/files_api.py b/xero_python/file/api/files_api.py index 12b74a4c..1e6c7600 100644 --- a/xero_python/file/api/files_api.py +++ b/xero_python/file/api/files_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index ea6d970c..e6d7092f 100644 --- a/xero_python/finance/api/finance_api.py +++ b/xero_python/finance/api/finance_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index 94a1e381..8b6a11a7 100644 --- a/xero_python/identity/api/identity_api.py +++ b/xero_python/identity/api/identity_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/payrollau/__init__.py b/xero_python/payrollau/__init__.py index fe296e33..658860ec 100644 --- a/xero_python/payrollau/__init__.py +++ b/xero_python/payrollau/__init__.py @@ -50,6 +50,7 @@ from xero_python.payrollau.models.leave_application import LeaveApplication from xero_python.payrollau.models.leave_applications import LeaveApplications from xero_python.payrollau.models.leave_balance import LeaveBalance +from xero_python.payrollau.models.leave_category_code import LeaveCategoryCode from xero_python.payrollau.models.leave_earnings_line import LeaveEarningsLine from xero_python.payrollau.models.leave_line import LeaveLine from xero_python.payrollau.models.leave_line_calculation_type import ( diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index b4ac18d6..ddca9733 100644 --- a/xero_python/payrollau/api/payroll_au_api.py +++ b/xero_python/payrollau/api/payroll_au_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/payrollau/docs/Employee.md b/xero_python/payrollau/docs/Employee.md index fe347bd0..470d3821 100644 --- a/xero_python/payrollau/docs/Employee.md +++ b/xero_python/payrollau/docs/Employee.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **title** | **str** | Title of the employee | [optional] **middle_names** | **str** | Middle name(s) of the employee | [optional] **email** | **str** | The email address for the employee | [optional] -**gender** | **str** | The employee’s gender. See Employee Gender | [optional] +**gender** | **str** | The employee’s gender. See Employee Gender | [optional] **phone** | **str** | Employee phone number | [optional] **mobile** | **str** | Employee mobile number | [optional] **twitter_user_name** | **str** | Employee’s twitter name | [optional] diff --git a/xero_python/payrollau/docs/LeaveCategoryCode.md b/xero_python/payrollau/docs/LeaveCategoryCode.md new file mode 100644 index 00000000..a75a5c57 --- /dev/null +++ b/xero_python/payrollau/docs/LeaveCategoryCode.md @@ -0,0 +1,9 @@ +# LeaveCategoryCode + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[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/payrollau/docs/LeaveType.md b/xero_python/payrollau/docs/LeaveType.md index 8d620a06..c0c89f5b 100644 --- a/xero_python/payrollau/docs/LeaveType.md +++ b/xero_python/payrollau/docs/LeaveType.md @@ -12,6 +12,8 @@ Name | Type | Description | Notes **is_paid_leave** | **bool** | Set this to indicate that an employee will be paid when taking this type of leave | [optional] **show_on_payslip** | **bool** | Set this if you want a balance for this leave type to be shown on your employee’s payslips | [optional] **current_record** | **bool** | Is the current record | [optional] +**leave_category_code** | [**LeaveCategoryCode**](LeaveCategoryCode.md) | | [optional] +**sgc_exempt** | **bool** | Set this to indicate that the leave type is exempt from superannuation guarantee contribution | [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/payrollau/models/__init__.py b/xero_python/payrollau/models/__init__.py index fabf94f5..7ab006ad 100644 --- a/xero_python/payrollau/models/__init__.py +++ b/xero_python/payrollau/models/__init__.py @@ -45,6 +45,7 @@ from xero_python.payrollau.models.leave_application import LeaveApplication from xero_python.payrollau.models.leave_applications import LeaveApplications from xero_python.payrollau.models.leave_balance import LeaveBalance +from xero_python.payrollau.models.leave_category_code import LeaveCategoryCode from xero_python.payrollau.models.leave_earnings_line import LeaveEarningsLine from xero_python.payrollau.models.leave_line import LeaveLine from xero_python.payrollau.models.leave_line_calculation_type import ( diff --git a/xero_python/payrollau/models/employee.py b/xero_python/payrollau/models/employee.py index b18378c8..68bb5890 100644 --- a/xero_python/payrollau/models/employee.py +++ b/xero_python/payrollau/models/employee.py @@ -432,7 +432,7 @@ def email(self, email): def gender(self): """Gets the gender of this Employee. # noqa: E501 - The employee’s gender. See Employee Gender # noqa: E501 + The employee’s gender. See Employee Gender # noqa: E501 :return: The gender of this Employee. # noqa: E501 :rtype: str @@ -443,7 +443,7 @@ def gender(self): def gender(self, gender): """Sets the gender of this Employee. - The employee’s gender. See Employee Gender # noqa: E501 + The employee’s gender. See Employee Gender # noqa: E501 :param gender: The gender of this Employee. # noqa: E501 :type: str diff --git a/xero_python/payrollau/models/leave_category_code.py b/xero_python/payrollau/models/leave_category_code.py new file mode 100644 index 00000000..c9f22ffe --- /dev/null +++ b/xero_python/payrollau/models/leave_category_code.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + Xero Payroll AU API + + This is the Xero Payroll API for orgs in Australia region. # noqa: E501 + + Contact: api@xero.com + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 + +from enum import Enum + + +class LeaveCategoryCode(Enum): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + allowed enum values + """ + + ANNUALLEAVE = "ANNUALLEAVE" + LONGSERVICELEAVE = "LONGSERVICELEAVE" + PERSONALCARERSLEAVE = "PERSONALCARERSLEAVE" + ROSTEREDDAYOFF = "ROSTEREDDAYOFF" + TIMEOFFINLIEU = "TIMEOFFINLIEU" + COMPASSIONATEANDBEREAVEMENTLEAVE = "COMPASSIONATEANDBEREAVEMENTLEAVE" + STUDYLEAVE = "STUDYLEAVE" + FAMILYANDDOMESTICVIOLENCELEAVE = "FAMILYANDDOMESTICVIOLENCELEAVE" + SPECIALPAIDLEAVE = "SPECIALPAIDLEAVE" + COMMUNITYSERVICELEAVE = "COMMUNITYSERVICELEAVE" + JURYDUTYLEAVE = "JURYDUTYLEAVE" + DEFENCERESERVELEAVE = "DEFENCERESERVELEAVE" diff --git a/xero_python/payrollau/models/leave_type.py b/xero_python/payrollau/models/leave_type.py index 8826df30..26ab1393 100644 --- a/xero_python/payrollau/models/leave_type.py +++ b/xero_python/payrollau/models/leave_type.py @@ -39,6 +39,8 @@ class LeaveType(BaseModel): "is_paid_leave": "bool", "show_on_payslip": "bool", "current_record": "bool", + "leave_category_code": "LeaveCategoryCode", + "sgc_exempt": "bool", } attribute_map = { @@ -51,6 +53,8 @@ class LeaveType(BaseModel): "is_paid_leave": "IsPaidLeave", "show_on_payslip": "ShowOnPayslip", "current_record": "CurrentRecord", + "leave_category_code": "LeaveCategoryCode", + "sgc_exempt": "SGCExempt", } def __init__( @@ -64,6 +68,8 @@ def __init__( is_paid_leave=None, show_on_payslip=None, current_record=None, + leave_category_code=None, + sgc_exempt=None, ): # noqa: E501 """LeaveType - a model defined in OpenAPI""" # noqa: E501 @@ -76,6 +82,8 @@ def __init__( self._is_paid_leave = None self._show_on_payslip = None self._current_record = None + self._leave_category_code = None + self._sgc_exempt = None self.discriminator = None if name is not None: @@ -96,6 +104,10 @@ def __init__( self.show_on_payslip = show_on_payslip if current_record is not None: self.current_record = current_record + if leave_category_code is not None: + self.leave_category_code = leave_category_code + if sgc_exempt is not None: + self.sgc_exempt = sgc_exempt @property def name(self): @@ -308,3 +320,47 @@ def current_record(self, current_record): """ self._current_record = current_record + + @property + def leave_category_code(self): + """Gets the leave_category_code of this LeaveType. # noqa: E501 + + + :return: The leave_category_code of this LeaveType. # noqa: E501 + :rtype: LeaveCategoryCode + """ + return self._leave_category_code + + @leave_category_code.setter + def leave_category_code(self, leave_category_code): + """Sets the leave_category_code of this LeaveType. + + + :param leave_category_code: The leave_category_code of this LeaveType. # noqa: E501 + :type: LeaveCategoryCode + """ + + self._leave_category_code = leave_category_code + + @property + def sgc_exempt(self): + """Gets the sgc_exempt of this LeaveType. # noqa: E501 + + Set this to indicate that the leave type is exempt from superannuation guarantee contribution # noqa: E501 + + :return: The sgc_exempt of this LeaveType. # noqa: E501 + :rtype: bool + """ + return self._sgc_exempt + + @sgc_exempt.setter + def sgc_exempt(self, sgc_exempt): + """Sets the sgc_exempt of this LeaveType. + + Set this to indicate that the leave type is exempt from superannuation guarantee contribution # noqa: E501 + + :param sgc_exempt: The sgc_exempt of this LeaveType. # noqa: E501 + :type: bool + """ + + self._sgc_exempt = sgc_exempt diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index 9ca098e3..51878fde 100644 --- a/xero_python/payrollnz/api/payroll_nz_api.py +++ b/xero_python/payrollnz/api/payroll_nz_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index a42d91cf..1f3357f7 100644 --- a/xero_python/payrolluk/api/payroll_uk_api.py +++ b/xero_python/payrolluk/api/payroll_uk_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index dbf13312..9a554045 100644 --- a/xero_python/project/api/project_api.py +++ b/xero_python/project/api/project_api.py @@ -10,7 +10,7 @@ """ """ - OpenAPI spec version: 2.25.0 + OpenAPI spec version: 2.27.0 """ import importlib