diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index 0f256415..9e5deb5a 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -6008,7 +6008,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods createAccount diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index 8e8df3e8..4b2e647f 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -1133,7 +1133,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods getSubscription diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html index e36c4810..f5687e76 100644 --- a/docs/v1/assets/index.html +++ b/docs/v1/assets/index.html @@ -1392,7 +1392,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods createAsset diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index 070d4333..cfad37b2 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -1155,7 +1155,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods createFileAssociation diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html index c554d58e..347387f3 100644 --- a/docs/v1/finance/index.html +++ b/docs/v1/finance/index.html @@ -2706,7 +2706,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods getAccountingActivityAccountUsage diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html index 6ea89f77..d5e1afd3 100644 --- a/docs/v1/payroll-au/index.html +++ b/docs/v1/payroll-au/index.html @@ -3254,7 +3254,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods createEmployee diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html index da68a658..e37a2e31 100644 --- a/docs/v1/payroll-nz/index.html +++ b/docs/v1/payroll-nz/index.html @@ -3838,7 +3838,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods approveTimesheet diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index 3d882458..54ba3213 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -3510,7 +3510,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods approveTimesheet diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html index 1f6cb14e..8173dae6 100644 --- a/docs/v1/projects/index.html +++ b/docs/v1/projects/index.html @@ -1468,7 +1468,7 @@ SDK: - VSN: 1.22.0 + VSN: 1.23.0 Methods createProject diff --git a/setup.py b/setup.py index 3b80bece..b8c66d9d 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.22.0", + version="1.23.0", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index 5c1c6127..2cb2ecc1 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.22.0" +__version__ = "1.23.0" diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index 02a3b09f..dac58650 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index 204ffa6c..03c55374 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 71518132..b97f595a 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index baaf2a39..f59c1322 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.35.0 -- Package version: 1.22.0 +- API version: 2.36.0 +- Package version: 1.23.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 dfc5d123..a84b0d69 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib @@ -448,7 +448,7 @@ def get_associations_by_object( ): """Retrieves an association object using a unique object ID # noqa: E501 OAuth2 scope: files, files.read - By passing in the appropriate options, # noqa: E501 + By passing in the appropriate options, you can retrieve an association # noqa: E501 :param str xero_tenant_id: Xero identifier for Tenant (required) :param str object_id: Object id for single object (required) :param bool _return_http_data_only: return received data only @@ -515,6 +515,85 @@ def get_associations_by_object( except exceptions.HTTPStatusException as error: raise translate_status_exception(error, self, "get_associations_by_object") + def get_associations_count( + self, + xero_tenant_id, + object_ids, + _return_http_data_only=True, + _preload_content=True, + _request_timeout=None, + ): + """Retrieves a count of associations for a list of objects. # noqa: E501 + OAuth2 scope: files, files.read + By passing in the appropriate options, you can retrieve the association count for objects # noqa: E501 + :param str xero_tenant_id: Xero identifier for Tenant (required) + :param list[str] object_ids: A comma-separated list of object ids (required) + :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 + :return: object + """ + + # verify the required parameter 'xero_tenant_id' is set + if xero_tenant_id is None: + raise ValueError( + "Missing the required parameter `xero_tenant_id` " + "when calling `get_associations_count`" + ) + # verify the required parameter 'object_ids' is set + if object_ids is None: + raise ValueError( + "Missing the required parameter `object_ids` " + "when calling `get_associations_count`" + ) + + collection_formats = { + "ObjectIds": "multi", + } + path_params = {} + + query_params = [ + ("ObjectIds", object_ids), + ] + + header_params = { + "xero-tenant-id": xero_tenant_id, + } + + local_var_files = {} + form_params = [] + + body_params = None + # HTTP header `Accept` + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # Authentication setting + auth_settings = ["OAuth2"] + url = self.get_resource_url("/Associations/Count") + + try: + return self.api_client.call_api( + url, + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type="object", + response_model_finder=self.get_model_finder(), + auth_settings=auth_settings, + _return_http_data_only=_return_http_data_only, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + collection_formats=collection_formats, + ) + except exceptions.HTTPStatusException as error: + raise translate_status_exception(error, self, "get_associations_count") + def get_file( self, xero_tenant_id, diff --git a/xero_python/file/docs/FilesApi.md b/xero_python/file/docs/FilesApi.md index 78d956b0..5e764f75 100644 --- a/xero_python/file/docs/FilesApi.md +++ b/xero_python/file/docs/FilesApi.md @@ -10,6 +10,7 @@ Method | HTTP request | Description [**delete_file_association**](FilesApi.md#delete_file_association) | **DELETE** /Files/{FileId}/Associations/{ObjectId} | Deletes an existing file association [**delete_folder**](FilesApi.md#delete_folder) | **DELETE** /Folders/{FolderId} | Deletes a folder [**get_associations_by_object**](FilesApi.md#get_associations_by_object) | **GET** /Associations/{ObjectId} | Retrieves an association object using a unique object ID +[**get_associations_count**](FilesApi.md#get_associations_count) | **GET** /Associations/Count | Retrieves a count of associations for a list of objects. [**get_file**](FilesApi.md#get_file) | **GET** /Files/{FileId} | Retrieves a file by a unique file ID [**get_file_associations**](FilesApi.md#get_file_associations) | **GET** /Files/{FileId}/Associations | Retrieves a specific file associations [**get_file_content**](FilesApi.md#get_file_content) | **GET** /Files/{FileId}/Content | Retrieves the content of a specific file @@ -354,7 +355,7 @@ void (empty response body) Retrieves an association object using a unique object ID -By passing in the appropriate options, +By passing in the appropriate options, you can retrieve an association ### Example @@ -414,6 +415,71 @@ 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_associations_count** +> object get_associations_count(xero_tenant_id, object_ids) + +Retrieves a count of associations for a list of objects. + +By passing in the appropriate options, you can retrieve the association count for objects + +### Example + +* OAuth Authentication (OAuth2): +```python +from xero_python.api_client import Configuration, ApiClient +from xero_python.api_client.oauth2 import OAuth2Token +from xero_python.exceptions import ApiException +from xero_python.file import FilesApi +from pprint import pprint + +# Configure OAuth2 access token for authorization: OAuth2 +# simplified version, `xero_oauth2_token` represents permanent global token storage +xero_oauth2_token = {} # set to valid xero oauth2 token dictionary +# create client configuration with client id and client secret for automatic token refresh +api_config = Configuration(oauth2_token=OAuth2Token( + client_id="YOUR_API_CLIENT_ID", client_secret="YOUR_API_CLIENT_SECRET" +)) +# configure xero-python sdk client +api_client = ApiClient( + api_config, + oauth2_token_saver=lambda x: xero_oauth2_token.update(x), + oauth2_token_getter=lambda : xero_oauth2_token +) +# create an instance of the API class +api_instance = FilesApi(api_client) + +xero_tenant_id = 'YOUR_XERO_TENANT_ID' # str | Xero identifier for Tenant +object_ids = ['object_ids_example'] # list[str] | A comma-separated list of object ids +try: + # Retrieves a count of associations for a list of objects. + api_response = api_instance.get_associations_count(xero_tenant_id, object_ids) + pprint(api_response) +except ApiException as e: + print("Exception when calling FilesApi->get_associations_count: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xero_tenant_id** | **str**| Xero identifier for Tenant | + **object_ids** | [**list[str]**](str.md)| A comma-separated list of object ids | + +### Return type + +**object** + +### Authorization + +[OAuth2](../README.md#OAuth2) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[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_file** > FileObject get_file(xero_tenant_id, file_id) diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index 3e20800c..cab0458d 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index cd681c82..ee0ef739 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib diff --git a/xero_python/payrollau/__init__.py b/xero_python/payrollau/__init__.py index 7fd168e0..e38c68b8 100644 --- a/xero_python/payrollau/__init__.py +++ b/xero_python/payrollau/__init__.py @@ -68,8 +68,10 @@ ) from xero_python.payrollau.models.manual_tax_type import ManualTaxType from xero_python.payrollau.models.opening_balances import OpeningBalances +from xero_python.payrollau.models.paid_leave_earnings_line import PaidLeaveEarningsLine from xero_python.payrollau.models.pay_item import PayItem from xero_python.payrollau.models.pay_items import PayItems +from xero_python.payrollau.models.pay_out_type import PayOutType from xero_python.payrollau.models.pay_run import PayRun from xero_python.payrollau.models.pay_run_status import PayRunStatus from xero_python.payrollau.models.pay_runs import PayRuns diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index 32b1f8d0..45120dbb 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib diff --git a/xero_python/payrollau/docs/LeaveApplication.md b/xero_python/payrollau/docs/LeaveApplication.md index ef054467..f8e25783 100644 --- a/xero_python/payrollau/docs/LeaveApplication.md +++ b/xero_python/payrollau/docs/LeaveApplication.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **start_date** | **date** | Start date of the leave (YYYY-MM-DD) | [optional] **end_date** | **date** | End date of the leave (YYYY-MM-DD) | [optional] **description** | **str** | The Description of the Leave | [optional] +**pay_out_type** | [**PayOutType**](PayOutType.md) | | [optional] **leave_periods** | [**list[LeavePeriod]**](LeavePeriod.md) | | [optional] **updated_date_utc** | **datetime** | Last modified timestamp | [optional] **validation_errors** | [**list[ValidationError]**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/xero_python/payrollau/docs/LeaveEarningsLine.md b/xero_python/payrollau/docs/LeaveEarningsLine.md index 234da08c..029a9f8b 100644 --- a/xero_python/payrollau/docs/LeaveEarningsLine.md +++ b/xero_python/payrollau/docs/LeaveEarningsLine.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **earnings_rate_id** | **str** | Xero identifier | [optional] **rate_per_unit** | **float** | Rate per unit of the EarningsLine. | [optional] **number_of_units** | **float** | Earnings rate number of units. | [optional] +**pay_out_type** | [**PayOutType**](PayOutType.md) | | [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/docs/OpeningBalances.md b/xero_python/payrollau/docs/OpeningBalances.md index 05101eb6..aeaa55ba 100644 --- a/xero_python/payrollau/docs/OpeningBalances.md +++ b/xero_python/payrollau/docs/OpeningBalances.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **super_lines** | [**list[SuperLine]**](SuperLine.md) | | [optional] **reimbursement_lines** | [**list[ReimbursementLine]**](ReimbursementLine.md) | | [optional] **leave_lines** | [**list[LeaveLine]**](LeaveLine.md) | | [optional] +**paid_leave_earnings_lines** | [**list[PaidLeaveEarningsLine]**](PaidLeaveEarningsLine.md) | | [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/docs/PaidLeaveEarningsLine.md b/xero_python/payrollau/docs/PaidLeaveEarningsLine.md new file mode 100644 index 00000000..7837e1d7 --- /dev/null +++ b/xero_python/payrollau/docs/PaidLeaveEarningsLine.md @@ -0,0 +1,14 @@ +# PaidLeaveEarningsLine + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**leave_type_id** | **str** | Xero leave type identifier | +**amount** | **float** | Paid leave amount | +**sgc_applied_leave_loading_amount** | **float** | The amount of leave loading applied for the leave type that is subject to Superannuation Guarantee Contributions. *Only applicable for Leave Types with Annual Leave Categories | [optional] +**sgc_exempted_leave_loading_amount** | **float** | The amount of leave loading applied for the leave type that is exempt from Superannuation Guarantee Contributions. *Only applicable for Leave Types with Annual Leave Categories | [optional] +**reset_stp_categorisation** | **bool** | Reset the STP categorisations for the leave type. *Only applicable for Leave Types with Annual Leave Categories | [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/docs/PayOutType.md b/xero_python/payrollau/docs/PayOutType.md new file mode 100644 index 00000000..192f3b16 --- /dev/null +++ b/xero_python/payrollau/docs/PayOutType.md @@ -0,0 +1,9 @@ +# PayOutType + +## 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/models/__init__.py b/xero_python/payrollau/models/__init__.py index 350c6e81..4eb873fd 100644 --- a/xero_python/payrollau/models/__init__.py +++ b/xero_python/payrollau/models/__init__.py @@ -63,8 +63,10 @@ ) from xero_python.payrollau.models.manual_tax_type import ManualTaxType from xero_python.payrollau.models.opening_balances import OpeningBalances +from xero_python.payrollau.models.paid_leave_earnings_line import PaidLeaveEarningsLine from xero_python.payrollau.models.pay_item import PayItem from xero_python.payrollau.models.pay_items import PayItems +from xero_python.payrollau.models.pay_out_type import PayOutType from xero_python.payrollau.models.pay_run import PayRun from xero_python.payrollau.models.pay_run_status import PayRunStatus from xero_python.payrollau.models.pay_runs import PayRuns diff --git a/xero_python/payrollau/models/leave_application.py b/xero_python/payrollau/models/leave_application.py index 496ebd6d..2b7f1beb 100644 --- a/xero_python/payrollau/models/leave_application.py +++ b/xero_python/payrollau/models/leave_application.py @@ -37,6 +37,7 @@ class LeaveApplication(BaseModel): "start_date": "date[ms-format]", "end_date": "date[ms-format]", "description": "str", + "pay_out_type": "PayOutType", "leave_periods": "list[LeavePeriod]", "updated_date_utc": "datetime[ms-format]", "validation_errors": "list[ValidationError]", @@ -50,6 +51,7 @@ class LeaveApplication(BaseModel): "start_date": "StartDate", "end_date": "EndDate", "description": "Description", + "pay_out_type": "PayOutType", "leave_periods": "LeavePeriods", "updated_date_utc": "UpdatedDateUTC", "validation_errors": "ValidationErrors", @@ -64,6 +66,7 @@ def __init__( start_date=None, end_date=None, description=None, + pay_out_type=None, leave_periods=None, updated_date_utc=None, validation_errors=None, @@ -77,6 +80,7 @@ def __init__( self._start_date = None self._end_date = None self._description = None + self._pay_out_type = None self._leave_periods = None self._updated_date_utc = None self._validation_errors = None @@ -96,6 +100,8 @@ def __init__( self.end_date = end_date if description is not None: self.description = description + if pay_out_type is not None: + self.pay_out_type = pay_out_type if leave_periods is not None: self.leave_periods = leave_periods if updated_date_utc is not None: @@ -264,6 +270,27 @@ def description(self, description): self._description = description + @property + def pay_out_type(self): + """Gets the pay_out_type of this LeaveApplication. # noqa: E501 + + + :return: The pay_out_type of this LeaveApplication. # noqa: E501 + :rtype: PayOutType + """ + return self._pay_out_type + + @pay_out_type.setter + def pay_out_type(self, pay_out_type): + """Sets the pay_out_type of this LeaveApplication. + + + :param pay_out_type: The pay_out_type of this LeaveApplication. # noqa: E501 + :type: PayOutType + """ + + self._pay_out_type = pay_out_type + @property def leave_periods(self): """Gets the leave_periods of this LeaveApplication. # noqa: E501 diff --git a/xero_python/payrollau/models/leave_earnings_line.py b/xero_python/payrollau/models/leave_earnings_line.py index 240f0627..728912e4 100644 --- a/xero_python/payrollau/models/leave_earnings_line.py +++ b/xero_python/payrollau/models/leave_earnings_line.py @@ -33,22 +33,29 @@ class LeaveEarningsLine(BaseModel): "earnings_rate_id": "str", "rate_per_unit": "float", "number_of_units": "float", + "pay_out_type": "PayOutType", } attribute_map = { "earnings_rate_id": "EarningsRateID", "rate_per_unit": "RatePerUnit", "number_of_units": "NumberOfUnits", + "pay_out_type": "PayOutType", } def __init__( - self, earnings_rate_id=None, rate_per_unit=None, number_of_units=None + self, + earnings_rate_id=None, + rate_per_unit=None, + number_of_units=None, + pay_out_type=None, ): # noqa: E501 """LeaveEarningsLine - a model defined in OpenAPI""" # noqa: E501 self._earnings_rate_id = None self._rate_per_unit = None self._number_of_units = None + self._pay_out_type = None self.discriminator = None if earnings_rate_id is not None: @@ -57,6 +64,8 @@ def __init__( self.rate_per_unit = rate_per_unit if number_of_units is not None: self.number_of_units = number_of_units + if pay_out_type is not None: + self.pay_out_type = pay_out_type @property def earnings_rate_id(self): @@ -126,3 +135,24 @@ def number_of_units(self, number_of_units): """ self._number_of_units = number_of_units + + @property + def pay_out_type(self): + """Gets the pay_out_type of this LeaveEarningsLine. # noqa: E501 + + + :return: The pay_out_type of this LeaveEarningsLine. # noqa: E501 + :rtype: PayOutType + """ + return self._pay_out_type + + @pay_out_type.setter + def pay_out_type(self, pay_out_type): + """Sets the pay_out_type of this LeaveEarningsLine. + + + :param pay_out_type: The pay_out_type of this LeaveEarningsLine. # noqa: E501 + :type: PayOutType + """ + + self._pay_out_type = pay_out_type diff --git a/xero_python/payrollau/models/opening_balances.py b/xero_python/payrollau/models/opening_balances.py index 93889b35..0ccd5e81 100644 --- a/xero_python/payrollau/models/opening_balances.py +++ b/xero_python/payrollau/models/opening_balances.py @@ -37,6 +37,7 @@ class OpeningBalances(BaseModel): "super_lines": "list[SuperLine]", "reimbursement_lines": "list[ReimbursementLine]", "leave_lines": "list[LeaveLine]", + "paid_leave_earnings_lines": "list[PaidLeaveEarningsLine]", } attribute_map = { @@ -47,6 +48,7 @@ class OpeningBalances(BaseModel): "super_lines": "SuperLines", "reimbursement_lines": "ReimbursementLines", "leave_lines": "LeaveLines", + "paid_leave_earnings_lines": "PaidLeaveEarningsLines", } def __init__( @@ -58,6 +60,7 @@ def __init__( super_lines=None, reimbursement_lines=None, leave_lines=None, + paid_leave_earnings_lines=None, ): # noqa: E501 """OpeningBalances - a model defined in OpenAPI""" # noqa: E501 @@ -68,6 +71,7 @@ def __init__( self._super_lines = None self._reimbursement_lines = None self._leave_lines = None + self._paid_leave_earnings_lines = None self.discriminator = None if opening_balance_date is not None: @@ -84,6 +88,8 @@ def __init__( self.reimbursement_lines = reimbursement_lines if leave_lines is not None: self.leave_lines = leave_lines + if paid_leave_earnings_lines is not None: + self.paid_leave_earnings_lines = paid_leave_earnings_lines @property def opening_balance_date(self): @@ -235,3 +241,24 @@ def leave_lines(self, leave_lines): """ self._leave_lines = leave_lines + + @property + def paid_leave_earnings_lines(self): + """Gets the paid_leave_earnings_lines of this OpeningBalances. # noqa: E501 + + + :return: The paid_leave_earnings_lines of this OpeningBalances. # noqa: E501 + :rtype: list[PaidLeaveEarningsLine] + """ + return self._paid_leave_earnings_lines + + @paid_leave_earnings_lines.setter + def paid_leave_earnings_lines(self, paid_leave_earnings_lines): + """Sets the paid_leave_earnings_lines of this OpeningBalances. + + + :param paid_leave_earnings_lines: The paid_leave_earnings_lines of this OpeningBalances. # noqa: E501 + :type: list[PaidLeaveEarningsLine] + """ + + self._paid_leave_earnings_lines = paid_leave_earnings_lines diff --git a/xero_python/payrollau/models/paid_leave_earnings_line.py b/xero_python/payrollau/models/paid_leave_earnings_line.py new file mode 100644 index 00000000..725e56fb --- /dev/null +++ b/xero_python/payrollau/models/paid_leave_earnings_line.py @@ -0,0 +1,195 @@ +# 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 xero_python.models import BaseModel + + +class PaidLeaveEarningsLine(BaseModel): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + "leave_type_id": "str", + "amount": "float", + "sgc_applied_leave_loading_amount": "float", + "sgc_exempted_leave_loading_amount": "float", + "reset_stp_categorisation": "bool", + } + + attribute_map = { + "leave_type_id": "LeaveTypeID", + "amount": "Amount", + "sgc_applied_leave_loading_amount": "SGCAppliedLeaveLoadingAmount", + "sgc_exempted_leave_loading_amount": "SGCExemptedLeaveLoadingAmount", + "reset_stp_categorisation": "ResetSTPCategorisation", + } + + def __init__( + self, + leave_type_id=None, + amount=None, + sgc_applied_leave_loading_amount=None, + sgc_exempted_leave_loading_amount=None, + reset_stp_categorisation=None, + ): # noqa: E501 + """PaidLeaveEarningsLine - a model defined in OpenAPI""" # noqa: E501 + + self._leave_type_id = None + self._amount = None + self._sgc_applied_leave_loading_amount = None + self._sgc_exempted_leave_loading_amount = None + self._reset_stp_categorisation = None + self.discriminator = None + + self.leave_type_id = leave_type_id + self.amount = amount + if sgc_applied_leave_loading_amount is not None: + self.sgc_applied_leave_loading_amount = sgc_applied_leave_loading_amount + if sgc_exempted_leave_loading_amount is not None: + self.sgc_exempted_leave_loading_amount = sgc_exempted_leave_loading_amount + if reset_stp_categorisation is not None: + self.reset_stp_categorisation = reset_stp_categorisation + + @property + def leave_type_id(self): + """Gets the leave_type_id of this PaidLeaveEarningsLine. # noqa: E501 + + Xero leave type identifier # noqa: E501 + + :return: The leave_type_id of this PaidLeaveEarningsLine. # noqa: E501 + :rtype: str + """ + return self._leave_type_id + + @leave_type_id.setter + def leave_type_id(self, leave_type_id): + """Sets the leave_type_id of this PaidLeaveEarningsLine. + + Xero leave type identifier # noqa: E501 + + :param leave_type_id: The leave_type_id of this PaidLeaveEarningsLine. # noqa: E501 + :type: str + """ + if leave_type_id is None: + raise ValueError( + "Invalid value for `leave_type_id`, must not be `None`" + ) # noqa: E501 + + self._leave_type_id = leave_type_id + + @property + def amount(self): + """Gets the amount of this PaidLeaveEarningsLine. # noqa: E501 + + Paid leave amount # noqa: E501 + + :return: The amount of this PaidLeaveEarningsLine. # noqa: E501 + :rtype: float + """ + return self._amount + + @amount.setter + def amount(self, amount): + """Sets the amount of this PaidLeaveEarningsLine. + + Paid leave amount # noqa: E501 + + :param amount: The amount of this PaidLeaveEarningsLine. # noqa: E501 + :type: float + """ + if amount is None: + raise ValueError( + "Invalid value for `amount`, must not be `None`" + ) # noqa: E501 + + self._amount = amount + + @property + def sgc_applied_leave_loading_amount(self): + """Gets the sgc_applied_leave_loading_amount of this PaidLeaveEarningsLine. # noqa: E501 + + The amount of leave loading applied for the leave type that is subject to Superannuation Guarantee Contributions. *Only applicable for Leave Types with Annual Leave Categories # noqa: E501 + + :return: The sgc_applied_leave_loading_amount of this PaidLeaveEarningsLine. # noqa: E501 + :rtype: float + """ + return self._sgc_applied_leave_loading_amount + + @sgc_applied_leave_loading_amount.setter + def sgc_applied_leave_loading_amount(self, sgc_applied_leave_loading_amount): + """Sets the sgc_applied_leave_loading_amount of this PaidLeaveEarningsLine. + + The amount of leave loading applied for the leave type that is subject to Superannuation Guarantee Contributions. *Only applicable for Leave Types with Annual Leave Categories # noqa: E501 + + :param sgc_applied_leave_loading_amount: The sgc_applied_leave_loading_amount of this PaidLeaveEarningsLine. # noqa: E501 + :type: float + """ + + self._sgc_applied_leave_loading_amount = sgc_applied_leave_loading_amount + + @property + def sgc_exempted_leave_loading_amount(self): + """Gets the sgc_exempted_leave_loading_amount of this PaidLeaveEarningsLine. # noqa: E501 + + The amount of leave loading applied for the leave type that is exempt from Superannuation Guarantee Contributions. *Only applicable for Leave Types with Annual Leave Categories # noqa: E501 + + :return: The sgc_exempted_leave_loading_amount of this PaidLeaveEarningsLine. # noqa: E501 + :rtype: float + """ + return self._sgc_exempted_leave_loading_amount + + @sgc_exempted_leave_loading_amount.setter + def sgc_exempted_leave_loading_amount(self, sgc_exempted_leave_loading_amount): + """Sets the sgc_exempted_leave_loading_amount of this PaidLeaveEarningsLine. + + The amount of leave loading applied for the leave type that is exempt from Superannuation Guarantee Contributions. *Only applicable for Leave Types with Annual Leave Categories # noqa: E501 + + :param sgc_exempted_leave_loading_amount: The sgc_exempted_leave_loading_amount of this PaidLeaveEarningsLine. # noqa: E501 + :type: float + """ + + self._sgc_exempted_leave_loading_amount = sgc_exempted_leave_loading_amount + + @property + def reset_stp_categorisation(self): + """Gets the reset_stp_categorisation of this PaidLeaveEarningsLine. # noqa: E501 + + Reset the STP categorisations for the leave type. *Only applicable for Leave Types with Annual Leave Categories # noqa: E501 + + :return: The reset_stp_categorisation of this PaidLeaveEarningsLine. # noqa: E501 + :rtype: bool + """ + return self._reset_stp_categorisation + + @reset_stp_categorisation.setter + def reset_stp_categorisation(self, reset_stp_categorisation): + """Sets the reset_stp_categorisation of this PaidLeaveEarningsLine. + + Reset the STP categorisations for the leave type. *Only applicable for Leave Types with Annual Leave Categories # noqa: E501 + + :param reset_stp_categorisation: The reset_stp_categorisation of this PaidLeaveEarningsLine. # noqa: E501 + :type: bool + """ + + self._reset_stp_categorisation = reset_stp_categorisation diff --git a/xero_python/payrollau/models/pay_out_type.py b/xero_python/payrollau/models/pay_out_type.py new file mode 100644 index 00000000..99a95bf5 --- /dev/null +++ b/xero_python/payrollau/models/pay_out_type.py @@ -0,0 +1,28 @@ +# 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 PayOutType(Enum): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + allowed enum values + """ + + DEFAULT = "DEFAULT" + CASHED_OUT = "CASHED_OUT" diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index 0bb83e49..d845033c 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index 710f2ebc..92c045bc 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index 388ac0bc..ab95bfc1 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.35.0 + OpenAPI spec version: 2.36.0 """ import importlib