diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index dd5cb3c4..af968792 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -4357,6 +4357,11 @@ "example" : false, "default" : false }, + "Reference" : { + "type" : "string", + "description" : "An optional description for Overpayment", + "example" : "Ref for payment" + }, "Attachments" : { "type" : "array", "description" : "See Attachments", @@ -6344,7 +6349,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods createAccount @@ -32134,9 +32139,10 @@ Usage and SDK Samples if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00") where = 'Status=="AUTHORISED"' order = 'Status ASC' + references = ["Ref1", "Ref2"] try: - api_response = api_instance.get_overpayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize) + api_response = api_instance.get_overpayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, references) print(api_response) except AccountingBadRequestException as e: print("Exception when calling AccountingApi->getOverpayments: %s\n" % e) @@ -32314,6 +32320,26 @@ Parameters + + + References + + + + + + + + array[String] + + + +Filter by a comma-separated list of References + + + + + diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index 3581c7eb..865928c6 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -1241,7 +1241,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods getSubscription diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html index cdbe4fca..951d2061 100644 --- a/docs/v1/assets/index.html +++ b/docs/v1/assets/index.html @@ -1419,7 +1419,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods createAsset diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index 86e1ccb4..b9149441 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -1170,7 +1170,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods createFileAssociation diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html index 85621be5..512d23f0 100644 --- a/docs/v1/finance/index.html +++ b/docs/v1/finance/index.html @@ -2716,7 +2716,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods getAccountingActivityAccountUsage diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html index 427f4bc1..0d0b41ed 100644 --- a/docs/v1/payroll-au/index.html +++ b/docs/v1/payroll-au/index.html @@ -3412,7 +3412,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods approveLeaveApplication diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html index 01c42e9c..a54e4c63 100644 --- a/docs/v1/payroll-nz/index.html +++ b/docs/v1/payroll-nz/index.html @@ -1682,20 +1682,6 @@ "example" : 10.0, "x-is-money" : true }, - "sickLeaveHoursToAccrueAnnually" : { - "type" : "number", - "description" : "Deprecated use SickLeaveToAccrueAnnually", - "format" : "double", - "example" : 100.5, - "x-is-money" : true - }, - "sickLeaveMaximumHoursToAccrue" : { - "type" : "number", - "description" : "Deprecated use SickLeaveMaximumToAccrue", - "format" : "double", - "example" : 200.5, - "x-is-money" : true - }, "SickLeaveToAccrueAnnually" : { "type" : "number", "description" : "Number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type", @@ -1769,13 +1755,7 @@ "description" : "The schedule of accrual", "enum" : [ "AnnuallyAfter6Months", "OnAnniversaryDate", "PercentageOfGrossEarnings", "NoAccruals" ] }, - "hoursAccruedAnnually" : { - "type" : "number", - "description" : "Deprecated use UnitsAccruedAnnually", - "format" : "double", - "x-is-money" : true - }, - "UnitsAccruedAnnually" : { + "unitsAccruedAnnually" : { "type" : "number", "description" : "The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\"", "format" : "double", @@ -1803,7 +1783,7 @@ }, "rateAccruedHourly" : { "type" : "number", - "description" : "The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\"", + "description" : "not supported in Payroll NZ", "format" : "double", "x-is-money" : true }, @@ -4087,7 +4067,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods approveTimesheet @@ -5390,8 +5370,6 @@ Usage and SDK Samples include_holiday_pay = false, holiday_pay_opening_balance = 10.5, annual_leave_opening_balance = 25.89, - sick_leave_hours_to_accrue_annually = 100.0, - sick_leave_maximum_hours_to_accrue = 200.0, sick_leave_opening_balance = 10.5, sick_leave_to_accrue_annually = 100.0, sick_leave_maximum_to_accrue = 200.0, @@ -5531,7 +5509,6 @@ Parameters "example" : { "holidayPayOpeningBalance" : 10, "annualLeaveOpeningBalance" : 100, - "sickLeaveHoursToAccrueAnnually" : 20, "sickLeaveToAccrueAnnually" : 20, "sickLeaveOpeningBalance" : 10, "sickLeaveScheduleOfAccrual" : "OnAnniversaryDate", @@ -5727,13 +5704,12 @@ Parameters "example" : { "leaveTypeID" : "35da97ae-05b9-427f-9a98-69157ba42cec", "scheduleOfAccrual" : "AnnuallyAfter6Months", - "hoursAccruedAnnually" : 10, "unitsAccruedAnnually" : 10, "typeOfUnitsToAccrue" : "Hours", "openingBalanceTypeOfUnits" : "Hours", "maximumToAccrue" : 80, "openingBalance" : 100, - "rateAccruedHourly" : 3.5 + "rateAccruedHourly" : null } } }, diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index a01e4de5..43cfb205 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -3700,7 +3700,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods approveTimesheet diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html index 1f318d41..d8768dbb 100644 --- a/docs/v1/projects/index.html +++ b/docs/v1/projects/index.html @@ -1462,7 +1462,7 @@ SDK: - VSN: 9.3.0 + VSN: 9.4.0 Methods createProject diff --git a/setup.py b/setup.py index 8e16e76c..59a56b5a 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="9.3.0", + version="9.4.0", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index 2934e6ca..3944cae5 100644 --- a/xero_python/__init__.py +++ b/xero_python/__init__.py @@ -2,4 +2,4 @@ __author__ = """Xero Developer API""" __email__ = "api@xero.com" -__version__ = "9.3.0" +__version__ = "9.4.0" diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index 2f908e32..027afc5b 100644 --- a/xero_python/accounting/api/accounting_api.py +++ b/xero_python/accounting/api/accounting_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ @@ -12854,6 +12854,7 @@ def get_overpayments( page=empty, unitdp=empty, page_size=empty, + references=empty, _return_http_data_only=True, _preload_content=True, _request_timeout=None, @@ -12867,6 +12868,7 @@ def get_overpayments( :param int page: e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment :param int unitdp: e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts :param int page_size: Number of records to retrieve per page + :param list[str] references: Filter by a comma-separated list of References :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 @@ -12880,7 +12882,9 @@ def get_overpayments( "when calling `get_overpayments`" ) - collection_formats = {} + collection_formats = { + "References": "csv", + } path_params = {} query_params = [] @@ -12900,6 +12904,9 @@ def get_overpayments( if page_size is not empty: query_params.append(("pageSize", page_size)) + if references is not empty: + query_params.append(("References", references)) + header_params = { "xero-tenant-id": xero_tenant_id, } diff --git a/xero_python/accounting/docs/AccountingApi.md b/xero_python/accounting/docs/AccountingApi.md index ec9ffa14..79630049 100644 --- a/xero_python/accounting/docs/AccountingApi.md +++ b/xero_python/accounting/docs/AccountingApi.md @@ -9887,7 +9887,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_overpayments** -> Overpayments get_overpayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size) +> Overpayments get_overpayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size, references=references) Retrieves overpayments @@ -9924,9 +9924,10 @@ order = 'Status ASC' # str | Order by an any element (optional) page = 1 # int | e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment (optional) unitdp = 4 # int | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts (optional) page_size = 100 # int | Number of records to retrieve per page (optional) +references = ['"Ref1", "Ref2"'] # list[str] | Filter by a comma-separated list of References (optional) try: # Retrieves overpayments - api_response = api_instance.get_overpayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size) + api_response = api_instance.get_overpayments(xero_tenant_id, if_modified_since=if_modified_since, where=where, order=order, page=page, unitdp=unitdp, page_size=page_size, references=references) pprint(api_response) except ApiException as e: print("Exception when calling AccountingApi->get_overpayments: %s\n" % e) @@ -9943,6 +9944,7 @@ Name | Type | Description | Notes **page** | **int**| e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment | [optional] **unitdp** | **int**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional] **page_size** | **int**| Number of records to retrieve per page | [optional] + **references** | [**list[str]**](str.md)| Filter by a comma-separated list of References | [optional] ### Return type diff --git a/xero_python/accounting/docs/Overpayment.md b/xero_python/accounting/docs/Overpayment.md index d5f7f095..170c07ae 100644 --- a/xero_python/accounting/docs/Overpayment.md +++ b/xero_python/accounting/docs/Overpayment.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **applied_amount** | **float** | The amount of applied to an invoice | [optional] **payments** | [**list[Payment]**](Payment.md) | See Payments | [optional] **has_attachments** | **bool** | boolean to indicate if a overpayment has an attachment | [optional] [default to False] +**reference** | **str** | An optional description for Overpayment | [optional] **attachments** | [**list[Attachment]**](Attachment.md) | See Attachments | [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/accounting/models/overpayment.py b/xero_python/accounting/models/overpayment.py index e96f6e56..8c3d4685 100644 --- a/xero_python/accounting/models/overpayment.py +++ b/xero_python/accounting/models/overpayment.py @@ -48,6 +48,7 @@ class Overpayment(BaseModel): "applied_amount": "float", "payments": "list[Payment]", "has_attachments": "bool", + "reference": "str", "attachments": "list[Attachment]", } @@ -70,6 +71,7 @@ class Overpayment(BaseModel): "applied_amount": "AppliedAmount", "payments": "Payments", "has_attachments": "HasAttachments", + "reference": "Reference", "attachments": "Attachments", } @@ -93,6 +95,7 @@ def __init__( applied_amount=None, payments=None, has_attachments=False, + reference=None, attachments=None, ): # noqa: E501 """Overpayment - a model defined in OpenAPI""" # noqa: E501 @@ -115,6 +118,7 @@ def __init__( self._applied_amount = None self._payments = None self._has_attachments = None + self._reference = None self._attachments = None self.discriminator = None @@ -154,6 +158,8 @@ def __init__( self.payments = payments if has_attachments is not None: self.has_attachments = has_attachments + if reference is not None: + self.reference = reference if attachments is not None: self.attachments = attachments @@ -588,6 +594,29 @@ def has_attachments(self, has_attachments): self._has_attachments = has_attachments + @property + def reference(self): + """Gets the reference of this Overpayment. # noqa: E501 + + An optional description for Overpayment # noqa: E501 + + :return: The reference of this Overpayment. # noqa: E501 + :rtype: str + """ + return self._reference + + @reference.setter + def reference(self, reference): + """Sets the reference of this Overpayment. + + An optional description for Overpayment # noqa: E501 + + :param reference: The reference of this Overpayment. # noqa: E501 + :type: str + """ + + self._reference = reference + @property def attachments(self): """Gets the attachments of this Overpayment. # noqa: E501 diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index 07440aaf..d86269b2 100644 --- a/xero_python/appstore/api/app_store_api.py +++ b/xero_python/appstore/api/app_store_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 5f161168..22b5cf63 100644 --- a/xero_python/assets/api/asset_api.py +++ b/xero_python/assets/api/asset_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index 0dc2ac55..6b4fa8d2 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: 9.3.0 -- Package version: 9.3.0 +- API version: 10.1.0 +- Package version: 9.4.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 35c76e36..4a45311a 100644 --- a/xero_python/file/api/files_api.py +++ b/xero_python/file/api/files_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index c064d9d9..2b53c652 100644 --- a/xero_python/finance/api/finance_api.py +++ b/xero_python/finance/api/finance_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index 245f518f..d6251e09 100644 --- a/xero_python/identity/api/identity_api.py +++ b/xero_python/identity/api/identity_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index e37062d3..0b1eca68 100644 --- a/xero_python/payrollau/api/payroll_au_api.py +++ b/xero_python/payrollau/api/payroll_au_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index 0f3aa8ef..372571b3 100644 --- a/xero_python/payrollnz/api/payroll_nz_api.py +++ b/xero_python/payrollnz/api/payroll_nz_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ diff --git a/xero_python/payrollnz/docs/EmployeeLeaveSetup.md b/xero_python/payrollnz/docs/EmployeeLeaveSetup.md index bafe190a..ef05ec62 100644 --- a/xero_python/payrollnz/docs/EmployeeLeaveSetup.md +++ b/xero_python/payrollnz/docs/EmployeeLeaveSetup.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **holiday_pay_opening_balance** | **float** | Initial holiday pay balance. A percentage — usually 8% — of gross earnings since their last work anniversary. | [optional] **annual_leave_opening_balance** | **float** | Initial annual leave balance. The balance at their last anniversary, less any leave taken since then and excluding accrued annual leave. | [optional] **negative_annual_leave_balance_paid_amount** | **float** | The dollar value of annual leave opening balance if negative. | [optional] -**sick_leave_hours_to_accrue_annually** | **float** | Deprecated use SickLeaveToAccrueAnnually | [optional] -**sick_leave_maximum_hours_to_accrue** | **float** | Deprecated use SickLeaveMaximumToAccrue | [optional] **sick_leave_to_accrue_annually** | **float** | Number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type | [optional] **sick_leave_maximum_to_accrue** | **float** | Maximum number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type | [optional] **sick_leave_opening_balance** | **float** | Initial sick leave balance. This will be positive unless they've taken sick leave in advance | [optional] diff --git a/xero_python/payrollnz/docs/EmployeeLeaveType.md b/xero_python/payrollnz/docs/EmployeeLeaveType.md index aa9f9d2a..d5769bec 100644 --- a/xero_python/payrollnz/docs/EmployeeLeaveType.md +++ b/xero_python/payrollnz/docs/EmployeeLeaveType.md @@ -5,13 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **leave_type_id** | **str** | The Xero identifier for leave type | [optional] **schedule_of_accrual** | **str** | The schedule of accrual | [optional] -**hours_accrued_annually** | **float** | Deprecated use UnitsAccruedAnnually | [optional] **units_accrued_annually** | **float** | The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\" | [optional] **type_of_units_to_accrue** | **str** | The type of units accrued for the leave annually | [optional] **maximum_to_accrue** | **float** | The maximum number of units that can be accrued for the leave | [optional] **opening_balance** | **float** | The initial number of units assigned when the leave was added to the employee | [optional] **opening_balance_type_of_units** | **str** | The type of units for the opening balance | [optional] -**rate_accrued_hourly** | **float** | The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\" | [optional] +**rate_accrued_hourly** | **float** | not supported in Payroll NZ | [optional] **percentage_of_gross_earnings** | **float** | Specific for scheduleOfAccrual having percentage of gross earnings. Identifies how much percentage of gross earnings is accrued per pay period. | [optional] **include_holiday_pay_every_pay** | **bool** | Specific to Holiday pay. Flag determining if pay for leave type is added on each pay run. | [optional] **show_annual_leave_in_advance** | **bool** | Specific to Annual Leave. Flag to include leave available to take in advance in the balance in the payslip | [optional] diff --git a/xero_python/payrollnz/docs/PayrollNZApi.md b/xero_python/payrollnz/docs/PayrollNZApi.md index 75512755..6eb5aa9f 100644 --- a/xero_python/payrollnz/docs/PayrollNZApi.md +++ b/xero_python/payrollnz/docs/PayrollNZApi.md @@ -504,7 +504,7 @@ api_instance = PayrollNzApi(api_client) xero_tenant_id = 'xero_tenant_id_example' # str | Xero identifier for Tenant employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # str | Employee id for single object -employee_leave_setup = {"holidayPayOpeningBalance":10,"annualLeaveOpeningBalance":100,"sickLeaveHoursToAccrueAnnually":20,"sickLeaveToAccrueAnnually":20,"sickLeaveOpeningBalance":10,"sickLeaveScheduleOfAccrual":"OnAnniversaryDate","sickLeaveAnniversaryDate":"2023-12-31","annualLeaveAnniversaryDate":"2023-12-31"} # EmployeeLeaveSetup | +employee_leave_setup = {"holidayPayOpeningBalance":10,"annualLeaveOpeningBalance":100,"sickLeaveToAccrueAnnually":20,"sickLeaveOpeningBalance":10,"sickLeaveScheduleOfAccrual":"OnAnniversaryDate","sickLeaveAnniversaryDate":"2023-12-31","annualLeaveAnniversaryDate":"2023-12-31"} # EmployeeLeaveSetup | idempotency_key = 'KEY_VALUE' # str | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) try: # Creates a leave set-up for a specific employee. This is required before viewing, configuring and requesting leave for an employee @@ -571,7 +571,7 @@ api_instance = PayrollNzApi(api_client) xero_tenant_id = 'xero_tenant_id_example' # str | Xero identifier for Tenant employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # str | Employee id for single object -employee_leave_type = {"leaveTypeID":"35da97ae-05b9-427f-9a98-69157ba42cec","scheduleOfAccrual":"AnnuallyAfter6Months","hoursAccruedAnnually":10,"unitsAccruedAnnually":10,"typeOfUnitsToAccrue":"Hours","openingBalanceTypeOfUnits":"Hours","maximumToAccrue":80,"openingBalance":100,"rateAccruedHourly":3.5} # EmployeeLeaveType | +employee_leave_type = {"leaveTypeID":"35da97ae-05b9-427f-9a98-69157ba42cec","scheduleOfAccrual":"AnnuallyAfter6Months","unitsAccruedAnnually":10,"typeOfUnitsToAccrue":"Hours","openingBalanceTypeOfUnits":"Hours","maximumToAccrue":80,"openingBalance":100,"rateAccruedHourly":null} # EmployeeLeaveType | idempotency_key = 'KEY_VALUE' # str | This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional) try: # Creates leave type records for a specific employee diff --git a/xero_python/payrollnz/models/employee_leave_setup.py b/xero_python/payrollnz/models/employee_leave_setup.py index 24e336e9..0258b8c6 100644 --- a/xero_python/payrollnz/models/employee_leave_setup.py +++ b/xero_python/payrollnz/models/employee_leave_setup.py @@ -34,8 +34,6 @@ class EmployeeLeaveSetup(BaseModel): "holiday_pay_opening_balance": "float", "annual_leave_opening_balance": "float", "negative_annual_leave_balance_paid_amount": "float", - "sick_leave_hours_to_accrue_annually": "float", - "sick_leave_maximum_hours_to_accrue": "float", "sick_leave_to_accrue_annually": "float", "sick_leave_maximum_to_accrue": "float", "sick_leave_opening_balance": "float", @@ -49,8 +47,6 @@ class EmployeeLeaveSetup(BaseModel): "holiday_pay_opening_balance": "holidayPayOpeningBalance", "annual_leave_opening_balance": "annualLeaveOpeningBalance", "negative_annual_leave_balance_paid_amount": "negativeAnnualLeaveBalancePaidAmount", - "sick_leave_hours_to_accrue_annually": "sickLeaveHoursToAccrueAnnually", - "sick_leave_maximum_hours_to_accrue": "sickLeaveMaximumHoursToAccrue", "sick_leave_to_accrue_annually": "SickLeaveToAccrueAnnually", "sick_leave_maximum_to_accrue": "SickLeaveMaximumToAccrue", "sick_leave_opening_balance": "sickLeaveOpeningBalance", @@ -65,8 +61,6 @@ def __init__( holiday_pay_opening_balance=None, annual_leave_opening_balance=None, negative_annual_leave_balance_paid_amount=None, - sick_leave_hours_to_accrue_annually=None, - sick_leave_maximum_hours_to_accrue=None, sick_leave_to_accrue_annually=None, sick_leave_maximum_to_accrue=None, sick_leave_opening_balance=None, @@ -80,8 +74,6 @@ def __init__( self._holiday_pay_opening_balance = None self._annual_leave_opening_balance = None self._negative_annual_leave_balance_paid_amount = None - self._sick_leave_hours_to_accrue_annually = None - self._sick_leave_maximum_hours_to_accrue = None self._sick_leave_to_accrue_annually = None self._sick_leave_maximum_to_accrue = None self._sick_leave_opening_balance = None @@ -100,12 +92,6 @@ def __init__( self.negative_annual_leave_balance_paid_amount = ( negative_annual_leave_balance_paid_amount ) - if sick_leave_hours_to_accrue_annually is not None: - self.sick_leave_hours_to_accrue_annually = ( - sick_leave_hours_to_accrue_annually - ) - if sick_leave_maximum_hours_to_accrue is not None: - self.sick_leave_maximum_hours_to_accrue = sick_leave_maximum_hours_to_accrue if sick_leave_to_accrue_annually is not None: self.sick_leave_to_accrue_annually = sick_leave_to_accrue_annually if sick_leave_maximum_to_accrue is not None: @@ -215,52 +201,6 @@ def negative_annual_leave_balance_paid_amount( negative_annual_leave_balance_paid_amount ) - @property - def sick_leave_hours_to_accrue_annually(self): - """Gets the sick_leave_hours_to_accrue_annually of this EmployeeLeaveSetup. # noqa: E501 - - Deprecated use SickLeaveToAccrueAnnually # noqa: E501 - - :return: The sick_leave_hours_to_accrue_annually of this EmployeeLeaveSetup. # noqa: E501 - :rtype: float - """ - return self._sick_leave_hours_to_accrue_annually - - @sick_leave_hours_to_accrue_annually.setter - def sick_leave_hours_to_accrue_annually(self, sick_leave_hours_to_accrue_annually): - """Sets the sick_leave_hours_to_accrue_annually of this EmployeeLeaveSetup. - - Deprecated use SickLeaveToAccrueAnnually # noqa: E501 - - :param sick_leave_hours_to_accrue_annually: The sick_leave_hours_to_accrue_annually of this EmployeeLeaveSetup. # noqa: E501 - :type: float - """ - - self._sick_leave_hours_to_accrue_annually = sick_leave_hours_to_accrue_annually - - @property - def sick_leave_maximum_hours_to_accrue(self): - """Gets the sick_leave_maximum_hours_to_accrue of this EmployeeLeaveSetup. # noqa: E501 - - Deprecated use SickLeaveMaximumToAccrue # noqa: E501 - - :return: The sick_leave_maximum_hours_to_accrue of this EmployeeLeaveSetup. # noqa: E501 - :rtype: float - """ - return self._sick_leave_maximum_hours_to_accrue - - @sick_leave_maximum_hours_to_accrue.setter - def sick_leave_maximum_hours_to_accrue(self, sick_leave_maximum_hours_to_accrue): - """Sets the sick_leave_maximum_hours_to_accrue of this EmployeeLeaveSetup. - - Deprecated use SickLeaveMaximumToAccrue # noqa: E501 - - :param sick_leave_maximum_hours_to_accrue: The sick_leave_maximum_hours_to_accrue of this EmployeeLeaveSetup. # noqa: E501 - :type: float - """ - - self._sick_leave_maximum_hours_to_accrue = sick_leave_maximum_hours_to_accrue - @property def sick_leave_to_accrue_annually(self): """Gets the sick_leave_to_accrue_annually of this EmployeeLeaveSetup. # noqa: E501 diff --git a/xero_python/payrollnz/models/employee_leave_type.py b/xero_python/payrollnz/models/employee_leave_type.py index db2a783e..b4bf4c2e 100644 --- a/xero_python/payrollnz/models/employee_leave_type.py +++ b/xero_python/payrollnz/models/employee_leave_type.py @@ -32,7 +32,6 @@ class EmployeeLeaveType(BaseModel): openapi_types = { "leave_type_id": "str", "schedule_of_accrual": "str", - "hours_accrued_annually": "float", "units_accrued_annually": "float", "type_of_units_to_accrue": "str", "maximum_to_accrue": "float", @@ -49,8 +48,7 @@ class EmployeeLeaveType(BaseModel): attribute_map = { "leave_type_id": "leaveTypeID", "schedule_of_accrual": "scheduleOfAccrual", - "hours_accrued_annually": "hoursAccruedAnnually", - "units_accrued_annually": "UnitsAccruedAnnually", + "units_accrued_annually": "unitsAccruedAnnually", "type_of_units_to_accrue": "typeOfUnitsToAccrue", "maximum_to_accrue": "maximumToAccrue", "opening_balance": "openingBalance", @@ -67,7 +65,6 @@ def __init__( self, leave_type_id=None, schedule_of_accrual=None, - hours_accrued_annually=None, units_accrued_annually=None, type_of_units_to_accrue=None, maximum_to_accrue=None, @@ -84,7 +81,6 @@ def __init__( self._leave_type_id = None self._schedule_of_accrual = None - self._hours_accrued_annually = None self._units_accrued_annually = None self._type_of_units_to_accrue = None self._maximum_to_accrue = None @@ -102,8 +98,6 @@ def __init__( self.leave_type_id = leave_type_id if schedule_of_accrual is not None: self.schedule_of_accrual = schedule_of_accrual - if hours_accrued_annually is not None: - self.hours_accrued_annually = hours_accrued_annually if units_accrued_annually is not None: self.units_accrued_annually = units_accrued_annually if type_of_units_to_accrue is not None: @@ -188,29 +182,6 @@ def schedule_of_accrual(self, schedule_of_accrual): self._schedule_of_accrual = schedule_of_accrual - @property - def hours_accrued_annually(self): - """Gets the hours_accrued_annually of this EmployeeLeaveType. # noqa: E501 - - Deprecated use UnitsAccruedAnnually # noqa: E501 - - :return: The hours_accrued_annually of this EmployeeLeaveType. # noqa: E501 - :rtype: float - """ - return self._hours_accrued_annually - - @hours_accrued_annually.setter - def hours_accrued_annually(self, hours_accrued_annually): - """Sets the hours_accrued_annually of this EmployeeLeaveType. - - Deprecated use UnitsAccruedAnnually # noqa: E501 - - :param hours_accrued_annually: The hours_accrued_annually of this EmployeeLeaveType. # noqa: E501 - :type: float - """ - - self._hours_accrued_annually = hours_accrued_annually - @property def units_accrued_annually(self): """Gets the units_accrued_annually of this EmployeeLeaveType. # noqa: E501 @@ -330,7 +301,7 @@ def opening_balance_type_of_units(self, opening_balance_type_of_units): def rate_accrued_hourly(self): """Gets the rate_accrued_hourly of this EmployeeLeaveType. # noqa: E501 - The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\" # noqa: E501 + not supported in Payroll NZ # noqa: E501 :return: The rate_accrued_hourly of this EmployeeLeaveType. # noqa: E501 :rtype: float @@ -341,7 +312,7 @@ def rate_accrued_hourly(self): def rate_accrued_hourly(self, rate_accrued_hourly): """Sets the rate_accrued_hourly of this EmployeeLeaveType. - The number of hours added to the leave balance for every hour worked by the employee. This is normally 0, unless the scheduleOfAccrual chosen is \"OnHourWorked\" # noqa: E501 + not supported in Payroll NZ # noqa: E501 :param rate_accrued_hourly: The rate_accrued_hourly of this EmployeeLeaveType. # noqa: E501 :type: float diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index cc8d1812..d7b7c3d4 100644 --- a/xero_python/payrolluk/api/payroll_uk_api.py +++ b/xero_python/payrolluk/api/payroll_uk_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """ diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index ecf04843..97d1d784 100644 --- a/xero_python/project/api/project_api.py +++ b/xero_python/project/api/project_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 9.3.0 + OpenAPI spec version: 10.1.0 """