diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index a5dbbb7c..0f256415 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -6008,7 +6008,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods createAccount diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index 2fda0c4b..8e8df3e8 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -1133,7 +1133,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods getSubscription diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html index 11f2c723..e36c4810 100644 --- a/docs/v1/assets/index.html +++ b/docs/v1/assets/index.html @@ -1392,7 +1392,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods createAsset diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index e1042f79..070d4333 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -1155,7 +1155,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods createFileAssociation diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html index 5633b3de..c554d58e 100644 --- a/docs/v1/finance/index.html +++ b/docs/v1/finance/index.html @@ -2706,7 +2706,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods getAccountingActivityAccountUsage diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html index f57f7092..6ea89f77 100644 --- a/docs/v1/payroll-au/index.html +++ b/docs/v1/payroll-au/index.html @@ -3254,7 +3254,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods createEmployee diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html index 80d5357c..da68a658 100644 --- a/docs/v1/payroll-nz/index.html +++ b/docs/v1/payroll-nz/index.html @@ -3838,7 +3838,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods approveTimesheet diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index 274dd508..3d882458 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -3510,7 +3510,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods approveTimesheet diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html index 3013342f..1f6cb14e 100644 --- a/docs/v1/projects/index.html +++ b/docs/v1/projects/index.html @@ -1468,7 +1468,7 @@ SDK: - VSN: 1.21.0 + VSN: 1.22.0 Methods createProject diff --git a/setup.py b/setup.py index 3a5eacd2..3b80bece 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.21.0", + version="1.22.0", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index 9af1a754..5c1c6127 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.21.0" +__version__ = "1.22.0" diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index 1021d2a7..02a3b09f 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index 7f6a8ab8..204ffa6c 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/appstore/docs/AppStoreApi.md b/xero_python/appstore/docs/AppStoreApi.md index 5c5f141f..dcec7425 100644 --- a/xero_python/appstore/docs/AppStoreApi.md +++ b/xero_python/appstore/docs/AppStoreApi.md @@ -165,7 +165,7 @@ api_instance = AppStoreApi(api_client) subscription_id = '00000000-0000-0000-0000-000000000000' # str | Unique identifier for Subscription object subscription_item_id = '00000000-0000-0000-0000-000000000000' # str | The unique identifier of the subscriptionItem -create_usage_record = { "timestamp": "2022-01-21T13:01:00Z", "quantity": 10 } # CreateUsageRecord | Contains the quantity for the usage record to create +create_usage_record = { "timestamp": "2022-01-21T13:01:00", "quantity": 10 } # CreateUsageRecord | Contains the quantity for the usage record to create try: # Send metered usage belonging to this subscription and subscription item api_response = api_instance.post_usage_records(subscription_id, subscription_item_id, create_usage_record) diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 6ecb5cc0..71518132 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index a3ccffc9..baaf2a39 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.33.1 -- Package version: 1.21.0 +- API version: 2.35.0 +- Package version: 1.22.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 20cb70a0..dfc5d123 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index bec31e3c..3e20800c 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/finance/docs/StatementLineResponse.md b/xero_python/finance/docs/StatementLineResponse.md index d9d44f9d..12e5ed60 100644 --- a/xero_python/finance/docs/StatementLineResponse.md +++ b/xero_python/finance/docs/StatementLineResponse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **statement_line_id** | **str** | Xero Identifier of statement line | [optional] **posted_date** | **date** | Date of when statement line was posted | [optional] +**payee** | **str** | Payee description of statement line | [optional] **reference** | **str** | Reference description of statement line | [optional] **notes** | **str** | Notes description of statement line | [optional] **cheque_no** | **str** | Cheque number of statement line | [optional] diff --git a/xero_python/finance/docs/StatementResponse.md b/xero_python/finance/docs/StatementResponse.md index 087c6798..60efc31c 100644 --- a/xero_python/finance/docs/StatementResponse.md +++ b/xero_python/finance/docs/StatementResponse.md @@ -8,8 +8,10 @@ Name | Type | Description | Notes **end_date** | **date** | End date of statement | [optional] **imported_date_time_utc** | **datetime** | Utc date time of when the statement was imported in Xero | [optional] **import_source** | **str** | Indicates the source of the statement data. Either imported from 1) direct bank feed OR 2) manual customer entry or upload. Manual import sources are STMTIMPORTSRC/MANUAL, STMTIMPORTSRC/CSV, STMTIMPORTSRC/OFX, Ofx or STMTIMPORTSRC/QIF. All other import sources are direct and, depending on the direct solution, may contain the name of the financial institution. | [optional] -**start_balance** | **float** | Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. | [optional] -**end_balance** | **float** | Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. | [optional] +**start_balance** | **float** | Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0. | [optional] +**end_balance** | **float** | Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0. | [optional] +**indicative_start_balance** | **float** | Opening statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true | [optional] +**indicative_end_balance** | **float** | Closing statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true | [optional] **statement_lines** | [**list[StatementLineResponse]**](StatementLineResponse.md) | List of statement lines | [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/finance/models/statement_line_response.py b/xero_python/finance/models/statement_line_response.py index 027e1c78..34765c57 100644 --- a/xero_python/finance/models/statement_line_response.py +++ b/xero_python/finance/models/statement_line_response.py @@ -32,6 +32,7 @@ class StatementLineResponse(BaseModel): openapi_types = { "statement_line_id": "str", "posted_date": "date", + "payee": "str", "reference": "str", "notes": "str", "cheque_no": "str", @@ -48,6 +49,7 @@ class StatementLineResponse(BaseModel): attribute_map = { "statement_line_id": "statementLineId", "posted_date": "postedDate", + "payee": "payee", "reference": "reference", "notes": "notes", "cheque_no": "chequeNo", @@ -65,6 +67,7 @@ def __init__( self, statement_line_id=None, posted_date=None, + payee=None, reference=None, notes=None, cheque_no=None, @@ -81,6 +84,7 @@ def __init__( self._statement_line_id = None self._posted_date = None + self._payee = None self._reference = None self._notes = None self._cheque_no = None @@ -98,6 +102,8 @@ def __init__( self.statement_line_id = statement_line_id if posted_date is not None: self.posted_date = posted_date + if payee is not None: + self.payee = payee if reference is not None: self.reference = reference if notes is not None: @@ -167,6 +173,29 @@ def posted_date(self, posted_date): self._posted_date = posted_date + @property + def payee(self): + """Gets the payee of this StatementLineResponse. # noqa: E501 + + Payee description of statement line # noqa: E501 + + :return: The payee of this StatementLineResponse. # noqa: E501 + :rtype: str + """ + return self._payee + + @payee.setter + def payee(self, payee): + """Sets the payee of this StatementLineResponse. + + Payee description of statement line # noqa: E501 + + :param payee: The payee of this StatementLineResponse. # noqa: E501 + :type: str + """ + + self._payee = payee + @property def reference(self): """Gets the reference of this StatementLineResponse. # noqa: E501 diff --git a/xero_python/finance/models/statement_response.py b/xero_python/finance/models/statement_response.py index f7a77835..606aac78 100644 --- a/xero_python/finance/models/statement_response.py +++ b/xero_python/finance/models/statement_response.py @@ -37,6 +37,8 @@ class StatementResponse(BaseModel): "import_source": "str", "start_balance": "float", "end_balance": "float", + "indicative_start_balance": "float", + "indicative_end_balance": "float", "statement_lines": "list[StatementLineResponse]", } @@ -48,6 +50,8 @@ class StatementResponse(BaseModel): "import_source": "importSource", "start_balance": "startBalance", "end_balance": "endBalance", + "indicative_start_balance": "indicativeStartBalance", + "indicative_end_balance": "indicativeEndBalance", "statement_lines": "statementLines", } @@ -60,6 +64,8 @@ def __init__( import_source=None, start_balance=None, end_balance=None, + indicative_start_balance=None, + indicative_end_balance=None, statement_lines=None, ): # noqa: E501 """StatementResponse - a model defined in OpenAPI""" # noqa: E501 @@ -71,6 +77,8 @@ def __init__( self._import_source = None self._start_balance = None self._end_balance = None + self._indicative_start_balance = None + self._indicative_end_balance = None self._statement_lines = None self.discriminator = None @@ -88,6 +96,10 @@ def __init__( self.start_balance = start_balance if end_balance is not None: self.end_balance = end_balance + if indicative_start_balance is not None: + self.indicative_start_balance = indicative_start_balance + if indicative_end_balance is not None: + self.indicative_end_balance = indicative_end_balance if statement_lines is not None: self.statement_lines = statement_lines @@ -210,7 +222,7 @@ def import_source(self, import_source): def start_balance(self): """Gets the start_balance of this StatementResponse. # noqa: E501 - Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. # noqa: E501 + Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0. # noqa: E501 :return: The start_balance of this StatementResponse. # noqa: E501 :rtype: float @@ -221,7 +233,7 @@ def start_balance(self): def start_balance(self, start_balance): """Sets the start_balance of this StatementResponse. - Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. # noqa: E501 + Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0. # noqa: E501 :param start_balance: The start_balance of this StatementResponse. # noqa: E501 :type: float @@ -233,7 +245,7 @@ def start_balance(self, start_balance): def end_balance(self): """Gets the end_balance of this StatementResponse. # noqa: E501 - Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. # noqa: E501 + Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0. # noqa: E501 :return: The end_balance of this StatementResponse. # noqa: E501 :rtype: float @@ -244,7 +256,7 @@ def end_balance(self): def end_balance(self, end_balance): """Sets the end_balance of this StatementResponse. - Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. # noqa: E501 + Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0. # noqa: E501 :param end_balance: The end_balance of this StatementResponse. # noqa: E501 :type: float @@ -252,6 +264,52 @@ def end_balance(self, end_balance): self._end_balance = end_balance + @property + def indicative_start_balance(self): + """Gets the indicative_start_balance of this StatementResponse. # noqa: E501 + + Opening statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true # noqa: E501 + + :return: The indicative_start_balance of this StatementResponse. # noqa: E501 + :rtype: float + """ + return self._indicative_start_balance + + @indicative_start_balance.setter + def indicative_start_balance(self, indicative_start_balance): + """Sets the indicative_start_balance of this StatementResponse. + + Opening statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true # noqa: E501 + + :param indicative_start_balance: The indicative_start_balance of this StatementResponse. # noqa: E501 + :type: float + """ + + self._indicative_start_balance = indicative_start_balance + + @property + def indicative_end_balance(self): + """Gets the indicative_end_balance of this StatementResponse. # noqa: E501 + + Closing statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true # noqa: E501 + + :return: The indicative_end_balance of this StatementResponse. # noqa: E501 + :rtype: float + """ + return self._indicative_end_balance + + @indicative_end_balance.setter + def indicative_end_balance(self, indicative_end_balance): + """Sets the indicative_end_balance of this StatementResponse. + + Closing statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true # noqa: E501 + + :param indicative_end_balance: The indicative_end_balance of this StatementResponse. # noqa: E501 + :type: float + """ + + self._indicative_end_balance = indicative_end_balance + @property def statement_lines(self): """Gets the statement_lines of this StatementResponse. # noqa: E501 diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index aae7d38a..cd681c82 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index a29a805b..32b1f8d0 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/payrollau/docs/EarningsRate.md b/xero_python/payrollau/docs/EarningsRate.md index f7f26bf2..6dcc4788 100644 --- a/xero_python/payrollau/docs/EarningsRate.md +++ b/xero_python/payrollau/docs/EarningsRate.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **is_exempt_from_tax** | **bool** | Most payments are subject to tax, so you should only set this value if you are sure that a payment is exempt from PAYG withholding | [optional] **is_exempt_from_super** | **bool** | See the ATO website for details of which payments are exempt from SGC | [optional] **is_reportable_as_w1** | **bool** | Boolean to determine if the earnings rate is reportable or exempt from W1 | [optional] +**allowance_contributes_to_annual_leave_rate** | **bool** | Boolean to determine if the allowance earnings rate contributes towards annual leave rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT | [optional] +**allowance_contributes_to_overtime_rate** | **bool** | Boolean to determine if the allowance earnings rate contributes towards overtime allowance rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT | [optional] **earnings_type** | [**EarningsType**](EarningsType.md) | | [optional] **earnings_rate_id** | **str** | Xero identifier | [optional] **rate_type** | [**RateType**](RateType.md) | | [optional] diff --git a/xero_python/payrollau/docs/PayrollAuApi.md b/xero_python/payrollau/docs/PayrollAuApi.md index 3b4a2dd3..d2752ff1 100644 --- a/xero_python/payrollau/docs/PayrollAuApi.md +++ b/xero_python/payrollau/docs/PayrollAuApi.md @@ -193,7 +193,7 @@ api_client = ApiClient( api_instance = PayrollAuApi(api_client) xero_tenant_id = 'xero_tenant_id_example' # str | Xero identifier for Tenant -pay_item = { "EarningsRates": [ { "Name": "MyRate", "AccountCode": "400", "TypeOfUnits": "4.00", "IsExemptFromTax": true, "IsExemptFromSuper": true, "IsReportableAsW1": false, "EarningsType": "ORDINARYTIMEEARNINGS", "EarningsRateID": "1fa4e226-b711-46ba-a8a7-4344c9c5fb87", "RateType": "MULTIPLE", "RatePerUnit": "10.0", "Multiplier": 1.5, "Amount": 5, "EmploymentTerminationPaymentType": "O" } ] } # PayItem | +pay_item = { "EarningsRates": [ { "Name": "MyRate", "AccountCode": "400", "TypeOfUnits": "4.00", "IsExemptFromTax": true, "IsExemptFromSuper": true, "IsReportableAsW1": false, "AllowanceContributesToAnnualLeaveRate": false, "AllowanceContributesToOvertimeRate": false, "EarningsType": "ORDINARYTIMEEARNINGS", "EarningsRateID": "1fa4e226-b711-46ba-a8a7-4344c9c5fb87", "RateType": "MULTIPLE", "RatePerUnit": "10.0", "Multiplier": 1.5, "Amount": 5, "EmploymentTerminationPaymentType": "O" } ] } # PayItem | try: # Creates a pay item api_response = api_instance.create_pay_item(xero_tenant_id, pay_item) diff --git a/xero_python/payrollau/models/earnings_rate.py b/xero_python/payrollau/models/earnings_rate.py index 6dcd7d71..71a1d0f8 100644 --- a/xero_python/payrollau/models/earnings_rate.py +++ b/xero_python/payrollau/models/earnings_rate.py @@ -36,6 +36,8 @@ class EarningsRate(BaseModel): "is_exempt_from_tax": "bool", "is_exempt_from_super": "bool", "is_reportable_as_w1": "bool", + "allowance_contributes_to_annual_leave_rate": "bool", + "allowance_contributes_to_overtime_rate": "bool", "earnings_type": "EarningsType", "earnings_rate_id": "str", "rate_type": "RateType", @@ -57,6 +59,8 @@ class EarningsRate(BaseModel): "is_exempt_from_tax": "IsExemptFromTax", "is_exempt_from_super": "IsExemptFromSuper", "is_reportable_as_w1": "IsReportableAsW1", + "allowance_contributes_to_annual_leave_rate": "AllowanceContributesToAnnualLeaveRate", + "allowance_contributes_to_overtime_rate": "AllowanceContributesToOvertimeRate", "earnings_type": "EarningsType", "earnings_rate_id": "EarningsRateID", "rate_type": "RateType", @@ -79,6 +83,8 @@ def __init__( is_exempt_from_tax=None, is_exempt_from_super=None, is_reportable_as_w1=None, + allowance_contributes_to_annual_leave_rate=None, + allowance_contributes_to_overtime_rate=None, earnings_type=None, earnings_rate_id=None, rate_type=None, @@ -100,6 +106,8 @@ def __init__( self._is_exempt_from_tax = None self._is_exempt_from_super = None self._is_reportable_as_w1 = None + self._allowance_contributes_to_annual_leave_rate = None + self._allowance_contributes_to_overtime_rate = None self._earnings_type = None self._earnings_rate_id = None self._rate_type = None @@ -126,6 +134,14 @@ def __init__( self.is_exempt_from_super = is_exempt_from_super if is_reportable_as_w1 is not None: self.is_reportable_as_w1 = is_reportable_as_w1 + if allowance_contributes_to_annual_leave_rate is not None: + self.allowance_contributes_to_annual_leave_rate = ( + allowance_contributes_to_annual_leave_rate + ) + if allowance_contributes_to_overtime_rate is not None: + self.allowance_contributes_to_overtime_rate = ( + allowance_contributes_to_overtime_rate + ) if earnings_type is not None: self.earnings_type = earnings_type if earnings_rate_id is not None: @@ -301,6 +317,60 @@ def is_reportable_as_w1(self, is_reportable_as_w1): self._is_reportable_as_w1 = is_reportable_as_w1 + @property + def allowance_contributes_to_annual_leave_rate(self): + """Gets the allowance_contributes_to_annual_leave_rate of this EarningsRate. # noqa: E501 + + Boolean to determine if the allowance earnings rate contributes towards annual leave rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT # noqa: E501 + + :return: The allowance_contributes_to_annual_leave_rate of this EarningsRate. # noqa: E501 + :rtype: bool + """ + return self._allowance_contributes_to_annual_leave_rate + + @allowance_contributes_to_annual_leave_rate.setter + def allowance_contributes_to_annual_leave_rate( + self, allowance_contributes_to_annual_leave_rate + ): + """Sets the allowance_contributes_to_annual_leave_rate of this EarningsRate. + + Boolean to determine if the allowance earnings rate contributes towards annual leave rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT # noqa: E501 + + :param allowance_contributes_to_annual_leave_rate: The allowance_contributes_to_annual_leave_rate of this EarningsRate. # noqa: E501 + :type: bool + """ + + self._allowance_contributes_to_annual_leave_rate = ( + allowance_contributes_to_annual_leave_rate + ) + + @property + def allowance_contributes_to_overtime_rate(self): + """Gets the allowance_contributes_to_overtime_rate of this EarningsRate. # noqa: E501 + + Boolean to determine if the allowance earnings rate contributes towards overtime allowance rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT # noqa: E501 + + :return: The allowance_contributes_to_overtime_rate of this EarningsRate. # noqa: E501 + :rtype: bool + """ + return self._allowance_contributes_to_overtime_rate + + @allowance_contributes_to_overtime_rate.setter + def allowance_contributes_to_overtime_rate( + self, allowance_contributes_to_overtime_rate + ): + """Sets the allowance_contributes_to_overtime_rate of this EarningsRate. + + Boolean to determine if the allowance earnings rate contributes towards overtime allowance rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT # noqa: E501 + + :param allowance_contributes_to_overtime_rate: The allowance_contributes_to_overtime_rate of this EarningsRate. # noqa: E501 + :type: bool + """ + + self._allowance_contributes_to_overtime_rate = ( + allowance_contributes_to_overtime_rate + ) + @property def earnings_type(self): """Gets the earnings_type of this EarningsRate. # noqa: E501 diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index c5ad369a..0bb83e49 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index ecc7b738..710f2ebc 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib diff --git a/xero_python/payrolluk/models/earnings_rate.py b/xero_python/payrolluk/models/earnings_rate.py index f88b9b81..9f2603f3 100644 --- a/xero_python/payrolluk/models/earnings_rate.py +++ b/xero_python/payrolluk/models/earnings_rate.py @@ -174,7 +174,7 @@ def earnings_type(self, earnings_type): ) # noqa: E501 allowed_values = [ "Allowance", - "Backpay", + "BackPay", "Bonus", "Commission", "LumpSum", diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index 2c77a0d8..388ac0bc 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.33.1 + OpenAPI spec version: 2.35.0 """ import importlib