diff --git a/docs/v1/accounting/index.html b/docs/v1/accounting/index.html index 3e12ee45..2688b484 100644 --- a/docs/v1/accounting/index.html +++ b/docs/v1/accounting/index.html @@ -6339,7 +6339,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods createAccount diff --git a/docs/v1/appstore/index.html b/docs/v1/appstore/index.html index f4492341..1f4eb9ac 100644 --- a/docs/v1/appstore/index.html +++ b/docs/v1/appstore/index.html @@ -1241,7 +1241,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods getSubscription diff --git a/docs/v1/assets/index.html b/docs/v1/assets/index.html index e83b5c7a..a16e71e9 100644 --- a/docs/v1/assets/index.html +++ b/docs/v1/assets/index.html @@ -1392,7 +1392,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods createAsset diff --git a/docs/v1/files/index.html b/docs/v1/files/index.html index 63432717..558eb317 100644 --- a/docs/v1/files/index.html +++ b/docs/v1/files/index.html @@ -1170,7 +1170,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods createFileAssociation diff --git a/docs/v1/finance/index.html b/docs/v1/finance/index.html index e89a63d7..1c417778 100644 --- a/docs/v1/finance/index.html +++ b/docs/v1/finance/index.html @@ -1517,7 +1517,7 @@ }, "importSourceType" : { "type" : "string", - "description" : "Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, indirect bank feed, file upload, or manual keying)." + "description" : "Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying)." } }, "additionalProperties" : false, @@ -1533,13 +1533,6 @@ "format" : "double", "x-is-money" : true }, - "indirectBankFeed" : { - "type" : "number", - "description" : "No longer in use.", - "format" : "double", - "deprecated" : true, - "x-is-money" : true - }, "fileUpload" : { "type" : "number", "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data.", @@ -1558,13 +1551,6 @@ "format" : "double", "x-is-money" : true }, - "indirectBankFeedPos" : { - "type" : "number", - "description" : "No longer in use.", - "format" : "double", - "deprecated" : true, - "x-is-money" : true - }, "fileUploadPos" : { "type" : "number", "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included.", @@ -1583,13 +1569,6 @@ "format" : "double", "x-is-money" : true }, - "indirectBankFeedNeg" : { - "type" : "number", - "description" : "No longer in use.", - "format" : "double", - "deprecated" : true, - "x-is-money" : true - }, "fileUploadNeg" : { "type" : "number", "description" : "Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included.", @@ -2737,7 +2716,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods getAccountingActivityAccountUsage diff --git a/docs/v1/payroll-au/index.html b/docs/v1/payroll-au/index.html index 401b90bb..09f0135b 100644 --- a/docs/v1/payroll-au/index.html +++ b/docs/v1/payroll-au/index.html @@ -3412,7 +3412,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods approveLeaveApplication diff --git a/docs/v1/payroll-nz/index.html b/docs/v1/payroll-nz/index.html index 224df375..b8cb75b7 100644 --- a/docs/v1/payroll-nz/index.html +++ b/docs/v1/payroll-nz/index.html @@ -1684,14 +1684,28 @@ }, "sickLeaveHoursToAccrueAnnually" : { "type" : "number", - "description" : "Number of hours accrued annually for sick leave. Multiply the number of days they're entitled to by the hours worked per day", + "description" : "Deprecated use SickLeaveToAccrueAnnually", "format" : "double", "example" : 100.5, "x-is-money" : true }, "sickLeaveMaximumHoursToAccrue" : { "type" : "number", - "description" : "Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day", + "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", + "format" : "double", + "example" : 100.5, + "x-is-money" : true + }, + "SickLeaveMaximumToAccrue" : { + "type" : "number", + "description" : "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", "format" : "double", "example" : 200.5, "x-is-money" : true @@ -1710,7 +1724,14 @@ }, "SickLeaveAnniversaryDate" : { "type" : "string", - "description" : "If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave", + "description" : "If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date", + "format" : "date", + "example" : "2020-01-19", + "x-is-date" : true + }, + "AnnualLeaveAnniversaryDate" : { + "type" : "string", + "description" : "The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date", "format" : "date", "example" : "2020-01-19", "x-is-date" : true @@ -1750,22 +1771,36 @@ }, "hoursAccruedAnnually" : { "type" : "number", - "description" : "The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\"", + "description" : "Deprecated use UnitsAccruedAnnually", "format" : "double", "x-is-money" : true }, + "UnitsAccruedAnnually" : { + "type" : "number", + "description" : "The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\"", + "format" : "double", + "x-is-money" : true + }, + "typeOfUnitsToAccrue" : { + "type" : "string", + "description" : "The type of units accrued for the leave annually" + }, "maximumToAccrue" : { "type" : "number", - "description" : "The maximum number of hours that can be accrued for the leave", + "description" : "The maximum number of units that can be accrued for the leave", "format" : "double", "x-is-money" : true }, "openingBalance" : { "type" : "number", - "description" : "The initial number of hours assigned when the leave was added to the employee", + "description" : "The initial number of units assigned when the leave was added to the employee", "format" : "double", "x-is-money" : true }, + "openingBalanceTypeOfUnits" : { + "type" : "string", + "description" : "The type of units for the opening balance" + }, "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\"", @@ -2609,10 +2644,23 @@ "format" : "double", "x-is-money" : true }, + "numberOfUnitsTaken" : { + "type" : "number", + "description" : "The number of units taken for the leave", + "format" : "double" + }, + "typeOfUnits" : { + "type" : "string", + "description" : "The type of units paid for the leave" + }, + "typeOfUnitsTaken" : { + "type" : "string", + "description" : "The type of units taken for the leave" + }, "periodStatus" : { "type" : "string", - "description" : "Period Status", - "enum" : [ "Approved", "Completed" ] + "description" : "Status of leave", + "enum" : [ "Approved", "Completed", "Estimated" ] } }, "description" : "" @@ -2667,6 +2715,14 @@ "isActive" : { "type" : "boolean", "description" : "Shows whether the leave type is active or not" + }, + "typeOfUnits" : { + "type" : "string", + "description" : "The type of units to be paid for the leave type" + }, + "typeOfUnitsToAccrue" : { + "type" : "string", + "description" : "The type of units to be accrued for the leave type" } }, "description" : "" @@ -4031,7 +4087,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods approveTimesheet diff --git a/docs/v1/payroll-uk/index.html b/docs/v1/payroll-uk/index.html index a3373f4d..792b2520 100644 --- a/docs/v1/payroll-uk/index.html +++ b/docs/v1/payroll-uk/index.html @@ -3517,7 +3517,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods approveTimesheet diff --git a/docs/v1/projects/index.html b/docs/v1/projects/index.html index 813c6d00..fb6d5040 100644 --- a/docs/v1/projects/index.html +++ b/docs/v1/projects/index.html @@ -1462,7 +1462,7 @@ SDK: - VSN: 6.3.0 + VSN: 7.0.0 Methods createProject diff --git a/setup.py b/setup.py index c85f5e42..7a45268c 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="6.3.0", + version="7.0.0", ) diff --git a/xero_python/__init__.py b/xero_python/__init__.py index d6f4211d..ffe4266a 100644 --- a/xero_python/__init__.py +++ b/xero_python/__init__.py @@ -2,4 +2,4 @@ __author__ = """Xero Developer API""" __email__ = "api@xero.com" -__version__ = "6.3.0" +__version__ = "7.0.0" diff --git a/xero_python/accounting/api/accounting_api.py b/xero_python/accounting/api/accounting_api.py index 7017c0be..b6132bf7 100644 --- a/xero_python/accounting/api/accounting_api.py +++ b/xero_python/accounting/api/accounting_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/appstore/api/app_store_api.py b/xero_python/appstore/api/app_store_api.py index 9c40e4ca..d3f41c22 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: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/assets/api/asset_api.py b/xero_python/assets/api/asset_api.py index 1bd8f8c0..fd5645d8 100644 --- a/xero_python/assets/api/asset_api.py +++ b/xero_python/assets/api/asset_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/docs/README.md b/xero_python/docs/README.md index 962a37bf..f82f9b4a 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: 6.3.0 -- Package version: 6.3.0 +- API version: 7.0.0 +- Package version: 7.0.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 192b6c42..88bd5031 100644 --- a/xero_python/file/api/files_api.py +++ b/xero_python/file/api/files_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/finance/api/finance_api.py b/xero_python/finance/api/finance_api.py index 0fbef06c..ee64aee1 100644 --- a/xero_python/finance/api/finance_api.py +++ b/xero_python/finance/api/finance_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/finance/docs/CurrentStatementResponse.md b/xero_python/finance/docs/CurrentStatementResponse.md index 854593cf..86743623 100644 --- a/xero_python/finance/docs/CurrentStatementResponse.md +++ b/xero_python/finance/docs/CurrentStatementResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **start_balance** | **float** | Looking at the most recent bank statement, this field indicates the balance before the transactions on the statement are applied (note, this is not always populated by the bank in every single instance (~10%)). | [optional] **end_balance** | **float** | Looking at the most recent bank statement, this field indicates the balance after the transactions on the statement are applied (note, this is not always populated by the bank in every single instance (~10%)). | [optional] **imported_date_time_utc** | **datetime** | Looking at the most recent bank statement, this field indicates when the document was imported into Xero. This date is represented in ISO 8601 format. | [optional] -**import_source_type** | **str** | Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, indirect bank feed, file upload, or manual keying). | [optional] +**import_source_type** | **str** | Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying). | [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/docs/DataSourceResponse.md b/xero_python/finance/docs/DataSourceResponse.md index cf0841f5..cda4b1f0 100644 --- a/xero_python/finance/docs/DataSourceResponse.md +++ b/xero_python/finance/docs/DataSourceResponse.md @@ -4,15 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **direct_bank_feed** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. | [optional] -**indirect_bank_feed** | **float** | No longer in use. | [optional] **file_upload** | **float** | Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. | [optional] **manual** | **float** | Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. | [optional] **direct_bank_feed_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] -**indirect_bank_feed_pos** | **float** | No longer in use. | [optional] **file_upload_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] **manual_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] **direct_bank_feed_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was a direct bank feed in to Xero via an API integration. This could be from a bank or aggregator. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] -**indirect_bank_feed_neg** | **float** | No longer in use. | [optional] **file_upload_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was a file manually uploaded in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] **manual_neg** | **float** | Sum of the amounts of all statement lines where the source of the data was manually input in to Xero. This gives an indication on the certainty of correctness of the data. Only negative transactions are included. | [optional] **other_pos** | **float** | Sum of the amounts of all statement lines where the source of the data was unknown. This gives an indication on the certainty of correctness of the data. Only positive transactions are included. | [optional] diff --git a/xero_python/finance/models/current_statement_response.py b/xero_python/finance/models/current_statement_response.py index 363f3ee2..5f7e6a28 100644 --- a/xero_python/finance/models/current_statement_response.py +++ b/xero_python/finance/models/current_statement_response.py @@ -198,7 +198,7 @@ def imported_date_time_utc(self, imported_date_time_utc): def import_source_type(self): """Gets the import_source_type of this CurrentStatementResponse. # noqa: E501 - Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, indirect bank feed, file upload, or manual keying). # noqa: E501 + Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying). # noqa: E501 :return: The import_source_type of this CurrentStatementResponse. # noqa: E501 :rtype: str @@ -209,7 +209,7 @@ def import_source_type(self): def import_source_type(self, import_source_type): """Sets the import_source_type of this CurrentStatementResponse. - Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, indirect bank feed, file upload, or manual keying). # noqa: E501 + Looking at the most recent bank statement, this field indicates the source of the data (direct bank feed, file upload, or manual keying). # noqa: E501 :param import_source_type: The import_source_type of this CurrentStatementResponse. # noqa: E501 :type: str diff --git a/xero_python/finance/models/data_source_response.py b/xero_python/finance/models/data_source_response.py index 44cf283f..404e739a 100644 --- a/xero_python/finance/models/data_source_response.py +++ b/xero_python/finance/models/data_source_response.py @@ -31,15 +31,12 @@ class DataSourceResponse(BaseModel): """ openapi_types = { "direct_bank_feed": "float", - "indirect_bank_feed": "float", "file_upload": "float", "manual": "float", "direct_bank_feed_pos": "float", - "indirect_bank_feed_pos": "float", "file_upload_pos": "float", "manual_pos": "float", "direct_bank_feed_neg": "float", - "indirect_bank_feed_neg": "float", "file_upload_neg": "float", "manual_neg": "float", "other_pos": "float", @@ -49,15 +46,12 @@ class DataSourceResponse(BaseModel): attribute_map = { "direct_bank_feed": "directBankFeed", - "indirect_bank_feed": "indirectBankFeed", "file_upload": "fileUpload", "manual": "manual", "direct_bank_feed_pos": "directBankFeedPos", - "indirect_bank_feed_pos": "indirectBankFeedPos", "file_upload_pos": "fileUploadPos", "manual_pos": "manualPos", "direct_bank_feed_neg": "directBankFeedNeg", - "indirect_bank_feed_neg": "indirectBankFeedNeg", "file_upload_neg": "fileUploadNeg", "manual_neg": "manualNeg", "other_pos": "otherPos", @@ -68,15 +62,12 @@ class DataSourceResponse(BaseModel): def __init__( self, direct_bank_feed=None, - indirect_bank_feed=None, file_upload=None, manual=None, direct_bank_feed_pos=None, - indirect_bank_feed_pos=None, file_upload_pos=None, manual_pos=None, direct_bank_feed_neg=None, - indirect_bank_feed_neg=None, file_upload_neg=None, manual_neg=None, other_pos=None, @@ -86,15 +77,12 @@ def __init__( """DataSourceResponse - a model defined in OpenAPI""" # noqa: E501 self._direct_bank_feed = None - self._indirect_bank_feed = None self._file_upload = None self._manual = None self._direct_bank_feed_pos = None - self._indirect_bank_feed_pos = None self._file_upload_pos = None self._manual_pos = None self._direct_bank_feed_neg = None - self._indirect_bank_feed_neg = None self._file_upload_neg = None self._manual_neg = None self._other_pos = None @@ -104,24 +92,18 @@ def __init__( if direct_bank_feed is not None: self.direct_bank_feed = direct_bank_feed - if indirect_bank_feed is not None: - self.indirect_bank_feed = indirect_bank_feed if file_upload is not None: self.file_upload = file_upload if manual is not None: self.manual = manual if direct_bank_feed_pos is not None: self.direct_bank_feed_pos = direct_bank_feed_pos - if indirect_bank_feed_pos is not None: - self.indirect_bank_feed_pos = indirect_bank_feed_pos if file_upload_pos is not None: self.file_upload_pos = file_upload_pos if manual_pos is not None: self.manual_pos = manual_pos if direct_bank_feed_neg is not None: self.direct_bank_feed_neg = direct_bank_feed_neg - if indirect_bank_feed_neg is not None: - self.indirect_bank_feed_neg = indirect_bank_feed_neg if file_upload_neg is not None: self.file_upload_neg = file_upload_neg if manual_neg is not None: @@ -156,29 +138,6 @@ def direct_bank_feed(self, direct_bank_feed): self._direct_bank_feed = direct_bank_feed - @property - def indirect_bank_feed(self): - """Gets the indirect_bank_feed of this DataSourceResponse. # noqa: E501 - - No longer in use. # noqa: E501 - - :return: The indirect_bank_feed of this DataSourceResponse. # noqa: E501 - :rtype: float - """ - return self._indirect_bank_feed - - @indirect_bank_feed.setter - def indirect_bank_feed(self, indirect_bank_feed): - """Sets the indirect_bank_feed of this DataSourceResponse. - - No longer in use. # noqa: E501 - - :param indirect_bank_feed: The indirect_bank_feed of this DataSourceResponse. # noqa: E501 - :type: float - """ - - self._indirect_bank_feed = indirect_bank_feed - @property def file_upload(self): """Gets the file_upload of this DataSourceResponse. # noqa: E501 @@ -248,29 +207,6 @@ def direct_bank_feed_pos(self, direct_bank_feed_pos): self._direct_bank_feed_pos = direct_bank_feed_pos - @property - def indirect_bank_feed_pos(self): - """Gets the indirect_bank_feed_pos of this DataSourceResponse. # noqa: E501 - - No longer in use. # noqa: E501 - - :return: The indirect_bank_feed_pos of this DataSourceResponse. # noqa: E501 - :rtype: float - """ - return self._indirect_bank_feed_pos - - @indirect_bank_feed_pos.setter - def indirect_bank_feed_pos(self, indirect_bank_feed_pos): - """Sets the indirect_bank_feed_pos of this DataSourceResponse. - - No longer in use. # noqa: E501 - - :param indirect_bank_feed_pos: The indirect_bank_feed_pos of this DataSourceResponse. # noqa: E501 - :type: float - """ - - self._indirect_bank_feed_pos = indirect_bank_feed_pos - @property def file_upload_pos(self): """Gets the file_upload_pos of this DataSourceResponse. # noqa: E501 @@ -340,29 +276,6 @@ def direct_bank_feed_neg(self, direct_bank_feed_neg): self._direct_bank_feed_neg = direct_bank_feed_neg - @property - def indirect_bank_feed_neg(self): - """Gets the indirect_bank_feed_neg of this DataSourceResponse. # noqa: E501 - - No longer in use. # noqa: E501 - - :return: The indirect_bank_feed_neg of this DataSourceResponse. # noqa: E501 - :rtype: float - """ - return self._indirect_bank_feed_neg - - @indirect_bank_feed_neg.setter - def indirect_bank_feed_neg(self, indirect_bank_feed_neg): - """Sets the indirect_bank_feed_neg of this DataSourceResponse. - - No longer in use. # noqa: E501 - - :param indirect_bank_feed_neg: The indirect_bank_feed_neg of this DataSourceResponse. # noqa: E501 - :type: float - """ - - self._indirect_bank_feed_neg = indirect_bank_feed_neg - @property def file_upload_neg(self): """Gets the file_upload_neg of this DataSourceResponse. # noqa: E501 diff --git a/xero_python/identity/api/identity_api.py b/xero_python/identity/api/identity_api.py index 32a39d09..33fa51bd 100644 --- a/xero_python/identity/api/identity_api.py +++ b/xero_python/identity/api/identity_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/payrollau/api/payroll_au_api.py b/xero_python/payrollau/api/payroll_au_api.py index 7650a7e2..e07cf238 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: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/payrollnz/api/payroll_nz_api.py b/xero_python/payrollnz/api/payroll_nz_api.py index 675f837d..4212665e 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: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/payrollnz/docs/EmployeeLeaveSetup.md b/xero_python/payrollnz/docs/EmployeeLeaveSetup.md index d53341a0..bafe190a 100644 --- a/xero_python/payrollnz/docs/EmployeeLeaveSetup.md +++ b/xero_python/payrollnz/docs/EmployeeLeaveSetup.md @@ -7,11 +7,14 @@ 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** | Number of hours accrued annually for sick leave. Multiply the number of days they're entitled to by the hours worked per day | [optional] -**sick_leave_maximum_hours_to_accrue** | **float** | Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day | [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] **sick_leave_schedule_of_accrual** | **str** | Set Schedule of Accrual Type for Sick Leave | [optional] -**sick_leave_anniversary_date** | **date** | If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave | [optional] +**sick_leave_anniversary_date** | **date** | If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date | [optional] +**annual_leave_anniversary_date** | **date** | The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date | [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/payrollnz/docs/EmployeeLeaveType.md b/xero_python/payrollnz/docs/EmployeeLeaveType.md index 01d7289b..aa9f9d2a 100644 --- a/xero_python/payrollnz/docs/EmployeeLeaveType.md +++ b/xero_python/payrollnz/docs/EmployeeLeaveType.md @@ -5,9 +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** | The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\" | [optional] -**maximum_to_accrue** | **float** | The maximum number of hours that can be accrued for the leave | [optional] -**opening_balance** | **float** | The initial number of hours assigned when the leave was added to the employee | [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] **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] diff --git a/xero_python/payrollnz/docs/LeavePeriod.md b/xero_python/payrollnz/docs/LeavePeriod.md index ad97b401..9c71454c 100644 --- a/xero_python/payrollnz/docs/LeavePeriod.md +++ b/xero_python/payrollnz/docs/LeavePeriod.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes **period_start_date** | **date** | The Pay Period Start Date (YYYY-MM-DD) | [optional] **period_end_date** | **date** | The Pay Period End Date (YYYY-MM-DD) | [optional] **number_of_units** | **float** | The Number of Units for the leave | [optional] -**period_status** | **str** | Period Status | [optional] +**number_of_units_taken** | **float** | The number of units taken for the leave | [optional] +**type_of_units** | **str** | The type of units paid for the leave | [optional] +**type_of_units_taken** | **str** | The type of units taken for the leave | [optional] +**period_status** | **str** | Status of leave | [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/payrollnz/docs/LeaveType.md b/xero_python/payrollnz/docs/LeaveType.md index 49553d40..28668f5c 100644 --- a/xero_python/payrollnz/docs/LeaveType.md +++ b/xero_python/payrollnz/docs/LeaveType.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **show_on_payslip** | **bool** | Indicate that a balance for this leave type to be shown on the employee’s payslips | **updated_date_utc** | **datetime** | UTC timestamp of last update to the leave type note | [optional] **is_active** | **bool** | Shows whether the leave type is active or not | [optional] +**type_of_units** | **str** | The type of units to be paid for the leave type | [optional] +**type_of_units_to_accrue** | **str** | The type of units to be accrued for the leave type | [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/payrollnz/models/employee_leave_setup.py b/xero_python/payrollnz/models/employee_leave_setup.py index 1e197d54..aaa273a4 100644 --- a/xero_python/payrollnz/models/employee_leave_setup.py +++ b/xero_python/payrollnz/models/employee_leave_setup.py @@ -36,9 +36,12 @@ class EmployeeLeaveSetup(BaseModel): "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", "sick_leave_schedule_of_accrual": "str", "sick_leave_anniversary_date": "date", + "annual_leave_anniversary_date": "date", } attribute_map = { @@ -48,9 +51,12 @@ class EmployeeLeaveSetup(BaseModel): "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", "sick_leave_schedule_of_accrual": "SickLeaveScheduleOfAccrual", "sick_leave_anniversary_date": "SickLeaveAnniversaryDate", + "annual_leave_anniversary_date": "AnnualLeaveAnniversaryDate", } def __init__( @@ -61,9 +67,12 @@ def __init__( 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, sick_leave_schedule_of_accrual=None, sick_leave_anniversary_date=None, + annual_leave_anniversary_date=None, ): # noqa: E501 """EmployeeLeaveSetup - a model defined in OpenAPI""" # noqa: E501 @@ -73,9 +82,12 @@ def __init__( 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 self._sick_leave_schedule_of_accrual = None self._sick_leave_anniversary_date = None + self._annual_leave_anniversary_date = None self.discriminator = None if include_holiday_pay is not None: @@ -94,12 +106,18 @@ def __init__( ) 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: + self.sick_leave_maximum_to_accrue = sick_leave_maximum_to_accrue if sick_leave_opening_balance is not None: self.sick_leave_opening_balance = sick_leave_opening_balance if sick_leave_schedule_of_accrual is not None: self.sick_leave_schedule_of_accrual = sick_leave_schedule_of_accrual if sick_leave_anniversary_date is not None: self.sick_leave_anniversary_date = sick_leave_anniversary_date + if annual_leave_anniversary_date is not None: + self.annual_leave_anniversary_date = annual_leave_anniversary_date @property def include_holiday_pay(self): @@ -201,7 +219,7 @@ def negative_annual_leave_balance_paid_amount( def sick_leave_hours_to_accrue_annually(self): """Gets the sick_leave_hours_to_accrue_annually of this EmployeeLeaveSetup. # noqa: E501 - Number of hours accrued annually for sick leave. Multiply the number of days they're entitled to by the hours worked per day # noqa: E501 + Deprecated use SickLeaveToAccrueAnnually # noqa: E501 :return: The sick_leave_hours_to_accrue_annually of this EmployeeLeaveSetup. # noqa: E501 :rtype: float @@ -212,7 +230,7 @@ def sick_leave_hours_to_accrue_annually(self): 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. - Number of hours accrued annually for sick leave. Multiply the number of days they're entitled to by the hours worked per day # noqa: E501 + 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 @@ -224,7 +242,7 @@ def sick_leave_hours_to_accrue_annually(self, sick_leave_hours_to_accrue_annuall def sick_leave_maximum_hours_to_accrue(self): """Gets the sick_leave_maximum_hours_to_accrue of this EmployeeLeaveSetup. # noqa: E501 - Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day # noqa: E501 + Deprecated use SickLeaveMaximumToAccrue # noqa: E501 :return: The sick_leave_maximum_hours_to_accrue of this EmployeeLeaveSetup. # noqa: E501 :rtype: float @@ -235,7 +253,7 @@ def sick_leave_maximum_hours_to_accrue(self): 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. - Maximum number of hours accrued annually for sick leave. Multiply the maximum days they can accrue by the hours worked per day # noqa: E501 + 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 @@ -243,6 +261,52 @@ def sick_leave_maximum_hours_to_accrue(self, sick_leave_maximum_hours_to_accrue) 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 + + Number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type # noqa: E501 + + :return: The sick_leave_to_accrue_annually of this EmployeeLeaveSetup. # noqa: E501 + :rtype: float + """ + return self._sick_leave_to_accrue_annually + + @sick_leave_to_accrue_annually.setter + def sick_leave_to_accrue_annually(self, sick_leave_to_accrue_annually): + """Sets the sick_leave_to_accrue_annually of this EmployeeLeaveSetup. + + Number of units accrued annually for sick leave. The type of units is determined by the property \"TypeOfUnitsToAccrue\" on the \"Sick Leave\" leave type # noqa: E501 + + :param sick_leave_to_accrue_annually: The sick_leave_to_accrue_annually of this EmployeeLeaveSetup. # noqa: E501 + :type: float + """ + + self._sick_leave_to_accrue_annually = sick_leave_to_accrue_annually + + @property + def sick_leave_maximum_to_accrue(self): + """Gets the sick_leave_maximum_to_accrue of this EmployeeLeaveSetup. # noqa: E501 + + 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 # noqa: E501 + + :return: The sick_leave_maximum_to_accrue of this EmployeeLeaveSetup. # noqa: E501 + :rtype: float + """ + return self._sick_leave_maximum_to_accrue + + @sick_leave_maximum_to_accrue.setter + def sick_leave_maximum_to_accrue(self, sick_leave_maximum_to_accrue): + """Sets the sick_leave_maximum_to_accrue of this EmployeeLeaveSetup. + + 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 # noqa: E501 + + :param sick_leave_maximum_to_accrue: The sick_leave_maximum_to_accrue of this EmployeeLeaveSetup. # noqa: E501 + :type: float + """ + + self._sick_leave_maximum_to_accrue = sick_leave_maximum_to_accrue + @property def sick_leave_opening_balance(self): """Gets the sick_leave_opening_balance of this EmployeeLeaveSetup. # noqa: E501 @@ -293,7 +357,7 @@ def sick_leave_schedule_of_accrual(self, sick_leave_schedule_of_accrual): def sick_leave_anniversary_date(self): """Gets the sick_leave_anniversary_date of this EmployeeLeaveSetup. # noqa: E501 - If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave # noqa: E501 + If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date # noqa: E501 :return: The sick_leave_anniversary_date of this EmployeeLeaveSetup. # noqa: E501 :rtype: date @@ -304,10 +368,33 @@ def sick_leave_anniversary_date(self): def sick_leave_anniversary_date(self, sick_leave_anniversary_date): """Sets the sick_leave_anniversary_date of this EmployeeLeaveSetup. - If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave # noqa: E501 + If Sick Leave Schedule of Accrual is \"OnAnniversaryDate\", this is the date when entitled to Sick Leave. When null the Employee's start date is used as the anniversary date # noqa: E501 :param sick_leave_anniversary_date: The sick_leave_anniversary_date of this EmployeeLeaveSetup. # noqa: E501 :type: date """ self._sick_leave_anniversary_date = sick_leave_anniversary_date + + @property + def annual_leave_anniversary_date(self): + """Gets the annual_leave_anniversary_date of this EmployeeLeaveSetup. # noqa: E501 + + The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date # noqa: E501 + + :return: The annual_leave_anniversary_date of this EmployeeLeaveSetup. # noqa: E501 + :rtype: date + """ + return self._annual_leave_anniversary_date + + @annual_leave_anniversary_date.setter + def annual_leave_anniversary_date(self, annual_leave_anniversary_date): + """Sets the annual_leave_anniversary_date of this EmployeeLeaveSetup. + + The first date the employee will accrue Annual Leave. When null the Employee's start date is used as the anniversary date # noqa: E501 + + :param annual_leave_anniversary_date: The annual_leave_anniversary_date of this EmployeeLeaveSetup. # noqa: E501 + :type: date + """ + + self._annual_leave_anniversary_date = annual_leave_anniversary_date diff --git a/xero_python/payrollnz/models/employee_leave_type.py b/xero_python/payrollnz/models/employee_leave_type.py index 5ccf7b9d..9c1276ba 100644 --- a/xero_python/payrollnz/models/employee_leave_type.py +++ b/xero_python/payrollnz/models/employee_leave_type.py @@ -33,8 +33,11 @@ class EmployeeLeaveType(BaseModel): "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", "opening_balance": "float", + "opening_balance_type_of_units": "str", "rate_accrued_hourly": "float", "percentage_of_gross_earnings": "float", "include_holiday_pay_every_pay": "bool", @@ -47,8 +50,11 @@ class EmployeeLeaveType(BaseModel): "leave_type_id": "leaveTypeID", "schedule_of_accrual": "scheduleOfAccrual", "hours_accrued_annually": "hoursAccruedAnnually", + "units_accrued_annually": "UnitsAccruedAnnually", + "type_of_units_to_accrue": "typeOfUnitsToAccrue", "maximum_to_accrue": "maximumToAccrue", "opening_balance": "openingBalance", + "opening_balance_type_of_units": "openingBalanceTypeOfUnits", "rate_accrued_hourly": "rateAccruedHourly", "percentage_of_gross_earnings": "percentageOfGrossEarnings", "include_holiday_pay_every_pay": "includeHolidayPayEveryPay", @@ -62,8 +68,11 @@ def __init__( 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, opening_balance=None, + opening_balance_type_of_units=None, rate_accrued_hourly=None, percentage_of_gross_earnings=None, include_holiday_pay_every_pay=None, @@ -76,8 +85,11 @@ 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 self._opening_balance = None + self._opening_balance_type_of_units = None self._rate_accrued_hourly = None self._percentage_of_gross_earnings = None self._include_holiday_pay_every_pay = None @@ -92,10 +104,16 @@ def __init__( 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: + self.type_of_units_to_accrue = type_of_units_to_accrue if maximum_to_accrue is not None: self.maximum_to_accrue = maximum_to_accrue if opening_balance is not None: self.opening_balance = opening_balance + if opening_balance_type_of_units is not None: + self.opening_balance_type_of_units = opening_balance_type_of_units if rate_accrued_hourly is not None: self.rate_accrued_hourly = rate_accrued_hourly if percentage_of_gross_earnings is not None: @@ -174,7 +192,7 @@ def schedule_of_accrual(self, schedule_of_accrual): def hours_accrued_annually(self): """Gets the hours_accrued_annually of this EmployeeLeaveType. # noqa: E501 - The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\" # noqa: E501 + Deprecated use UnitsAccruedAnnually # noqa: E501 :return: The hours_accrued_annually of this EmployeeLeaveType. # noqa: E501 :rtype: float @@ -185,7 +203,7 @@ def hours_accrued_annually(self): def hours_accrued_annually(self, hours_accrued_annually): """Sets the hours_accrued_annually of this EmployeeLeaveType. - The number of hours accrued for the leave annually. This is 0 when the scheduleOfAccrual chosen is \"OnHourWorked\" # noqa: E501 + Deprecated use UnitsAccruedAnnually # noqa: E501 :param hours_accrued_annually: The hours_accrued_annually of this EmployeeLeaveType. # noqa: E501 :type: float @@ -193,11 +211,57 @@ def hours_accrued_annually(self, hours_accrued_annually): self._hours_accrued_annually = hours_accrued_annually + @property + def units_accrued_annually(self): + """Gets the units_accrued_annually of this EmployeeLeaveType. # noqa: E501 + + The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\" # noqa: E501 + + :return: The units_accrued_annually of this EmployeeLeaveType. # noqa: E501 + :rtype: float + """ + return self._units_accrued_annually + + @units_accrued_annually.setter + def units_accrued_annually(self, units_accrued_annually): + """Sets the units_accrued_annually of this EmployeeLeaveType. + + The number of units accrued for the leave annually. This is 0 when the ScheduleOfAccrual chosen is \"NoAccruals\" # noqa: E501 + + :param units_accrued_annually: The units_accrued_annually of this EmployeeLeaveType. # noqa: E501 + :type: float + """ + + self._units_accrued_annually = units_accrued_annually + + @property + def type_of_units_to_accrue(self): + """Gets the type_of_units_to_accrue of this EmployeeLeaveType. # noqa: E501 + + The type of units accrued for the leave annually # noqa: E501 + + :return: The type_of_units_to_accrue of this EmployeeLeaveType. # noqa: E501 + :rtype: str + """ + return self._type_of_units_to_accrue + + @type_of_units_to_accrue.setter + def type_of_units_to_accrue(self, type_of_units_to_accrue): + """Sets the type_of_units_to_accrue of this EmployeeLeaveType. + + The type of units accrued for the leave annually # noqa: E501 + + :param type_of_units_to_accrue: The type_of_units_to_accrue of this EmployeeLeaveType. # noqa: E501 + :type: str + """ + + self._type_of_units_to_accrue = type_of_units_to_accrue + @property def maximum_to_accrue(self): """Gets the maximum_to_accrue of this EmployeeLeaveType. # noqa: E501 - The maximum number of hours that can be accrued for the leave # noqa: E501 + The maximum number of units that can be accrued for the leave # noqa: E501 :return: The maximum_to_accrue of this EmployeeLeaveType. # noqa: E501 :rtype: float @@ -208,7 +272,7 @@ def maximum_to_accrue(self): def maximum_to_accrue(self, maximum_to_accrue): """Sets the maximum_to_accrue of this EmployeeLeaveType. - The maximum number of hours that can be accrued for the leave # noqa: E501 + The maximum number of units that can be accrued for the leave # noqa: E501 :param maximum_to_accrue: The maximum_to_accrue of this EmployeeLeaveType. # noqa: E501 :type: float @@ -220,7 +284,7 @@ def maximum_to_accrue(self, maximum_to_accrue): def opening_balance(self): """Gets the opening_balance of this EmployeeLeaveType. # noqa: E501 - The initial number of hours assigned when the leave was added to the employee # noqa: E501 + The initial number of units assigned when the leave was added to the employee # noqa: E501 :return: The opening_balance of this EmployeeLeaveType. # noqa: E501 :rtype: float @@ -231,7 +295,7 @@ def opening_balance(self): def opening_balance(self, opening_balance): """Sets the opening_balance of this EmployeeLeaveType. - The initial number of hours assigned when the leave was added to the employee # noqa: E501 + The initial number of units assigned when the leave was added to the employee # noqa: E501 :param opening_balance: The opening_balance of this EmployeeLeaveType. # noqa: E501 :type: float @@ -239,6 +303,29 @@ def opening_balance(self, opening_balance): self._opening_balance = opening_balance + @property + def opening_balance_type_of_units(self): + """Gets the opening_balance_type_of_units of this EmployeeLeaveType. # noqa: E501 + + The type of units for the opening balance # noqa: E501 + + :return: The opening_balance_type_of_units of this EmployeeLeaveType. # noqa: E501 + :rtype: str + """ + return self._opening_balance_type_of_units + + @opening_balance_type_of_units.setter + def opening_balance_type_of_units(self, opening_balance_type_of_units): + """Sets the opening_balance_type_of_units of this EmployeeLeaveType. + + The type of units for the opening balance # noqa: E501 + + :param opening_balance_type_of_units: The opening_balance_type_of_units of this EmployeeLeaveType. # noqa: E501 + :type: str + """ + + self._opening_balance_type_of_units = opening_balance_type_of_units + @property def rate_accrued_hourly(self): """Gets the rate_accrued_hourly of this EmployeeLeaveType. # noqa: E501 diff --git a/xero_python/payrollnz/models/leave_period.py b/xero_python/payrollnz/models/leave_period.py index da81576b..bad7d274 100644 --- a/xero_python/payrollnz/models/leave_period.py +++ b/xero_python/payrollnz/models/leave_period.py @@ -33,6 +33,9 @@ class LeavePeriod(BaseModel): "period_start_date": "date", "period_end_date": "date", "number_of_units": "float", + "number_of_units_taken": "float", + "type_of_units": "str", + "type_of_units_taken": "str", "period_status": "str", } @@ -40,6 +43,9 @@ class LeavePeriod(BaseModel): "period_start_date": "periodStartDate", "period_end_date": "periodEndDate", "number_of_units": "numberOfUnits", + "number_of_units_taken": "numberOfUnitsTaken", + "type_of_units": "typeOfUnits", + "type_of_units_taken": "typeOfUnitsTaken", "period_status": "periodStatus", } @@ -48,6 +54,9 @@ def __init__( period_start_date=None, period_end_date=None, number_of_units=None, + number_of_units_taken=None, + type_of_units=None, + type_of_units_taken=None, period_status=None, ): # noqa: E501 """LeavePeriod - a model defined in OpenAPI""" # noqa: E501 @@ -55,6 +64,9 @@ def __init__( self._period_start_date = None self._period_end_date = None self._number_of_units = None + self._number_of_units_taken = None + self._type_of_units = None + self._type_of_units_taken = None self._period_status = None self.discriminator = None @@ -64,6 +76,12 @@ def __init__( self.period_end_date = period_end_date if number_of_units is not None: self.number_of_units = number_of_units + if number_of_units_taken is not None: + self.number_of_units_taken = number_of_units_taken + if type_of_units is not None: + self.type_of_units = type_of_units + if type_of_units_taken is not None: + self.type_of_units_taken = type_of_units_taken if period_status is not None: self.period_status = period_status @@ -136,11 +154,80 @@ def number_of_units(self, number_of_units): self._number_of_units = number_of_units + @property + def number_of_units_taken(self): + """Gets the number_of_units_taken of this LeavePeriod. # noqa: E501 + + The number of units taken for the leave # noqa: E501 + + :return: The number_of_units_taken of this LeavePeriod. # noqa: E501 + :rtype: float + """ + return self._number_of_units_taken + + @number_of_units_taken.setter + def number_of_units_taken(self, number_of_units_taken): + """Sets the number_of_units_taken of this LeavePeriod. + + The number of units taken for the leave # noqa: E501 + + :param number_of_units_taken: The number_of_units_taken of this LeavePeriod. # noqa: E501 + :type: float + """ + + self._number_of_units_taken = number_of_units_taken + + @property + def type_of_units(self): + """Gets the type_of_units of this LeavePeriod. # noqa: E501 + + The type of units paid for the leave # noqa: E501 + + :return: The type_of_units of this LeavePeriod. # noqa: E501 + :rtype: str + """ + return self._type_of_units + + @type_of_units.setter + def type_of_units(self, type_of_units): + """Sets the type_of_units of this LeavePeriod. + + The type of units paid for the leave # noqa: E501 + + :param type_of_units: The type_of_units of this LeavePeriod. # noqa: E501 + :type: str + """ + + self._type_of_units = type_of_units + + @property + def type_of_units_taken(self): + """Gets the type_of_units_taken of this LeavePeriod. # noqa: E501 + + The type of units taken for the leave # noqa: E501 + + :return: The type_of_units_taken of this LeavePeriod. # noqa: E501 + :rtype: str + """ + return self._type_of_units_taken + + @type_of_units_taken.setter + def type_of_units_taken(self, type_of_units_taken): + """Sets the type_of_units_taken of this LeavePeriod. + + The type of units taken for the leave # noqa: E501 + + :param type_of_units_taken: The type_of_units_taken of this LeavePeriod. # noqa: E501 + :type: str + """ + + self._type_of_units_taken = type_of_units_taken + @property def period_status(self): """Gets the period_status of this LeavePeriod. # noqa: E501 - Period Status # noqa: E501 + Status of leave # noqa: E501 :return: The period_status of this LeavePeriod. # noqa: E501 :rtype: str @@ -151,12 +238,12 @@ def period_status(self): def period_status(self, period_status): """Sets the period_status of this LeavePeriod. - Period Status # noqa: E501 + Status of leave # noqa: E501 :param period_status: The period_status of this LeavePeriod. # noqa: E501 :type: str """ - allowed_values = ["Approved", "Completed", "None"] # noqa: E501 + allowed_values = ["Approved", "Completed", "Estimated", "None"] # noqa: E501 if period_status: if period_status not in allowed_values: diff --git a/xero_python/payrollnz/models/leave_type.py b/xero_python/payrollnz/models/leave_type.py index d581a2f9..a67af9e6 100644 --- a/xero_python/payrollnz/models/leave_type.py +++ b/xero_python/payrollnz/models/leave_type.py @@ -36,6 +36,8 @@ class LeaveType(BaseModel): "show_on_payslip": "bool", "updated_date_utc": "datetime", "is_active": "bool", + "type_of_units": "str", + "type_of_units_to_accrue": "str", } attribute_map = { @@ -45,6 +47,8 @@ class LeaveType(BaseModel): "show_on_payslip": "showOnPayslip", "updated_date_utc": "updatedDateUTC", "is_active": "isActive", + "type_of_units": "typeOfUnits", + "type_of_units_to_accrue": "typeOfUnitsToAccrue", } def __init__( @@ -55,6 +59,8 @@ def __init__( show_on_payslip=None, updated_date_utc=None, is_active=None, + type_of_units=None, + type_of_units_to_accrue=None, ): # noqa: E501 """LeaveType - a model defined in OpenAPI""" # noqa: E501 @@ -64,6 +70,8 @@ def __init__( self._show_on_payslip = None self._updated_date_utc = None self._is_active = None + self._type_of_units = None + self._type_of_units_to_accrue = None self.discriminator = None if leave_type_id is not None: @@ -75,6 +83,10 @@ def __init__( self.updated_date_utc = updated_date_utc if is_active is not None: self.is_active = is_active + if type_of_units is not None: + self.type_of_units = type_of_units + if type_of_units_to_accrue is not None: + self.type_of_units_to_accrue = type_of_units_to_accrue @property def leave_type_id(self): @@ -225,3 +237,49 @@ def is_active(self, is_active): """ self._is_active = is_active + + @property + def type_of_units(self): + """Gets the type_of_units of this LeaveType. # noqa: E501 + + The type of units to be paid for the leave type # noqa: E501 + + :return: The type_of_units of this LeaveType. # noqa: E501 + :rtype: str + """ + return self._type_of_units + + @type_of_units.setter + def type_of_units(self, type_of_units): + """Sets the type_of_units of this LeaveType. + + The type of units to be paid for the leave type # noqa: E501 + + :param type_of_units: The type_of_units of this LeaveType. # noqa: E501 + :type: str + """ + + self._type_of_units = type_of_units + + @property + def type_of_units_to_accrue(self): + """Gets the type_of_units_to_accrue of this LeaveType. # noqa: E501 + + The type of units to be accrued for the leave type # noqa: E501 + + :return: The type_of_units_to_accrue of this LeaveType. # noqa: E501 + :rtype: str + """ + return self._type_of_units_to_accrue + + @type_of_units_to_accrue.setter + def type_of_units_to_accrue(self, type_of_units_to_accrue): + """Sets the type_of_units_to_accrue of this LeaveType. + + The type of units to be accrued for the leave type # noqa: E501 + + :param type_of_units_to_accrue: The type_of_units_to_accrue of this LeaveType. # noqa: E501 + :type: str + """ + + self._type_of_units_to_accrue = type_of_units_to_accrue diff --git a/xero_python/payrolluk/api/payroll_uk_api.py b/xero_python/payrolluk/api/payroll_uk_api.py index 873648e4..e4f4ddd1 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: 6.3.0 + OpenAPI spec version: 7.0.0 """ diff --git a/xero_python/project/api/project_api.py b/xero_python/project/api/project_api.py index 575d5d56..8ed93012 100644 --- a/xero_python/project/api/project_api.py +++ b/xero_python/project/api/project_api.py @@ -21,7 +21,7 @@ """ """ - OpenAPI spec version: 6.3.0 + OpenAPI spec version: 7.0.0 """